Searched refs:grantPermissions (Results 1 – 6 of 6) sorted by relevance
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowContextWrapper.java | 89 public void grantPermissions(String... permissionNames) { in grantPermissions() method in ShadowContextWrapper 90 getShadowInstrumentation().grantPermissions(permissionNames); in grantPermissions() 94 public void grantPermissions(int pid, int uid, String... permissions) { in grantPermissions() method in ShadowContextWrapper 95 getShadowInstrumentation().grantPermissions(pid, uid, permissions); in grantPermissions()
|
D | ShadowInstrumentation.java | 696 void grantPermissions(String... permissionNames) { 697 grantPermissions(Process.myPid(), Process.myUid(), permissionNames); 700 void grantPermissions(int pid, int uid, String... permissions) {
|
D | ShadowDevicePolicyManager.java | 618 ShadowApplication.getInstance().grantPermissions(permission); in setPermissionGrantState()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowContextWrapperTest.java | 387 shadowContextWrapper.grantPermissions("MY_PERMISSON"); in checkSelfPermission() 400 shadowContextWrapper.grantPermissions(1, 1, "MY_PERMISSON"); in checkPermissionUidPid() 412 shadowContextWrapper.grantPermissions("MY_PERMISSON"); in checkAdditionalSelfPermission() 418 shadowContextWrapper.grantPermissions("ANOTHER_PERMISSON"); in checkAdditionalSelfPermission() 426 shadowContextWrapper.grantPermissions("MY_PERMISSON"); in revokeSelfPermission() 438 shadowContextWrapper.grantPermissions(1, 1, "MY_PERMISSON"); in revokePermissionUidPid() 508 shadowOf(contextWrapper).grantPermissions("foo", "bar"); 516 shadowOf(contextWrapper).grantPermissions("foo", "bar"); 524 shadowOf(contextWrapper).grantPermissions("foo", "bar"); 534 shadowOf(contextWrapper).grantPermissions("foo", "bar");
|
D | ShadowBackupManagerTest.java | 44 .grantPermissions(android.Manifest.permission.BACKUP); in setUp()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/ |
D | LocalPermissionGranter.java | 27 shadowApplication.grantPermissions(permissions); in requestPermissions()
|