Home
last modified time | relevance | path

Searched refs:denyPermissions (Results 1 – 10 of 10) 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.java714 void denyPermissions(String... permissionNames) {
715 denyPermissions(Process.myPid(), Process.myUid(), permissionNames);
718 void denyPermissions(int pid, int uid, String... permissions) {
DShadowDevicePolicyManager.java624 ShadowApplication.getInstance().denyPermissions(permission); in setPermissionGrantState()
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/
DPermissionsTest.java57 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()
DRobolectricTestUtilities.java293 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/
DManualConnectionManagementTest.java64 testUtilities.denyPermissions(INTERACT_ACROSS_USERS); in connect_doesNotHavePermission_doesNotConnect()
74 testUtilities.denyPermissions(INTERACT_ACROSS_USERS); in connect_getsPermissionAfterStartingConnecting_connects()
DAutomaticConnectionManagementTest.java217 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/
DShadowContextWrapperTest.java521 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");
DShadowCrossProfileAppsTest.java167 shadowOf(application).denyPermissions(INTERACT_ACROSS_PROFILES); in startMainActivity_launcherActivityInManifest_withoutCrossProfilePermission_shouldSucceed()
275 shadowOf(application).denyPermissions(INTERACT_ACROSS_PROFILES); in startActivity_withoutPermission_shouldThrowSecurityException()
DShadowBackupManagerTest.java79 .denyPermissions(android.Manifest.permission.BACKUP); in isBackupEnabled_noPermission_shouldThrowSecurityException()