Home
last modified time | relevance | path

Searched refs:getPackageGrantTimes (Results 1 – 6 of 6) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DUserGrantTimeStateTest.java49 assertThat(state.getPackageGrantTimes()).hasSize(1); in testPackage_setPackage_containsSetPackageTime()
50 assertThat(state.getPackageGrantTimes().get(packageName)).isEqualTo(Instant.EPOCH); in testPackage_setPackage_containsSetPackageTime()
DFirstGrantTimeUnitTest.java168 assertThat(newUserGrantTimeState.getPackageGrantTimes().keySet()).hasSize(2); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
169 assertThat(newUserGrantTimeState.getPackageGrantTimes().get(SELF_PACKAGE_NAME)) in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
171 assertThat(newUserGrantTimeState.getPackageGrantTimes().get(anotherPackage)) in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
323 assertThat(state.getPackageGrantTimes().containsKey(SELF_PACKAGE_NAME)).isTrue(); in testWriteStagedData_getStagedStateForCurrentPackage_returnsCorrectState()
324 assertThat(state.getPackageGrantTimes().get(SELF_PACKAGE_NAME)).isEqualTo(stateTime); in testWriteStagedData_getStagedStateForCurrentPackage_returnsCorrectState()
DGrantTimePersistenceUnitTest.java216 assertThat(initialState.getPackageGrantTimes()) in assertRestoredStateIsCorrect()
217 .isEqualTo(restoredState.getPackageGrantTimes()); in assertRestoredStateIsCorrect()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DFirstGrantTimeManager.java356 stagedTime = backupState.getPackageGrantTimes().get(packageName); in tryUpdateGrantTimeFromStagedDataLocked()
377 backupState.getPackageGrantTimes().remove(packageName); in tryUpdateGrantTimeFromStagedDataLocked()
542 new ArraySet<>(recordedState.getPackageGrantTimes().keySet()); in removeInvalidPackagesFromGrantTimeStateForUser()
552 recordedState.getPackageGrantTimes().keySet().removeAll(recordedButNotValid); in removeInvalidPackagesFromGrantTimeStateForUser()
711 grantTimeState.getPackageGrantTimes().entrySet()) { in populateFromUserGrantTimeState()
DUserGrantTimeState.java61 Map<String, Instant> getPackageGrantTimes() { in getPackageGrantTimes() method in UserGrantTimeState
DGrantTimeXmlHelper.java137 userGrantTimeState.getPackageGrantTimes().entrySet()) { in writeGrantTimes()