Home
last modified time | relevance | path

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

12345678910>>...70

/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/
DBaseTestAppDeviceAdminReceiver.java35 public void onEnabled(Context context, Intent intent) { in onEnabled() argument
36 super.onEnabled(context, intent); in onEnabled()
40 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested() argument
41 return super.onDisableRequested(context, intent); in onDisableRequested()
45 public void onDisabled(Context context, Intent intent) { in onDisabled() argument
46 super.onDisabled(context, intent); in onDisabled()
50 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged() argument
51 super.onPasswordChanged(context, intent); in onPasswordChanged()
55 public void onPasswordChanged(Context context, Intent intent, UserHandle user) { in onPasswordChanged() argument
56 super.onPasswordChanged(context, intent, user); in onPasswordChanged()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DAvailableIntentsTest.java65 private void assertCanBeHandled(final Intent intent) { in assertCanBeHandled() argument
67 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0); in assertCanBeHandled()
77 private void assertDefaultHandlerValidPriority(final Intent intent) { in assertDefaultHandlerValidPriority() argument
79 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0); in assertDefaultHandlerValidPriority()
90 private void assertHandledBySystemOnly(final Intent intent) { in assertHandledBySystemOnly() argument
92 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0); in assertHandledBySystemOnly()
104 private void assertHandledBySelfOnly(final Intent intent) { in assertHandledBySelfOnly() argument
106 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0); in assertHandledBySelfOnly()
122 Intent intent = new Intent(Intent.ACTION_VIEW, uri); in testViewNormalUrl() local
123 assertCanBeHandled(intent); in testViewNormalUrl()
[all …]
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibActivityTest.java64 Intent intent = new Intent(); in launchEventLibActivity_logsActivityCreatedEvent() local
65 intent.setPackage(sContext.getPackageName()); in launchEventLibActivity_logsActivityCreatedEvent()
66 intent.setClassName(sContext.getPackageName(), EventLibActivity.class.getName()); in launchEventLibActivity_logsActivityCreatedEvent()
67 intent.setFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TASK); in launchEventLibActivity_logsActivityCreatedEvent()
68 sContext.startActivity(intent); in launchEventLibActivity_logsActivityCreatedEvent()
78 Intent intent = new Intent(); in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName() local
79 intent.setPackage(sContext.getPackageName()); in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName()
80 intent.setClassName(sContext.getPackageName(), GENERATED_ACTIVITY_CLASS_NAME); in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName()
81 intent.setFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TASK); in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName()
82 sContext.startActivity(intent); in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName()
[all …]
/cts/tests/app/PendingIntentApi33/src/android/app/cts/pendingintentapi33/
DPendingIntentApi33Test.java48 Intent intent = new Intent(mContext, PendingIntentApi33Test.class); in testGetActivity() local
51 PendingIntent.getActivity(mContext, 1, intent, PendingIntent.FLAG_MUTABLE); in testGetActivity()
54 intent.setComponent(null); in testGetActivity()
55 intent.setPackage(null); in testGetActivity()
58 PendingIntent.getActivity(mContext, 1, intent, PendingIntent.FLAG_IMMUTABLE); in testGetActivity()
61 PendingIntent.getActivity(mContext, 1, intent, PendingIntent.FLAG_MUTABLE in testGetActivity()
65 PendingIntent.getActivity(mContext, 1, intent, PendingIntent.FLAG_MUTABLE in testGetActivity()
69 PendingIntent.getActivity(mContext, 1, intent, PendingIntent.FLAG_MUTABLE); in testGetActivity()
108 Intent intent = new Intent(mContext, PendingIntentApi33Test.class); in testGetBroadcast() local
111 PendingIntent.getBroadcast(mContext, 1, intent, PendingIntent.FLAG_MUTABLE); in testGetBroadcast()
[all …]
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/premade/
DEventLibDeviceAdminReceiver.kt68 override fun onEnabled(context: Context, intent: Intent) { in className()
69 val logger = DeviceAdminEnabledEvent.logger(this, context, intent) in className()
72 super.onEnabled(context, intent) in className()
75 override fun onDisableRequested(context: Context, intent: Intent): CharSequence? { in onDisableRequested()
76 val logger = DeviceAdminDisableRequestedEvent.logger(this, context, intent) in onDisableRequested()
79 return super.onDisableRequested(context, intent) in onDisableRequested()
82 override fun onDisabled(context: Context, intent: Intent) { in onDisabled()
83 val logger = DeviceAdminDisabledEvent.logger(this, context, intent) in onDisabled()
86 super.onDisabled(context, intent) in onDisabled()
89 override fun onPasswordChanged(context: Context, intent: Intent) { in onPasswordChanged()
[all …]
/cts/tests/tests/app/test-apps/TestComponentCallerApp/src/android/app/cts/testcomponentcaller/
DTestInitialCallerActivity.java61 protected void performTest(Intent intent, ComponentCaller caller) { in performTest() argument
62 int uriLocationId = intent.getIntExtra(URI_LOCATION_ID, -1); in performTest()
63 int actionId = intent.getIntExtra(TEST_ACTION_ID, -1); in performTest()
64 int modeFlags = intent.getIntExtra(MODE_FLAGS_TO_CHECK, -1); in performTest()
65 boolean isNewIntent = intent.getBooleanExtra(IS_NEW_INTENT, false); in performTest()
69 startTestActivity(getUriToCheck(uriLocationId, intent), modeFlags, isNewIntent); in performTest()
71 sendTestBroadcast(getUriToCheck(uriLocationId, intent), modeFlags, caller, in performTest()
74 tryToRetrieveExtraStreamReferrerName(intent); in performTest()
84 Intent intent = new Intent(); in startTestActivity() local
85 intent.setComponent(getTestActivity()); in startTestActivity()
[all …]
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DDelegatedScopesReceiverActivity.java55 public void onReceive(Context context, Intent intent) {
56 Log.d(TAG, "Received intent " + intent.getAction() + " on UID " + Process.myUid());
57 if (ACTION_APPLICATION_DELEGATION_SCOPES_CHANGED.equals(intent.getAction())) {
58 handleIntent(intent);
70 protected void onNewIntent(Intent intent) { in onNewIntent() argument
71 super.onNewIntent(intent); in onNewIntent()
72 handleIntent(intent); in onNewIntent()
89 private void handleIntent(Intent intent) { in handleIntent() argument
90 Log.d(TAG, "handleIntent(): " + intent); in handleIntent()
91 if (intent == null) { in handleIntent()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DSaferIntentTest.java127 public void onReceive(Context context, Intent intent) { in onReceive() argument
136 public void onReceive(Context context, Intent intent) { in onReceive() argument
137 mIntent = intent.getParcelableExtra(Intent.EXTRA_INTENT, Intent.class); in onReceive()
138 super.onReceive(context, intent); in onReceive()
210 Intent intent = new Intent(EXPORTED_ACTION); in testStartInternalExportedActivity() local
211 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testStartInternalExportedActivity()
212 mContext.startActivity(intent); in testStartInternalExportedActivity()
220 Intent intent = new Intent(NON_EXPORTED_ACTION); in testStartInternalNonExportedActivity() local
221 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testStartInternalNonExportedActivity()
222 mContext.startActivity(intent); in testStartInternalNonExportedActivity()
[all …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DUtils.java49 private static void call(Intent intent) { in call() argument
51 extras.putParcelable(Intent.EXTRA_INTENT, intent); in call()
85 Intent intent = new Intent(); in grantClipUriPermission() local
86 intent.setAction(action); in grantClipUriPermission()
87 intent.putExtra(EXTRA_INTENT, grantIntent); in grantClipUriPermission()
88 call(intent); in grantClipUriPermission()
92 Intent intent = new Intent(); in grantClipUriPermissionViaContext() local
93 intent.setAction(ACTION_GRANT_URI); in grantClipUriPermissionViaContext()
94 intent.putExtra(EXTRA_PACKAGE_NAME, getContext().getPackageName()); in grantClipUriPermissionViaContext()
95 intent.putExtra(EXTRA_URI, uri); in grantClipUriPermissionViaContext()
[all …]
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionTestReceiver.java45 Intent intent = sServiceStartedQueue.poll(timeout, unit); in waitSessionStarted() local
46 if (intent == null) { in waitSessionStarted()
49 String error = intent.getStringExtra("error"); in waitSessionStarted()
58 Intent intent = sScreenshotReceivedQueue.poll(timeout, unit); in waitScreenshotReceived() local
59 if (intent == null) { in waitScreenshotReceived()
63 if (!intent.hasExtra(MainInteractionSession.EXTRA_RECEIVED)) { in waitScreenshotReceived()
66 return intent.getBooleanExtra(MainInteractionSession.EXTRA_RECEIVED, false); in waitScreenshotReceived()
72 Intent intent = sAssistDataReceivedQueue.poll(timeout, unit); in waitAssistDataReceived() local
73 if (intent == null) { in waitAssistDataReceived()
77 if (!intent.hasExtra(MainInteractionSession.EXTRA_RECEIVED)) { in waitAssistDataReceived()
[all …]
/cts/tests/tests/app/src/android/app/cts/
DComponentCallerTest.java158 Intent intent = getUriInDataSendBroadcastTestIntent(TestProvider.getContentUri(), in testActivityInitialCaller_checkContentUriPermission_throwsIfCallerOfApiDoesNotHaveTheSameAccessToContentUri() local
161 mContext.startActivity(intent); in testActivityInitialCaller_checkContentUriPermission_throwsIfCallerOfApiDoesNotHaveTheSameAccessToContentUri()
177 Intent intent = getSendBroadcastTestIntent(NONE_PROVIDED_USE_HELPER_APP_URI_LOCATION_ID, in testActivityInitialCaller_checkContentUriPermission_throwsIfContentUriWasNotPassedAtLaunch() local
180 mContext.startActivity(intent); in testActivityInitialCaller_checkContentUriPermission_throwsIfContentUriWasNotPassedAtLaunch()
194 Intent intent = getStartActivityTestIntent(NONE_PROVIDED_USE_HELPER_APP_URI_LOCATION_ID, in testActivityInitialCaller_checkContentUriPermission_returnsCorrectResultEvenIfCallerOfActivityGrantsAndDies() local
197 mContext.startActivity(intent); in testActivityInitialCaller_checkContentUriPermission_returnsCorrectResultEvenIfCallerOfActivityGrantsAndDies()
212 Intent intent = getUriInDataSendBroadcastTestIntent( in testActivityInitialCaller_checkContentUriPermission_getDataContentUriViaPermission_noPermission() local
215 mContext.startActivity(intent); in testActivityInitialCaller_checkContentUriPermission_getDataContentUriViaPermission_noPermission()
230 Intent intent = getUriInDataSendBroadcastTestIntent(CONTENT_URI_READ_PERMISSION, in testActivityInitialCaller_checkContentUriPermission_getDataContentUriViaPermission_hasRead() local
233 mContext.startActivity(intent); in testActivityInitialCaller_checkContentUriPermission_getDataContentUriViaPermission_hasRead()
[all …]
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreIntentsTest.java70 public void assertCanBeHandled(Intent intent) { in assertCanBeHandled() argument
72 .getPackageManager().queryIntentActivities(intent, 0); in assertCanBeHandled()
74 assertTrue("No ResolveInfo found for " + intent.toString(), in assertCanBeHandled()
80 Intent intent = new Intent(Intent.ACTION_PICK); in testPickImageDir() local
81 intent.setData(mExternalImages); in testPickImageDir()
82 assertCanBeHandled(intent); in testPickImageDir()
87 Intent intent = new Intent(Intent.ACTION_PICK); in testPickVideoDir() local
88 intent.setData(mExternalVideo); in testPickVideoDir()
89 assertCanBeHandled(intent); in testPickVideoDir()
94 Intent intent = new Intent(Intent.ACTION_PICK); in testPickAudioDir() local
[all …]
/cts/tests/app/src/android/app/cts/
DRemoteInputTest.java116 Intent intent = new Intent(); in testRemoteInputBuilder_addAndGetDataResultsFromIntent() local
119 RemoteInput.addDataResultToIntent(input, intent, putResults); in testRemoteInputBuilder_addAndGetDataResultsFromIntent()
121 verifyIntentHasDataResults(intent, uri); in testRemoteInputBuilder_addAndGetDataResultsFromIntent()
127 Intent intent = new Intent(); in testRemoteInputBuilder_addAndGetTextResultsFromIntent() local
132 RemoteInput.addResultsToIntent(arr, intent, putResults); in testRemoteInputBuilder_addAndGetTextResultsFromIntent()
134 verifyIntentHasTextResults(intent, charSequence); in testRemoteInputBuilder_addAndGetTextResultsFromIntent()
142 Intent intent = new Intent(); in testRemoteInputBuilder_addAndGetDataAndTextResultsFromIntentDataFirst() local
144 addDataResultsToIntent(input, intent, uri); in testRemoteInputBuilder_addAndGetDataAndTextResultsFromIntentDataFirst()
145 addTextResultsToIntent(input, intent, charSequence); in testRemoteInputBuilder_addAndGetDataAndTextResultsFromIntentDataFirst()
146 RemoteInput.setResultsSource(intent, RemoteInput.SOURCE_FREE_FORM_INPUT); in testRemoteInputBuilder_addAndGetDataAndTextResultsFromIntentDataFirst()
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DNfcTest.java32 Intent intent = getTextShareIntent(); in testNfcShareDisabled() local
35 waitForNfcBeamActivityDisabled(intent, NFC_RESOLVE_TIMEOUT_MILLIS); in testNfcShareDisabled()
36 assertFalse("Nfc beam activity should not be resolved", isNfcBeamActivityResolved(intent)); in testNfcShareDisabled()
40 Intent intent = getTextShareIntent(); in testNfcShareEnabled() local
41 assertTrue("Nfc beam activity should be resolved", isNfcBeamActivityResolved(intent)); in testNfcShareEnabled()
44 private void waitForNfcBeamActivityDisabled(Intent intent, int maxDelayMillis) in waitForNfcBeamActivityDisabled() argument
47 while (isNfcBeamActivityResolved(intent) && totalDelayedMillis <= maxDelayMillis) { in waitForNfcBeamActivityDisabled()
54 Intent intent = new Intent(); in getTextShareIntent() local
55 intent.setAction(Intent.ACTION_SEND); in getTextShareIntent()
56 intent.putExtra(Intent.EXTRA_TEXT, SAMPLE_TEXT); in getTextShareIntent()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DIntentLaunchActivity.java104 Intent intent = getTestIntent(context, action); in getTestIntentWithExtrasInParceledIntent() local
105 Intent innerIntent = intent.getParcelableExtra(EXTRA_INNER_INTENT); in getTestIntentWithExtrasInParceledIntent()
109 return intent; in getTestIntentWithExtrasInParceledIntent()
136 Intent intent = getTestIntent(context, action); in getTestIntentWithUriIntentInExtras() local
137 Intent innerIntent = intent.getParcelableExtra(EXTRA_INNER_INTENT); in getTestIntentWithUriIntentInExtras()
142 intent.putExtra(EXTRA_INNER_INTENT_URI_STRING, intentUriString); in getTestIntentWithUriIntentInExtras()
143 intent.removeExtra(EXTRA_INNER_INTENT); in getTestIntentWithUriIntentInExtras()
144 return intent; in getTestIntentWithUriIntentInExtras()
151 Intent intent = new Intent(context, IntentLaunchActivity.class); in getTestIntent() local
152 intent.setAction(action); in getTestIntent()
[all …]
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DActionPickImagesOnlyTest.java78 final Intent intent = new Intent(ACTION_PICK_IMAGES); in testPhotoPickerIntentDelegation() local
86 intent.setType(mimeType); in testPhotoPickerIntentDelegation()
88 mActivity.startActivityForResult(Intent.createChooser(intent, TAG), REQUEST_CODE); in testPhotoPickerIntentDelegation()
90 UiAssertionUtils.assertThatShowsPickerUi(intent.getType()); in testPhotoPickerIntentDelegation()
97 final Intent intent = new Intent(ACTION_PICK_IMAGES); in testMultiSelect_invalidParam() local
98 intent.putExtra(MediaStore.EXTRA_PICK_IMAGES_MAX, MediaStore.getPickImagesMaxLimit() + 1); in testMultiSelect_invalidParam()
99 mActivity.startActivityForResult(intent, REQUEST_CODE); in testMultiSelect_invalidParam()
106 final Intent intent = new Intent(ACTION_PICK_IMAGES); in testMultiSelect_invalidNegativeParam() local
107 intent.putExtra(MediaStore.EXTRA_PICK_IMAGES_MAX, -1); in testMultiSelect_invalidNegativeParam()
108 mActivity.startActivityForResult(intent, REQUEST_CODE); in testMultiSelect_invalidNegativeParam()
[all …]
DActionGetContentOnlyTest.java92 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testMimeTypeFilter() local
93 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); in testMimeTypeFilter()
94 intent.addCategory(Intent.CATEGORY_OPENABLE); in testMimeTypeFilter()
95 intent.setType("audio/*"); in testMimeTypeFilter()
96 mActivity.startActivityForResult(intent, REQUEST_CODE); in testMimeTypeFilter()
107 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testExtraMimeTypeFilter() local
108 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); in testExtraMimeTypeFilter()
109 intent.addCategory(Intent.CATEGORY_OPENABLE); in testExtraMimeTypeFilter()
110 intent.setType("image/*"); in testExtraMimeTypeFilter()
111 intent.putExtra(Intent.EXTRA_MIME_TYPES, new String[]{"video/*", "audio/*"}); in testExtraMimeTypeFilter()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DBlockingIntentSenderService.java64 Intent intent = new Intent(); in register() local
65 intent.setClass( in register()
67 intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); in register()
68 intent.putExtra(BLOCKING_INTENT_SENDER_ID_KEY, id); in register()
72 return intent; in register()
75 private static String getId(Intent intent) { in getId() argument
81 public static void unregister(Intent intent) { in unregister() argument
82 String id = getId(intent); in unregister()
88 public static Intent await(Intent intent) { in await() argument
89 return await(intent, DEFAULT_TIMEOUT, DEFAULT_TIME_UNIT); in await()
[all …]
/cts/tests/tests/settings/src/android/settings/cts/
DSettingsIntentsInWorkProfileTest.java54 final Intent intent = new Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS); in settingActivity_launchIgnoreBatteryOptimizationIntent_shouldNotCrash() local
55 startActivity(intent); in settingActivity_launchIgnoreBatteryOptimizationIntent_shouldNotCrash()
61 final Intent intent = new Intent(Settings.ACTION_MANAGE_WRITE_SETTINGS); in settingActivity_launchManageWriteSettingsIntent_shouldNotCrash() local
62 intent.setData(Uri.parse(TEST_PACKAGE)); in settingActivity_launchManageWriteSettingsIntent_shouldNotCrash()
63 startActivity(intent); in settingActivity_launchManageWriteSettingsIntent_shouldNotCrash()
69 final Intent intent = new Intent(Settings.ACTION_APP_USAGE_SETTINGS); in settingActivity_launchAppUsageIntent_shouldNotCrash() local
70 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, TEST_PACKAGE); in settingActivity_launchAppUsageIntent_shouldNotCrash()
71 startActivity(intent); in settingActivity_launchAppUsageIntent_shouldNotCrash()
77 final Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); in settingActivity_launchApplicationDetailsIntent_shouldNotCrash() local
78 intent.setData(Uri.parse(TEST_PACKAGE)); in settingActivity_launchApplicationDetailsIntent_shouldNotCrash()
[all …]
/cts/tests/tests/externalservice/src/android/externalservice/cts/
DPackagePrivateIsolatedServiceTest.java93 Intent intent = new Intent(); in testBasicConnection() local
94 intent.setComponent(new ComponentName(sServicePackage, in testBasicConnection()
101 intent, in testBasicConnection()
120 Intent intent = new Intent(); in testBindExportedServiceSharedProcessNotAllowed() local
121 intent.setComponent( in testBindExportedServiceSharedProcessNotAllowed()
130 intent, in testBindExportedServiceSharedProcessNotAllowed()
149 Intent intent = new Intent(); in testBindMultipleExportedServiceS() local
150 intent.setComponent(new ComponentName(sServicePackage, in testBindMultipleExportedServiceS()
157 intent, in testBindMultipleExportedServiceS()
172 intent = new Intent(); in testBindMultipleExportedServiceS()
[all …]
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DImeCommandReceiver.java67 public void onReceive(Context context, Intent intent) { in onReceive() argument
68 final String command = intent.getStringExtra(ImeCommandConstants.EXTRA_COMMAND); in onReceive()
75 final CharSequence text = getCharSequence1(intent); in onReceive()
76 final int newCursorPosition = getInt1(intent); in onReceive()
81 final String imeId = getString1(intent); in onReceive()
86 final int flags = getInt1(intent); in onReceive()
91 final String imeId = getString1(intent); in onReceive()
110 private static CharSequence getCharSequence1(Intent intent) { in getCharSequence1() argument
111 return intent.getCharSequenceExtra(ImeCommandConstants.EXTRA_ARG_CHARSEQUENCE1); in getCharSequence1()
114 private static String getString1(Intent intent) { in getString1() argument
[all …]
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContractIntentsTest.java34 public void assertCanBeHandled(Intent intent) { in assertCanBeHandled() argument
36 .getPackageManager().queryIntentActivities(intent, 0); in assertCanBeHandled()
38 assertTrue("No ResolveInfo found for " + intent.toString(), in assertCanBeHandled()
43 Intent intent = new Intent(Intent.ACTION_VIEW); in testViewContactDir() local
44 intent.setData(ContactsContract.Contacts.CONTENT_URI); in testViewContactDir()
45 assertCanBeHandled(intent); in testViewContactDir()
49 Intent intent = new Intent(Intent.ACTION_PICK); in testPickContactDir() local
50 intent.setData(ContactsContract.Contacts.CONTENT_URI); in testPickContactDir()
51 assertCanBeHandled(intent); in testPickContactDir()
55 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testGetContentContactDir() local
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DLockTaskUtilityActivity.java68 protected void onNewIntent(Intent intent) { in onNewIntent() argument
69 super.onNewIntent(intent); in onNewIntent()
70 handleIntent(intent); in onNewIntent()
100 private void handleIntent(Intent intent) { in handleIntent() argument
101 if (intent.getBooleanExtra(START_LOCK_TASK, false)) { in handleIntent()
104 if (intent.getBooleanExtra(STOP_LOCK_TASK, false)) { in handleIntent()
107 if (intent.hasExtra(START_ACTIVITY)) { in handleIntent()
108 Intent i = intent.getParcelableExtra(START_ACTIVITY); in handleIntent()
111 if (intent.getBooleanExtra(FINISH, false)) { in handleIntent()
117 private void sendLocalBroadcast(Intent intent) { in sendLocalBroadcast() argument
[all …]
DDelegatedCertInstallerTest.java86 public void onReceive(Context context, Intent intent) {
87 if (ACTION_CERT_OPERATION_DONE.equals(intent.getAction())) {
89 mReceivedResult = intent.getBooleanExtra(EXTRA_RESULT_VALUE, false);
91 (Exception) intent.getSerializableExtra(EXTRA_RESULT_EXCEPTION);
265 Intent intent = new Intent(); in installCaCert() local
266 intent.setAction(ACTION_INSTALL_CERT); in installCaCert()
267 intent.setComponent(CERT_INSTALLER_COMPONENT); in installCaCert()
268 intent.putExtra(EXTRA_CERT_DATA, cert); in installCaCert()
269 intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); in installCaCert()
270 mContext.sendBroadcast(intent); in installCaCert()
[all …]
/cts/hostsidetests/appcloning/test-apps/AppCloningIntentRedirectionApps/IntentRedirectionTestApp/src/com/android/cts/appcloning/intentredirectiontest/app/
DIntentRedirectionAppTest.java85 Intent intent = buildIntentForTest(intentAction); in testIntentResolutionForUser() local
86 assertThat(intent).isNotNull(); in testIntentResolutionForUser()
99 resolveInfos = mPackageManager.queryIntentActivities(intent, in testIntentResolutionForUser()
134 Intent intent = null; in buildIntentForTest() local
137 intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.google.com")); in buildIntentForTest()
140 intent = new Intent(Intent.ACTION_SENDTO); in buildIntentForTest()
141 intent.setType("text/plain"); in buildIntentForTest()
142 intent.putExtra(Intent.EXTRA_TEXT, "Hello world!"); in buildIntentForTest()
145 intent = new Intent(Intent.ACTION_SEND); in buildIntentForTest()
146 intent.setType("text/plain"); in buildIntentForTest()
[all …]

12345678910>>...70