Home
last modified time | relevance | path

Searched refs:PERMISSION_GRANTED (Results 1 – 25 of 62) 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.java21 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
79 .isEqualTo(PERMISSION_GRANTED); in withPermission_shellPermission_permissionIsGranted()
114 .isEqualTo(PERMISSION_GRANTED); in autoclose_withoutPermission_permissionIsGrantedAgain()
154 .isEqualTo(PERMISSION_GRANTED); in withPermission_permissionIsAlreadyGrantedInInstrumentedApp_permissionIsGranted()
179 .isEqualTo(PERMISSION_GRANTED); in withPermissionAndWithoutPermission_bothApplied()
193 .isEqualTo(PERMISSION_GRANTED); in withoutPermissionAndWithPermission_bothApplied()
225 .isEqualTo(PERMISSION_GRANTED); in withoutPermission_androidSAndAbove_restoresPreviousPermissionContext()
240 .isEqualTo(PERMISSION_GRANTED); in withPermissionOnVersion_onVersion_hasPermission()
250 .isNotEqualTo(PERMISSION_GRANTED); in withPermissionOnVersion_notOnVersion_doesNotHavePermission()
/cts/apps/hotspot/src/com/android/cts/hotspot/
DMainActivity.java15 != PackageManager.PERMISSION_GRANTED) { in onCreate()
21 != PackageManager.PERMISSION_GRANTED) { in onCreate()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java27 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
227 PermissionUtils.checkPermission(permission, PERMISSION_GRANTED, PRE_M_APP_PACKAGE_NAME); in assertCannotSetPermissionGrantStatePreMApp()
228 PermissionUtils.checkPermissionAndAppOps(permission, PERMISSION_GRANTED, in assertCannotSetPermissionGrantStatePreMApp()
247 PermissionUtils.checkPermission(permission, PERMISSION_GRANTED, PRE_M_APP_PACKAGE_NAME); in assertCanSetPermissionGrantStatePreMApp()
253 PermissionUtils.checkPermissionAndAppOps(permission, PERMISSION_GRANTED, in assertCanSetPermissionGrantStatePreMApp()
383 PERMISSION_GRANTED, PERMISSION_APP_PACKAGE_NAME, PERMISSIONS_ACTIVITY_NAME); in testPermissionPrompts()
384 PermissionUtils.checkPermission(READ_CONTACTS, PERMISSION_GRANTED, in testPermissionPrompts()
400 PERMISSION_GRANTED, PERMISSION_APP_PACKAGE_NAME, in testSensorsRelatedPermissionsNotGrantedViaPolicy()
404 PermissionUtils.checkPermission(sensorPermission, PERMISSION_GRANTED, in testSensorsRelatedPermissionsNotGrantedViaPolicy()
476 mReceiver, permission, PERMISSION_GRANTED, in assertCanRequestPermissionFromActivity()
/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/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/hostsidetests/appsecurity/test-apps/LocationPolicyApp/src/android/appsecurity/cts/locationpolicy/
DLocationPolicyTest.java46 PackageManager.PERMISSION_GRANTED, in testLocationPolicyPermissions()
50 PackageManager.PERMISSION_GRANTED, in testLocationPolicyPermissions()
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DPermissionUtils.java22 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
108 case PERMISSION_GRANTED: in launchActivityAndRequestPermission()
175 return PERMISSION_GRANTED; in checkPermissionAndAppOps()
199 case PERMISSION_GRANTED: in findPermissionPromptButton()
251 case PERMISSION_GRANTED: in findPermissionPromptButtonAutomotive()
/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/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/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DLocationCheckerActivity.java106 == PackageManager.PERMISSION_GRANTED; in hasLocationPermission()
121 || grants[0] != PackageManager.PERMISSION_GRANTED in onRequestPermissionsResult()
/cts/tests/tests/content/src/android/content/pm/cts/
DPermissionFeatureTest.java75 assertEquals(PackageManager.PERMISSION_GRANTED, in assertPermissionGranted()
/cts/tests/tests/permission/src/android/permission/cts/
DRevokePermissionTest.kt22 import android.content.pm.PackageManager.PERMISSION_GRANTED
145 assertEquals(PERMISSION_GRANTED, pm.checkPermission(READ_CALENDAR, APP_PKG_NAME)) in testRevoke()
DProviderPermissionTest.java251 pkg.packageName) == PackageManager.PERMISSION_GRANTED; in testWriteMediaStorage()
263 pkg.packageName) == PackageManager.PERMISSION_GRANTED; in testWriteMediaStorage()
DOneTimePermissionTest.java200 PackageManager.PERMISSION_GRANTED, mContext.getPackageManager() in testStickyServiceMaintainsPermissionOnRestart()
212 assertGrantedState("Permission was never granted", PackageManager.PERMISSION_GRANTED, in assertGranted()
/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/os/src/android/os/cts/
DCompanionDeviceManagerTest.kt25 import android.content.pm.PackageManager.PERMISSION_GRANTED
193 TEST_APP_PACKAGE_NAME, "android.permission.CALL_PHONE", PERMISSION_GRANTED) in testProfiles()
197 TEST_APP_PACKAGE_NAME, "android.permission.CALL_PHONE", PERMISSION_GRANTED) in testProfiles()
/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/telephony/TestSmsApp/src/android/telephony/cts/sms/
DMainActivity.java49 if (grantResults[0] != PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/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 …]
/cts/tests/tests/telephony/sdk28/src/android/telephony/sdk28/cts/
DCellInfoTest.java70 == android.content.pm.PackageManager.PERMISSION_GRANTED); in setUp()
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/
DV3RotationTest.java123 == PackageManager.PERMISSION_GRANTED); in testHasPerm()
130 == PackageManager.PERMISSION_GRANTED); in testHasNoPerm()

123