Searched refs:denyPermissions (Results 1 – 10 of 10) sorted by relevance
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowContextWrapper.java | 103 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()
|
D | ShadowInstrumentation.java | 714 void denyPermissions(String... permissionNames) { 715 denyPermissions(Process.myPid(), Process.myUid(), permissionNames); 718 void denyPermissions(int pid, int uid, String... permissions) {
|
D | ShadowDevicePolicyManager.java | 624 ShadowApplication.getInstance().denyPermissions(permission); in setPermissionGrantState()
|
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/ |
D | PermissionsTest.java | 57 testUtilities.denyPermissions(INTERACT_ACROSS_USERS); in canMakeCrossProfileCalls_defaultProfileBinder_interactAcrossUsersNotGranted_isFalse() 66 testUtilities.denyPermissions(INTERACT_ACROSS_USERS_FULL); in canMakeCrossProfileCalls_defaultProfileBinder_interactAcrossUsersFullNotGranted_isFalse() 75 testUtilities.denyPermissions(INTERACT_ACROSS_PROFILES); in canMakeCrossProfileCalls_defaultProfileBinder_interactAcrossProfilesNotGranted_isFalse()
|
D | RobolectricTestUtilities.java | 293 public void denyPermissions(String... permissions) { in denyPermissions() method in RobolectricTestUtilities 305 shadowOf(context).denyPermissions(permissions); in denyPermissions() 312 denyPermissions(INTERACT_ACROSS_PROFILES); in regrantPermissions() 317 denyPermissions(INTERACT_ACROSS_USERS); in regrantPermissions() 322 denyPermissions(INTERACT_ACROSS_USERS_FULL); in regrantPermissions()
|
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/robotests/ |
D | ManualConnectionManagementTest.java | 64 testUtilities.denyPermissions(INTERACT_ACROSS_USERS); in connect_doesNotHavePermission_doesNotConnect() 74 testUtilities.denyPermissions(INTERACT_ACROSS_USERS); in connect_getsPermissionAfterStartingConnecting_connects()
|
D | AutomaticConnectionManagementTest.java | 217 testUtilities.denyPermissions(INTERACT_ACROSS_USERS); in asyncCall_doesNotHavePermission_failsImmediately() 228 testUtilities.denyPermissions(INTERACT_ACROSS_USERS); in asyncCall_getsPermissionAfterPreviousFailure_doesNotFail()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowContextWrapperTest.java | 521 shadowContextWrapper.denyPermissions("MY_PERMISSON"); in revokeSelfPermission() 533 shadowContextWrapper.denyPermissions(1, 1, "MY_PERMISSON"); in revokePermissionUidPid() 616 shadowOf(contextWrapper).denyPermissions("foo", "qux"); 626 shadowOf(contextWrapper).denyPermissions("foo", "qux");
|
D | ShadowCrossProfileAppsTest.java | 167 shadowOf(application).denyPermissions(INTERACT_ACROSS_PROFILES); in startMainActivity_launcherActivityInManifest_withoutCrossProfilePermission_shouldSucceed() 275 shadowOf(application).denyPermissions(INTERACT_ACROSS_PROFILES); in startActivity_withoutPermission_shouldThrowSecurityException()
|
D | ShadowBackupManagerTest.java | 79 .denyPermissions(android.Manifest.permission.BACKUP); in isBackupEnabled_noPermission_shouldThrowSecurityException()
|