/external/downloader/src/test/java/com/google/android/downloader/ |
D | AndroidConnectivityHandlerTest.java | 83 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/ |
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 | 701 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/ |
D | PermissionsTest.java | 83 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()
|
D | RobolectricTestUtilities.java | 278 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()
|
D | ProfileConnectorTest.java | 70 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowContextWrapperTest.java | 478 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");
|
D | ShadowCrossProfileAppsTest.java | 222 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()
|
D | ShadowBackupManagerTest.java | 44 .grantPermissions(android.Manifest.permission.BACKUP); in setUp()
|
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/robotests/ |
D | ManualConnectionManagementTest.java | 59 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp() 77 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in connect_getsPermissionAfterStartingConnecting_connects()
|
D | AutomaticConnectionManagementTest.java | 75 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp() 232 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in asyncCall_getsPermissionAfterPreviousFailure_doesNotFail()
|
D | CrossUserTest.java | 67 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
D | CrossProfileInterfaceTest.java | 74 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
D | CrossProfileServiceTest.java | 71 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
D | AvailabilityListenerTest.java | 65 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
D | MessageSizeTest.java | 77 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
D | BothProfilesSynchronousTest.java | 75 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
D | OtherProfileSynchronousTest.java | 77 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
D | OtherProfileManualListenableFutureTest.java | 71 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
D | ProfilesTest.java | 73 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
D | OtherProfileManualAsyncTest.java | 79 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
D | IfAvailableTest.java | 77 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
D | BothProfilesManualAsyncTest.java | 79 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
D | BothProfilesAsyncTest.java | 84 testUtilities.grantPermissions(INTERACT_ACROSS_USERS); in setUp()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/ |
D | LocalPermissionGranter.java | 27 shadowApplication.grantPermissions(permissions); in requestPermissions()
|