Home
last modified time | relevance | path

Searched refs:PERMISSION_GRANTED (Results 1 – 25 of 65) sorted by relevance

123

/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DClipDataJobTest.java66 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 …]
DConstraintTest.java133 assertEquals(PackageManager.PERMISSION_GRANTED, in assertHasUriPermission()
138 assertEquals(PackageManager.PERMISSION_GRANTED, in assertHasUriPermission()
/cts/tests/tests/slice/src/android/slice/cts/
DSlicePermissionsTest.java19 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/
DPermissionsTest.java20 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/
DPermissionsTest.java27 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/
DAutoRevokeTest.kt27 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 …]
DCompanionDeviceManagerTest.kt22 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/
DMainActivity.java15 != PackageManager.PERMISSION_GRANTED) { in onCreate()
21 != PackageManager.PERMISSION_GRANTED) { in onCreate()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java31 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/
DCtsThirdPartyInCallServiceControl.java19 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
57 , getApplication().getPackageName()) == PERMISSION_GRANTED;
/cts/hostsidetests/appsecurity/test-apps/LocationPolicyApp/src/android/appsecurity/cts/locationpolicy/
DLocationPolicyTest.java46 PackageManager.PERMISSION_GRANTED, in testLocationPolicyPermissions()
50 PackageManager.PERMISSION_GRANTED, in testLocationPolicyPermissions()
/cts/tests/tests/permission/src/android/permission/cts/
DUndefinedGroupPermissionTest.kt123 PackageManager.PERMISSION_GRANTED) in testCustomPermissionGrantedAlone()
153 APP_PKG_NAME), PackageManager.PERMISSION_GRANTED) in testOtherGroupPermissionsNotGranted()
170 APP_PKG_NAME), PackageManager.PERMISSION_GRANTED) in testOtherGroupPermissionsNotGranted()
DRevokePermissionTest.kt22 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/
DWifiSliceTest.java19 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/
DPermissionUtils.java22 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/
DLocationCheckerActivity.java106 == 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/
DKeySetPermissionsTest.java38 … pm.checkPermission(KEYSET_PERM_NAME, KEYSET_APP_PKG) == PackageManager.PERMISSION_GRANTED); in testHasPerm()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPermissionMaxSdkVersionTest.java56 PackageManager.PERMISSION_GRANTED); in testMaxSdkInFuture()
/cts/tests/tests/permission5/src/android/permission5/cts/
DRenouncedPermissionsTest.kt53 .isEqualTo(PackageManager.PERMISSION_GRANTED) in testRenouncePermissionsChain()
55 .isEqualTo(PackageManager.PERMISSION_GRANTED) in testRenouncePermissionsChain()
/cts/tests/tests/content/src/android/content/pm/cts/
DPermissionFeatureTest.java75 assertEquals(PackageManager.PERMISSION_GRANTED, in assertPermissionGranted()
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateTest.java22 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/
DPermissions.java19 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
171 && sContext.checkSelfPermission(permission) == PERMISSION_GRANTED) { in applyPermissions()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListActivity.java98 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/
DBaseJobSchedulerTest.java138 assertEquals(PackageManager.PERMISSION_GRANTED, in assertHasUriPermission()
143 assertEquals(PackageManager.PERMISSION_GRANTED, in assertHasUriPermission()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java20 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 …]

123