Home
last modified time | relevance | path

Searched refs:ntohl (Results 1 – 24 of 24) sorted by relevance

/system/core/lmkd/include/
Dlmkd.h54 return (enum lmk_cmd)ntohl(pack[0]); in lmkd_pack_get_cmd()
69 target->minfree = ntohl(packet[target_idx * 2 + 1]); in lmkd_pack_get_target()
70 target->oom_adj_score = ntohl(packet[target_idx * 2 + 2]); in lmkd_pack_get_target()
102 params->pid = (pid_t)ntohl(packet[1]); in lmkd_pack_get_procprio()
103 params->uid = (uid_t)ntohl(packet[2]); in lmkd_pack_get_procprio()
104 params->oomadj = ntohl(packet[3]); in lmkd_pack_get_procprio()
130 params->pid = (pid_t)ntohl(packet[1]); in lmkd_pack_get_procremove()
165 params->min_oomadj = ntohl(packet[1]); in lmkd_pack_get_getkillcnt()
166 params->max_oomadj = ntohl(packet[2]); in lmkd_pack_get_getkillcnt()
/system/nfc/src/gki/common/
Dgki_inet.h25 #define ntohl(n) (n) macro
32 extern uint32_t ntohl(uint32_t n);
/system/netd/server/
DWakeupController.cpp141 args.timestampNs = ntohl(ts.tv_nsec) + (ntohl(ts.tv_sec) * kNsPerS); in init()
150 args.uid = ntohl(args.uid); in init()
154 args.gid = ntohl(args.gid); in init()
DClatdControllerTest.cpp53 return (ntohl(addr) & 0xff) == 2; in only2Free()
56 return (ntohl(addr) & 0xff) >= 6; in over6Free()
59 return (ntohl(addr) & 0xff) == 10; in only10Free()
DInterfaceController.cpp465 uint32_t m = ntohl(mask); in ipv4NetmaskToPrefixLength()
DClatdController.cpp164 in_addr_t ipv4 = ntohl(ip.s_addr); in selectIpv4Address()
/system/core/libnetutils/
Ddhcpclient.c214 info->lease = ntohl(info->lease); in decode_dhcp_msg()
272 ntohl(msg->xid), ntohs(msg->secs), ntohs(msg->flags), len); in dump_dhcp_msg()
362 if (verbose) ALOGD("Wrong Xid 0x%x != 0x%x\n", ntohl(reply->xid), in is_valid_reply()
363 ntohl(msg->xid)); in is_valid_reply()
Difc_utils.c83 uint32_t m = (uint32_t)ntohl(mask); in ipv4NetmaskToPrefixLength()
/system/core/base/include/android-base/
Dendian.h60 #define ntohl(x) __builtin_bswap32(x) macro
/system/core/base/
Dendian_test.cpp43 ASSERT_EQ(le32, ntohl(be32)); in TEST()
/system/core/libcutils/
Drecord_stream.cpp85 len = ntohl(*((uint32_t *)p_begin)); in getEndOfRecord()
/system/netd/bpf_progs/
Dclatd.c49 #define ntohl(x) htonl(x) macro
/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h83 if (v4a.s_addr != v4b.s_addr) return (ntohl(v4a.s_addr) < ntohl(v4b.s_addr));
/system/core/libutils/
DUnicode.cpp31 # define ntohl(x) ( ((x) << 24) | (((x) >> 24) & 255) | (((x) << 8) & 0xff0000) | (((x) >> 8) & … macro
32 # define htonl(x) ntohl(x)
/system/core/libsysutils/src/
DNetlinkEvent.cpp293 uid = ntohl(nlAttrU32(uid_attr)); in parseNfPacketMessage()
475 const uint32_t lifetime = ntohl(rndss_opt->nd_opt_rdnss_lifetime); in parseNdUserOptMessage()
/system/core/gatekeeperd/tests/
Dgatekeeper_test.cpp86 ASSERT_EQ((uint32_t) HW_AUTH_PASSWORD, ntohl(auth_token->authenticator_type)); in TEST()
/system/security/keystore/
Dblob.cpp418 const ssize_t encryptedLength = ntohl(rawBlob->length); in readBlob()
461 rawBlob->length = ntohl(rawBlob->length); in readBlob()
/system/netd/client/
DNetdClient.cpp284 *result = ntohl(tmp); in readBE32()
/system/netd/resolv/
Dgetaddrinfo.cpp1040 unsigned long int na = ntohl(addr4->sin_addr.s_addr); in _get_scope()
1065 ((*(const uint32_t*) (const void*) (&(a)->s6_addr[0]) == ntohl(0x20010000)))
DDnsProxyListener.cpp337 const uint32_t addr = ntohl(ia.s_addr); in isSpecialUseIPv4Address()
Dres_cache.cpp975 ttl = ntohl(*reinterpret_cast<const uint32_t*>(rdata)); in answer_getNegativeTTL()
Dresolver_test.cpp2018 EXPECT_EQ(static_cast<int>(ntohl(tmp)), td.expectErr); in TEST_F()
3357 return ntohl(tmp); in readBE32()
/system/netd/resolv/dns_responder/
Ddns_responder.cpp358 ttl = ntohl(intfields.ttl); in readIntFields()
/system/netd/tests/
Dbinder_test.cpp2446 uint32_t m = ntohl(mask); in ipv4NetmaskToPrefixLength()