Searched refs:getPackageGrantTimes (Results 1 – 6 of 6) sorted by relevance
49 assertThat(state.getPackageGrantTimes()).hasSize(1); in testPackage_setPackage_containsSetPackageTime()50 assertThat(state.getPackageGrantTimes().get(packageName)).isEqualTo(Instant.EPOCH); in testPackage_setPackage_containsSetPackageTime()
168 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()
216 assertThat(initialState.getPackageGrantTimes()) in assertRestoredStateIsCorrect()217 .isEqualTo(restoredState.getPackageGrantTimes()); in assertRestoredStateIsCorrect()
356 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()
61 Map<String, Instant> getPackageGrantTimes() { in getPackageGrantTimes() method in UserGrantTimeState
137 userGrantTimeState.getPackageGrantTimes().entrySet()) { in writeGrantTimes()