/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ipmemorystore/ |
D | RelevanceUtilsTests.java | 67 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/ |
D | IpClientLinkObserver.java | 449 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/ |
D | expired_source.json | 25 // 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
|
D | event_report_windows.json | 22 // 2592000 s clamped down to expiry.
|
D | aggregatable_report_window.json | 65 // Default to expiry after rounding (86400 seconds).
|
/packages/modules/NetworkStack/src/com/android/networkstack/ipmemorystore/ |
D | RelevanceUtils.java | 233 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()
|
D | IpMemoryStoreDatabase.java | 286 @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/ |
D | AggregateEncryptionKey.java | 39 @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()
|
D | AggregateEncryptionKeyFetcher.java | 132 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/ |
D | AsyncSourceFetcher.java | 132 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/ |
D | SourceNoiseHandlerTest.java | 609 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/ |
D | IPv6ProvisioningLossQuirk.java | 35 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/ |
D | AttributionConfig.java | 295 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/ |
D | driver.rs | 151 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()
|
D | mod.rs | 65 pub expiry: BootTime, field
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | AsyncSourceFetcherTest.java | 1097 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/ |
D | driver.rs | 90 expiry: BootTime, in query() 94 network.query(network::Query { query, response, expiry }).await?; in query()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/ |
D | RegistrationBinder.java | 164 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/ |
D | driver.rs | 101 pub expiry: Option<BootTime>, field 405 if let Some(expiry) = request.expiry { in handle_request() 406 if BootTime::now() > expiry { in handle_request()
|
D | mod.rs | 221 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/ |
D | TetheringNotificationUpdaterTest.kt | 273 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/ |
D | ParcelableTests.java | 118 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/ |
D | EncoderLogicHandler.java | 292 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/ |
D | XnaSourceCreator.java | 267 .map(expiry -> (parentSource.getEventTime() + expiry))
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | DownloadMmsAction.java | 245 final long expiry = actionParameters.getLong(KEY_EXPIRY); in doBackgroundWork() local 263 autoDownload, receivedTimestampRoundedToSecond / 1000L, expiry / 1000L, extras); in doBackgroundWork()
|