Home
last modified time | relevance | path

Searched refs:expiry (Results 1 – 25 of 52) sorted by relevance

123

/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ipmemorystore/
DRelevanceUtilsTests.java67 long expiry = System.currentTimeMillis();
69 final long firstBump = RelevanceUtils.bumpExpiryDate(expiry);
73 assertTrue(firstBump > expiry);
75 expiry = 0;
80 final long newExpiry = RelevanceUtils.bumpExpiryDuration(expiry);
81 if (newExpiry == expiry) {
87 assertTrue(newExpiry > expiry);
90 assertTrue(newExpiry - expiry < lastDifference);
91 lastDifference = newExpiry - expiry;
92 expiry = newExpiry;
[all …]
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java449 final long expiry) { in updatePref64() argument
454 mNat64PrefixExpiry = expiry; in updatePref64()
455 if (expiry > now) schedulePref64Alarm(); in updatePref64()
468 if (expiry > now) { in updatePref64()
471 mNat64PrefixExpiry = expiry; in updatePref64()
482 final long expiry = now + TimeUnit.SECONDS.toMillis(opt.lifetime); in processPref64Option() local
483 updatePref64(opt.prefix, now, expiry); in processPref64Option()
735 long expiry = now + 1000 * lifetime; in addServers() local
747 if (!updateExistingEntry(address, expiry)) { in addServers()
750 if (expiry > now) { in addServers()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_interop_tests/
Dexpired_source.json25 // Should result in an event-level report as the expiry time was clamped
133 // Should not result in an aggregatable report as the expiry time was
161 // Should result in an event-level report as the expiry time was not rounded.
182 // Should result in an event-level report as the expiry time was rounded
Devent_report_windows.json22 // 2592000 s clamped down to expiry.
Daggregatable_report_window.json65 // Default to expiry after rounding (86400 seconds).
/packages/modules/NetworkStack/src/com/android/networkstack/ipmemorystore/
DRelevanceUtils.java233 public static int computeRelevanceForNow(final long expiry) { in computeRelevanceForNow() argument
234 return computeRelevanceForTargetDate(expiry, System.currentTimeMillis()); in computeRelevanceForNow()
252 public static int computeRelevanceForTargetDate(final long expiry, final long target) { in computeRelevanceForTargetDate() argument
253 final long delay = expiry - target; in computeRelevanceForTargetDate()
DIpMemoryStoreDatabase.java286 @Nullable final NetworkAttributes attributes, final long expiry) { in toContentValues() argument
289 values.put(NetworkAttributesContract.COLNAME_EXPIRYDATE, expiry); in toContentValues()
310 final long expiry = getLong(cursor, NetworkAttributesContract.COLNAME_EXPIRYDATE, -1L); in readNetworkAttributesLine() local
311 if (expiry < System.currentTimeMillis()) return null; in readNetworkAttributesLine()
368 final long expiry = getExpiry(db, key); in getRelevance() local
369 return expiry < 0 ? (int) expiry : RelevanceUtils.computeRelevanceForNow(expiry); in getRelevance()
375 final long expiry, @Nullable final NetworkAttributes attributes) { in storeNetworkAttributes() argument
376 final ContentValues cv = toContentValues(key, attributes, expiry); in storeNetworkAttributes()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKey.java39 @NonNull long expiry, in AggregateEncryptionKey() argument
44 mExpiry = expiry; in AggregateEncryptionKey()
137 public @NonNull Builder setExpiry(@NonNull long expiry) { in setExpiry() argument
138 mExpiry = expiry; in setExpiry()
DAggregateEncryptionKeyFetcher.java132 long expiry = eventTime + TimeUnit.SECONDS.toMillis(maxAge); in parseResponse() local
139 keyBuilder.setExpiry(expiry); in parseResponse()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncSourceFetcher.java132 long expiry; in parseCommonSourceParams() local
143 expiry = expiryUnsigned.getValue(); in parseCommonSourceParams()
145 expiry = roundSecondsToWholeDays(expiry); in parseCommonSourceParams()
148 expiry = mFlags.getMeasurementMaxReportingRegisterSourceExpirationInSeconds(); in parseCommonSourceParams()
150 builder.setExpiryTime(sourceEventTime + TimeUnit.SECONDS.toMillis(expiry)); in parseCommonSourceParams()
151 long effectiveExpiry = expiry; in parseCommonSourceParams()
164 eventReportWindow = Math.min(expiry, eventReportWindowUnsigned.getValue()); in parseCommonSourceParams()
182 aggregateReportWindow = Math.min(expiry, aggregateReportWindowUnsigned.getValue()); in parseCommonSourceParams()
184 aggregateReportWindow = expiry; in parseCommonSourceParams()
412 expiry); in parseCommonSourceParams()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/noising/
DSourceNoiseHandlerTest.java609 long expiry = System.currentTimeMillis(); in testFakeReportGeneration() local
617 .setEventReportWindow(expiry) in testFakeReportGeneration()
628 .setEventReportWindow(expiry) in testFakeReportGeneration()
636 .setEventReportWindow(expiry) in testFakeReportGeneration()
646 .setEventReportWindow(expiry) in testFakeReportGeneration()
656 .setEventReportWindow(expiry) in testFakeReportGeneration()
667 .setEventReportWindow(expiry) in testFakeReportGeneration()
678 .setEventReportWindow(expiry) in testFakeReportGeneration()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/networkstack/aidl/quirks/
DIPv6ProvisioningLossQuirk.java35 public IPv6ProvisioningLossQuirk(final int count, final long expiry) { in IPv6ProvisioningLossQuirk() argument
37 mQuirkExpiry = expiry; in IPv6ProvisioningLossQuirk()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DAttributionConfig.java295 long expiry = attributionConfigsJson.getLong(EXPIRY); in Builder() local
298 expiry, in Builder()
361 public Builder setExpiry(@Nullable Long expiry) { in setExpiry() argument
362 mExpiry = expiry; in setExpiry()
/packages/modules/DnsResolver/doh/network/
Ddriver.rs151 let expiry = BootTime::now().checked_add(probe_timeout); in force_probe() localVariable
153 match self.connection.query(dns_request, expiry).await { in force_probe()
202 let stream_fut = self.connection.query(request, Some(query.expiry)).await?; in send_query()
Dmod.rs65 pub expiry: BootTime, field
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncSourceFetcherTest.java1097 long expiry = in testBasicSourceRequestMinimumFields() local
1101 assertEquals(expiry, result.getExpiryTime()); in testBasicSourceRequestMinimumFields()
1103 assertEquals(expiry, result.getAggregatableReportWindow()); in testBasicSourceRequestMinimumFields()
1168 long expiry = result.getEventTime() + TimeUnit.DAYS.toMillis(1); in sourceRequest_expiry_tooEarly_setToMin() local
1169 assertEquals(expiry, result.getExpiryTime()); in sourceRequest_expiry_tooEarly_setToMin()
1171 assertEquals(expiry, result.getAggregatableReportWindow()); in sourceRequest_expiry_tooEarly_setToMin()
1208 long expiry = in sourceRequest_expiry_tooLate_setToMax() local
1212 assertEquals(expiry, result.getExpiryTime()); in sourceRequest_expiry_tooLate_setToMax()
1214 assertEquals(expiry, result.getAggregatableReportWindow()); in sourceRequest_expiry_tooLate_setToMax()
1255 long expiry = result.getEventTime() + TimeUnit.DAYS.toMillis(2); in sourceRequest_expiryCloserToUpperBound_roundsUp() local
[all …]
/packages/modules/DnsResolver/doh/dispatcher/
Ddriver.rs90 expiry: BootTime, in query()
94 network.query(network::Query { query, response, expiry }).await?; in query()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/
DRegistrationBinder.java164 for (Instant expiry : expirations) { in tryToAssignKey()
165 Log.i(TAG, "No key assigned, looking for an available key with expiry of " + expiry); in tryToAssignKey()
168 expiry, mClientUid, keyId); in tryToAssignKey()
/packages/modules/DnsResolver/doh/connection/
Ddriver.rs101 pub expiry: Option<BootTime>, field
405 if let Some(expiry) = request.expiry { in handle_request()
406 if BootTime::now() > expiry { in handle_request()
Dmod.rs221 expiry: Option<BootTime>, in query()
224 self.request_tx.send(Request { headers, response_tx, expiry }).await?; in query()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringNotificationUpdaterTest.kt273 val expiry = System.currentTimeMillis() + timeoutMs in Handler() constant
275 while (System.currentTimeMillis() < expiry && hasMatchingMessages()) { in Handler()
281 .coerceAtMost(expiry - System.currentTimeMillis()) in Handler()
285 val timeout = expiry - System.currentTimeMillis() in Handler()
/packages/modules/Connectivity/tests/unit/java/android/net/ipmemorystore/
DParcelableTests.java118 final long expiry = System.currentTimeMillis() + 7_200_000; in testIPv6ProvisioningLossQuirkParceling() local
121 parcelable.quirkExpiry = expiry; // quirk info will expire in two hours in testIPv6ProvisioningLossQuirkParceling()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/signals/
DEncoderLogicHandler.java292 public List<AdTechIdentifier> getBuyersWithStaleEncoders(Instant expiry) { in getBuyersWithStaleEncoders() argument
293 return mEncoderLogicMetadataDao.getBuyersWithEncodersBeforeTime(expiry); in getBuyersWithStaleEncoders()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/attribution/
DXnaSourceCreator.java267 .map(expiry -> (parentSource.getEventTime() + expiry))
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DDownloadMmsAction.java245 final long expiry = actionParameters.getLong(KEY_EXPIRY); in doBackgroundWork() local
263 autoDownload, receivedTimestampRoundedToSecond / 1000L, expiry / 1000L, extras); in doBackgroundWork()

123