Searched refs:firstGrantTime (Results 1 – 6 of 6) sorted by relevance
59 @NonNull Instant firstGrantTime, in PermissionMigrationPayload() argument62 mFirstGrantTime = firstGrantTime; in PermissionMigrationPayload()114 public Builder(@NonNull String holdingPackageName, @NonNull Instant firstGrantTime) { in Builder() argument116 requireNonNull(firstGrantTime); in Builder()119 mFirstGrantTime = firstGrantTime; in Builder()132 public Builder setFirstGrantTime(@NonNull Instant firstGrantTime) { in setFirstGrantTime() argument133 requireNonNull(firstGrantTime); in setFirstGrantTime()134 mFirstGrantTime = firstGrantTime; in setFirstGrantTime()
188 Instant firstGrantTime = in parseFirstGrantTimes() local192 packagePermissions.put(packageName, firstGrantTime); in parseFirstGrantTimes()199 Instant firstGrantTime = in parseFirstGrantTimes() local203 sharedUserPermissions.put(sharedUserName, firstGrantTime); in parseFirstGrantTimes()
113 Optional<Instant> firstGrantTime = getGrantTimeReadLocked(uid); in getFirstGrantTime() local114 if (firstGrantTime.isPresent()) { in getFirstGrantTime()115 return firstGrantTime; in getFirstGrantTime()365 Optional<Instant> firstGrantTime = mUidToGrantTimeCache.get(uid); in tryUpdateGrantTimeFromStagedDataLocked() local366 if (firstGrantTime.isPresent() && firstGrantTime.get().isBefore(stagedTime)) { in tryUpdateGrantTimeFromStagedDataLocked()
179 void assertStartAccessDateIsAdequate(Instant firstGrantTime) { in assertStartAccessDateIsAdequate() argument180 assertThat(firstGrantTime).isNotNull(); in assertStartAccessDateIsAdequate()184 assertThat(currentTime.minus(lowerBound).isAfter(firstGrantTime)).isTrue(); in assertStartAccessDateIsAdequate()185 assertThat(currentTime.minus(upperBound).isBefore(firstGrantTime)).isTrue(); in assertStartAccessDateIsAdequate()
87 Instant firstGrantTime = Instant.now(); in testMigratePermissions_permissionFirstGrantTimeMigrated() local92 new PermissionMigrationPayload.Builder(DEFAULT_APP_PACKAGE, firstGrantTime) in testMigratePermissions_permissionFirstGrantTimeMigrated()99 assertThat(firstGrantTime.minus(GRANT_TIME_TO_START_ACCESS_DATE_PERIOD).toEpochMilli()) in testMigratePermissions_permissionFirstGrantTimeMigrated()
251 Optional<Instant> firstGrantTime = in testCurrentPackage_intentSupported_grantTimeIsNotNull() local253 assertThat(firstGrantTime).isPresent(); in testCurrentPackage_intentSupported_grantTimeIsNotNull()255 assertThat(firstGrantTime.get()).isGreaterThan(Instant.now().minusSeconds((long) 1e3)); in testCurrentPackage_intentSupported_grantTimeIsNotNull()256 assertThat(firstGrantTime.get()).isLessThan(Instant.now().plusSeconds((long) 1e3)); in testCurrentPackage_intentSupported_grantTimeIsNotNull()257 firstGrantTime.ifPresent( in testCurrentPackage_intentSupported_grantTimeIsNotNull()