/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 …]
|
D | ConstraintTest.java | 133 assertEquals(PackageManager.PERMISSION_GRANTED, in assertHasUriPermission() 138 assertEquals(PackageManager.PERMISSION_GRANTED, in assertHasUriPermission()
|
/cts/tests/tests/slice/src/android/slice/cts/ |
D | SlicePermissionsTest.java | 19 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 74 assertEquals(PERMISSION_GRANTED, in testGrant() 90 assertEquals(PERMISSION_GRANTED, in testGrantParent() 107 assertEquals(PERMISSION_GRANTED, in testGrantParentExpands() 115 assertEquals(PERMISSION_GRANTED, in testGrantParentExpands() 117 assertEquals(PERMISSION_GRANTED, in testGrantParentExpands() 146 assertEquals(PERMISSION_GRANTED, in testRevoke() 166 assertEquals(PERMISSION_GRANTED, in testRevokeParent() 187 assertEquals(PERMISSION_GRANTED, in testRevokeChild() 193 assertEquals(PERMISSION_GRANTED, in testRevokeChild()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/permissions/ |
D | PermissionsTest.java | 20 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 71 .isEqualTo(PERMISSION_GRANTED); in withPermission_shellPermission_permissionIsGranted() 112 .isEqualTo(PERMISSION_GRANTED); in autoclose_withoutPermission_permissionIsGrantedAgain() 158 .isEqualTo(PERMISSION_GRANTED); in withPermission_permissionIsAlreadyGrantedInInstrumentedApp_permissionIsGranted() 182 .isEqualTo(PERMISSION_GRANTED); in withPermissionAndWithoutPermission_bothApplied() 195 .isEqualTo(PERMISSION_GRANTED); in withoutPermissionAndWithPermission_bothApplied() 229 .isEqualTo(PERMISSION_GRANTED); in withoutPermission_androidSAndAbove_restoresPreviousPermissionContext()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PermissionsTest.java | 27 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 292 PermissionUtils.checkPermission(permission, PERMISSION_GRANTED, PRE_M_APP_PACKAGE_NAME); in assertCannotSetPermissionGrantStatePreMApp() 293 PermissionUtils.checkPermissionAndAppOps(permission, PERMISSION_GRANTED, in assertCannotSetPermissionGrantStatePreMApp() 312 PermissionUtils.checkPermission(permission, PERMISSION_GRANTED, PRE_M_APP_PACKAGE_NAME); in assertCanSetPermissionGrantStatePreMApp() 318 PermissionUtils.checkPermissionAndAppOps(permission, PERMISSION_GRANTED, in assertCanSetPermissionGrantStatePreMApp() 436 PERMISSION_GRANTED, PERMISSION_APP_PACKAGE_NAME, PERMISSIONS_ACTIVITY_NAME); in testPermissionPrompts() 437 PermissionUtils.checkPermission(READ_CONTACTS, PERMISSION_GRANTED, in testPermissionPrompts() 450 sensorPermission, PERMISSION_GRANTED, PERMISSION_APP_PACKAGE_NAME, in testSensorsRelatedPermissionsCannotBeGranted() 454 PermissionUtils.checkPermission(sensorPermission, PERMISSION_GRANTED, in testSensorsRelatedPermissionsCannotBeGranted() 482 PERMISSION_GRANTED, PERMISSION_APP_PACKAGE_NAME, PERMISSIONS_ACTIVITY_NAME); in testSensorsRelatedPermissionsNotGrantedViaPolicy() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | AutoRevokeTest.kt | 27 import android.content.pm.PackageManager.PERMISSION_GRANTED in <lambda>() 202 assertPermission(PERMISSION_GRANTED, APK_PACKAGE_NAME_R_APP, BLUETOOTH_CONNECT) in <lambda>() 210 assertPermission(PERMISSION_GRANTED, APK_PACKAGE_NAME_R_APP, BLUETOOTH_CONNECT) in <lambda>() 223 assertPermission(PERMISSION_GRANTED) in <lambda>() 232 assertPermission(PERMISSION_GRANTED) in <lambda>() 245 assertPermission(PERMISSION_GRANTED, preMinVersionAppPackageName) in <lambda>() 251 assertPermission(PERMISSION_GRANTED) in <lambda>() 262 assertPermission(PERMISSION_GRANTED, preMinVersionAppPackageName) in <lambda>() 301 assertPermission(PERMISSION_GRANTED) in <lambda>() 324 assertPermission(PERMISSION_GRANTED) in <lambda>() [all …]
|
D | CompanionDeviceManagerTest.kt | 22 import android.content.pm.PackageManager.PERMISSION_GRANTED in <lambda>() 199 assertPermission(packageName, "android.permission.CALL_PHONE", PERMISSION_GRANTED) in <lambda>() 202 assertPermission(packageName, "android.permission.CALL_PHONE", PERMISSION_GRANTED) in <lambda>()
|
/cts/apps/hotspot/src/com/android/cts/hotspot/ |
D | MainActivity.java | 15 != PackageManager.PERMISSION_GRANTED) { in onCreate() 21 != PackageManager.PERMISSION_GRANTED) { in onCreate()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 31 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 107 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantDeniedRuntimePermission() 152 assertEquals(PERMISSION_GRANTED, checkPermission(APP, WRITE_CONTACTS)); in testNoTriStateRuntimePermission() 194 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantForegroundRuntimePermission() 234 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantForegroundAndBackgroundRuntimePermission() 235 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testGrantForegroundAndBackgroundRuntimePermission() 348 eventually(() -> assertEquals(PERMISSION_GRANTED, in testDelayedRestore()
|
/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/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/tests/permission/src/android/permission/cts/ |
D | UndefinedGroupPermissionTest.kt | 123 PackageManager.PERMISSION_GRANTED) in testCustomPermissionGrantedAlone() 153 APP_PKG_NAME), PackageManager.PERMISSION_GRANTED) in testOtherGroupPermissionsNotGranted() 170 APP_PKG_NAME), PackageManager.PERMISSION_GRANTED) in testOtherGroupPermissionsNotGranted()
|
D | RevokePermissionTest.kt | 22 import android.content.pm.PackageManager.PERMISSION_GRANTED 145 assertEquals(PERMISSION_GRANTED, pm.checkPermission(READ_CALENDAR, APP_PKG_NAME)) in testRevoke()
|
/cts/tests/tests/settings/src/android/settings/cts/ |
D | WifiSliceTest.java | 19 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 139 .isEqualTo(PERMISSION_GRANTED); in wifiSlice_grantedPermissionToDefaultAssistant() 160 .isEqualTo(PERMISSION_GRANTED); in wifiSlice_grantedPermissionToDefaultVoiceAssistant()
|
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/ |
D | PermissionUtils.java | 22 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 89 case PERMISSION_GRANTED: in launchActivityAndRequestPermission() 147 return PERMISSION_GRANTED; in checkPermissionAndAppOps()
|
/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/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/tests/tests/permission2/src/android/permission2/cts/ |
D | PermissionMaxSdkVersionTest.java | 56 PackageManager.PERMISSION_GRANTED); in testMaxSdkInFuture()
|
/cts/tests/tests/permission5/src/android/permission5/cts/ |
D | RenouncedPermissionsTest.kt | 53 .isEqualTo(PackageManager.PERMISSION_GRANTED) in testRenouncePermissionsChain() 55 .isEqualTo(PackageManager.PERMISSION_GRANTED) in testRenouncePermissionsChain()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PermissionFeatureTest.java | 75 assertEquals(PackageManager.PERMISSION_GRANTED, in assertPermissionGranted()
|
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/ |
D | DeviceStateTest.java | 22 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 259 .checkSelfPermission(TEST_PERMISSION_1)).isEqualTo(PERMISSION_GRANTED); in ensureHasPermission_permissionIsGranted() 266 .checkSelfPermission(TEST_PERMISSION_1)).isEqualTo(PERMISSION_GRANTED); in ensureHasPermission_multiplePermissions_permissionsAreGranted() 268 .checkSelfPermission(TEST_PERMISSION_2)).isEqualTo(PERMISSION_GRANTED); in ensureHasPermission_multiplePermissions_permissionsAreGranted() 292 .checkSelfPermission(TEST_PERMISSION_1)).isEqualTo(PERMISSION_GRANTED); in ensureHasPermissionAndDoesNotHavePermission_permissionsAreCorrect()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/permissions/ |
D | Permissions.java | 19 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 171 && sContext.checkSelfPermission(permission) == PERMISSION_GRANTED) { in applyPermissions()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListActivity.java | 98 if (checkSelfPermission(permission) != PackageManager.PERMISSION_GRANTED) { in onCreate() 138 if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BaseJobSchedulerTest.java | 138 assertEquals(PackageManager.PERMISSION_GRANTED, in assertHasUriPermission() 143 assertEquals(PackageManager.PERMISSION_GRANTED, in assertHasUriPermission()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 20 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 1255 assertEquals(PackageManager.PERMISSION_GRANTED, returnValue); in testCheckPermissionGranted() 1267 assertEquals(PackageManager.PERMISSION_GRANTED, returnValue); in testCheckPermissionRootUser() 1285 assertEquals(PackageManager.PERMISSION_GRANTED, returnValue); in testCheckSelfPermissionGranted() 1312 assertEquals(PackageManager.PERMISSION_GRANTED, retValue); in testCheckCallingOrSelfPermission_noIpc() 1323 assertEquals(PackageManager.PERMISSION_GRANTED, retValue); in testCheckCallingOrSelfPermission_ipc() 1399 assertEquals(PackageManager.PERMISSION_GRANTED, returnValue); in testCheckCallingPermission_ipc() 1447 assertEquals(PERMISSION_GRANTED, retValue[0]); in testCheckUriPermissions() 1448 assertEquals(PERMISSION_GRANTED, retValue[1]); in testCheckUriPermissions() 1463 assertEquals(PackageManager.PERMISSION_GRANTED, retValue); in testCheckUriPermission1() [all …]
|