/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsResponseTests.java | 250 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()
|
D | MdnsRecordTests.java | 314 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()
|
D | MdnsServiceTypeClientTests.java | 1518 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/ |
D | MdnsResponse.java | 82 return a == null || a.getTtl() == b.getTtl(); in recordsAreSame() 382 if (record.getTtl() == 0) { in isGoodbye()
|
D | MdnsRecordRepository.java | 515 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()
|
D | MdnsReplySender.java | 169 if (idx >= 0 && knownAnswer.getTtl() > answers.valueAt(idx).getTtl() / 2) { in queueReply()
|
D | MdnsAdvertisingOptions.java | 74 public Duration getTtl() { in getTtl() method in MdnsAdvertisingOptions
|
D | MdnsRecord.java | 161 public final long getTtl() { in getTtl() method in MdnsRecord
|
D | MdnsInterfaceAdvertiser.java | 275 mRecordRepository.addService(id, service, advertisingOptions.getTtl()); in addService()
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/util/ |
D | MdnsUtils.java | 337 return mdnsRecord.getTtl() > 0 in isRecordRenewalNeeded() 338 && mdnsRecord.getRemainingTTL(now) <= mdnsRecord.getTtl() / 2; in isRecordRenewalNeeded()
|
/packages/modules/Connectivity/framework-t/src/android/net/nsd/ |
D | AdvertisingRequest.java | 121 public Duration getTtl() { in getTtl() method in AdvertisingRequest
|
/packages/modules/Connectivity/tests/unit/java/android/net/nsd/ |
D | NsdManagerTest.java | 249 assertEquals(request.getTtl(), capturedRequest.getTtl()); in testRegisterServiceWithCustomTtl()
|
/packages/modules/Connectivity/service-t/src/com/android/server/ |
D | NsdService.java | 1040 if (!checkTtl(advertisingRequest.getTtl(), clientInfo)) { in processMessage() 1051 .setTtl(advertisingRequest.getTtl()) in processMessage()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | NsdServiceTest.java | 1624 MdnsAdvertisingOptions.newBuilder().setTtl(request.getTtl()).build(); in runValidTtlAdvertisingTest()
|