Home
last modified time | relevance | path

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

12345678910>>...103

/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/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/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/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertAudioTest.java123 Intent intent = new Intent(mContext, CellBroadcastAlertAudio.class); in createStartAudioIntent() local
124 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_MESSAGE_BODY, in createStartAudioIntent()
126 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_VIBRATION_PATTERN_EXTRA, in createStartAudioIntent()
128 return intent; in createStartAudioIntent()
138 Intent intent = new Intent(mContext, CellBroadcastAlertAudio.class); in testStartService()
139 intent.setAction(SHOW_NEW_ALERT_ACTION); in testStartService()
140 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_MESSAGE_BODY, in testStartService()
142 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_VIBRATION_PATTERN_EXTRA, in testStartService()
144 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_MESSAGE_LANGUAGE, in testStartService()
146 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_OVERRIDE_DND_EXTRA, in testStartService()
[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/services/Telecomm/src/com/android/server/telecom/
DCallIntentProcessor.java35 Intent intent, String callingPackage); in processOutgoingCallIntent() argument
36 void processIncomingCallIntent(CallsManager callsManager, Intent intent); in processIncomingCallIntent() argument
37 void processUnknownCallIntent(CallsManager callsManager, Intent intent); in processUnknownCallIntent() argument
48 Intent intent, String callingPackage) { in processOutgoingCallIntent() argument
49 CallIntentProcessor.processOutgoingCallIntent(context, callsManager, intent, in processOutgoingCallIntent()
54 public void processIncomingCallIntent(CallsManager callsManager, Intent intent) { in processIncomingCallIntent() argument
55 CallIntentProcessor.processIncomingCallIntent(callsManager, intent); in processIncomingCallIntent()
59 public void processUnknownCallIntent(CallsManager callsManager, Intent intent) { in processUnknownCallIntent() argument
60 CallIntentProcessor.processUnknownCallIntent(callsManager, intent); in processUnknownCallIntent()
84 public void processIntent(Intent intent, String callingPackage) { in processIntent() argument
[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/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/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DPackageChangedReceiverTest.java181 Intent intent = new Intent(); in createIntentSentByAdServiceSystemService() local
182 intent.setAction(PackageChangedReceiver.PACKAGE_CHANGED_BROADCAST); in createIntentSentByAdServiceSystemService()
183 intent.setData(Uri.parse(PACKAGE_SCHEME + SAMPLE_PACKAGE)); in createIntentSentByAdServiceSystemService()
184 intent.putExtra(PackageChangedReceiver.ACTION_KEY, value); in createIntentSentByAdServiceSystemService()
185 intent.putExtra(Intent.EXTRA_UID, 0); in createIntentSentByAdServiceSystemService()
187 return intent; in createIntentSentByAdServiceSystemService()
193 Intent intent = new Intent(); in createIntentSentBySystem() local
194 intent.setAction(action); in createIntentSentBySystem()
195 intent.setData(Uri.parse(PACKAGE_SCHEME + SAMPLE_PACKAGE)); in createIntentSentBySystem()
196 return intent; in createIntentSentBySystem()
[all …]
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/
DHealthConnectTestHelper.java167 final Intent intent = new Intent(queryType); in insertRecord() local
171 intent.putExtra(RECORD_IDS, (Serializable) listOfRecordIdsAndClass); in insertRecord()
172 intent.putExtra(SUCCESS, true); in insertRecord()
174 intent.putExtra(SUCCESS, false); in insertRecord()
175 intent.putExtra(INTENT_EXCEPTION, e); in insertRecord()
178 return intent; in insertRecord()
198 final Intent intent = new Intent(queryType); in deleteRecords() local
213 intent.putExtra(SUCCESS, true); in deleteRecords()
215 intent.putExtra(INTENT_EXCEPTION, e); in deleteRecords()
217 return intent; in deleteRecords()
[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/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/opp/
DBluetoothOppReceiverTest.java19 import static androidx.test.espresso.intent.Intents.intended;
20 import static androidx.test.espresso.intent.Intents.intending;
21 import static androidx.test.espresso.intent.matcher.IntentMatchers.anyIntent;
22 import static androidx.test.espresso.intent.matcher.IntentMatchers.hasComponent;
23 import static androidx.test.espresso.intent.matcher.IntentMatchers.hasExtra;
47 import androidx.test.espresso.intent.Intents;
108 Intent intent = new Intent(); in onReceive_withActionDeviceSelected_callsStartTransfer() local
109 intent.setAction(BluetoothDevicePicker.ACTION_DEVICE_SELECTED); in onReceive_withActionDeviceSelected_callsStartTransfer()
110 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); in onReceive_withActionDeviceSelected_callsStartTransfer()
114 mReceiver.onReceive(mContext, intent); in onReceive_withActionDeviceSelected_callsStartTransfer()
[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/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/Settings/src/com/android/settings/core/
DSubSettingLauncher.java138 final Intent intent = toIntent(); in launch() local
144 launchForResultAsUser(intent, mLaunchRequest.mUserHandle, in launch()
147 launchAsUser(intent, mLaunchRequest.mUserHandle); in launch()
149 launchForResult(mLaunchRequest.mResultListener, intent, mLaunchRequest.mRequestCode); in launch()
151 launch(intent); in launch()
156 final Intent intent = new Intent(Intent.ACTION_MAIN); in toIntent() local
157 copyExtras(intent); in toIntent()
158 intent.setClass(mContext, SubSettings.class); in toIntent()
162 intent.putExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT, mLaunchRequest.mDestinationName); in toIntent()
167 intent.putExtra(MetricsFeatureProvider.EXTRA_SOURCE_METRICS_CATEGORY, in toIntent()
[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/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/UniversalMediaPlayer/java/com/android/pump/activity/
DAudioPlayerActivity.java55 Intent intent = new Intent(Intent.ACTION_VIEW, uri); in start() local
56 intent.setDataAndTypeAndNormalize(uri, audio.getMimeType()); in start()
57 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); in start()
58 IntentUtils.startExternalActivity(context, intent); in start()
65 Intent intent = new Intent(Intent.ACTION_VIEW, uri); in start() local
67 intent.setDataAndTypeAndNormalize(uri, MediaStore.Audio.Albums.CONTENT_TYPE); in start()
68 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); in start()
69 IntentUtils.startExternalActivity(context, intent); in start()
76 Intent intent = new Intent(Intent.ACTION_VIEW, uri); in start() local
78 intent.setDataAndTypeAndNormalize(uri, MediaStore.Audio.Artists.CONTENT_TYPE); in start()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DExtrasProvisioningDataParserTest.java274 Intent intent = new Intent(ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE) in testParse_trustedSourceProvisioningIntent() local
291 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_trustedSourceProvisioningIntent()
329 Intent intent = new Intent(ACTION_PROVISION_FINANCED_DEVICE) in testParse_financedDeviceProvisioningIntent() local
342 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_financedDeviceProvisioningIntent()
369 Intent intent = new Intent(Globals.ACTION_RESUME_PROVISIONING) in testParse_resumeProvisioningIntent() local
372 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_resumeProvisioningIntent()
379 Intent intent = new Intent(ACTION_PROVISION_MANAGED_PROFILE) in testParse_managedProfileIntent() local
396 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_managedProfileIntent()
423 Intent intent = buildTestManagedProfileIntent(); in testParse_managedProfileIntent_CompProvisioning() local
432 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_managedProfileIntent_CompProvisioning()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetTestUtils.java42 Intent intent) { in verifyAudioStateBroadcast() argument
43 Assert.assertNotNull(intent); in verifyAudioStateBroadcast()
44 Assert.assertEquals(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED, intent.getAction()); in verifyAudioStateBroadcast()
45 Assert.assertEquals(device, intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)); in verifyAudioStateBroadcast()
46 Assert.assertEquals(toState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in verifyAudioStateBroadcast()
48 intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1)); in verifyAudioStateBroadcast()
62 int fromState, Intent intent, boolean checkFlag) { in verifyConnectionStateBroadcast() argument
63 Assert.assertNotNull(intent); in verifyConnectionStateBroadcast()
64 Assert.assertEquals(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED, intent.getAction()); in verifyConnectionStateBroadcast()
66 Assert.assertEquals(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND, intent.getFlags()); in verifyConnectionStateBroadcast()
[all …]

12345678910>>...103