Home
last modified time | relevance | path

Searched refs:setPermission (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/tests/testables/tests/src/android/testing/
DTestablePermissionsTest.java44 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS, in testCheck()
46 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS_FULL, in testCheck()
56 mContext.getTestablePermissions().setPermission(URI_1, PERMISSION_GRANTED); in testCheckUri()
57 mContext.getTestablePermissions().setPermission(URI_2, PERMISSION_DENIED); in testCheckUri()
65 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS, in testEnforceNoException()
72 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS, in testEnforceWithException()
79 mContext.getTestablePermissions().setPermission(URI_1, PERMISSION_GRANTED); in testEnforceUriNoException()
85 mContext.getTestablePermissions().setPermission(URI_1, PERMISSION_DENIED); in testEnforceUriWithException()
/frameworks/base/tests/testables/src/android/testing/
DTestablePermissions.java38 public void setPermission(String permission, int value) { in setPermission() method in TestablePermissions
47 public void setPermission(Uri uri, int value) { in setPermission() method in TestablePermissions
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DServiceListingTest.java50 .setPermission("testPermission") in setUp()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceManagerServiceTest.java78 mContext.getTestablePermissions().setPermission(TEST_URI, PERMISSION_GRANTED); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DServiceListing.java209 public Builder setPermission(String permission) { in setPermission() method in ServiceListing.Builder
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java502 public void setPermission(String permission, Integer granted) { in setPermission() method in ConnectivityServiceTest.MockContext
1899 mServiceContext.setPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, in networkCallbacksSanitizationTest_Sanitize()
1901 mServiceContext.setPermission(Manifest.permission.NETWORK_SETTINGS, in networkCallbacksSanitizationTest_Sanitize()
1908 mServiceContext.setPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, in networkCallbacksSanitizationTest_NoSanitize_NetworkStack()
1910 mServiceContext.setPermission(Manifest.permission.NETWORK_SETTINGS, PERMISSION_DENIED); in networkCallbacksSanitizationTest_NoSanitize_NetworkStack()
1916 mServiceContext.setPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, in networkCallbacksSanitizationTest_NoSanitize_Settings()
1918 mServiceContext.setPermission(Manifest.permission.NETWORK_SETTINGS, PERMISSION_GRANTED); in networkCallbacksSanitizationTest_NoSanitize_Settings()
2829 mServiceContext.setPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, in testCaptivePortalApp()
2873 mServiceContext.setPermission( in testCaptivePortalApi()
6853 mServiceContext.setPermission(perm, PERMISSION_GRANTED); in setupLocationPermissions()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/permission/
DBasePermission.java147 public void setPermission(@Nullable Permission perm) { in setPermission() method in BasePermission
DPermissionManagerService.java760 bp.setPermission(null); in removeAllPermissions()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java4258 perms.setPermission(android.Manifest.permission.INTERACT_ACROSS_USERS, PERMISSION_GRANTED); in testCanNotifyAsUser_crossUser()
4277 perms.setPermission(android.Manifest.permission.INTERACT_ACROSS_USERS, PERMISSION_GRANTED); in testgetNotificationChannels_crossUser()
5014 perms.setPermission(android.Manifest.permission.INTERACT_ACROSS_USERS, PERMISSION_GRANTED); in testAreNotificationsEnabledForPackage_crossUser()
5031 perms.setPermission(android.Manifest.permission.INTERACT_ACROSS_USERS, PERMISSION_GRANTED); in testAreBubblesAllowedForPackage_crossUser()
/frameworks/base/services/
Dart-profile1479 HSPLcom/android/server/NetworkManagementService;->setPermission(Ljava/lang/String;[I)V
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt50521 Landroid/os/INetworkManagementService$Stub$Proxy;->setPermission(Ljava/lang/String;[I)V
50682 Landroid/os/INetworkManagementService;->setPermission(Ljava/lang/String;[I)V
80778 Landroid/widget/AppSecurityPermissions$PermissionItemView;->setPermission(Landroid/widget/AppSecuri…
Dboot-image-profile.txt43322 HSPLjava/io/UnixFileSystem;->setPermission(Ljava/io/File;IZZ)Z