Home
last modified time | relevance | path

Searched refs:intent (Results 1 – 25 of 3327) sorted by relevance

12345678910>>...134

/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DAllIntentsActivity.java172 Intent intent = new Intent(Intent.ACTION_PICK); in onListItemClick() local
173 intent.setType(ContactMethods.CONTENT_POSTAL_TYPE); in onListItemClick()
174 startContactSelectionActivityForResult(intent); in onListItemClick()
183 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); in onListItemClick() local
184 startContactSelectionActivityForResult(intent); in onListItemClick()
188 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); in onListItemClick() local
189 bindIntentToClass(intent, "alias.DialShortcut"); in onListItemClick()
190 startActivityForResult(intent, 0); in onListItemClick()
194 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); in onListItemClick() local
195 bindIntentToClass(intent, "alias.MessageShortcut"); in onListItemClick()
[all …]
/packages/apps/Nfc/testutils/src/com/android/nfc/emulator/
DNfcEmulatorDeviceSnippet.java47 Intent intent = new Intent(Intent.ACTION_MAIN); in startSingleNonPaymentEmulatorActivity() local
48 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startSingleNonPaymentEmulatorActivity()
49 intent.setClassName( in startSingleNonPaymentEmulatorActivity()
53 mActivity = (SingleNonPaymentEmulatorActivity) instrumentation.startActivitySync(intent); in startSingleNonPaymentEmulatorActivity()
61 Intent intent = new Intent(Intent.ACTION_MAIN); in startSinglePaymentEmulatorActivity() local
62 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startSinglePaymentEmulatorActivity()
63 intent.setClassName( in startSinglePaymentEmulatorActivity()
66 mActivity = (SinglePaymentEmulatorActivity) instrumentation.startActivitySync(intent); in startSinglePaymentEmulatorActivity()
74 Intent intent = new Intent(Intent.ACTION_MAIN); in startDualPaymentEmulatorActivity() local
75 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startDualPaymentEmulatorActivity()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DUIIntentsImpl.java93 final Intent intent = new Intent(context, ConversationActivity.class); in getConversationActivityIntent() local
97 intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); in getConversationActivityIntent()
101 intent.putExtra(UI_INTENT_EXTRA_CONVERSATION_ID, conversationId); in getConversationActivityIntent()
104 intent.putExtra(UI_INTENT_EXTRA_DRAFT_DATA, draft); in getConversationActivityIntent()
121 intent.setClipData(clipData); in getConversationActivityIntent()
122 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); in getConversationActivityIntent()
126 intent.putExtra(UI_INTENT_EXTRA_WITH_CUSTOM_TRANSITION, true); in getConversationActivityIntent()
132 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in getConversationActivityIntent()
134 return intent; in getConversationActivityIntent()
139 final Intent intent = new Intent(context, PermissionCheckActivity.class); in launchPermissionCheckActivity() local
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DExtrasProvisioningDataParser.java391 private boolean hasExtraFromLongName(Intent intent, String longName) { in hasExtraFromLongName() argument
392 return intent.hasExtra(longName) || intent.hasExtra(getShortExtraNames(longName)); in hasExtraFromLongName()
397 Intent intent, String longName) { in getParcelableExtraFromLongName() argument
398 if (intent.hasExtra(longName)) { in getParcelableExtraFromLongName()
399 return intent.getParcelableExtra(longName); in getParcelableExtraFromLongName()
402 if (intent.hasExtra(shortName)) { in getParcelableExtraFromLongName()
403 return intent.getParcelableExtra(shortName); in getParcelableExtraFromLongName()
409 private Parcelable[] getParcelableArrayExtraFromLongName(Intent intent, String longName) { in getParcelableArrayExtraFromLongName() argument
410 if (intent.hasExtra(longName)) { in getParcelableArrayExtraFromLongName()
411 return intent.getParcelableArrayExtra(longName); in getParcelableArrayExtraFromLongName()
[all …]
/packages/modules/HealthFitness/tests/integrationtests/TestApp/src/android/healthconnect/test/app/
DTestAppReceiver.java108 public void onReceive(Context context, Intent intent) { in onReceive() argument
109 switch (intent.getAction()) { in onReceive()
111 insertStepsRecords(context, intent); in onReceive()
114 insertWeightRecords(context, intent); in onReceive()
117 insertExerciseRecord(context, intent); in onReceive()
120 insertPlannedExerciseRecord(context, intent); in onReceive()
123 readStepsRecordsUsingFilters(context, intent); in onReceive()
126 readStepsRecordsUsingIds(context, intent); in onReceive()
129 aggregateStepsCount(context, intent); in onReceive()
132 getChangeLogToken(context, intent); in onReceive()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/
DMimeFilterUtilsTest.java35 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testRequiresUnsupportedFilters_imagesType() local
37 intent.setType(mimeType); in testRequiresUnsupportedFilters_imagesType()
39 assertThat(MimeFilterUtils.requiresUnsupportedFilters(intent)).isFalse(); in testRequiresUnsupportedFilters_imagesType()
44 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testRequiresUnsupportedFilters_videosType() local
46 intent.setType(mimeType); in testRequiresUnsupportedFilters_videosType()
48 assertThat(MimeFilterUtils.requiresUnsupportedFilters(intent)).isFalse(); in testRequiresUnsupportedFilters_videosType()
53 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testRequiresUnsupportedFilters_allType() local
55 intent.setType(mimeType); in testRequiresUnsupportedFilters_allType()
57 assertThat(MimeFilterUtils.requiresUnsupportedFilters(intent)).isTrue(); in testRequiresUnsupportedFilters_allType()
62 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testRequiresUnsupportedFilters_extraMimeTypeImagesVideos() local
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/storage/
DFormatActivityFormatReceiverTest.java57 final Intent intent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PRIVATE); in testFormatAsPrivate_successResumed() local
58 intent.putExtra(DiskInfo.EXTRA_DISK_ID, "asdf"); in testFormatAsPrivate_successResumed()
59 intent.putExtra(SettingsStorageService.EXTRA_PRIVATE_BENCH, 123L); in testFormatAsPrivate_successResumed()
60 intent.putExtra(SettingsStorageService.EXTRA_INTERNAL_BENCH, 456L); in testFormatAsPrivate_successResumed()
61 intent.putExtra(SettingsStorageService.EXTRA_SUCCESS, true); in testFormatAsPrivate_successResumed()
63 new FormatActivity.FormatReceiver(mActivity).onReceive(mActivity, intent); in testFormatAsPrivate_successResumed()
73 final Intent intent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PRIVATE); in testFormatAsPrivate_successNotResumed() local
74 intent.putExtra(DiskInfo.EXTRA_DISK_ID, "asdf"); in testFormatAsPrivate_successNotResumed()
75 intent.putExtra(SettingsStorageService.EXTRA_PRIVATE_BENCH, 123L); in testFormatAsPrivate_successNotResumed()
76 intent.putExtra(SettingsStorageService.EXTRA_INTERNAL_BENCH, 456L); in testFormatAsPrivate_successNotResumed()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DImplicitIntentsUtil.java66 public static void startActivityInAppIfPossible(Context context, Intent intent) { in startActivityInAppIfPossible() argument
67 final Intent appIntent = getIntentInAppIfExists(context, intent); in startActivityInAppIfPossible()
71 context.startActivity(intent); in startActivityInAppIfPossible()
79 public static void startActivityInApp(Context context, Intent intent) { in startActivityInApp() argument
81 intent.setPackage(packageName); in startActivityInApp()
82 context.startActivity(intent); in startActivityInApp()
88 public static void startActivityOutsideApp(Context context, Intent intent) { in startActivityOutsideApp() argument
92 if (getIntentInAppIfExists(context, intent) != null) { in startActivityOutsideApp()
97 context.startActivity(intent); in startActivityOutsideApp()
105 final Intent intent = ImplicitIntentsUtil.composeQuickContactIntent( in startQuickContact() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbConnectionBroadcastReceiverTest.java65 final Intent intent = new Intent(); in onReceive_usbConnected_invokeCallback() local
66 intent.setAction(UsbManager.ACTION_USB_STATE); in onReceive_usbConnected_invokeCallback()
67 intent.putExtra(UsbManager.USB_CONNECTED, true); in onReceive_usbConnected_invokeCallback()
68 intent.putExtra(UsbManager.USB_CONFIGURED, true); in onReceive_usbConnected_invokeCallback()
70 mReceiver.onReceive(mContext, intent); in onReceive_usbConnected_invokeCallback()
78 final Intent intent = new Intent(); in onReceive_usbDisconnected_invokeCallback() local
79 intent.setAction(UsbManager.ACTION_USB_STATE); in onReceive_usbDisconnected_invokeCallback()
80 intent.putExtra(UsbManager.USB_CONNECTED, false); in onReceive_usbDisconnected_invokeCallback()
81 intent.putExtra(UsbManager.USB_CONFIGURED, true); in onReceive_usbDisconnected_invokeCallback()
83 mReceiver.onReceive(mContext, intent); in onReceive_usbDisconnected_invokeCallback()
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertAudioTest.java139 Intent intent = new Intent(mContext, CellBroadcastAlertAudio.class); in createStartAudioIntent() local
140 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_MESSAGE_BODY, in createStartAudioIntent()
142 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_VIBRATION_PATTERN_EXTRA, in createStartAudioIntent()
144 return intent; in createStartAudioIntent()
153 protected void startService(Intent intent) { in startService() argument
158 super.startService(intent); in startService()
168 Intent intent = new Intent(mContext, CellBroadcastAlertAudio.class); in testStartService()
169 intent.setAction(SHOW_NEW_ALERT_ACTION); in testStartService()
170 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_MESSAGE_BODY, in testStartService()
172 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_VIBRATION_PATTERN_EXTRA, in testStartService()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorIntents.java47 final Intent intent = new Intent(Intent.ACTION_EDIT, uri, context, in createEditContactIntent() local
49 putMaterialPalette(intent, materialPalette); in createEditContactIntent()
50 putPhotoId(intent, photoId); in createEditContactIntent()
51 return intent; in createEditContactIntent()
56 final Intent intent = createEditContactIntent(context, uri, materialPalette, in createViewLinkedContactsIntent() local
58 intent.putExtra(ContactEditorSpringBoardActivity.EXTRA_SHOW_READ_ONLY, true); in createViewLinkedContactsIntent()
60 return intent; in createViewLinkedContactsIntent()
68 final Intent intent = new Intent(Intent.ACTION_EDIT, uri, context, in createEditContactIntentForRawContact() local
70 intent.putExtra(ContactEditorFragment.INTENT_EXTRA_RAW_CONTACT_ID_TO_DISPLAY_ALONE, in createEditContactIntentForRawContact()
72 putMaterialPalette(intent, materialPalette); in createEditContactIntentForRawContact()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DActionServiceImpl.java56 final Intent intent = makeIntent(OP_START_ACTION); in startAction() local
59 intent.putExtra(EXTRA_ACTION_BUNDLE, actionBundle); in startAction()
61 startServiceWithIntent(intent); in startAction()
72 final Intent intent = PendingActionReceiver.makeIntent(OP_START_ACTION); in scheduleAction() local
75 intent.putExtra(EXTRA_ACTION_BUNDLE, actionBundle); in scheduleAction()
77 PendingActionReceiver.scheduleAlarm(intent, requestCode, delayMs); in scheduleAction()
87 final Intent intent = makeIntent(OP_RECEIVE_BACKGROUND_RESPONSE); in handleResponseFromBackgroundWorker() local
91 intent.putExtra(EXTRA_ACTION_BUNDLE, actionBundle); in handleResponseFromBackgroundWorker()
92 intent.putExtra(EXTRA_WORKER_RESPONSE, response); in handleResponseFromBackgroundWorker()
94 startServiceWithIntent(intent); in handleResponseFromBackgroundWorker()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DMobileNetworkIntentConverter.java121 ops = ops.andThen(intent -> extractArguments(intent, subId)) in apply()
123 .andThen(intent -> updateFragment(intent, mAppContext, subId)); in apply()
126 ops = ops.andThen(intent -> extractArguments(intent, subId)) in apply()
129 .andThen(intent -> updateFragment(intent, mAppContext, subId)); in apply()
132 ops = ops.andThen(intent -> extractArguments(intent, subId)) in apply()
135 .andThen(intent -> updateFragment(intent, mAppContext, subId)); in apply()
139 ops = ops.andThen(intent -> extractArguments(intent, subId)) in apply()
141 .andThen(intent -> replaceIntentAction(intent)) in apply()
142 .andThen(intent -> updateFragment(intent, mAppContext, subId)); in apply()
148 ops = ops.andThen(intent -> configForReRoute(intent)); in apply()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DPackageChangedReceiverTest.java198 Intent intent = new Intent(); in createIntentSentByAdServiceSystemService() local
199 intent.setAction(PackageChangedReceiver.PACKAGE_CHANGED_BROADCAST); in createIntentSentByAdServiceSystemService()
200 intent.setData(Uri.parse(PACKAGE_SCHEME + SAMPLE_PACKAGE)); in createIntentSentByAdServiceSystemService()
201 intent.putExtra(PackageChangedReceiver.ACTION_KEY, value); in createIntentSentByAdServiceSystemService()
202 intent.putExtra(Intent.EXTRA_UID, 0); in createIntentSentByAdServiceSystemService()
204 return intent; in createIntentSentByAdServiceSystemService()
210 Intent intent = new Intent(); in createIntentSentBySystem() local
211 intent.setAction(action); in createIntentSentBySystem()
212 intent.setData(Uri.parse(PACKAGE_SCHEME + SAMPLE_PACKAGE)); in createIntentSentBySystem()
213 return intent; in createIntentSentBySystem()
[all …]
/packages/apps/Settings/src/com/android/settings/core/
DSubSettingLauncher.java142 public void launchWithIntent(@NonNull Intent intent) { in launchWithIntent() argument
143 verifyIntent(intent); in launchWithIntent()
154 launchForResultAsUser(intent, mLaunchRequest.mUserHandle, in launchWithIntent()
157 launchAsUser(intent, mLaunchRequest.mUserHandle); in launchWithIntent()
159 launchForResult(mLaunchRequest.mResultListener, intent, mLaunchRequest.mRequestCode); in launchWithIntent()
161 launch(intent); in launchWithIntent()
171 public void verifyIntent(@NonNull Intent intent) { in verifyIntent() argument
173 ComponentName componentName = intent.getComponent(); in verifyIntent()
174 String destinationName = intent.getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT); in verifyIntent()
176 intent.getIntExtra(MetricsFeatureProvider.EXTRA_SOURCE_METRICS_CATEGORY, -1); in verifyIntent()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DTestUtil.java39 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); in sendNetworkStateChanged() local
42 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo); in sendNetworkStateChanged()
43 broadcastReceiver.onReceive(context, intent); in sendNetworkStateChanged()
51 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); in sendNetworkStateChanged() local
52 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, nwInfo); in sendNetworkStateChanged()
53 intent.putExtra(WifiManager.EXTRA_WIFI_INFO, wifiInfo); in sendNetworkStateChanged()
54 broadcastReceiver.onReceive(context, intent); in sendNetworkStateChanged()
62 Intent intent = new Intent(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in sendScanResultsAvailable() local
63 broadcastReceiver.onReceive(context, intent); in sendScanResultsAvailable()
71 Intent intent = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION); in sendWifiStateChanged() local
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCallIntentProcessor.java43 Intent intent, String callingPackage, FeatureFlags featureFlags); in processOutgoingCallIntent() argument
44 void processIncomingCallIntent(CallsManager callsManager, Intent intent); in processIncomingCallIntent() argument
45 void processUnknownCallIntent(CallsManager callsManager, Intent intent); in processUnknownCallIntent() argument
56 Intent intent, String callingPackage, FeatureFlags featureFlags) { in processOutgoingCallIntent() argument
57 CallIntentProcessor.processOutgoingCallIntent(context, callsManager, intent, in processOutgoingCallIntent()
62 public void processIncomingCallIntent(CallsManager callsManager, Intent intent) { in processIncomingCallIntent() argument
63 CallIntentProcessor.processIncomingCallIntent(callsManager, intent); in processIncomingCallIntent()
67 public void processUnknownCallIntent(CallsManager callsManager, Intent intent) { in processUnknownCallIntent() argument
68 CallIntentProcessor.processUnknownCallIntent(callsManager, intent); in processUnknownCallIntent()
94 public void processIntent(Intent intent, String callingPackage) { in processIntent() argument
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DActivityUtils.java50 Activity activity, Intent intent, int requestCode) { in startActivityForResultSafely() argument
52 activity.startActivityForResult(intent, requestCode); in startActivityForResultSafely()
57 Log.e("Wallpaper", "Wallpaper does not have the permission to launch " + intent in startActivityForResultSafely()
68 public static boolean isLaunchedFromSettingsRelated(Intent intent) { in isLaunchedFromSettingsRelated() argument
69 return isLaunchedFromSettings(intent) || isLaunchedFromSettingsSearch(intent); in isLaunchedFromSettingsRelated()
78 public static boolean isLaunchedFromSettingsTrampoline(Intent intent) { in isLaunchedFromSettingsTrampoline() argument
79 return isLaunchedFromSettingsHome(intent); in isLaunchedFromSettingsTrampoline()
87 private static boolean isLaunchedFromSettings(Intent intent) { in isLaunchedFromSettings() argument
88 return (intent != null && TextUtils.equals(LAUNCH_SOURCE_SETTINGS, in isLaunchedFromSettings()
89 intent.getStringExtra(WALLPAPER_LAUNCH_SOURCE))); in isLaunchedFromSettings()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DWallpaper.java39 Intent intent = new Intent(); in onCreate() local
40 intent.setClass(this, CropImage.class); in onCreate()
41 intent.setData(imageToUse); in onCreate()
42 formatIntent(intent); in onCreate()
43 startActivityForResult(intent, CROP_DONE); in onCreate()
45 Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null); in onCreate() local
46 intent.setType("image/*"); in onCreate()
47 intent.putExtra("crop", "true"); in onCreate()
48 formatIntent(intent); in onCreate()
49 startActivityForResult(intent, PHOTO_PICKED); in onCreate()
[all …]
/packages/apps/CertInstaller/robotests/src/com/android/certinstaller/
DCertInstallerRoboTest.java48 Intent intent = new Intent(mContext, CertInstaller.class); in testNameNotNullPass() local
49 intent.putExtra(KeyChain.EXTRA_NAME, "name"); in testNameNotNullPass()
50 CredentialHelper helper = startActivityAndGetCredentialHelper(intent); in testNameNotNullPass()
57 Intent intent = new Intent(mContext, CertInstaller.class); in testReferrerNotNullPass() local
58 intent.putExtra(Intent.EXTRA_REFERRER, "referrer"); in testReferrerNotNullPass()
59 CredentialHelper helper = startActivityAndGetCredentialHelper(intent); in testReferrerNotNullPass()
71 Intent intent = new Intent(mContext, CertInstaller.class); in testUidUsageEqualWifiPass() local
72 intent.putExtra(Credentials.EXTRA_INSTALL_AS_UID, Process.INVALID_UID); in testUidUsageEqualWifiPass()
73 intent.putExtra(Credentials.EXTRA_CERTIFICATE_USAGE, Credentials.CERTIFICATE_USAGE_WIFI); in testUidUsageEqualWifiPass()
75 CredentialHelper helper = startActivityAndGetCredentialHelper(intent); in testUidUsageEqualWifiPass()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivityTest.java113 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISABLE); in onCreate_requestDisableIntent_hasDisableRequestType() local
114 mActivityTestRule.launchActivity(intent); in onCreate_requestDisableIntent_hasDisableRequestType()
123 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); in onCreate_requestDiscoverableIntent_hasDiscoverableRequestType() local
124 mActivityTestRule.launchActivity(intent); in onCreate_requestDiscoverableIntent_hasDiscoverableRequestType()
133 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); in onCreate_requestDiscoverableIntent_noTimeoutSpecified_hasDefaultTimeout() local
134 mActivityTestRule.launchActivity(intent); in onCreate_requestDiscoverableIntent_noTimeoutSpecified_hasDefaultTimeout()
143 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); in onCreate_requestDiscoverableIntent_timeoutSpecified_hasTimeout() local
144 intent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, in onCreate_requestDiscoverableIntent_timeoutSpecified_hasTimeout()
146 mActivityTestRule.launchActivity(intent); in onCreate_requestDiscoverableIntent_timeoutSpecified_hasTimeout()
156 Intent intent = createSetupWizardIntent(); in onCreate_requestDiscoverableIntent_bypassforSetup_startsDiscoverableScan() local
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetTestUtils.java40 BluetoothDevice device, int toState, int fromState, Intent intent) { in verifyAudioStateBroadcast() argument
41 Assert.assertNotNull(intent); in verifyAudioStateBroadcast()
42 Assert.assertEquals(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED, intent.getAction()); in verifyAudioStateBroadcast()
43 Assert.assertEquals(device, intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)); in verifyAudioStateBroadcast()
44 Assert.assertEquals(toState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in verifyAudioStateBroadcast()
46 fromState, intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1)); in verifyAudioStateBroadcast()
60 BluetoothDevice device, int toState, int fromState, Intent intent, boolean checkFlag) { in verifyConnectionStateBroadcast() argument
61 Assert.assertNotNull(intent); in verifyConnectionStateBroadcast()
62 Assert.assertEquals(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED, intent.getAction()); in verifyConnectionStateBroadcast()
64 Assert.assertEquals(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND, intent.getFlags()); in verifyConnectionStateBroadcast()
[all …]
/packages/apps/Nfc/testutils/src/com/android/nfc/reader/
DNfcReaderDeviceSnippet.java58 Intent intent = in startSingleNonPaymentReaderActivity() local
63 mActivity = (SimpleReaderActivity) instrumentation.startActivitySync(intent); in startSingleNonPaymentReaderActivity()
70 Intent intent = in startSinglePaymentReaderActivity() local
75 mActivity = (SimpleReaderActivity) instrumentation.startActivitySync(intent); in startSinglePaymentReaderActivity()
82 Intent intent = in startDualPaymentReaderActivity() local
87 mActivity = (SimpleReaderActivity) instrumentation.startActivitySync(intent); in startDualPaymentReaderActivity()
94 Intent intent = in startForegroundPaymentReaderActivity() local
99 mActivity = (SimpleReaderActivity) instrumentation.startActivitySync(intent); in startForegroundPaymentReaderActivity()
106 Intent intent = in startDynamicAidReaderActivity() local
113 mActivity = (SimpleReaderActivity) instrumentation.startActivitySync(intent); in startDynamicAidReaderActivity()
[all …]
/packages/apps/Dialer/java/com/android/incallui/spam/
DSpamNotificationService.java68 Intent intent = new Intent(context, SpamNotificationService.class); in createServiceIntent() local
69 intent.setAction(action); in createServiceIntent()
70 intent.putExtra(EXTRA_NOTIFICATION_TAG, notificationTag); in createServiceIntent()
71 intent.putExtra(EXTRA_NOTIFICATION_ID, notificationId); in createServiceIntent()
74 intent.putExtra(EXTRA_PHONE_NUMBER, call.getNumber()); in createServiceIntent()
75 intent.putExtra(EXTRA_CALL_ID, call.getUniqueCallId()); in createServiceIntent()
76 intent.putExtra(EXTRA_CALL_START_TIME_MILLIS, call.getTimeAddedMs()); in createServiceIntent()
77 intent.putExtra( in createServiceIntent()
80 return intent; in createServiceIntent()
85 public IBinder onBind(Intent intent) { in onBind() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/
DMainComponent.java37 Intent intent = new Intent(); in getIntent() local
38 intent.setComponent(new ComponentName(context, getComponentName())); in getIntent()
39 intent.setAction(Intent.ACTION_VIEW); in getIntent()
40 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in getIntent()
41 return intent; in getIntent()
45 Intent intent = new Intent(); in getShowCallLogIntent() local
46 intent.setComponent(new ComponentName(context, getComponentName())); in getShowCallLogIntent()
47 intent.setAction("ACTION_SHOW_TAB"); in getShowCallLogIntent()
48 intent.putExtra("EXTRA_SHOW_TAB", 1); in getShowCallLogIntent()
49 return intent; in getShowCallLogIntent()
[all …]

12345678910>>...134