Home
last modified time | relevance | path

Searched refs:getHealthDataHistoricalAccessStartDate (Results 1 – 7 of 7) sorted by relevance

/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/permissions/
DGrantTimeIntegrationTest.java84 getHealthDataHistoricalAccessStartDate(null); in testGrantHealthPermission_nullPackage_throwsNullPointerException()
90 getHealthDataHistoricalAccessStartDate("android.invalid.package"); in testGrantHealthPermission_packageNotInstalled_returnsNull()
96 Instant grantTime = getHealthDataHistoricalAccessStartDate(DEFAULT_APP_PACKAGE); in testGrantHealthPermission_noPermissionsGranted_returnsNull()
103 Instant grantTime = getHealthDataHistoricalAccessStartDate(DEFAULT_APP_PACKAGE); in testGrantHealthPermission_permissionGranted_returnsAdequateTime()
116 Instant grantTime = getHealthDataHistoricalAccessStartDate(DEFAULT_APP_PACKAGE); in testGrantHealthPermission_permGrantedViaPackageManager_returnsAdequateTime()
124 Instant grantTime = getHealthDataHistoricalAccessStartDate(DEFAULT_APP_PACKAGE); in testGrantHealthPermission_permissionGrantedToSharedUser_returnsAdequateTime()
132 Instant grantTime = getHealthDataHistoricalAccessStartDate(SHARED_USER_APP); in testGrantHealthPermission_permissionGrantedForSharedUser_returnsAdequateTime()
141 Instant grantTime = getHealthDataHistoricalAccessStartDate(DEFAULT_APP_PACKAGE); in testGrantHealthPermission_twoPermissionsGranted_returnsTheSameTime()
143 Instant grantTime2 = getHealthDataHistoricalAccessStartDate(DEFAULT_APP_PACKAGE); in testGrantHealthPermission_twoPermissionsGranted_returnsTheSameTime()
151 Instant grantTime = getHealthDataHistoricalAccessStartDate(DEFAULT_APP_PACKAGE); in testGrantHealthPermission_notAllPermissionsRevoked_returnsTheSameTime()
[all …]
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/
DBackupRestoreE2ETest.java19 …ort static android.healthconnect.cts.utils.PermissionHelper.getHealthDataHistoricalAccessStartDate;
230 getHealthDataHistoricalAccessStartDate(TEST_APP_1_PACKAGE_NAME); in testPermissionRestoredBeforeHCRestore_expectGrantTimeIsRestoredCorrectly()
247 assertThat(getHealthDataHistoricalAccessStartDate(TEST_APP_1_PACKAGE_NAME)) in testPermissionRestoredBeforeHCRestore_expectGrantTimeIsRestoredCorrectly()
253 getHealthDataHistoricalAccessStartDate(TEST_APP_2_PACKAGE_NAME); in testPermissionRestoredBeforeHCRestore_expectGrantTimeIsRestoredCorrectly()
265 assertThat(getHealthDataHistoricalAccessStartDate(TEST_APP_1_PACKAGE_NAME)) in testPermissionRestoredBeforeHCRestore_expectGrantTimeIsRestoredCorrectly()
270 assertThat(getHealthDataHistoricalAccessStartDate(TEST_APP_2_PACKAGE_NAME)) in testPermissionRestoredBeforeHCRestore_expectGrantTimeIsRestoredCorrectly()
285 getHealthDataHistoricalAccessStartDate(TEST_APP_1_PACKAGE_NAME); in testPermissionsRestoredAfterHCRestore_expectGrantTimeIsRestoredCorrectly()
301 assertThat(getHealthDataHistoricalAccessStartDate(TEST_APP_1_PACKAGE_NAME)) in testPermissionsRestoredAfterHCRestore_expectGrantTimeIsRestoredCorrectly()
311 assertThat(getHealthDataHistoricalAccessStartDate(TEST_APP_1_PACKAGE_NAME)) in testPermissionsRestoredAfterHCRestore_expectGrantTimeIsRestoredCorrectly()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/api/
DHealthPermissionManagerImpl.kt57 return packageName?.let { manager.getHealthDataHistoricalAccessStartDate(it) } in loadStartAccessDate()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/
DHealthPermissionManagerImplTest.kt108 verify(healthConnectManager, times(1)).getHealthDataHistoricalAccessStartDate(packageName) in loadStartAccessDate_callsHealthConnectManager()
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/migration/
DHealthConnectPermissionsMigrationTest.java108 mHealthConnectManager.getHealthDataHistoricalAccessStartDate( in readDataHistoricalAccessStartDate()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DPermissionHelper.java205 public static Instant getHealthDataHistoricalAccessStartDate(String packageName) { in getHealthDataHistoricalAccessStartDate() method in PermissionHelper
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthConnectManager.java519 public Instant getHealthDataHistoricalAccessStartDate(@NonNull String packageName) { in getHealthDataHistoricalAccessStartDate() method in HealthConnectManager