/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21254/helper-app/src/android/security/cts/CVE_2023_21254_helper/ |
D | PocActivity.java | 26 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/ |
D | PocActivity.java | 26 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/ |
D | PocActivity.java | 26 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/ |
D | ActionPickImagesOnlyTest.java | 88 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 …]
|
D | ActionGetContentOnlyTest.java | 96 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
|
D | ActionUserSelectImagesForAppTest.java | 118 () -> 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()
|
D | PhotoPickerCrossProfileTest.java | 101 mActivity.startActivityForResult(intent, REQUEST_CODE); in testWorkApp_canAccessPersonalProfileContents() 155 mActivity.startActivityForResult(intent, REQUEST_CODE); in assertBlockedByAdmin()
|
D | PhotoPickerBaseTest.java | 41 public static int REQUEST_CODE = 42; field in PhotoPickerBaseTest
|
D | PhotoPickerSettingsTest.java | 127 mActivity.startActivityForResult(intent, REQUEST_CODE); in testSettingsLaunchFromOverflowMenu()
|
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/ |
D | EuiccTestResolutionActivity.java | 41 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()
|
D | EuiccManagerTest.java | 72 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/ |
D | StartProvisioningActivity.java | 30 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/ |
D | PocActivity.java | 30 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/ |
D | NotesAppActivity.java | 38 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/ |
D | DocumentsClientTest.java | 257 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 …]
|
D | DocumentsClientTestCase.java | 50 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/ |
D | AttributionSourceActivity.kt | 49 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/ |
D | UriGrantsResultTest.java | 44 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/ |
D | ActivityTest.java | 52 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/ |
D | MainActivity.java | 80 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/ |
D | PackageInstallTest.java | 24 private static final int REQUEST_CODE = 0; field in PackageInstallTest 128 REQUEST_CODE, in getCommitCallback()
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | GenerateImagesActivity.java | 42 private static final int REQUEST_CODE = 1; field in GenerateImagesActivity 166 startActivityForResult(intent, REQUEST_CODE); in launchThemeDeviceActivity()
|
/cts/tests/providerui/src/android/providerui/cts/ |
D | MediaStoreUiTest.java | 87 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/ |
D | NotificationManagerTest.java | 1792 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 …]
|
D | NotificationManagerZenTest.java | 1437 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()
|