Searched refs:isPackageAllowedToAccessCalendar (Results 1 – 2 of 2) sorted by relevance
7008 assertThat(dpm.isPackageAllowedToAccessCalendar(testPackage)).isFalse(); in testIsPackageAllowedToAccessCalendar_adminNotAllowed()7021 assertThat(dpm.isPackageAllowedToAccessCalendar(testPackage)).isFalse(); in testIsPackageAllowedToAccessCalendar_settingOff()7035 assertThat(dpm.isPackageAllowedToAccessCalendar(testPackage)).isTrue(); in testIsPackageAllowedToAccessCalendar_bothAllowed()7044 () -> dpm.isPackageAllowedToAccessCalendar(testPackage)); in testIsPackageAllowedToAccessCalendar_requiresPermission()7058 assertThat(dpm.isPackageAllowedToAccessCalendar(testPackage)).isTrue(); in testIsPackageAllowedToAccessCalendar_samePackageAndSameUser_noPermissionRequired()
16117 public boolean isPackageAllowedToAccessCalendar(@NonNull String packageName) { in isPackageAllowedToAccessCalendar() method in DevicePolicyManager