Home
last modified time | relevance | path

Searched refs:stagedTime (Results 1 – 2 of 2) sorted by relevance

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DFirstGrantTimeManager.java354 Instant stagedTime = null; in tryUpdateGrantTimeFromStagedDataLocked() local
356 stagedTime = backupState.getPackageGrantTimes().get(packageName); in tryUpdateGrantTimeFromStagedDataLocked()
357 if (stagedTime != null) { in tryUpdateGrantTimeFromStagedDataLocked()
362 if (stagedTime == null) { in tryUpdateGrantTimeFromStagedDataLocked()
366 if (firstGrantTime.isPresent() && firstGrantTime.get().isBefore(stagedTime)) { in tryUpdateGrantTimeFromStagedDataLocked()
375 mUidToGrantTimeCache.put(uid, stagedTime); in tryUpdateGrantTimeFromStagedDataLocked()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DFirstGrantTimeUnitTest.java342 private UserGrantTimeState setupGrantTimeState(Instant currentTime, Instant stagedTime) { in setupGrantTimeState() argument
350 if (stagedTime != null) { in setupGrantTimeState()
351 backupState.setPackageGrantTime(SELF_PACKAGE_NAME, stagedTime); in setupGrantTimeState()