Home
last modified time | relevance | path

Searched refs:htonl (Results 1 – 25 of 37) sorted by relevance

12

/system/memory/lmkd/include/
Dlmkd.h83 packet[idx++] = htonl(LMK_TARGET); in lmkd_pack_set_target()
85 packet[idx++] = htonl(targets->minfree); in lmkd_pack_set_target()
86 packet[idx++] = htonl(targets->oom_adj_score); in lmkd_pack_set_target()
127 packet[0] = htonl(LMK_PROCPRIO); in lmkd_pack_set_procprio()
128 packet[1] = htonl(params->pid); in lmkd_pack_set_procprio()
129 packet[2] = htonl(params->uid); in lmkd_pack_set_procprio()
130 packet[3] = htonl(params->oomadj); in lmkd_pack_set_procprio()
131 packet[4] = htonl((int)params->ptype); in lmkd_pack_set_procprio()
155 packet[0] = htonl(LMK_PROCREMOVE); in lmkd_pack_set_procremove()
156 packet[1] = htonl(params->pid); in lmkd_pack_set_procremove()
[all …]
/system/bt/gd/hal/
Dsnoop_logger.cc59 return static_cast<uint64_t>(htonl(ll & 0xffffffff)) << 32 | htonl(ll >> 32); in htonll()
115 btsnoop_packet_header_t header = {.length_original = htonl(length), in capture()
116 .length_captured = htonl(length), in capture()
117 .flags = htonl(static_cast<uint32_t>(flags.to_ulong())), in capture()
/system/netd/server/
DWakeupControllerTest.cpp115 msg.uid = htonl(kUid); in TEST_F()
119 msg.gid = htonl(kGid); in TEST_F()
123 msg.ts.tv_sec = htonl(kTsNs / kNsPerS); in TEST_F()
124 msg.ts.tv_nsec = htonl(kTsNs % kNsPerS); in TEST_F()
176 msg.uid = htonl(kUid); in TEST_F()
180 msg.gid = htonl(kGid); in TEST_F()
184 msg.ts.tv_sec = htonl(kTsNs / kNsPerS); in TEST_F()
185 msg.ts.tv_nsec = htonl(kTsNs % kNsPerS); in TEST_F()
236 msg.uid = htonl(kUid); in TEST_F()
245 msg.gid = htonl(kGid); in TEST_F()
[all …]
DSockDiag.cpp141 in6_addr mapped = { .s6_addr32 = { 0, 0, htonl(0xffff), 0 } }; in sendDumpRequest()
252 return IN_LOOPBACK(htonl(msg->id.idiag_src[0])) || in isLoopbackSocket()
253 IN_LOOPBACK(htonl(msg->id.idiag_dst[0])) || in isLoopbackSocket()
/system/netd/bpf_progs/
Doffload.c62 if (src32 != htonl(0x0064ff9b) && // 64:ff9b:/32 incl. XLAT464 WKP in do_forward()
63 (src32 & htonl(0xe0000000)) != htonl(0x20000000)) // 2000::/3 Global Unicast in do_forward()
Dbpf_net_helpers.h52 #define htonl(x) (__builtin_constant_p(x) ? ___constant_swab32(x) : __builtin_bswap32(x)) macro
54 #define ntohl(x) htonl(x)
/system/core/libnetutils/
Dchecksum.c93 uint32_t checksum_len = htonl(len); in ipv6_pseudo_header_checksum()
94 uint32_t checksum_next = htonl(protocol); in ipv6_pseudo_header_checksum()
/system/extras/alloc-stress/
Dalloc-stress.cpp160 lmk_procprio_cmd[0] = htonl(1); in write_oomadj_to_lmkd()
161 lmk_procprio_cmd[1] = htonl(getpid()); in write_oomadj_to_lmkd()
162 lmk_procprio_cmd[2] = htonl(getuid()); in write_oomadj_to_lmkd()
163 lmk_procprio_cmd[3] = htonl(oomadj); in write_oomadj_to_lmkd()
/system/bt/hci/src/
Dbtsnoop.cc416 return static_cast<uint64_t>(htonl(ll & 0xffffffff)) << 32 | in htonll()
417 htonl(ll >> 32); in htonll()
477 header.length_original = htonl(length_he); in btsnoop_write_packet()
485 blacklisted ? htonl(L2C_HEADER_SIZE) : header.length_original; in btsnoop_write_packet()
487 header.flags = htonl(flags); in btsnoop_write_packet()
Dbtsnoop_net.cc111 addr.sin_addr.s_addr = htonl(LOCALHOST_); in listen_fn_()
/system/extras/tests/tcp_nuke_addr/
Dtcp_nuke_addr_test.cpp52 sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in bindRandomAddr()
54 while (sin.sin_addr.s_addr == htonl(INADDR_LOOPBACK)) { in bindRandomAddr()
/system/libbase/include/android-base/
Dendian.h59 #define htonl(x) __builtin_bswap32(x) macro
/system/libbase/
Dendian_test.cpp39 ASSERT_EQ(be32, htonl(le32)); in TEST()
/system/netd/tests/
Dsock_diag_test.cpp107 EXPECT_EQ(htonl(INADDR_LOOPBACK), msg->id.idiag_src[0]); in TEST_F()
131 (IN6_IS_ADDR_V4MAPPED(saddr) && saddr->s6_addr32[3] == htonl(INADDR_LOOPBACK))); in TEST_F()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dserver_port_factory.cc49 listen_address.sin_addr.s_addr = htonl(INADDR_ANY); in SetUp()
/system/bt/gd/facade/
Dfacade_main.cc133 addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
/system/netd/libnetdutils/
DInternetAddresses.cpp102 mData.ip.v4.s_addr &= htonl(mask); in IPPrefix()
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dtest_channel_transport.cc51 listen_address.sin_addr.s_addr = htonl(INADDR_ANY); in SetUp()
/system/core/adb/sysdeps/posix/
Dnetwork.cpp43 addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in loopback_addr4()
/system/core/libutils/
DUnicode.cpp27 # undef htonl
32 # define htonl(x) ntohl(x) macro
/system/bt/tools/hci/
Dmain.c184 addr.sin_addr.s_addr = htonl(0x7F000001); in write_hci_command()
/system/core/adb/pairing_connection/
Dpairing_connection.cpp207 network_header.payload = htonl(network_header.payload); in WriteHeader()
350 out_header.payload = htonl(outbuf.size()); in DoExchangePeerInfo()
/system/core/adb/pairing_auth/tests/
Dpairing_auth_test.cpp296 *payload = htonl(*payload + 1); in TEST_F()
319 *payload = htonl(*payload - 1); in TEST_F()
/system/core/libsysutils/src/
DSocketClient.cpp110 uint32_t tmp = htonl(len); in sendBinaryMsg()
/system/core/debuggerd/
Dcrash_dump.cpp171 uint32_t datum = htonl(pid); in activity_manager_notify()
176 datum = htonl(signal); in activity_manager_notify()

12