Home
last modified time | relevance | path

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

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowContextWrapper.java103 public void denyPermissions(String... permissionNames) { in denyPermissions() method in ShadowContextWrapper
104 getShadowInstrumentation().denyPermissions(permissionNames); in denyPermissions()
108 public void denyPermissions(int pid, int uid, String... permissions) { in denyPermissions() method in ShadowContextWrapper
109 getShadowInstrumentation().denyPermissions(pid, uid, permissions); in denyPermissions()
DShadowInstrumentation.java709 void denyPermissions(String... permissionNames) {
710 denyPermissions(Process.myPid(), Process.myUid(), permissionNames);
713 void denyPermissions(int pid, int uid, String... permissions) {
DShadowDevicePolicyManager.java621 ShadowApplication.getInstance().denyPermissions(permission); in setPermissionGrantState()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextWrapperTest.java430 shadowContextWrapper.denyPermissions("MY_PERMISSON"); in revokeSelfPermission()
442 shadowContextWrapper.denyPermissions(1, 1, "MY_PERMISSON"); in revokePermissionUidPid()
525 shadowOf(contextWrapper).denyPermissions("foo", "qux");
535 shadowOf(contextWrapper).denyPermissions("foo", "qux");
DShadowBackupManagerTest.java79 .denyPermissions(android.Manifest.permission.BACKUP); in isBackupEnabled_noPermission_shouldThrowSecurityException()