/system/core/base/ |
D | parsenetaddress.cpp | 27 bool ParseNetAddress(const std::string& address, std::string* host, int* port, in ParseNetAddress() argument 33 size_t colons = std::count(address.begin(), address.end(), ':'); in ParseNetAddress() 34 size_t dots = std::count(address.begin(), address.end(), '.'); in ParseNetAddress() 36 if (address[0] == '[') { in ParseNetAddress() 38 if (address.rfind("]:") == std::string::npos) { in ParseNetAddress() 39 *error = StringPrintf("bad IPv6 address '%s'", address.c_str()); in ParseNetAddress() 42 *host = address.substr(1, (address.find("]:") - 1)); in ParseNetAddress() 43 port_str = address.substr(address.rfind("]:") + 2); in ParseNetAddress() 47 *host = address; in ParseNetAddress() 51 std::vector<std::string> pieces = Split(address, ":"); in ParseNetAddress() [all …]
|
/system/core/libcutils/ |
D | socket_network_client_windows.c | 43 struct addrinfo* address = NULL; in socket_network_client() local 46 if (getaddrinfo(host, port_str, &hints, &address) != 0 || address == NULL) { in socket_network_client() 47 if (address != NULL) { in socket_network_client() 48 freeaddrinfo(address); in socket_network_client() 54 SOCKET sock = socket(address->ai_family, address->ai_socktype, in socket_network_client() 55 address->ai_protocol); in socket_network_client() 57 freeaddrinfo(address); in socket_network_client() 61 if (connect(sock, address->ai_addr, address->ai_addrlen) == SOCKET_ERROR) { in socket_network_client() 63 freeaddrinfo(address); in socket_network_client() 67 freeaddrinfo(address); in socket_network_client()
|
/system/bt/types/ |
D | raw_address.cc | 33 std::copy(addr, addr + kLength, address); in RawAddress() 37 return base::StringPrintf("%02x:%02x:%02x:%02x:%02x:%02x", address[0], in ToString() 38 address[1], address[2], address[3], address[4], in ToString() 39 address[5]); in ToString() 57 new_addr.address[i] = strtol(token.c_str(), &temp, 16); in FromString() 65 bool RawAddress::IsValidAddress(const std::string& address) { in IsValidAddress() argument 67 return RawAddress::FromString(address, tmp); in IsValidAddress()
|
D | raw_address.h | 28 uint8_t address[kLength]; variable 34 return (std::memcmp(address, rhs.address, sizeof(address)) < 0); 37 return (std::memcmp(address, rhs.address, sizeof(address)) == 0); 53 static bool IsValidAddress(const std::string& address);
|
/system/bt/service/ipc/binder/ |
D | bluetooth_low_energy_binder_server.cc | 66 const String16& address, in Connect() argument 69 VLOG(2) << __func__ << " client_id: " << client_id << " address: " << address in Connect() 81 client->Connect(std::string(String8(address).string()), is_direct); in Connect() 86 const String16& address, in Disconnect() argument 88 VLOG(2) << __func__ << " client_id: " << client_id << " address: " << address; in Disconnect() 98 *_aidl_return = client->Disconnect(std::string(String8(address).string())); in Disconnect() 103 const String16& address, int mtu, in SetMtu() argument 105 VLOG(2) << __func__ << " client_id: " << client_id << " address: " << address in SetMtu() 116 *_aidl_return = client->SetMtu(std::string(String8(address).string()), mtu); in SetMtu() 121 bluetooth::LowEnergyClient* client, int status, const char* address, in OnConnectionState() argument [all …]
|
D | bluetooth_low_energy_binder_server.h | 58 Status Connect(int client_id, const String16& address, bool is_direct, 60 Status Disconnect(int client_id, const String16& address, 62 Status SetMtu(int client_id, const String16& address, int mtu, 67 const char* address, bool connected) override; 69 const char* address, int mtu) override;
|
/system/bt/stack/btm/ |
D | btm_ble_addr.cc | 54 p_cb->private_addr.address[5] = p->param_buf[0]; in btm_gen_resolve_paddr_cmpl() 55 p_cb->private_addr.address[4] = p->param_buf[1]; in btm_gen_resolve_paddr_cmpl() 56 p_cb->private_addr.address[3] = p->param_buf[2]; in btm_gen_resolve_paddr_cmpl() 92 p_cb->private_addr.address[2] = rand[0]; in btm_gen_resolve_paddr_low() 93 p_cb->private_addr.address[1] = rand[1]; in btm_gen_resolve_paddr_low() 94 p_cb->private_addr.address[0] = rand[2]; in btm_gen_resolve_paddr_low() 141 static_random.address[0] &= BLE_STATIC_PRIVATE_MSB_MASK; in btm_gen_non_resolve_paddr_cmpl() 188 comp[0] = random_bda.address[5]; in btm_ble_proc_resolve_x() 189 comp[1] = random_bda.address[4]; in btm_ble_proc_resolve_x() 190 comp[2] = random_bda.address[3]; in btm_ble_proc_resolve_x() [all …]
|
D | btm_ble_bgconn.cc | 52 RawAddress address; member 63 const uint8_t* a = x.address; in operator ()() 73 const RawAddress& address) { in background_connection_add() argument 74 auto map_iter = background_connections.find(address); in background_connection_add() 76 background_connections[address] = in background_connection_add() 77 background_connection_t{address, addr_type, false, 0, false}; in background_connection_add() 85 static void background_connection_remove(const RawAddress& address) { in background_connection_remove() argument 86 auto map_iter = background_connections.find(address); in background_connection_remove() 103 BTM_IsAclConnectionUp(connection->address, BT_TRANSPORT_LE); in background_connections_pending() 237 connection->address); in btm_execute_wl_dev_operation() [all …]
|
/system/core/base/include/android-base/ |
D | memory.h | 27 static inline T get_unaligned(const void* address) { in get_unaligned() argument 29 memcpy(&result, address, sizeof(T)); in get_unaligned() 34 static inline void put_unaligned(void* address, T v) { in put_unaligned() argument 35 memcpy(address, &v, sizeof(T)); in put_unaligned()
|
/system/bt/service/ |
D | low_energy_client.h | 38 return memcmp(a.address, b.address, RawAddress::kLength) < 0; in operator() 59 const char* address, bool connected) = 0; 63 const char* address, int mtu) = 0; 83 bool Connect(const std::string& address, bool is_direct); 87 bool Disconnect(const std::string& address); 91 bool SetMtu(const std::string& address, int mtu);
|
D | logging_helpers.cc | 146 addr->address[0], addr->address[1], addr->address[2], in BtAddrString() 147 addr->address[3], addr->address[4], addr->address[5]); in BtAddrString()
|
D | low_energy_client.cc | 53 bool LowEnergyClient::Connect(const std::string& address, bool is_direct) { in Connect() argument 54 VLOG(2) << __func__ << "Address: " << address << " is_direct: " << is_direct; in Connect() 57 RawAddress::FromString(address, bda); in Connect() 70 bool LowEnergyClient::Disconnect(const std::string& address) { in Disconnect() argument 71 VLOG(2) << __func__ << "Address: " << address; in Disconnect() 74 RawAddress::FromString(address, bda); in Disconnect() 81 LOG(WARNING) << "Can't disconnect, no existing connection to " << address; in Disconnect() 97 bool LowEnergyClient::SetMtu(const std::string& address, int mtu) { in SetMtu() argument 98 VLOG(2) << __func__ << "Address: " << address << " MTU: " << mtu; in SetMtu() 101 RawAddress::FromString(address, bda); in SetMtu() [all …]
|
/system/core/libpixelflinger/tests/arch-mips64/disassembler/ |
D | mips64_disassembler_test.cpp | 174 char temp[256], address[16]; in main() local 176 sprintf(address, "0x%lx", loc); in main() 177 strcat(temp, address); in main() 195 char temp[256], address[16]; in main() local 197 sprintf(address, "0x%08lx", loc); in main() 198 strcat(temp, address); in main()
|
/system/bt/service/ipc/ |
D | ipc_handler_linux.cc | 85 struct sockaddr_un address; in Run() local 86 memset(&address, 0, sizeof(address)); in Run() 87 address.sun_family = AF_UNIX; in Run() 88 strncpy(address.sun_path, path.value().c_str(), in Run() 89 sizeof(address.sun_path) - 1); in Run() 90 if (bind(server_socket.get(), (struct sockaddr*)&address, sizeof(address)) < in Run()
|
/system/core/adb/ |
D | transport_mdns.cpp | 53 const sockaddr* address, 122 void Connect(const sockaddr* address) { in Connect() argument 127 if (address->sa_family == AF_INET) { in Connect() 129 &reinterpret_cast<const sockaddr_in*>(address)->sin_addr; in Connect() 131 } else if (address->sa_family == AF_INET6) { in Connect() 133 &reinterpret_cast<const sockaddr_in6*>(address)->sin6_addr; in Connect() 141 if (!inet_ntop(address->sa_family, const_cast<void*>(ip_addr_data), in Connect() 164 const sockaddr* address, in register_service_ip() argument 170 data->Connect(address); in register_service_ip()
|
/system/bt/service/test/ |
D | ipc_linux_unittest.cc | 91 struct sockaddr_un address; in ConnectToTestSocket() local 92 memset(&address, 0, sizeof(address)); in ConnectToTestSocket() 93 address.sun_family = AF_UNIX; in ConnectToTestSocket() 94 strncpy(address.sun_path, kTestSocketPath, sizeof(address.sun_path) - 1); in ConnectToTestSocket() 97 connect(client_fd_.get(), (struct sockaddr*)&address, sizeof(address)); in ConnectToTestSocket()
|
/system/bt/service/common/android/bluetooth/ |
D | IBluetoothLowEnergy.aidl | 29 boolean Connect(int client_id, String address, boolean is_direct); in Connect() argument 30 boolean Disconnect(int client_id, String address); in Disconnect() argument 32 boolean SetMtu(int client_id, String address, int mtu); in SetMtu() argument
|
D | IBluetoothLowEnergyCallback.aidl | 24 void OnConnectionState(int status, int client_id, String address, boolean connected); in OnConnectionState() argument 25 void OnMtuChanged(int status, String address, int mtu); in OnMtuChanged() argument
|
/system/bt/service/doc/ |
D | IBluetoothLowEnergy.txt | 40 /* Initiates a BLE connection do device with address |address|. If 44 boolean Connect(in int client_id, in const char* address, 47 /* Disconnect from previously connected BLE device with address |address|. 50 boolean Disconnect(in int client_id, in const char* address); 53 * Sends request to set MTU to |mtu| for the device with address |address|. 57 boolean setMtu(in int client_id, in char* address, int mtu);
|
/system/bt/btcore/test/ |
D | property_test.cc | 31 EXPECT_EQ(addr0.address[0], ((uint8_t*)property->val)[0]); in TEST_F() 32 EXPECT_EQ(addr0.address[1], ((uint8_t*)property->val)[1]); in TEST_F() 33 EXPECT_EQ(addr0.address[2], ((uint8_t*)property->val)[2]); in TEST_F() 34 EXPECT_EQ(addr0.address[3], ((uint8_t*)property->val)[3]); in TEST_F() 35 EXPECT_EQ(addr0.address[4], ((uint8_t*)property->val)[4]); in TEST_F() 36 EXPECT_EQ(addr0.address[5], ((uint8_t*)property->val)[5]); in TEST_F() 41 EXPECT_EQ(addr0.address[0], addr1->address[0]); in TEST_F()
|
/system/bt/types/test/ |
D | raw_address_unittest.cc | 40 ASSERT_EQ(0x12, bdaddr.address[0]); in TEST() 41 ASSERT_EQ(0x34, bdaddr.address[1]); in TEST() 42 ASSERT_EQ(0x56, bdaddr.address[2]); in TEST() 43 ASSERT_EQ(0x78, bdaddr.address[3]); in TEST() 44 ASSERT_EQ(0x9A, bdaddr.address[4]); in TEST() 45 ASSERT_EQ(0xBC, bdaddr.address[5]); in TEST()
|
/system/core/libnetutils/include/netutils/ |
D | ifc.h | 45 extern int ifc_add_address(const char *name, const char *address, 47 extern int ifc_del_address(const char *name, const char *address, 58 extern int ifc_configure(const char *ifname, in_addr_t address,
|
/system/core/libziparchive/ |
D | zip_archive_private.h | 98 explicit MappedZipFile(void* address, size_t length) in MappedZipFile() argument 101 base_ptr_(address), in MappedZipFile() 179 ZipArchive(void* address, size_t length) in ZipArchive() 180 : mapped_zip(address, length), in ZipArchive()
|
/system/bt/service/client/ |
D | main.cc | 190 Status OnConnectionState(int status, int client_id, const String16& address, in OnConnectionState() argument 194 << address << " connected: " << (connected ? "true" : "false") << " ] " in OnConnectionState() 201 Status OnMtuChanged(int status, const String16& address, int mtu) override { in OnMtuChanged() argument 203 cout << COLOR_BOLDWHITE "MTU changed: " << COLOR_BOLDYELLOW "[" << address in OnMtuChanged() 378 String16 address; in HandleGetLocalAddress() local 379 bt_iface->GetAddress(&address); in HandleGetLocalAddress() 380 PrintFieldAndValue("Adapter address", std::string(String8(address).string())); in HandleGetLocalAddress() 408 String16 address; in HandleAdapterInfo() local 409 bt_iface->GetAddress(&address); in HandleAdapterInfo() 410 PrintFieldAndValue("\tAddress", std::string(String8(address).string())); in HandleAdapterInfo() [all …]
|
/system/extras/perfprofd/ |
D | perf_profile.proto | 11 // Address here is the offset of the instruction address to the load address 15 // address[0] is the leaf of the call stack. 16 repeated uint64 address = 1; field 24 // Total count that the address/address_range is sampled. 32 // Start instruction address of a range. 39 // Total count that the address/address_range is sampled.
|