/system/memory/lmkd/include/ |
D | lmkd.h | 83 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/ |
D | snoop_logger.cc | 59 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/ |
D | WakeupControllerTest.cpp | 115 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 …]
|
D | SockDiag.cpp | 141 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/ |
D | offload.c | 62 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()
|
D | bpf_net_helpers.h | 52 #define htonl(x) (__builtin_constant_p(x) ? ___constant_swab32(x) : __builtin_bswap32(x)) macro 54 #define ntohl(x) htonl(x)
|
/system/core/libnetutils/ |
D | checksum.c | 93 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/ |
D | alloc-stress.cpp | 160 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/ |
D | btsnoop.cc | 416 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()
|
D | btsnoop_net.cc | 111 addr.sin_addr.s_addr = htonl(LOCALHOST_); in listen_fn_()
|
/system/extras/tests/tcp_nuke_addr/ |
D | tcp_nuke_addr_test.cpp | 52 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/ |
D | endian.h | 59 #define htonl(x) __builtin_bswap32(x) macro
|
/system/libbase/ |
D | endian_test.cpp | 39 ASSERT_EQ(be32, htonl(le32)); in TEST()
|
/system/netd/tests/ |
D | sock_diag_test.cpp | 107 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/ |
D | server_port_factory.cc | 49 listen_address.sin_addr.s_addr = htonl(INADDR_ANY); in SetUp()
|
/system/bt/gd/facade/ |
D | facade_main.cc | 133 addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
|
/system/netd/libnetdutils/ |
D | InternetAddresses.cpp | 102 mData.ip.v4.s_addr &= htonl(mask); in IPPrefix()
|
/system/bt/vendor_libs/test_vendor_lib/model/setup/ |
D | test_channel_transport.cc | 51 listen_address.sin_addr.s_addr = htonl(INADDR_ANY); in SetUp()
|
/system/core/adb/sysdeps/posix/ |
D | network.cpp | 43 addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in loopback_addr4()
|
/system/core/libutils/ |
D | Unicode.cpp | 27 # undef htonl 32 # define htonl(x) ntohl(x) macro
|
/system/bt/tools/hci/ |
D | main.c | 184 addr.sin_addr.s_addr = htonl(0x7F000001); in write_hci_command()
|
/system/core/adb/pairing_connection/ |
D | pairing_connection.cpp | 207 network_header.payload = htonl(network_header.payload); in WriteHeader() 350 out_header.payload = htonl(outbuf.size()); in DoExchangePeerInfo()
|
/system/core/adb/pairing_auth/tests/ |
D | pairing_auth_test.cpp | 296 *payload = htonl(*payload + 1); in TEST_F() 319 *payload = htonl(*payload - 1); in TEST_F()
|
/system/core/libsysutils/src/ |
D | SocketClient.cpp | 110 uint32_t tmp = htonl(len); in sendBinaryMsg()
|
/system/core/debuggerd/ |
D | crash_dump.cpp | 171 uint32_t datum = htonl(pid); in activity_manager_notify() 176 datum = htonl(signal); in activity_manager_notify()
|