Home
last modified time | relevance | path

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

12

/external/downloader/src/test/java/com/google/android/downloader/
DAndroidConnectivityHandlerTest.java83 shadowOf(application).grantPermissions(permission.ACCESS_NETWORK_STATE); in checkConnectivity_noConnectivityRequired()
94 shadowOf(application).grantPermissions(permission.ACCESS_NETWORK_STATE); in checkConnectivity_noNetwork()
108 shadowOf(application).grantPermissions(permission.ACCESS_NETWORK_STATE); in checkConnectivity_networkNotConnected()
129 shadowOf(application).grantPermissions(permission.ACCESS_NETWORK_STATE); in checkConnectivity_wrongNetworkType()
150 shadowOf(application).grantPermissions(permission.ACCESS_NETWORK_STATE); in checkConnectivity_anyNetworkType()
174 shadowOf(application).grantPermissions(permission.ACCESS_NETWORK_STATE); in checkConnectivity_unknownNetworkType()
199 shadowOf(application).grantPermissions(permission.ACCESS_NETWORK_STATE); in checkConnectivity_requiredNetworkConnected_wifiOnly()
216 shadowOf(application).grantPermissions(permission.ACCESS_NETWORK_STATE); in checkConnectivity_requiredNetworkConnected_wifiOrCellular()
238 shadowOf(application).grantPermissions(permission.ACCESS_NETWORK_STATE); in checkConnectivity_requiredNetworkConnected_sdk23()
262 shadowApplication.grantPermissions(permission.ACCESS_NETWORK_STATE); in checkConnectivity_networkChange()
[all …]
/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.java701 void grantPermissions(String... permissionNames) {
702 grantPermissions(Process.myPid(), Process.myUid(), permissionNames);
705 void grantPermissions(int pid, int uid, String... permissions) {
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/
DPermissionsTest.java83 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in canMakeCrossProfileCalls_defaultProfileBinder_interactAcrossUsersGranted_isTrue()
92 testUtilities.grantPermissions(INTERACT_ACROSS_USERS_FULL); in canMakeCrossProfileCalls_defaultProfileBinder_interactAcrossUsersFullGranted_isTrue()
102 testUtilities.grantPermissions(INTERACT_ACROSS_PROFILES); in canMakeCrossProfileCalls_defaultProfileBinder_interactAcrossProfilesGranted_isTrue()
DRobolectricTestUtilities.java278 public void grantPermissions(String... permissions) { in grantPermissions() method in RobolectricTestUtilities
290 shadowOf(context).grantPermissions(permissions); in grantPermissions()
310 grantPermissions(INTERACT_ACROSS_PROFILES); in regrantPermissions()
315 grantPermissions(INTERACT_ACROSS_USERS); in regrantPermissions()
320 grantPermissions(INTERACT_ACROSS_USERS_FULL); in regrantPermissions()
DProfileConnectorTest.java70 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextWrapperTest.java478 shadowContextWrapper.grantPermissions("MY_PERMISSON"); in checkSelfPermission()
491 shadowContextWrapper.grantPermissions(1, 1, "MY_PERMISSON"); in checkPermissionUidPid()
503 shadowContextWrapper.grantPermissions("MY_PERMISSON"); in checkAdditionalSelfPermission()
509 shadowContextWrapper.grantPermissions("ANOTHER_PERMISSON"); in checkAdditionalSelfPermission()
517 shadowContextWrapper.grantPermissions("MY_PERMISSON"); in revokeSelfPermission()
529 shadowContextWrapper.grantPermissions(1, 1, "MY_PERMISSON"); in revokePermissionUidPid()
599 shadowOf(contextWrapper).grantPermissions("foo", "bar");
607 shadowOf(contextWrapper).grantPermissions("foo", "bar");
615 shadowOf(contextWrapper).grantPermissions("foo", "bar");
625 shadowOf(contextWrapper).grantPermissions("foo", "bar");
DShadowCrossProfileAppsTest.java222 shadowOf(application).grantPermissions(INTERACT_ACROSS_PROFILES); in startActivity_launcherActivityInManifest_shouldSucceed()
238 shadowOf(application).grantPermissions(INTERACT_ACROSS_PROFILES); in startActivity_nonLauncherActivityInManifest_shouldSucceed()
254 shadowOf(application).grantPermissions(INTERACT_ACROSS_PROFILES); in startActivity_nonExistentActivity_shouldThrowSecurityException()
264 shadowOf(application).grantPermissions(INTERACT_ACROSS_PROFILES); in startActivity_userNotAvailable_shouldThrowSecurityException()
DShadowBackupManagerTest.java44 .grantPermissions(android.Manifest.permission.BACKUP); in setUp()
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/robotests/
DManualConnectionManagementTest.java59 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
77 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in connect_getsPermissionAfterStartingConnecting_connects()
DAutomaticConnectionManagementTest.java75 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
232 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in asyncCall_getsPermissionAfterPreviousFailure_doesNotFail()
DCrossUserTest.java67 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
DCrossProfileInterfaceTest.java74 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
DCrossProfileServiceTest.java71 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
DAvailabilityListenerTest.java65 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
DMessageSizeTest.java77 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
DBothProfilesSynchronousTest.java75 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
DOtherProfileManualListenableFutureTest.java71 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
DOtherProfileSynchronousTest.java77 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
DProfilesTest.java73 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
DIfAvailableTest.java77 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
DOtherProfileManualAsyncTest.java79 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
DBothProfilesManualAsyncTest.java79 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
DBothProfilesAsyncTest.java84 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DLocalPermissionGranter.java27 shadowApplication.grantPermissions(permissions); in requestPermissions()

12