Home
last modified time | relevance | path

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

12

/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp22/src/com/android/cts/usepermission/
DUsePermissionTest22.java46 assertEquals(PackageManager.PERMISSION_GRANTED, in testCompatDefault()
49 assertEquals(PackageManager.PERMISSION_GRANTED, in testCompatDefault()
69 assertEquals(PackageManager.PERMISSION_GRANTED, in testCompatRevoked_part2()
72 assertEquals(PackageManager.PERMISSION_GRANTED, in testCompatRevoked_part2()
85 assertEquals(PackageManager.PERMISSION_GRANTED, mContext in testAllPermissionsGrantedByDefault()
87 assertEquals(PackageManager.PERMISSION_GRANTED, mContext in testAllPermissionsGrantedByDefault()
90 assertEquals(PackageManager.PERMISSION_GRANTED, mContext in testAllPermissionsGrantedByDefault()
92 assertEquals(PackageManager.PERMISSION_GRANTED, mContext in testAllPermissionsGrantedByDefault()
94 assertEquals(PackageManager.PERMISSION_GRANTED, mContext in testAllPermissionsGrantedByDefault()
96 assertEquals(PackageManager.PERMISSION_GRANTED, mContext in testAllPermissionsGrantedByDefault()
[all …]
/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.java18 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
66 assertEquals(PERMISSION_GRANTED, in testGrant()
81 assertEquals(PERMISSION_GRANTED, in testGrantParent()
97 assertEquals(PERMISSION_GRANTED, in testGrantParentExpands()
105 assertEquals(PERMISSION_GRANTED, in testGrantParentExpands()
107 assertEquals(PERMISSION_GRANTED, in testGrantParentExpands()
134 assertEquals(PERMISSION_GRANTED, in testRevoke()
153 assertEquals(PERMISSION_GRANTED, in testRevokeParent()
173 assertEquals(PERMISSION_GRANTED, in testRevokeChild()
179 assertEquals(PERMISSION_GRANTED, in testRevokeChild()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java107 assertPermissionGrantState(PackageManager.PERMISSION_GRANTED); in testPermissionGrantState()
108 assertPermissionRequest(PackageManager.PERMISSION_GRANTED); in testPermissionGrantState()
112 assertPermissionGrantState(PackageManager.PERMISSION_GRANTED); in testPermissionGrantState()
132 assertPermissionRequest(PackageManager.PERMISSION_GRANTED); in testPermissionPolicy()
135 assertPermissionRequest(PackageManager.PERMISSION_GRANTED); in testPermissionPolicy()
137 assertPermissionRequest(PackageManager.PERMISSION_GRANTED); in testPermissionPolicy()
155 assertPermissionRequest(PackageManager.PERMISSION_GRANTED); in testPermissionMixedPolicies()
158 assertPermissionRequest(PackageManager.PERMISSION_GRANTED); in testPermissionMixedPolicies()
161 assertPermissionRequest(PackageManager.PERMISSION_GRANTED); in testPermissionMixedPolicies()
200 assertPermissionRequest(PackageManager.PERMISSION_GRANTED, "permission_allow_button"); in testPermissionPrompts()
[all …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp28/src/com/android/cts/usepermission/
DUsePermissionTest28.java22 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
63 assertEquals(PERMISSION_GRANTED, context.checkSelfPermission(ACCESS_FINE_LOCATION)); in testLocationPermissionWasSplit()
64 assertEquals(PERMISSION_GRANTED, context.checkSelfPermission(ACCESS_BACKGROUND_LOCATION)); in testLocationPermissionWasSplit()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DUsePermissionTest23.java79 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testGranted()
81 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testGranted()
125 assertEquals(PackageManager.PERMISSION_GRANTED, result.grantResults[0]); in testInteractiveGrant()
126 assertEquals(PackageManager.PERMISSION_GRANTED, result.grantResults[1]); in testInteractiveGrant()
129 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testInteractiveGrant()
131 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testInteractiveGrant()
201 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testRuntimeGroupGrantExpansion()
321 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testRevokeAffectsWholeGroup_part1()
323 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testRevokeAffectsWholeGroup_part1()
476 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testRequestPermissionFromTwoGroups()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DPermissionFeatureTest.java27 assertEquals(PackageManager.PERMISSION_GRANTED, in testPermissionRequiredFeatureDefined()
48 assertEquals(PackageManager.PERMISSION_GRANTED, in testPermissionRequiredNotFeatureUndefined()
62 assertEquals(PackageManager.PERMISSION_GRANTED, in testPermissionRequiredMultiGrant()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java31 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
103 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantDeniedRuntimePermission()
142 assertEquals(PERMISSION_GRANTED, checkPermission(APP, WRITE_CONTACTS)); in testNoTriStateRuntimePermission()
179 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantForegroundRuntimePermission()
210 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantForegroundAndBackgroundRuntimePermission()
211 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testGrantForegroundAndBackgroundRuntimePermission()
306 eventually(() -> assertEquals(PERMISSION_GRANTED, in testDelayedRestore()
385 if (checkPermission(app, permission) != PERMISSION_GRANTED) { in grantRuntimePermission()
387 assertEquals(PERMISSION_GRANTED, checkPermission(app, permission)); in grantRuntimePermission()
/cts/tests/tests/provider/src/android/provider/cts/
DWifiSliceTest.java19 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
111 .isEqualTo(PERMISSION_GRANTED); in wifiSlice_grantedPermissionToDefaultAssistant()
132 .isEqualTo(PERMISSION_GRANTED); in wifiSlice_grantedPermissionToDefaultVoiceAssistant()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp29/src/com/android/cts/usepermission/
DUsePermissionTest29.java22 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
40 assertEquals(PERMISSION_GRANTED, getInstrumentation().getContext() in assertGranted()
/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/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListActivity.java69 if (checkSelfPermission(permission) != PackageManager.PERMISSION_GRANTED) { in onCreate()
107 if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/
DV3RotationTest.java90 == PackageManager.PERMISSION_GRANTED); in testHasPerm()
97 == PackageManager.PERMISSION_GRANTED); in testHasNoPerm()
/cts/hostsidetests/appsecurity/test-apps/ReviewPermissionHelper/src/com/android/cts/reviewpermissionhelper/
DReviewPermissionsTest.kt24 import android.content.pm.PackageManager.PERMISSION_GRANTED
163 assertEquals(PERMISSION_GRANTED, results.poll(UI_TIMEOUT, TimeUnit.MILLISECONDS)) in reviewPermissionWhenServiceIsBound()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTest.java127 context.getPackageName()), PackageManager.PERMISSION_GRANTED); in testAdoptAllShellPermissions()
162 assertSame(PackageManager.PERMISSION_GRANTED, context.checkSelfPermission( in testAdoptSomeShellPermissions()
170 assertSame(PackageManager.PERMISSION_GRANTED, context.checkSelfPermission( in testAdoptSomeShellPermissions()
172 assertSame(PackageManager.PERMISSION_GRANTED, context.checkSelfPermission( in testAdoptSomeShellPermissions()
181 assertSame(PackageManager.PERMISSION_GRANTED, context.checkSelfPermission( in testAdoptSomeShellPermissions()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DConstraintTest.java136 assertEquals(PackageManager.PERMISSION_GRANTED, in assertHasUriPermission()
141 assertEquals(PackageManager.PERMISSION_GRANTED, in assertHasUriPermission()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java914 assertEquals(PackageManager.PERMISSION_GRANTED, returnValue); in testCheckPermissionGranted()
926 assertEquals(PackageManager.PERMISSION_GRANTED, returnValue); in testCheckPermissionRootUser()
944 assertEquals(PackageManager.PERMISSION_GRANTED, returnValue); in testCheckSelfPermissionGranted()
971 assertEquals(PackageManager.PERMISSION_GRANTED, retValue); in testCheckCallingOrSelfPermission_noIpc()
982 assertEquals(PackageManager.PERMISSION_GRANTED, retValue); in testCheckCallingOrSelfPermission_ipc()
1058 assertEquals(PackageManager.PERMISSION_GRANTED, returnValue); in testCheckCallingPermission_ipc()
1100 assertEquals(PackageManager.PERMISSION_GRANTED, retValue); in testCheckUriPermission1()
1113 assertEquals(PackageManager.PERMISSION_GRANTED, retValue); in testCheckUriPermission2()
/cts/tests/tests/permission/src/android/permission/cts/
DProviderPermissionTest.java246 pkg.packageName) == PackageManager.PERMISSION_GRANTED; in testWriteMediaStorage()
258 pkg.packageName) == PackageManager.PERMISSION_GRANTED; in testWriteMediaStorage()
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java31 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
144 == PERMISSION_GRANTED; in isPermissionGranted()
/cts/tests/tests/telephony/TestSmsApp/src/android/telephony/cts/sms/
DMainActivity.java49 if (grantResults[0] != PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/cts/tests/tests/os/src/android/os/cts/
DActivityTestsBase.java27 public static final String PERMISSION_GRANTED = "android.os.cts.permission.TEST_GRANTED"; field in ActivityTestsBase
/cts/tests/app/app/src/android/app/stubs/
DActivityTestsBase.java27 public static final String PERMISSION_GRANTED = "android.app.cts.permission.TEST_GRANTED"; field in ActivityTestsBase
/cts/tests/JobScheduler/src/android/jobscheduler/
DMockJobService.java120 != PackageManager.PERMISSION_GRANTED) { in onStartJob()
133 != PackageManager.PERMISSION_GRANTED) { in onStartJob()

12