Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/permission/src/android/permission/cts/
DServicePermissionTest.java61 for (String perm : sServicePermissions) { in testServicePermissions()
63 new String[] { perm }, PackageManager.MATCH_UNINSTALLED_PACKAGES); in testServicePermissions()
66 failures.add(perm + " held by " + pi.packageName); in testServicePermissions()
DPermissionControllerTest.java152 private void setAppOp(@NonNull String pkg, @NonNull String perm, int mode) throws Exception { in setAppOp() argument
153 sContext.getSystemService(AppOpsManager.class).setUidMode(permissionToOp(perm), in setAppOp()
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DUtilsProvider.java106 final UriPermission perm = perms.get(0); in verifyOutgoingPersisted() local
107 if (!perm.getUri().equals(uri)) { in verifyOutgoingPersisted()
109 "Expected " + uri + " but found " + perm.getUri()); in verifyOutgoingPersisted()
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java302 for (String perm : getPermissions(packageName)) { in getRuntimePermissions()
303 PermissionInfo info = sContext.getPackageManager().getPermissionInfo(perm, 0); in getRuntimePermissions()
305 runtimePermissions.add(perm); in getRuntimePermissions()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java314 for (String perm : locationPermissions) { in grantSelfRequisitePermissions()
316 .grantRuntimePermission(selfPkg, perm); in grantSelfRequisitePermissions()
317 assertTrue("Permission " + perm + "could not be granted", in grantSelfRequisitePermissions()
318 mContext.checkSelfPermission(perm) == PackageManager.PERMISSION_GRANTED); in grantSelfRequisitePermissions()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAccessPermissionWithDiffSigTest.java1365 final UriPermission perm = perms.get(0); in assertPersistedUriPermission() local
1366 assertEquals("unexpected uri", uri, perm.getUri()); in assertPersistedUriPermission()
1368 final long actual = perm.getPersistedTime(); in assertPersistedUriPermission()
1378 assertEquals("unexpected read status", expectedRead, perm.isReadPermission()); in assertPersistedUriPermission()
1379 assertEquals("unexpected write status", expectedWrite, perm.isWritePermission()); in assertPersistedUriPermission()