Home
last modified time | relevance | path

Searched refs:getTestablePermissions (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/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/packages/SystemUI/tests/src/com/android/systemui/people/
DPeopleProviderTest.java89 mContext.getTestablePermissions().setPermission( in setUp()
104 mContext.getTestablePermissions().setPermission( in testPermissionDeniedThrowsSecurityException()
/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/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/tests/testables/src/android/testing/
DTestableContext.java379 public TestablePermissions getTestablePermissions() { in getTestablePermissions() method in TestableContext
/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()
10131 TestablePermissions perms = mContext.getTestablePermissions();
DZenModeHelperTest.java5373 mContext.getTestablePermissions().setPermission(Manifest.permission.MANAGE_NOTIFICATIONS, in removeAutomaticZenRule_preservedForRestoringByPackageAndConditionId()