Home
last modified time | relevance | path

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

12345678910>>...82

/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/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/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/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/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/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivityTest.java85 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISABLE); in onCreate_requestDisableIntent_hasDisableRequestType() local
86 mActivity.setIntent(intent); in onCreate_requestDisableIntent_hasDisableRequestType()
95 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); in onCreate_requestDiscoverableIntent_hasDiscoverableRequestType() local
96 mActivity.setIntent(intent); in onCreate_requestDiscoverableIntent_hasDiscoverableRequestType()
105 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); in onCreate_requestDiscoverableIntent_noTimeoutSpecified_hasDefaultTimeout() local
106 mActivity.setIntent(intent); in onCreate_requestDiscoverableIntent_noTimeoutSpecified_hasDefaultTimeout()
115 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); in onCreate_requestDiscoverableIntent_timeoutSpecified_hasTimeout() local
116 intent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, in onCreate_requestDiscoverableIntent_timeoutSpecified_hasTimeout()
118 mActivity.setIntent(intent); in onCreate_requestDiscoverableIntent_timeoutSpecified_hasTimeout()
130 Intent intent = createSetupWizardIntent(); in onCreate_requestDiscoverableIntent_bypassforSetup_startsDiscoverableScan() local
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertAudioTest.java120 Intent intent = new Intent(mContext, CellBroadcastAlertAudio.class); in testStartService()
121 intent.setAction(SHOW_NEW_ALERT_ACTION); in testStartService()
122 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_MESSAGE_BODY, in testStartService()
124 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_VIBRATION_PATTERN_EXTRA, in testStartService()
126 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_MESSAGE_LANGUAGE, in testStartService()
128 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_OVERRIDE_DND_EXTRA, in testStartService()
130 startService(intent); in testStartService()
154 Intent intent = new Intent(mContext, CellBroadcastAlertAudio.class); in testStartServiceNotInCallOverrideDnd()
155 intent.setAction(SHOW_NEW_ALERT_ACTION); in testStartServiceNotInCallOverrideDnd()
156 intent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_MESSAGE_BODY, in testStartServiceNotInCallOverrideDnd()
[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/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java205 Intent intent = assertHasExtraIntent(mActivity.startActivity.getLastValue()); in testShareSelectedDocuments_Single() local
206 assertHasAction(intent, Intent.ACTION_SEND); in testShareSelectedDocuments_Single()
207 assertFalse(intent.hasCategory(Intent.CATEGORY_TYPED_OPENABLE)); in testShareSelectedDocuments_Single()
208 assertFalse(intent.hasCategory(Intent.CATEGORY_OPENABLE)); in testShareSelectedDocuments_Single()
209 assertHasExtraUri(intent, Intent.EXTRA_STREAM); in testShareSelectedDocuments_Single()
222 Intent intent = mActivity.startActivity.getLastValue(); in testShareSelectedDocuments_ArchivedFile() local
223 assertNull(intent); in testShareSelectedDocuments_ArchivedFile()
232 Intent intent = assertHasExtraIntent(mActivity.startActivity.getLastValue()); in testShareSelectedDocuments_Multiple() local
233 assertHasAction(intent, Intent.ACTION_SEND_MULTIPLE); in testShareSelectedDocuments_Multiple()
234 assertFalse(intent.hasCategory(Intent.CATEGORY_TYPED_OPENABLE)); in testShareSelectedDocuments_Multiple()
[all …]
/packages/apps/Settings/src/com/android/settings/core/
DSubSettingLauncher.java132 final Intent intent = toIntent(); in launch() local
138 launchForResultAsUser(intent, mLaunchRequest.userHandle, mLaunchRequest.mResultListener, in launch()
141 launchAsUser(intent, mLaunchRequest.userHandle); in launch()
143 launchForResult(mLaunchRequest.mResultListener, intent, mLaunchRequest.mRequestCode); in launch()
145 launch(intent); in launch()
150 final Intent intent = new Intent(Intent.ACTION_MAIN); in toIntent() local
151 copyExtras(intent); in toIntent()
152 intent.setClass(mContext, SubSettings.class); in toIntent()
156 intent.putExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT, mLaunchRequest.destinationName); in toIntent()
161 intent.putExtra(MetricsFeatureProvider.EXTRA_SOURCE_METRICS_CATEGORY, in toIntent()
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DNfcDispatcher.java143 public synchronized void setForegroundDispatch(PendingIntent intent, in setForegroundDispatch() argument
146 mOverrideIntent = intent; in setForegroundDispatch()
159 public final Intent intent; field in NfcDispatcher.DispatchInfo
168 intent = new Intent(); in DispatchInfo()
169 intent.putExtra(NfcAdapter.EXTRA_TAG, tag); in DispatchInfo()
170 intent.putExtra(NfcAdapter.EXTRA_ID, tag.getId()); in DispatchInfo()
172 intent.putExtra(NfcAdapter.EXTRA_NDEF_MESSAGES, new NdefMessage[] {message}); in DispatchInfo()
181 rootIntent.putExtra(NfcRootActivity.EXTRA_LAUNCH_INTENT, intent); in DispatchInfo()
189 intent.setAction(NfcAdapter.ACTION_NDEF_DISCOVERED); in setNdefIntent()
191 intent.setData(ndefUri); in setNdefIntent()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DRemoteDevices.java104 public void onReceive(Context context, Intent intent) {
105 String action = intent.getAction();
108 onHfIndicatorValueChanged(intent);
111 onVendorSpecificHeadsetEvent(intent);
114 onHeadsetConnectionStateChanged(intent);
117 Log.w(TAG, "Unhandled intent: " + intent);
333 Intent intent = new Intent(BluetoothDevice.ACTION_ALIAS_CHANGED); in setAlias() local
334 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); in setAlias()
335 intent.putExtra(BluetoothDevice.EXTRA_NAME, mAlias); in setAlias()
336 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in setAlias()
[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/robotests/src/com/android/car/settings/common/
DExtraSettingsLoaderTest.java75 Intent intent = new Intent(); in testLoadPreference_stringResources_shouldLoadResources() local
76 intent.putExtra(META_DATA_PREFERENCE_CATEGORY, FAKE_CATEGORY); in testLoadPreference_stringResources_shouldLoadResources()
91 getShadowPackageManager().addResolveInfoForIntent(intent, resolveInfoSystem); in testLoadPreference_stringResources_shouldLoadResources()
93 intent); in testLoadPreference_stringResources_shouldLoadResources()
105 Intent intent = new Intent(); in testLoadPreference_metadataBundleIsValue() local
106 intent.putExtra(META_DATA_PREFERENCE_CATEGORY, FAKE_CATEGORY); in testLoadPreference_metadataBundleIsValue()
120 getShadowPackageManager().addResolveInfoForIntent(intent, resolveInfoSystem); in testLoadPreference_metadataBundleIsValue()
124 getShadowPackageManager().addResolveInfoForIntent(intent, resolveInfoNonSystem); in testLoadPreference_metadataBundleIsValue()
127 intent); in testLoadPreference_metadataBundleIsValue()
145 Intent intent = new Intent(); in testLoadPreference_integerResources_shouldLoadResources() local
[all …]
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/parser/
DParserUtilsTest.java83 Intent intent = new Intent(ACTION_PROVISION_MANAGED_DEVICE); in extractProvisioningTrigger_provisionManagedDeviceIntent_returnsUnspecified() local
85 assertThat(mParserUtils.extractProvisioningTrigger(intent)) in extractProvisioningTrigger_provisionManagedDeviceIntent_returnsUnspecified()
91 Intent intent = new Intent(ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE); in extractProvisioningTrigger_provisionTrustedSourceIntentWithNoProvisioningTrigger_returnsUnspecified() local
93 assertThat(mParserUtils.extractProvisioningTrigger(intent)) in extractProvisioningTrigger_provisionTrustedSourceIntentWithNoProvisioningTrigger_returnsUnspecified()
100 Intent intent = new Intent(ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE); in extractProvisioningTrigger_provisionTrustedSourceWithQrProvisioningTrigger_returnsQr() local
101 intent.putExtra(EXTRA_PROVISIONING_TRIGGER, PROVISIONING_TRIGGER_QR_CODE); in extractProvisioningTrigger_provisionTrustedSourceWithQrProvisioningTrigger_returnsQr()
103 assertThat(mParserUtils.extractProvisioningTrigger(intent)) in extractProvisioningTrigger_provisionTrustedSourceWithQrProvisioningTrigger_returnsQr()
109 Intent intent = new Intent(ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE); in extractProvisioningTrigger_provisionTrustedSourceWithCloudEnrollmentProvisioningTrigger_returnsCloudEnrollment() local
110 intent.putExtra(EXTRA_PROVISIONING_TRIGGER, PROVISIONING_TRIGGER_CLOUD_ENROLLMENT); in extractProvisioningTrigger_provisionTrustedSourceWithCloudEnrollmentProvisioningTrigger_returnsCloudEnrollment()
112 assertThat(mParserUtils.extractProvisioningTrigger(intent)) in extractProvisioningTrigger_provisionTrustedSourceWithCloudEnrollmentProvisioningTrigger_returnsCloudEnrollment()
[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/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/services/Telephony/src/com/android/phone/vvm/
DRemoteVvmTaskManager.java88 Intent intent = new Intent(ACTION_START_CELL_SERVICE_CONNECTED, null, context, in startCellServiceConnected() local
90 intent.putExtra(VisualVoicemailService.DATA_PHONE_ACCOUNT_HANDLE, phoneAccountHandle); in startCellServiceConnected()
91 context.startService(intent); in startCellServiceConnected()
96 Intent intent = new Intent(ACTION_START_SMS_RECEIVED, null, context, in startSmsReceived() local
98 intent.putExtra(VisualVoicemailService.DATA_PHONE_ACCOUNT_HANDLE, in startSmsReceived()
100 intent.putExtra(VisualVoicemailService.DATA_SMS, sms); in startSmsReceived()
101 intent.putExtra(EXTRA_TARGET_PACKAGE, targetPackage); in startSmsReceived()
102 context.startService(intent); in startSmsReceived()
106 Intent intent = new Intent(ACTION_START_SIM_REMOVED, null, context, in startSimRemoved() local
108 intent.putExtra(VisualVoicemailService.DATA_PHONE_ACCOUNT_HANDLE, phoneAccountHandle); in startSimRemoved()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogNotificationsService.java101 Intent intent = new Intent(context, CallLogNotificationsService.class); in createMarkAllNewVoicemailsAsOldIntent() local
102 intent.setAction(CallLogNotificationsService.ACTION_MARK_ALL_NEW_VOICEMAILS_AS_OLD); in createMarkAllNewVoicemailsAsOldIntent()
103 return PendingIntent.getService(context, 0, intent, 0); in createMarkAllNewVoicemailsAsOldIntent()
108 Intent intent = new Intent(context, CallLogNotificationsService.class); in createMarkSingleNewVoicemailAsOldIntent() local
109 intent.setAction(CallLogNotificationsService.ACTION_MARK_SINGLE_NEW_VOICEMAIL_AS_OLD); in createMarkSingleNewVoicemailAsOldIntent()
110 intent.setData(voicemailUri); in createMarkSingleNewVoicemailAsOldIntent()
111 return PendingIntent.getService(context, 0, intent, 0); in createMarkSingleNewVoicemailAsOldIntent()
115 Intent intent = new Intent(context, CallLogNotificationsService.class); in createCancelAllMissedCallsPendingIntent() local
116 intent.setAction(ACTION_CANCEL_ALL_MISSED_CALLS); in createCancelAllMissedCallsPendingIntent()
117 return PendingIntent.getService(context, 0, intent, 0); in createCancelAllMissedCallsPendingIntent()
[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()
69 mReceiver.onReceive(mContext, intent); in onReceive_usbConnected_invokeCallback()
77 final Intent intent = new Intent(); in onReceive_usbDisconnected_invokeCallback() local
78 intent.setAction(UsbManager.ACTION_USB_STATE); in onReceive_usbDisconnected_invokeCallback()
79 intent.putExtra(UsbManager.USB_CONNECTED, false); in onReceive_usbDisconnected_invokeCallback()
81 mReceiver.onReceive(mContext, intent); in onReceive_usbDisconnected_invokeCallback()
89 final Intent intent = new Intent(); in onReceive_usbConnectedMtpEnabled_invokeCallback() local
90 intent.setAction(UsbManager.ACTION_USB_STATE); in onReceive_usbConnectedMtpEnabled_invokeCallback()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleApiCalls.kt66 val intent = intent in onCreate() constant
67 val action = intent?.action ?: return in onCreate()
68 LOGGER.i("onCreate: $intent") in onCreate()
71 AlarmClock.ACTION_SET_ALARM -> handleSetAlarm(intent) in onCreate()
73 AlarmClock.ACTION_SET_TIMER -> handleSetTimer(intent) in onCreate()
74 AlarmClock.ACTION_SHOW_TIMERS -> handleShowTimers(intent) in onCreate()
75 AlarmClock.ACTION_DISMISS_ALARM -> handleDismissAlarm(intent) in onCreate()
76 AlarmClock.ACTION_SNOOZE_ALARM -> handleSnoozeAlarm(intent) in onCreate()
77 AlarmClock.ACTION_DISMISS_TIMER -> handleDismissTimer(intent) in onCreate()
86 private fun handleDismissAlarm(intent: Intent) { in handleDismissAlarm()
[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 …]

12345678910>>...82