Home
last modified time | relevance | path

Searched refs:receiptTimeMillis (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsRecord.java65 private final long receiptTimeMillis; field in MdnsRecord
81 receiptTimeMillis = SystemClock.elapsedRealtime(); in MdnsRecord()
112 protected MdnsRecord(String[] name, int type, int cls, long receiptTimeMillis, in MdnsRecord() argument
117 this.receiptTimeMillis = receiptTimeMillis; in MdnsRecord()
152 return receiptTimeMillis; in getReceiptTime()
199 if (receiptTimeMillis == RECEIPT_TIME_NOT_SENT) { in getRemainingTTL()
203 long age = now - receiptTimeMillis; in getRemainingTTL()
266 if (receiptTimeMillis == RECEIPT_TIME_NOT_SENT) { in getStatus()
269 final long age = now - receiptTimeMillis; in getStatus()
DMdnsPointerRecord.java48 public MdnsPointerRecord(String[] name, long receiptTimeMillis, boolean cacheFlush, in MdnsPointerRecord() argument
50 super(name, TYPE_PTR, MdnsConstants.QCLASS_INTERNET, receiptTimeMillis, cacheFlush, in MdnsPointerRecord()
DMdnsKeyRecord.java50 public MdnsKeyRecord(@NonNull String[] name, long receiptTimeMillis, boolean cacheFlush, in MdnsKeyRecord() argument
52 super(name, TYPE_KEY, MdnsConstants.QCLASS_INTERNET, receiptTimeMillis, cacheFlush, in MdnsKeyRecord()
DMdnsTextRecord.java51 public MdnsTextRecord(String[] name, long receiptTimeMillis, boolean cacheFlush, long ttlMillis, in MdnsTextRecord() argument
53 super(name, TYPE_TXT, MdnsConstants.QCLASS_INTERNET, receiptTimeMillis, cacheFlush, in MdnsTextRecord()
DMdnsInetAddressRecord.java69 public MdnsInetAddressRecord(String[] name, long receiptTimeMillis, boolean cacheFlush, in MdnsInetAddressRecord() argument
72 MdnsConstants.QCLASS_INTERNET, receiptTimeMillis, cacheFlush, ttlMillis); in MdnsInetAddressRecord()
DMdnsServiceRecord.java58 public MdnsServiceRecord(String[] name, long receiptTimeMillis, boolean cacheFlush, in MdnsServiceRecord() argument
61 super(name, TYPE_SRV, MdnsConstants.QCLASS_INTERNET, receiptTimeMillis, cacheFlush, in MdnsServiceRecord()
DMdnsNsecRecord.java46 public MdnsNsecRecord(String[] name, long receiptTimeMillis, boolean cacheFlush, long ttlMillis, in MdnsNsecRecord() argument
48 super(name, TYPE_NSEC, DnsResolver.CLASS_IN, receiptTimeMillis, cacheFlush, ttlMillis); in MdnsNsecRecord()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsResponseTests.java98 private MdnsResponse makeCompleteResponse(int recordsTtlMillis, int receiptTimeMillis) { in makeCompleteResponse() argument
104 response.addPointerRecord(new MdnsPointerRecord(serviceType, receiptTimeMillis, in makeCompleteResponse()
106 response.setServiceRecord(new MdnsServiceRecord(serviceName, receiptTimeMillis, in makeCompleteResponse()
109 response.setTextRecord(new MdnsTextRecord(serviceName, receiptTimeMillis, in makeCompleteResponse()
112 hostname, receiptTimeMillis, true /* cacheFlush */, in makeCompleteResponse()
115 hostname, receiptTimeMillis, true /* cacheFlush */, in makeCompleteResponse()
DMdnsServiceTypeClientTests.java2229 long receiptTimeMillis) { in createResponse() argument
2240 receiptTimeMillis, in createResponse()
2249 receiptTimeMillis, in createResponse()
2263 receiptTimeMillis, in createResponse()
2277 receiptTimeMillis, in createResponse()