Searched refs:getFirstGrantTime (Results 1 – 7 of 7) sorted by relevance
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/ |
D | FirstGrantTimeUnitTest.java | 159 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/ |
D | PermissionMigrationPayloadTest.java | 49 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/ |
D | PermissionMigrationPayload.java | 94 public Instant getFirstGrantTime() { in getFirstGrantTime() method in PermissionMigrationPayload
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/ |
D | DataMigrationManager.java | 198 packageName, payload.getFirstGrantTime(), userHandle); in migratePermissions()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/ |
D | HealthConnectPermissionHelper.java | 262 .getFirstGrantTime(packageName, checkedUser) in getHealthDataStartDateAccess()
|
D | FirstGrantTimeManager.java | 99 public Optional<Instant> getFirstGrantTime( in getFirstGrantTime() method in FirstGrantTimeManager
|
/packages/modules/HealthFitness/framework/api/ |
D | system-current.txt | 290 method @NonNull public java.time.Instant getFirstGrantTime();
|