Home
last modified time | relevance | path

Searched refs:READ_CALENDAR (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DPermissionTest23.kt50 grantAppPermissionsByUi(android.Manifest.permission.READ_CALENDAR) in testGranted()
53 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, true) in testGranted()
62 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, false) in testInteractiveGrant()
68 android.Manifest.permission.READ_CALENDAR to true, in testInteractiveGrant()
157 grantAppPermissionsByUi(android.Manifest.permission.READ_CALENDAR) in testRevokeAffectsWholeGroup()
160 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, true) in testRevokeAffectsWholeGroup()
164 revokeAppPermissionsByUi(android.Manifest.permission.READ_CALENDAR) in testRevokeAffectsWholeGroup()
167 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, false) in testRevokeAffectsWholeGroup()
175 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, false) in testGrantPreviouslyRevokedWithPrejudiceShowsPrompt()
180 android.Manifest.permission.READ_CALENDAR to false, in testGrantPreviouslyRevokedWithPrejudiceShowsPrompt()
[all …]
DPermissionUpgradeTest.kt48 android.Manifest.permission.READ_CALENDAR, in assertAllPermissionsGrantedByDefault()
104 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, false) in testRevokePropagatedOnUpgradeNewToNewModel()
110 android.Manifest.permission.READ_CALENDAR to true, in testRevokePropagatedOnUpgradeNewToNewModel()
118 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, true) in testRevokePropagatedOnUpgradeNewToNewModel()
129 android.Manifest.permission.READ_CALENDAR, in assertAppHasAllOrNoPermissions()
DPermissionTest22.kt39 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, true) in testCompatDefault()
50 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, true) in testCompatRevoked()
DPermissionReviewTest.kt160 android.Manifest.permission.READ_CALENDAR in testReviewPermissionWhenServiceIsBound()
DBaseUsePermissionTest.kt252 android.Manifest.permission.READ_CALENDAR to "@android:string/permgrouplab_calendar", in <lambda>()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DRevokePermissionTest.kt20 import android.Manifest.permission.READ_CALENDAR
48 testRevoke(packageName = APP_PKG_NAME, permission = READ_CALENDAR, isGranted = true) in testRevokePermission()
72 testRevoke(packageName = fakePackageName, permission = READ_CALENDAR) in testRevokeFakePackage()
80 permission = READ_CALENDAR, in testRevokePermissionWithReason()
110 permission = READ_CALENDAR, in testRevokeFakePackageWithReason()
132 assertEquals(PERMISSION_GRANTED, pm.checkPermission(READ_CALENDAR, APP_PKG_NAME)) in testRevoke()
DPlatformPermissionGroupMappingTest.kt37 android.Manifest.permission.READ_CALENDAR, in platformPermissionHasPermissionGroup()
56 assertThat(permissionNames).contains(android.Manifest.permission.READ_CALENDAR) in platformPermissionGroupHasPermission()
DPermissionControllerTest.java23 import static android.Manifest.permission.READ_CALENDAR;
432 grantPermission(APP2, READ_CALENDAR); in revokePermissionAutomaticallyExtendsToWholeGroup()
437 sController.revokeRuntimePermission(APP2, READ_CALENDAR); in revokePermissionAutomaticallyExtendsToWholeGroup()
440 assertThat(isGranted(APP2, READ_CALENDAR)).isEqualTo(false); in revokePermissionAutomaticallyExtendsToWholeGroup()
465 () -> sController.revokeRuntimePermission("invalid.package", READ_CALENDAR)); in revokePermissionWithInvalidPkg()
477 sController.revokeRuntimePermission(null, READ_CALENDAR); in revokePermissionWithNullPkg()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/visibilitystore/
DVisibilityCheckerImpl.java19 import static android.Manifest.permission.READ_CALENDAR;
316 case SetSchemaRequest.READ_CALENDAR: in doesCallerHoldsAllRequiredPermissions()
365 case SetSchemaRequest.READ_CALENDAR: in doesCallerHavePermissionForDataDelivery()
366 permission = READ_CALENDAR; in doesCallerHavePermissionForDataDelivery()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/visibilitystore/
DVisibilityCheckerImplTest.java20 import static android.Manifest.permission.READ_CALENDAR;
712 ImmutableSet.of(SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR)) in testSetSchema_visibleToPermissions_anyCombinations()
719 mUiAutomation.adoptShellPermissionIdentity(READ_SMS, READ_CALENDAR); in testSetSchema_visibleToPermissions_anyCombinations()
747 mUiAutomation.adoptShellPermissionIdentity(READ_SMS, READ_CALENDAR); in testSetSchema_visibleToPermissions_anyCombinations()
808 mUiAutomation.adoptShellPermissionIdentity(READ_SMS, READ_CALENDAR, READ_CONTACTS, in testSetSchema_defaultNotVisibleToPermissions()
831 ImmutableSet.of(SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR)) in testSetSchema_visibleToPermissions_needAllPermissions()
849 mUiAutomation.adoptShellPermissionIdentity(READ_SMS, READ_CALENDAR); in testSetSchema_visibleToPermissions_needAllPermissions()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityStoreMigrationHelperFromV1Test.java108 SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR)) in testVisibilityMigration_from1()
160 SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR), in testVisibilityMigration_from1()
DVisibilityStoreMigrationFromV2Test.java136 SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR)) in testVisibilityMigration_from2()
194 SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR), in testVisibilityMigration_from2()
DVisibilityToDocumentConverterTest.java247 SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR)) in testToVisibilityConfig()
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DRuntimePermissionProperties.kt36 import android.Manifest.permission.READ_CALENDAR
130 READ_CALENDAR, in runtimePermissionsShouldHaveBeenSplitFromPreviousPermission()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DSetSchemaRequest.java102 READ_CALENDAR,
123 public static final int READ_CALENDAR = 2; field in SetSchemaRequest
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DPermissionMapping.kt78 PLATFORM_PERMISSIONS[Manifest.permission.READ_CALENDAR] = Manifest.permission_group.CALENDAR
/packages/modules/AppSearch/framework/api/
Dcurrent.txt658 field public static final int READ_CALENDAR = 2; // 0x2