Home
last modified time | relevance | path

Searched refs:ttl (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/Connectivity/tests/unit/java/android/net/
DKeepalivePacketDataUtilTest.java70 final int ttl = 64; in testFromTcpKeepaliveStableParcelable() local
82 testInfo.ttl = ttl; in testFromTcpKeepaliveStableParcelable()
98 assertEquals(testInfo.ttl, resultData.ipTtl); in testFromTcpKeepaliveStableParcelable()
108 assertEquals(packet[8], ttl); in testFromTcpKeepaliveStableParcelable()
144 final int ttl = 64; in testToTcpKeepaliveStableParcelable() local
155 testInfo.ttl = ttl; in testToTcpKeepaliveStableParcelable()
169 assertEquals(resultData.ttl, ttl); in testToTcpKeepaliveStableParcelable()
187 final int ttl = 64; in testParseTcpKeepalivePacketData() local
198 testParcel.ttl = ttl; in testParseTcpKeepalivePacketData()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/util/
DKeepalivePacketDataUtil.java88 parcel.ttl = pkt.getIpTtl(); in toStableParcelable()
115 tcpDetails.tos, tcpDetails.ttl); in fromStableParcelable()
135 buf.put((byte) tcpDetails.ttl); // TTL in buildV4Packet()
195 final int ttl; in parseTcpKeepalivePacketData() local
203 ttl = buffer.get(8); in parseTcpKeepalivePacketData()
220 p.ttl = ttl; in parseTcpKeepalivePacketData()
/packages/modules/DnsResolver/
Dres_cache.cpp731 uint32_t ttl, rec_result = rr.ttl; in answer_getNegativeTTL() local
748 ttl = ntohl(*reinterpret_cast<const uint32_t*>(rdata)); in answer_getNegativeTTL()
749 if (ttl < rec_result) { in answer_getNegativeTTL()
750 rec_result = ttl; in answer_getNegativeTTL()
776 uint32_t result, ttl; in answer_getTTL() local
790 ttl = rr.ttl; in answer_getTTL()
791 if (n == 0 || ttl < result) { in answer_getTTL()
792 result = ttl; in answer_getTTL()
1331 uint32_t ttl; in resolv_cache_add() local
1373 ttl = answer_getTTL(answer, answerlen); in resolv_cache_add()
[all …]
Dres_debug.cpp170 (rr.ttl >> 16) & 0xff, ns_rr_class(rr), rr.ttl & 0xffff); in do_section()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/
DPreferenceSliceBuilderImpl.java219 public void setTtl(long ttl) { in setTtl() argument
220 long expiry = ttl == INFINITY ? INFINITY : System.currentTimeMillis() + ttl; in setTtl()
225 public void setTtl(@Nullable Duration ttl) { in setTtl() argument
226 setTtl(ttl == null ? INFINITY : ttl.toMillis()); in setTtl()
DPreferenceSliceBuilder.java94 public PreferenceSliceBuilder(@NonNull Context context, @NonNull Uri uri, long ttl) { in PreferenceSliceBuilder() argument
96 mImpl.setTtl(ttl); in PreferenceSliceBuilder()
110 @Nullable Duration ttl) { in PreferenceSliceBuilder() argument
112 mImpl.setTtl(ttl); in PreferenceSliceBuilder()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.h65 unsigned ttl; member
75 uint32_t ttl; member
184 void setTtl(unsigned ttl);
Ddns_responder.cpp338 ttl = ntohl(intfields.ttl); in readIntFields()
351 intfields.ttl = htonl(ttl); in writeIntFields()
585 void DNSResponder::setTtl(unsigned ttl) { in setTtl() argument
586 answer_record_ttl_sec_ = ttl; in setTtl()
825 .ttl = answer_record_ttl_sec_, // seconds in addAnswerRecords()
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp80 const unsigned ttl) { in makeAnswer() argument
90 .ttl = ttl, in makeAnswer()
256 std::chrono::seconds ttl = 10s) { in makeCacheEntry() argument
259 ce.answer = makeAnswer(ce.query, rdata, static_cast<unsigned>(ttl.count())); in makeCacheEntry()
Dresolv_unit_test.cpp70 const std::string& rdata, unsigned ttl = kAnswerRecordTtlSec) { in MakeAnswerRecord() argument
75 .ttl = ttl, in MakeAnswerRecord()
/packages/modules/adb/client/
Dmdnsresponder_client.cpp60 const char* hostname, const sockaddr* address, uint32_t ttl,
373 const char* hostname, const sockaddr* address, uint32_t ttl, in register_service_ip() argument
375 D("%s: sdref=%p flags=0x%08x error_code=%u ttl=%u", __func__, sdref, flags, error_code, ttl); in register_service_ip()
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/2/android/net/
DTcpKeepalivePacketDataParcelable.aidl12 int ttl;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/3/android/net/
DTcpKeepalivePacketDataParcelable.aidl29 int ttl;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/
DTcpKeepalivePacketDataParcelable.aidl12 int ttl;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/
DTcpKeepalivePacketDataParcelable.aidl29 int ttl;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/8/android/net/
DTcpKeepalivePacketDataParcelable.aidl29 int ttl;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/
DTcpKeepalivePacketDataParcelable.aidl29 int ttl;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/
DTcpKeepalivePacketDataParcelable.aidl12 int ttl;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/5/android/net/
DTcpKeepalivePacketDataParcelable.aidl29 int ttl;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/9/android/net/
DTcpKeepalivePacketDataParcelable.aidl30 int ttl;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/
DTcpKeepalivePacketDataParcelable.aidl31 int ttl;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/10/android/net/
DTcpKeepalivePacketDataParcelable.aidl31 int ttl;
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/
DTcpKeepalivePacketDataParcelable.aidl30 int ttl;
/packages/modules/Connectivity/Tethering/bpf_progs/
Doffload.c407 if (ip->ttl <= 1) TC_PUNT(LOW_TTL); in do_forward4()
577 const __be16 old_ttl_proto = *(__be16 *)&ip->ttl; in do_forward4()
580 bpf_skb_store_bytes(skb, ETH_IP4_OFFSET(ttl), &new_ttl_proto, sz2, 0); in do_forward4()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DTcpKeepaliveController.java203 tcpDetails.ttl = Os.getsockoptInt(fd, IPPROTO_IP, IP_TTL); in switchToRepairMode()

12