/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestablePermissionsTest.java | 44 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/ |
D | TestablePermissions.java | 38 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/ |
D | AccessibilitySecurityPolicyTest.java | 285 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()
|
D | AccessibilityManagerServiceTest.java | 1034 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/ |
D | AppOpsManager.java | 2618 .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 …]
|
D | AppOpInfo.java | 171 public Builder setPermission(String value) { in setPermission() method in AppOpInfo.Builder
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/ |
D | ServiceListingTest.java | 71 .setPermission("testPermission") in setUp() 102 .setPermission("testPermission") in testValidator() 137 .setPermission("testPermission") in testNoValidator()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/ |
D | PeopleProviderTest.java | 89 mContext.getTestablePermissions().setPermission( in setUp() 104 mContext.getTestablePermissions().setPermission( in testPermissionDeniedThrowsSecurityException()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsStateTest.java | 137 .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/ |
D | ParsedServiceImpl.java | 49 public ParsedMainComponent setPermission(String permission) { in setPermission() method in ParsedServiceImpl
|
D | ParsedServiceUtils.java | 92 service.setPermission(permission != null ? permission : pkg.getPermission()); in parseService()
|
D | ParsedActivityUtils.java | 364 activity.setPermission(permission); in parseActivityOrAlias() 366 activity.setPermission(permission != null ? permission : pkg.getPermission()); in parseActivityOrAlias()
|
D | ParsedActivityImpl.java | 253 public ParsedActivityImpl setPermission(String permission) { in setPermission() method in ParsedActivityImpl
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/ |
D | WallpaperManagerServiceTests.java | 157 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/ |
D | ControlsListingControllerImpl.kt | 48 setPermission("android.permission.BIND_CONTROLS") in <lambda>()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ServiceListing.java | 223 public Builder setPermission(String permission) { in setPermission() method in ServiceListing.Builder
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/ |
D | FaceServiceTest.java | 128 mContext.getTestablePermissions().setPermission( in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/ |
D | FingerprintServiceTest.java | 158 mContext.getTestablePermissions().setPermission( in setup()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/ |
D | UserBackupManagerServiceTest.java | 120 mContext.getTestablePermissions().setPermission(android.Manifest.permission.BACKUP, in setUp()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/ |
D | GameManagerServiceTests.java | 171 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/ |
D | ParsingPackage.java | 144 ParsingPackage setPermission(String permission); in setPermission() method
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | CustomizationProviderTest.kt | 224 context.testablePermissions.setPermission( in <lambda>()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/trust/ |
D | TrustManagerServiceTest.java | 865 mMockContext.getTestablePermissions().setPermission( in grantPermission()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 2080 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/ |
D | PackageImpl.java | 2254 public PackageImpl setPermission(@Nullable String permission) {
|