Home
last modified time | relevance | path

Searched refs:REQUEST_CODE (Results 1 – 25 of 32) sorted by relevance

12

/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21254/helper-app/src/android/security/cts/CVE_2023_21254_helper/
DPocActivity.java26 private static final int REQUEST_CODE = 1; field in PocActivity
32 requestPermissions(new String[] {RECORD_AUDIO}, REQUEST_CODE); in onResume()
39 if (requestCode == REQUEST_CODE in onRequestPermissionsResult()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21249/helper-app/src/android/security/cts/CVE_2023_21249_helper/
DPocActivity.java26 private static final int REQUEST_CODE = 1; field in PocActivity
32 requestPermissions(new String[] {ACCESS_COARSE_LOCATION}, REQUEST_CODE); in onResume()
39 if (requestCode == REQUEST_CODE in onRequestPermissionsResult()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39622/src/android/security/cts/CVE_2021_39622/
DPocActivity.java26 private static final int REQUEST_CODE = 0; field in PocActivity
38 startActivityForResult(intent, REQUEST_CODE); in onCreate()
46 if (requestCode == REQUEST_CODE && resultCode == RESULT_OK) { in onActivityResult()
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DActionPickImagesOnlyTest.java88 mActivity.startActivityForResult(Intent.createChooser(intent, TAG), REQUEST_CODE); in testPhotoPickerIntentDelegation() local
99 mActivity.startActivityForResult(intent, REQUEST_CODE); in testMultiSelect_invalidParam()
108 mActivity.startActivityForResult(intent, REQUEST_CODE); in testMultiSelect_invalidNegativeParam()
121 mActivity.startActivityForResult(intent, REQUEST_CODE); in testMultiSelect_returnsNotMoreThanMax()
152 mActivity.startActivityForResult(intent, REQUEST_CODE); in testDoesNotRespectExtraAllowMultiple()
171 () -> mActivity.startActivityForResult(intent, REQUEST_CODE)); in testMimeTypeFilter()
178 mActivity.startActivityForResult(intent, REQUEST_CODE); in testExtraMimeTypeFilter()
192 mActivity.startActivityForResult(intent, REQUEST_CODE); in testExtraPickerLaunchTabOptions()
205 mActivity.startActivityForResult(intent, REQUEST_CODE); in testExtraPickerLaunchTabInvalidOption()
218 mActivity.startActivityForResult(intent, REQUEST_CODE); in testExtraPickerAccentColorValidColor()
[all …]
DActionGetContentOnlyTest.java96 mActivity.startActivityForResult(intent, REQUEST_CODE); in testMimeTypeFilter()
112 mActivity.startActivityForResult(intent, REQUEST_CODE); in testExtraMimeTypeFilter()
135 mActivity.startActivityForResult(intent, REQUEST_CODE); in testBrowse_singleSelect()
161 mActivity.startActivityForResult(intent, REQUEST_CODE); in testBrowse_multiSelect()
179 mActivity.startActivityForResult(Intent.createChooser(intent, TAG), REQUEST_CODE); in testChooserIntent_mediaFilter() local
189 mActivity.startActivityForResult(Intent.createChooser(intent, TAG), REQUEST_CODE); in testChooserIntent_nonMediaFilter() local
199 mActivity.startActivityForResult(Intent.createChooser(intent, TAG), REQUEST_CODE); in testPickerSupportedFromDocumentsUi() local
213 mActivity.startActivityForResult(Intent.createChooser(intent, TAG), REQUEST_CODE); in testPickerLaunchTabWithGetContent() local
227 mActivity.startActivityForResult(Intent.createChooser(intent, TAG), REQUEST_CODE); in testPickerAccentColorWithGetContent() local
DActionUserSelectImagesForAppTest.java118 () -> mActivity.startActivityForResult(intent, REQUEST_CODE)); in testInvalidMimeTypeFilter()
128 mActivity.startActivityForResult(intent, REQUEST_CODE); in testActivityCancelledWithMissingAppUid()
139 () -> mActivity.startActivityForResult(getUserSelectImagesIntent(), REQUEST_CODE)); in testCannotStartActivityWithoutGrantRuntimePermissions()
222 () -> mActivity.startActivityForResult(intent, REQUEST_CODE), in launchActivityForResult()
DPhotoPickerCrossProfileTest.java101 mActivity.startActivityForResult(intent, REQUEST_CODE); in testWorkApp_canAccessPersonalProfileContents()
155 mActivity.startActivityForResult(intent, REQUEST_CODE); in assertBlockedByAdmin()
DPhotoPickerBaseTest.java41 public static int REQUEST_CODE = 42; field in PhotoPickerBaseTest
DPhotoPickerSettingsTest.java127 mActivity.startActivityForResult(intent, REQUEST_CODE); in testSettingsLaunchFromOverflowMenu()
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccTestResolutionActivity.java41 private static final int REQUEST_CODE = 100; field in EuiccTestResolutionActivity
61 if (requestCode == REQUEST_CODE) { in onActivityResult()
88 euiccManager.startResolutionActivity(this, REQUEST_CODE, resultIntent, callbackIntent); in testStartResolutionActivity()
98 getApplicationContext(), REQUEST_CODE, intent, in createCallbackIntent()
DEuiccManagerTest.java72 private static final int REQUEST_CODE = 0; field in EuiccManagerTest
889 getContext(), REQUEST_CODE, intent, in createCallbackIntent()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/devicepolicy/provisioning/
DStartProvisioningActivity.java30 private static final int REQUEST_CODE = 1; field in StartProvisioningActivity
56 startActivityForResult(provisioningIntent, REQUEST_CODE); in onCreate()
63 if (requestCode == REQUEST_CODE) { in onActivityResult()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39701/src/android/security/cts/CVE_2021_39701/
DPocActivity.java30 private static final int REQUEST_CODE = 12; field in PocActivity
42 PendingIntent.getActivity(this, REQUEST_CODE, new Intent(), in checkPermissionAndStartHidden()
/cts/apps/NotesApp/src/com.android.cts.notesapp/
DNotesAppActivity.java38 private static final int REQUEST_CODE = 42; field in NotesAppActivity
54 startActivityForResult(API_ACTION, REQUEST_CODE); in onCreate()
88 if (requestCode != REQUEST_CODE) { in onActivityResult()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java257 mActivity.startActivityForResult(intent, REQUEST_CODE); in testOpenSimple()
297 mActivity.startActivityForResult(intent, REQUEST_CODE); in testOpenVirtual()
339 mActivity.startActivityForResult(intent, REQUEST_CODE); in testCreateNew()
363 mActivity.startActivityForResult(intent, REQUEST_CODE); in testCreateExisting()
391 mActivity.startActivityForResult(intent, REQUEST_CODE); in testTree()
468 mActivity.startActivityForResult(intent, REQUEST_CODE); in testRestrictStorageAccessFrameworkEnabled_blockFromTree()
526 mActivity.startActivityForResult(intent, REQUEST_CODE); in testRestrictStorageAccessFrameworkDisabled_notBlockFromTree()
608 mActivity.startActivityForResult(intent, REQUEST_CODE); in testGetContent_rootsShowing()
642 mActivity.startActivityForResult(intent, REQUEST_CODE); in testGetContentWithQuery_matchingFileShowing()
673 mActivity.startActivityForResult(intent, REQUEST_CODE); in testGetContent_returnsResultToCallingActivity()
[all …]
DDocumentsClientTestCase.java50 protected static final int REQUEST_CODE = 42; field in DocumentsClientTestCase
184 assertEquals(REQUEST_CODE, result.requestCode); in assertActivityFailed()
191 assertEquals(prefix + ": invalid request code", REQUEST_CODE, result.requestCode); in assertActivitySucceeded()
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DAttributionSourceActivity.kt49 if (requestCode == REQUEST_CODE) { in onActivityResult()
68 private final val REQUEST_CODE: Int = 0 constant
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DUriGrantsResultTest.java44 private static final int REQUEST_CODE = 42; field in UriGrantsResultTest
100 mActivity.startActivityForResult(intent, REQUEST_CODE); in assertGrantableToResultInternal()
148 mActivity.startActivityForResult(intent, REQUEST_CODE); in assertNotGrantableToResultInternal()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DActivityTest.java52 private static final int REQUEST_CODE = 123; field in ActivityTest
105 activity.startActivityForResultAsUser(intent, REQUEST_CODE, in startActivityForResultAsUser_requestCodeAndResultPassedSuccessfully()
112 assertThat(result.getRequestCode()).isEqualTo(REQUEST_CODE); in startActivityForResultAsUser_requestCodeAndResultPassedSuccessfully()
/cts/tests/tests/packageinstaller/test-apps/criticaluserjourneyinstaller/src/android/packageinstaller/cts/cujinstaller/
DMainActivity.java80 private static final int REQUEST_CODE = 311; field in MainActivity
137 if (requestCode == REQUEST_CODE) { in onActivityResult()
198 startActivityForResult(intent, REQUEST_CODE); in startInstallationViaIntent()
212 startActivityForResult(intent, REQUEST_CODE); in startInstallationViaIntentWithPackageUri()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPackageInstallTest.java24 private static final int REQUEST_CODE = 0; field in PackageInstallTest
128 REQUEST_CODE, in getCommitCallback()
/cts/hostsidetests/theme/app/src/android/theme/app/
DGenerateImagesActivity.java42 private static final int REQUEST_CODE = 1; field in GenerateImagesActivity
166 startActivityForResult(intent, REQUEST_CODE); in launchThemeDeviceActivity()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java87 private static final int REQUEST_CODE = 42; field in MediaStoreUiTest
225 mActivity.startActivityForResult(intent, REQUEST_CODE); in testGetMediaUriAccess_mediaDocumentsProvider()
249 mActivity.startActivityForResult(intent, REQUEST_CODE); in testOpenFile_onMediaDocumentsProvider_success()
294 mActivity.startActivityForResult(intent, REQUEST_CODE); in testOpenFile_onMediaDocumentsProvider_failsWithoutAccess()
476 mActivity.startActivityForResult(intent, REQUEST_CODE); in acquireAccess()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerTest.java1792 activity.startActivityForResult(activityIntent, REQUEST_CODE); in testNotificationDelegate_grantAndPost()
1804 activity.startActivityForResult(revokeIntent, REQUEST_CODE); in testNotificationDelegate_grantAndPost()
1822 activity.startActivityForResult(activityIntent, REQUEST_CODE); in testNotificationDelegate_grantAndPostAndCancel()
1836 activity.startActivityForResult(revokeIntent, REQUEST_CODE); in testNotificationDelegate_grantAndPostAndCancel()
1856 activity.startActivityForResult(activityIntent, REQUEST_CODE); in testNotificationDelegate_cannotCancelNotificationsPostedByDelegator()
1873 activity.startActivityForResult(revokeIntent, REQUEST_CODE); in testNotificationDelegate_cannotCancelNotificationsPostedByDelegator()
1891 activity.startActivityForResult(activityIntent, REQUEST_CODE); in testNotificationDelegate_grantAndReadChannels()
1903 activity.startActivityForResult(revokeIntent, REQUEST_CODE); in testNotificationDelegate_grantAndReadChannels()
1921 activity.startActivityForResult(activityIntent, REQUEST_CODE); in testNotificationDelegate_grantAndReadChannel()
1933 activity.startActivityForResult(revokeIntent, REQUEST_CODE); in testNotificationDelegate_grantAndReadChannel()
[all …]
DNotificationManagerZenTest.java1437 grActivity.startActivityForResult(mcfIntent, REQUEST_CODE); in testMatchesCallFilter_noPermissions()
1442 assertEquals(REQUEST_CODE, result.requestCode); in testMatchesCallFilter_noPermissions()
1444 grActivity.finishActivity(REQUEST_CODE); in testMatchesCallFilter_noPermissions()
1469 grActivity.startActivityForResult(mcfIntent, REQUEST_CODE); in testMatchesCallFilter_listenerPermissionOnly()
1474 assertEquals(REQUEST_CODE, result.requestCode); in testMatchesCallFilter_listenerPermissionOnly()
1476 grActivity.finishActivity(REQUEST_CODE); in testMatchesCallFilter_listenerPermissionOnly()
1495 grActivity.startActivityForResult(mcfIntent, REQUEST_CODE); in testMatchesCallFilter_contactsPermissionOnly()
1500 assertEquals(REQUEST_CODE, result.requestCode); in testMatchesCallFilter_contactsPermissionOnly()
1502 grActivity.finishActivity(REQUEST_CODE); in testMatchesCallFilter_contactsPermissionOnly()

12