Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DFirstGrantTimeUnitTest.java159 assertThat(mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER)) in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
161 assertThat(mGrantTimeManager.getFirstGrantTime(anotherPackage, CURRENT_USER)) in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
177 mGrantTimeManager.getFirstGrantTime("android.unknown_package", CURRENT_USER); in testUnknownPackage_throwsException()
184 assertThat(mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER)).isEmpty(); in testCurrentPackage_intentNotSupported_grantTimeIsNull()
209 assertThat(mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER)) in testOnPermissionsChangedCalledWhileDeviceIsLocked_getGrantTimeNotNullAfterUnlock()
252 mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER); in testCurrentPackage_intentSupported_grantTimeIsNotNull()
274 assertThat(mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER)) in testCurrentPackage_noGrantTimeBackupBecameAvailable_grantTimeEqualToStaged()
279 assertThat(mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER)) in testCurrentPackage_noGrantTimeBackupBecameAvailable_grantTimeEqualToStaged()
288 assertThat(mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER)) in testCurrentPackage_noBackup_useRecordedTime()
291 assertThat(mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER)) in testCurrentPackage_noBackup_useRecordedTime()
[all …]
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DPermissionMigrationPayloadTest.java49 mExpect.that(payload.getFirstGrantTime()).isEqualTo(DEFAULT_FIRST_GRANT_TIME); in createdWithoutSetters_validData()
63 mExpect.that(payload.getFirstGrantTime()).isEqualTo(DEFAULT_FIRST_GRANT_TIME); in createdWithSetters_validData()
/packages/modules/HealthFitness/framework/java/android/health/connect/migration/
DPermissionMigrationPayload.java94 public Instant getFirstGrantTime() { in getFirstGrantTime() method in PermissionMigrationPayload
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DDataMigrationManager.java198 packageName, payload.getFirstGrantTime(), userHandle); in migratePermissions()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DHealthConnectPermissionHelper.java262 .getFirstGrantTime(packageName, checkedUser) in getHealthDataStartDateAccess()
DFirstGrantTimeManager.java99 public Optional<Instant> getFirstGrantTime( in getFirstGrantTime() method in FirstGrantTimeManager
/packages/modules/HealthFitness/framework/api/
Dsystem-current.txt290 method @NonNull public java.time.Instant getFirstGrantTime();