Home
last modified time | relevance | path

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

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowContextWrapper.java89 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()
DShadowInstrumentation.java696 void grantPermissions(String... permissionNames) {
697 grantPermissions(Process.myPid(), Process.myUid(), permissionNames);
700 void grantPermissions(int pid, int uid, String... permissions) {
DShadowDevicePolicyManager.java618 ShadowApplication.getInstance().grantPermissions(permission); in setPermissionGrantState()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextWrapperTest.java387 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");
DShadowBackupManagerTest.java44 .grantPermissions(android.Manifest.permission.BACKUP); in setUp()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DLocalPermissionGranter.java27 shadowApplication.grantPermissions(permissions); in requestPermissions()