Home
last modified time | relevance | path

Searched refs:permName (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/content/src/android/content/pm/cts/
DPermissionFeatureTest.java73 public void assertPermissionGranted(String permName) { in assertPermissionGranted() argument
76 pm.checkPermission(permName, getContext().getPackageName())); in assertPermissionGranted()
79 public void assertPermissionDenied(String permName) { in assertPermissionDenied() argument
82 pm.checkPermission(permName, getContext().getPackageName())); in assertPermissionDenied()
/cts/tests/tests/permission/src/android/permission/cts/
DSplitPermissionTest.java104 private void assertRequestsPermission(@NonNull String permName) throws Exception { in assertRequestsPermission() argument
105 assertThat(getPermissions(APP_PKG)).contains(permName); in assertRequestsPermission()
113 private void assertNotRequestsPermission(@NonNull String permName) throws Exception { in assertNotRequestsPermission() argument
114 assertThat(getPermissions(APP_PKG)).doesNotContain(permName); in assertNotRequestsPermission()
122 private void assertPermissionGranted(@NonNull String permName) throws Exception { in assertPermissionGranted() argument
123 eventually(() -> assertWithMessage(permName + " is granted").that( in assertPermissionGranted()
124 isGranted(APP_PKG, permName)).isTrue()); in assertPermissionGranted()
132 private void assertPermissionRevoked(@NonNull String permName) throws Exception { in assertPermissionRevoked() argument
133 assertWithMessage(permName + " is granted").that(isGranted(APP_PKG, permName)).isFalse(); in assertPermissionRevoked()
DStorageEscalationTest.kt95 for (permName in permissions) { in <lambda>() method
100 uiAutomation.grantRuntimePermissionAsUser(APP_PACKAGE_NAME, permName, user) in <lambda>()
105 for (permName in permissions) { in <lambda>() method
113 Assert.assertEquals(granted, userContext.packageManager.checkPermission(permName, in <lambda>()
DPermissionGroupChange.java127 private void waitUntilPermissionGranted(String permName, long timeoutSec) throws Throwable { in waitUntilPermissionGranted() argument
133 if (appInfo.requestedPermissions[i].equals(permName) in waitUntilPermissionGranted()
140 fail(permName + " not granted"); in waitUntilPermissionGranted()
DRemovePermissionTest.java114 private boolean permissionGranted(String pkgName, String permName) in permissionGranted() argument
120 if (appInfo.requestedPermissions[i].equals(permName) in permissionGranted()