/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/ |
D | ClipDataJobTest.java | 66 assertEquals(PackageManager.PERMISSION_GRANTED, in testClipDataGrant() 69 assertEquals(PackageManager.PERMISSION_GRANTED, in testClipDataGrant() 81 assertEquals(PackageManager.PERMISSION_GRANTED, in testClipDataGrant() 84 assertEquals(PackageManager.PERMISSION_GRANTED, in testClipDataGrant() 94 assertEquals(PackageManager.PERMISSION_GRANTED, kTestEnvironment.getLastPermCheckRead()); in testClipDataGrant() 95 assertEquals(PackageManager.PERMISSION_GRANTED, kTestEnvironment.getLastPermCheckWrite()); in testClipDataGrant() 124 assertEquals(PackageManager.PERMISSION_GRANTED, in testClipDataGrantReschedule() 127 assertEquals(PackageManager.PERMISSION_GRANTED, in testClipDataGrantReschedule() 139 assertEquals(PackageManager.PERMISSION_GRANTED, in testClipDataGrantReschedule() 142 assertEquals(PackageManager.PERMISSION_GRANTED, in testClipDataGrantReschedule() [all …]
|
/cts/tests/tests/slice/src/android/slice/cts/ |
D | SlicePermissionsTest.java | 18 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 79 assertEquals(PERMISSION_GRANTED, in testGrant() 95 assertEquals(PERMISSION_GRANTED, in testGrantParent() 112 assertEquals(PERMISSION_GRANTED, in testGrantParentExpands() 120 assertEquals(PERMISSION_GRANTED, in testGrantParentExpands() 122 assertEquals(PERMISSION_GRANTED, in testGrantParentExpands() 151 assertEquals(PERMISSION_GRANTED, in testRevoke() 171 assertEquals(PERMISSION_GRANTED, in testRevokeParent() 200 assertEquals(PERMISSION_GRANTED, in testRevokeChild() 206 assertEquals(PERMISSION_GRANTED, in testRevokeChild()
|
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | VirtualDevicePermissionTest.java | 22 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 102 .isEqualTo(PackageManager.PERMISSION_GRANTED); in normalPermissionGranted_appRunningOnDefaultDevice_hasPermissionGranted() 108 .isEqualTo(PackageManager.PERMISSION_GRANTED); in normalPermissionGranted_appRunningOnVirtualDevice_hasPermissionGranted() 126 .isEqualTo(PackageManager.PERMISSION_GRANTED); in dangerousPermissionGranted_appRunningOnDefaultDevice_hasPermissionGranted() 132 .isEqualTo(PackageManager.PERMISSION_GRANTED); in dangerousPermissionGranted_appRunningOnVirtualDevice_hasPermissionGranted() 153 .isEqualTo(PERMISSION_GRANTED); in privilegedPermissionGranted_appRunningOnDefaultDevice_hasPermissionGranted() 161 .isEqualTo(PERMISSION_GRANTED); in privilegedPermissionGranted_appRunningOnVirtualDevice_hasPermissionGranted() 181 .isEqualTo(PERMISSION_GRANTED); in signaturePermissionGranted_appRunningOnDefaultDevice_hasPermissionGranted() 189 .isEqualTo(PERMISSION_GRANTED); in signaturePermissionGranted_appRunningOnVirtualDevice_hasPermissionGranted()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21272/helper-app/src/android/security/cts/CVE_2023_21272_helper/ |
D | PocActivity.java | 19 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 37 == PERMISSION_GRANTED) { in onResume()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21254/helper-app/src/android/security/cts/CVE_2023_21254_helper/ |
D | PocActivity.java | 31 if (checkSelfPermission(RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED) { in onResume() 41 && results[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
|
/cts/apps/hotspot/src/com/android/cts/hotspot/ |
D | MainActivity.java | 15 != PackageManager.PERMISSION_GRANTED) { in onCreate() 21 != PackageManager.PERMISSION_GRANTED) { in onCreate()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21249/helper-app/src/android/security/cts/CVE_2023_21249_helper/ |
D | PocActivity.java | 31 if (checkSelfPermission(ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) { in onResume() 41 && results[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | PermissionBackupCertificateCheckTest.kt | 106 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_sameCert_restoresRuntimePermissions() 154 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_midHistoryToRotated_restoresRuntimePermissions() 178 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_origToRotated_restoresRuntimePermissions() 202 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_rotatedToMidHistory_restoresRuntimePermissions() 226 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_rotatedToOrig_restoresRuntimePermissions() 251 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_sameWithHistory_restoresRuntimePermissions() 276 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_sameWithoutHistory_restoresRuntimePermissions() 348 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_sameMultCerts_restoresRuntimePermissions() 479 assertEquals(PERMISSION_GRANTED, checkPermission(APP, WRITE_CONTACTS)) in testRestore_fgBgDenied_matchingCerts_restoresFgBgPermissions() 543 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_fgGranted_matchingCerts_restoresFgBgPermissions() [all …]
|
/cts/common/device-side/bedstead/modules/permissions/src/test/kotlin/com/android/bedstead/permissions/ |
D | PermissionsAnnotationExecutorTest.kt | 51 .isEqualTo(PackageManager.PERMISSION_GRANTED) in <lambda>() 58 .isEqualTo(PackageManager.PERMISSION_GRANTED) in <lambda>() 60 .isEqualTo(PackageManager.PERMISSION_GRANTED) in <lambda>() 88 .isEqualTo(PackageManager.PERMISSION_GRANTED) in <lambda>()
|
D | PermissionsTest.kt | 72 .isEqualTo(PackageManager.PERMISSION_GRANTED) in withPermission_shellPermission_permissionIsGranted() 114 .isEqualTo(PackageManager.PERMISSION_GRANTED) in autoclose_withoutPermission_permissionIsGrantedAgain() 168 .isEqualTo(PackageManager.PERMISSION_GRANTED) in withPermission_permissionIsAlreadyGrantedInInstrumentedApp_permissionIsGranted() 190 .isEqualTo(PackageManager.PERMISSION_GRANTED) in withPermissionAndWithoutPermission_bothApplied() 203 .isEqualTo(PackageManager.PERMISSION_GRANTED) in withoutPermissionAndWithPermission_bothApplied() 237 .isEqualTo(PackageManager.PERMISSION_GRANTED) in withPermissionOnVersion_onVersion_hasPermission() 251 .isNotEqualTo(PackageManager.PERMISSION_GRANTED) in withPermissionOnVersion_notOnVersion_doesNotHavePermission()
|
/cts/tests/tests/telecom/ThirdPtyInCallServiceTestApp/src/android/telecom/cts/thirdptyincallservice/ |
D | CtsThirdPartyInCallServiceControl.java | 19 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 57 , getApplication().getPackageName()) == PERMISSION_GRANTED;
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PermissionsTest.java | 27 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 175 PermissionUtils.checkPermission(permission, PERMISSION_GRANTED, PRE_M_APP_PACKAGE_NAME); in assertCannotSetPermissionGrantStatePreMApp() 176 PermissionUtils.checkPermissionAndAppOps(permission, PERMISSION_GRANTED, in assertCannotSetPermissionGrantStatePreMApp() 205 PermissionUtils.checkPermission(context, permission, PERMISSION_GRANTED, in assertCanSetPermissionGrantStatePreMApp() 212 PermissionUtils.checkPermissionAndAppOps(context, permission, PERMISSION_GRANTED, in assertCanSetPermissionGrantStatePreMApp() 333 PERMISSION_GRANTED, PERMISSION_APP_PACKAGE_NAME, PERMISSIONS_ACTIVITY_NAME); in testPermissionPrompts() 334 PermissionUtils.checkPermission(READ_CONTACTS, PERMISSION_GRANTED, in testPermissionPrompts() 404 mReceiver, permission, PERMISSION_GRANTED, in assertCanRequestPermissionFromActivity()
|
/cts/tests/tests/hibernation/src/android/hibernation/cts/ |
D | AutoRevokeTest.kt | 28 import android.content.pm.PackageManager.PERMISSION_GRANTED in <lambda>() 252 assertPermission(PERMISSION_GRANTED, APK_PACKAGE_NAME_R_APP, BLUETOOTH_CONNECT) in <lambda>() 260 assertPermission(PERMISSION_GRANTED, APK_PACKAGE_NAME_R_APP, BLUETOOTH_CONNECT) in <lambda>() 280 assertPermission(PERMISSION_GRANTED) in <lambda>() 307 assertPermission(PERMISSION_GRANTED) in <lambda>() 350 assertPermission(PERMISSION_GRANTED, preMinVersionAppPackageName) in <lambda>() 360 assertPermission(PERMISSION_GRANTED, preMinVersionAppPackageName) in <lambda>() 375 assertPermission(PERMISSION_GRANTED) in <lambda>() 402 assertPermission(PERMISSION_GRANTED) in <lambda>() 414 assertPermission(PERMISSION_GRANTED) in <lambda>() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/LocationPolicyApp/src/android/appsecurity/cts/locationpolicy/ |
D | LocationPolicyTest.java | 46 PackageManager.PERMISSION_GRANTED, in testLocationPolicyPermissions() 50 PackageManager.PERMISSION_GRANTED, in testLocationPolicyPermissions()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 31 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 108 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantDeniedRuntimePermission() 153 assertEquals(PERMISSION_GRANTED, checkPermission(APP, WRITE_CONTACTS)); in testNoTriStateRuntimePermission() 195 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantForegroundRuntimePermission() 235 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantForegroundAndBackgroundRuntimePermission() 236 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testGrantForegroundAndBackgroundRuntimePermission() 349 eventually(() -> assertEquals(PERMISSION_GRANTED, in testDelayedRestore()
|
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/ |
D | PermissionCheckerTest.kt | 65 ).isEqualTo(PermissionManager.PERMISSION_GRANTED) in testCheckPermissionForPreflight() 96 ).isEqualTo(PermissionManager.PERMISSION_GRANTED) in testCheckPermissionForDataDelivery() 123 ).isEqualTo(PermissionManager.PERMISSION_GRANTED) in testCheckPermissionForDataDeliveryFromDataSource()
|
/cts/tests/tests/virtualdevice/audio/src/android/virtualdevice/cts/audio/ |
D | VirtualAudioPermissionTest.java | 123 .isEqualTo(PackageManager.PERMISSION_GRANTED); in audioInjection_defaultDevice_works() 157 .isEqualTo(PackageManager.PERMISSION_GRANTED); in audioInjection_virtualDeviceWithMicrophone_permissionGranted() 177 .isEqualTo(PackageManager.PERMISSION_GRANTED); in audioInjection_virtualDeviceWithoutMicrophone_permissionGrantedOnlyOnDefaultDevice() 180 .isEqualTo(PackageManager.PERMISSION_GRANTED); in audioInjection_virtualDeviceWithoutMicrophone_permissionGrantedOnlyOnDefaultDevice() 203 .isEqualTo(PackageManager.PERMISSION_GRANTED); in audioInjection_virtualDeviceWithManualAudioPolicy_permissionGrantedOnlyOnDefaultDevice() 211 .isEqualTo(PackageManager.PERMISSION_GRANTED); in audioInjection_virtualDeviceWithManualAudioPolicy_permissionGrantedOnlyOnDefaultDevice()
|
/cts/hostsidetests/appsecurity/test-apps/keysets/testApp/src/com/android/cts/keysets/ |
D | KeySetPermissionsTest.java | 38 … pm.checkPermission(KEYSET_PERM_NAME, KEYSET_APP_PKG) == PackageManager.PERMISSION_GRANTED); in testHasPerm()
|
/cts/hostsidetests/media/app/MediaRouterWithModifyAudioRoutingApp/src/android/media/router/cts/modifyaudioroutingapp/ |
D | MediaRouter2DeviceTestWithModifyAudioRouting.java | 81 .isEqualTo(PackageManager.PERMISSION_GRANTED); in getSystemController_withModifyAudioRouting_returnsDeviceRoute() 99 .isEqualTo(PackageManager.PERMISSION_GRANTED); in getRoutes_withModifyAudioRouting_returnsDeviceRoute()
|
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/ |
D | PermissionUtils.java | 23 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 109 case PERMISSION_GRANTED: in launchActivityAndRequestPermission() 197 return PERMISSION_GRANTED; in checkPermissionAndAppOps() 221 case PERMISSION_GRANTED: in findPermissionPromptButton() 273 case PERMISSION_GRANTED: in findPermissionPromptButtonAutomotive()
|
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/ |
D | TestAppInstanceTest.java | 22 import static android.content.PermissionChecker.PERMISSION_GRANTED; 469 READ_CONTACTS)).isEqualTo(PERMISSION_GRANTED); in permissions_withPermission_permissionStateAppliesToCallsToTestApp() 479 READ_CONTACTS)).isNotEqualTo(PERMISSION_GRANTED); in permissions_withPermission_permissionStateDoesNotApplyToOtherTestApps() 488 READ_CONTACTS)).isNotEqualTo(PERMISSION_GRANTED); in permissions_withPermission_permissionStateDoesNotApplyToInstrumentedApp() 499 READ_CONTACTS)).isNotEqualTo(PERMISSION_GRANTED); in permissions_withPermission_permissionStateDoesNotApplyToInstrumentedAppAfterCall() 509 READ_CONTACTS)).isNotEqualTo(PERMISSION_GRANTED); in permissions_withPermission_instrumentedPermissionStateDoesNotAffectTestApp() 511 READ_CONTACTS)).isEqualTo(PERMISSION_GRANTED); in permissions_withPermission_instrumentedPermissionStateDoesNotAffectTestApp()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | LocationCheckerActivity.java | 106 == PackageManager.PERMISSION_GRANTED; in hasLocationPermission() 121 || grants[0] != PackageManager.PERMISSION_GRANTED in onRequestPermissionsResult()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40126/src/android/security/cts/CVE_2023_40126/ |
D | DeviceTest.java | 21 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 94 == PERMISSION_GRANTED) in testPocCVE_2023_40126()
|
/cts/tests/tests/settings/src/android/settings/cts/ |
D | WifiSliceTest.java | 19 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 141 .isEqualTo(PERMISSION_GRANTED); in wifiSlice_grantedPermissionToDefaultAssistant() 172 .isEqualTo(PERMISSION_GRANTED); in wifiSlice_grantedPermissionToDefaultVoiceAssistant()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PermissionFeatureTest.java | 75 assertEquals(PackageManager.PERMISSION_GRANTED, in assertPermissionGranted()
|