Home
last modified time | relevance | path

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

12

/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/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilitySecurityPolicyTest.java285 mContext.getTestablePermissions().setPermission( in resolveValidReportedPackage_pkgNameIsInvalid_returnFirstCorrectPkgName()
306 mContext.getTestablePermissions().setPermission( in resolveValidReportedPackage_anotherPkgNameWithActAsPkgPermission_returnPkg()
327 mContext.getTestablePermissions().setPermission( in resolveValidReportedPackage_anotherPkgNameWithoutActAsPkgPermission_returnUidPkg()
507 mContext.getTestablePermissions().setPermission(Manifest.permission.INTERACT_ACROSS_USERS, in resolveCallingUserId_callingParentNotCurrentUserAndNoPerm_shouldException()
509 mContext.getTestablePermissions().setPermission( in resolveCallingUserId_callingParentNotCurrentUserAndNoPerm_shouldException()
527 mContext.getTestablePermissions().setPermission(Manifest.permission.INTERACT_ACROSS_USERS, in resolveCallingUserId_anotherUserIdWithCrossUserPermission_returnUserId()
545 mContext.getTestablePermissions().setPermission( in resolveCallingUserId_anotherUserIdWithCrossUserFullPermission_returnUserId()
563 mContext.getTestablePermissions().setPermission(Manifest.permission.INTERACT_ACROSS_USERS, in resolveCallingUserId_anotherUserIdWithoutCrossUserPermission_shouldException()
565 mContext.getTestablePermissions().setPermission( in resolveCallingUserId_anotherUserIdWithoutCrossUserPermission_shouldException()
DAccessibilityManagerServiceTest.java1034 mTestableContext.getTestablePermissions().setPermission( in enableShortcutsForTargets_permissionNotGranted_throwsException()
1439 mTestableContext.getTestablePermissions().setPermission( in getA11yFeatureToTileMap_permissionNotGranted_throwsException()
1487 mTestableContext.getTestablePermissions().setPermission( in notifyQuickSettingsTilesChanged_manageAccessibilityNotGranted_throwsException()
/frameworks/base/core/java/android/app/
DAppOpsManager.java2618 .setPermission(android.Manifest.permission.ACCESS_COARSE_LOCATION)
2623 .setPermission(android.Manifest.permission.ACCESS_FINE_LOCATION)
2632 .setSwitchCode(OP_VIBRATE).setPermission(android.Manifest.permission.VIBRATE)
2635 .setPermission(android.Manifest.permission.READ_CONTACTS)
2638 .setPermission(android.Manifest.permission.WRITE_CONTACTS)
2641 .setPermission(android.Manifest.permission.READ_CALL_LOG)
2645 .setPermission(android.Manifest.permission.WRITE_CALL_LOG)
2649 .setPermission(android.Manifest.permission.READ_CALENDAR)
2652 .setPermission(android.Manifest.permission.WRITE_CALENDAR)
2656 .setPermission(android.Manifest.permission.ACCESS_WIFI_STATE)
[all …]
DAppOpInfo.java171 public Builder setPermission(String value) { in setPermission() method in AppOpInfo.Builder
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DServiceListingTest.java71 .setPermission("testPermission") in setUp()
102 .setPermission("testPermission") in testValidator()
137 .setPermission("testPermission") in testNoValidator()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DPeopleProviderTest.java89 mContext.getTestablePermissions().setPermission( in setUp()
104 mContext.getTestablePermissions().setPermission( in testPermissionDeniedThrowsSecurityException()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsStateTest.java137 .setPermission(Aconfig.flag_permission.READ_WRITE)) in testLoadValidAconfigProto()
146 .setPermission(Aconfig.flag_permission.READ_ONLY)) in testLoadValidAconfigProto()
195 .setPermission(Aconfig.flag_permission.READ_WRITE)) in testSkipLoadingAconfigFlagWithMissingFields()
226 .setPermission(Aconfig.flag_permission.READ_WRITE)) in testWritingAconfigFlagStages()
799 .setPermission(Aconfig.flag_permission.READ_WRITE)) in testSetSettingsLockedStagesAconfigFlags()
860 .setPermission(Aconfig.flag_permission.READ_WRITE)) in testsetSettingsLockedKeepTrunkDefault()
869 .setPermission(Aconfig.flag_permission.READ_WRITE)) in testsetSettingsLockedKeepTrunkDefault()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedServiceImpl.java49 public ParsedMainComponent setPermission(String permission) { in setPermission() method in ParsedServiceImpl
DParsedServiceUtils.java92 service.setPermission(permission != null ? permission : pkg.getPermission()); in parseService()
DParsedActivityUtils.java364 activity.setPermission(permission); in parseActivityOrAlias()
366 activity.setPermission(permission != null ? permission : pkg.getPermission()); in parseActivityOrAlias()
DParsedActivityImpl.java253 public ParsedActivityImpl setPermission(String permission) { in setPermission() method in ParsedActivityImpl
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperManagerServiceTests.java157 sContext.getTestablePermissions().setPermission( in setUpClass()
160 sContext.getTestablePermissions().setPermission( in setUpClass()
163 sContext.getTestablePermissions().setPermission( in setUpClass()
166 sContext.getTestablePermissions().setPermission( in setUpClass()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsListingControllerImpl.kt48 setPermission("android.permission.BIND_CONTROLS") in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DServiceListing.java223 public Builder setPermission(String permission) { in setPermission() method in ServiceListing.Builder
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/
DFaceServiceTest.java128 mContext.getTestablePermissions().setPermission( in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/
DFingerprintServiceTest.java158 mContext.getTestablePermissions().setPermission( in setup()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java120 mContext.getTestablePermissions().setPermission(android.Manifest.permission.BACKUP, in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/
DGameManagerServiceTests.java171 public void setPermission(String permission, Integer granted) { in setPermission() method in GameManagerServiceTests.MockContext
308 mMockContext.setPermission(Manifest.permission.QUERY_ALL_PACKAGES, in mockQueryAllPackageGranted()
313 mMockContext.setPermission(Manifest.permission.QUERY_ALL_PACKAGES, in mockQueryAllPackageDenied()
318 mMockContext.setPermission(Manifest.permission.MANAGE_USERS, in mockManageUsersGranted()
323 mMockContext.setPermission(Manifest.permission.MANAGE_GAME_MODE, in mockModifyGameModeGranted()
328 mMockContext.setPermission(Manifest.permission.MANAGE_GAME_MODE, in mockModifyGameModeDenied()
/frameworks/base/core/java/com/android/internal/pm/pkg/parsing/
DParsingPackage.java144 ParsingPackage setPermission(String permission); in setPermission() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DCustomizationProviderTest.kt224 context.testablePermissions.setPermission( in <lambda>()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/trust/
DTrustManagerServiceTest.java865 mMockContext.getTestablePermissions().setPermission( in grantPermission()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java2080 mContext.getTestablePermissions().setPermission( in testEnqueueNotificationWithTag_FgsAddsFlags_dismissalAllowed()
5400 mContext.getTestablePermissions().setPermission( in testNoNotificationDuringSetupPermission()
5426 mContext.getTestablePermissions().setPermission( in testNoFakeColorizedPermission()
5508 mContext.getTestablePermissions().setPermission( in testMediaStyleRemote_hasPermission()
5527 mContext.getTestablePermissions().setPermission( in testMediaStyleRemote_noPermission()
5573 mContext.getTestablePermissions().setPermission( in testSubstituteAppName_hasPermission()
5592 mContext.getTestablePermissions().setPermission( in testSubstituteAppName_noPermission()
10132 perms.setPermission(android.Manifest.permission.INTERACT_ACROSS_USERS, PERMISSION_GRANTED);
/frameworks/base/core/java/com/android/internal/pm/parsing/pkg/
DPackageImpl.java2254 public PackageImpl setPermission(@Nullable String permission) {

12