Home
last modified time | relevance | path

Searched refs:setPermission (Results 1 – 20 of 20) 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/core/java/android/content/pm/parsing/component/
DParsedService.java44 public ParsedMainComponent setPermission(String permission) { in setPermission() method in ParsedService
DParsedServiceUtils.java87 service.setPermission(permission != null ? permission : pkg.getPermission()); in parseService()
DParsedActivityUtils.java309 activity.setPermission(permission); in parseActivityOrAlias()
311 activity.setPermission(permission != null ? permission : pkg.getPermission()); in parseActivityOrAlias()
DParsedActivity.java249 public ParsedActivity setPermission(String permission) { in setPermission() method in ParsedActivity
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DServiceListingTest.java50 .setPermission("testPermission") in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsListingControllerImpl.kt39 setPermission("android.permission.BIND_CONTROLS") in <lambda>()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperManagerServiceTests.java133 sContext.getTestablePermissions().setPermission( in setUpClass()
136 sContext.getTestablePermissions().setPermission( in setUpClass()
/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.java217 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()
6845 mServiceContext.setPermission(perm, PERMISSION_GRANTED); in setupLocationPermissions()
[all …]
/frameworks/base/core/java/android/content/pm/parsing/
DParsingPackage.java124 ParsingPackage setPermission(String permission); in setPermission() method
DParsingPackageImpl.java2616 public ParsingPackageImpl setPermission(@Nullable String permission) {
DParsingPackageUtils.java1987 … .setPermission(nonConfigString(0, R.styleable.AndroidManifestApplication_permission, sa)); in parseBaseAppBasicFlags()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DBasePermission.java139 public void setPermission(@Nullable ParsedPermission perm) { in setPermission() method in BasePermission
DPermissionManagerService.java2440 bp.setPermission(null); in removeAllPermissions()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java5648 perms.setPermission(android.Manifest.permission.INTERACT_ACROSS_USERS, PERMISSION_GRANTED); in enableInteractAcrossUsers()
/frameworks/base/config/
Dboot-image-profile.txt32581 HSPLjava/io/UnixFileSystem;->setPermission(Ljava/io/File;IZZ)Z
/frameworks/base/services/
Dart-profile27278 PLcom/android/server/pm/permission/BasePermission;->setPermission(Landroid/content/pm/parsing/compo…