Home
last modified time | relevance | path

Searched refs:getTtl (Results 1 – 14 of 14) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsResponseTests.java250 assertEquals(0, response.getPointerRecords().get(0).getTtl()); in addRecords_ttlChange()
256 assertEquals(0, response.getInet6AddressRecord().getTtl()); in addRecords_ttlChange()
262 assertEquals(0, response.getInet4AddressRecord().getTtl()); in addRecords_ttlChange()
267 assertEquals(0, response.getServiceRecord().getTtl()); in addRecords_ttlChange()
272 assertEquals(0, response.getTextRecord().getTtl()); in addRecords_ttlChange()
DMdnsRecordTests.java314 assertEquals(60_000L, record.getTtl()); in testNsecRecord()
471 assertTrue(keyRecord.getTtl() > 0); // Not a question so the TTL is greater than 0 in testKeyRecord()
484 assertTrue(keyRecord.getTtl() > 0); // Not a question, so the TTL is greater than 0 in testKeyRecord()
493 assertEquals(0, keyRecord.getTtl()); in testKeyRecord()
511 assertEquals(20_000, keyRecord.getTtl()); in testKeyRecord()
DMdnsServiceTypeClientTests.java1518 originalPtr.getReceiptTime(), originalPtr.getCacheFlush(), originalPtr.getTtl(), in testProcessResponse_SubtypeDiscoveryLimitedToSubtype()
1601 originalPtr.getReceiptTime(), originalPtr.getCacheFlush(), originalPtr.getTtl(), in testProcessResponse_SubtypeChange()
1619 originalPtr.getReceiptTime(), originalPtr.getCacheFlush(), originalPtr.getTtl(), in testProcessResponse_SubtypeChange()
1973 originalPtr.getCacheFlush(), originalPtr.getTtl(), originalPtr.getPointer())); in testSendQueryWithKnownAnswers()
2040 originalPtr.getCacheFlush(), originalPtr.getTtl(), originalPtr.getPointer())); in testSendQueryWithSubTypeWithKnownAnswers()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsResponse.java82 return a == null || a.getTtl() == b.getTtl(); in recordsAreSame()
382 if (record.getTtl() == 0) { in isGoodbye()
DMdnsRecordRepository.java515 srvRecord.getTtl(), in makeProbingInfo()
526 inetAddressRecord.getTtl(), in makeProbingInfo()
544 keyRecord.getTtl(), in makeProbingInfo()
792 if (answer.equals(knownAnswer) && knownAnswer.getTtl() > (answer.getTtl() / 2)) { in isKnownAnswer()
955 if (minTtl > record.getTtl()) minTtl = record.getTtl(); in addNsecRecordsForUniqueNames()
DMdnsReplySender.java169 if (idx >= 0 && knownAnswer.getTtl() > answers.valueAt(idx).getTtl() / 2) { in queueReply()
DMdnsAdvertisingOptions.java74 public Duration getTtl() { in getTtl() method in MdnsAdvertisingOptions
DMdnsRecord.java161 public final long getTtl() { in getTtl() method in MdnsRecord
DMdnsInterfaceAdvertiser.java275 mRecordRepository.addService(id, service, advertisingOptions.getTtl()); in addService()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/util/
DMdnsUtils.java337 return mdnsRecord.getTtl() > 0 in isRecordRenewalNeeded()
338 && mdnsRecord.getRemainingTTL(now) <= mdnsRecord.getTtl() / 2; in isRecordRenewalNeeded()
/packages/modules/Connectivity/framework-t/src/android/net/nsd/
DAdvertisingRequest.java121 public Duration getTtl() { in getTtl() method in AdvertisingRequest
/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
DNsdManagerTest.java249 assertEquals(request.getTtl(), capturedRequest.getTtl()); in testRegisterServiceWithCustomTtl()
/packages/modules/Connectivity/service-t/src/com/android/server/
DNsdService.java1040 if (!checkTtl(advertisingRequest.getTtl(), clientInfo)) { in processMessage()
1051 .setTtl(advertisingRequest.getTtl()) in processMessage()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNsdServiceTest.java1624 MdnsAdvertisingOptions.newBuilder().setTtl(request.getTtl()).build(); in runValidTtlAdvertisingTest()