/system/core/base/include/android-base/ |
H A D | memory.h | 27 static inline T get_unaligned(const void* address) { argument 29 memcpy(&result, address, sizeof(T)); 34 static inline void put_unaligned(void* address, T v) { argument 35 memcpy(address, &v, sizeof(T));
|
/system/core/libcutils/ |
H A D | socket_network_client_windows.c | 38 // First resolve the host and port parameters into a usable network address. 43 struct addrinfo* address = NULL; local 46 if (getaddrinfo(host, port_str, &hints, &address) != 0 || address == NULL) { 47 if (address != NULL) { 48 freeaddrinfo(address); 54 SOCKET sock = socket(address->ai_family, address->ai_socktype, 55 address->ai_protocol); 57 freeaddrinfo(address); [all...] |
/system/bt/types/ |
H A D | raw_address.cc | 33 std::copy(addr, addr + kLength, address); 37 return base::StringPrintf("%02x:%02x:%02x:%02x:%02x:%02x", address[0], 38 address[1], address[2], address[3], address[4], 39 address[5]); 57 new_addr.address[i] = strtol(token.c_str(), &temp, 16); 65 bool RawAddress::IsValidAddress(const std::string& address) { argument 67 return RawAddress::FromString(address, tm [all...] |
H A D | raw_address.h | 28 uint8_t address[kLength]; member in class:final 34 return (std::memcmp(address, rhs.address, sizeof(address)) < 0); 37 return (std::memcmp(address, rhs.address, sizeof(address)) == 0); 49 // not represent a Bluetooth address, |to| is not modified and this function 53 static bool IsValidAddress(const std::string& address);
|
/system/core/base/ |
H A D | parsenetaddress.cpp | 27 bool ParseNetAddress(const std::string& address, std::string* host, int* port, argument 33 size_t colons = std::count(address.begin(), address.end(), ':'); 34 size_t dots = std::count(address.begin(), address.end(), '.'); 36 if (address[0] == '[') { 38 if (address.rfind("]:") == std::string::npos) { 39 *error = StringPrintf("bad IPv6 address '%s'", address.c_str()); 42 *host = address [all...] |
/system/core/libpixelflinger/tests/arch-mips64/disassembler/ |
H A D | mips64_disassembler_test.cpp | 171 //printf("DBG code address: %lx\n", (uint64_t)(&test->code)); 174 char temp[256], address[16]; local 176 sprintf(address, "0x%lx", loc); 177 strcat(temp, address); 192 //printf("DBG code address: %lx\n", (uint64_t)(&test->code)); 195 char temp[256], address[16]; local 197 sprintf(address, "0x%08lx", loc); 198 strcat(temp, address);
|
/system/core/libunwindstack/tests/ |
H A D | DwarfCfaLogTest.cpp | 214 TypeParam address; local 218 address = 0x81234578U; 222 address = 0x8123456712345678ULL; 226 memcpy(&buffer[1], &address, sizeof(address)); 241 this->fde_.pc_start = address + 0x10;
|
H A D | DwarfCfaTest.cpp | 258 TypeParam address; local 262 address = 0x81234578U; 266 address = 0x8123456712345678ULL; 270 memcpy(&buffer[1], &address, sizeof(address)); 278 ASSERT_EQ(address, this->cfa_->cur_pc()); 287 this->fde_.pc_start = address + 0x10; 291 ASSERT_EQ(address, this->cfa_->cur_pc());
|
/system/bt/service/ipc/ |
H A D | ipc_handler_linux.cc | 85 struct sockaddr_un address; local 86 memset(&address, 0, sizeof(address)); 87 address.sun_family = AF_UNIX; 88 strncpy(address.sun_path, path.value().c_str(), 89 sizeof(address.sun_path) - 1); 90 if (bind(server_socket.get(), (struct sockaddr*)&address, sizeof(address)) < 92 LOG(ERROR) << "Failed to bind IPC socket to address: " << strerror(errno);
|
/system/bt/service/test/ |
H A D | ipc_linux_unittest.cc | 91 struct sockaddr_un address; local 92 memset(&address, 0, sizeof(address)); 93 address.sun_family = AF_UNIX; 94 strncpy(address.sun_path, kTestSocketPath, sizeof(address.sun_path) - 1); 97 connect(client_fd_.get(), (struct sockaddr*)&address, sizeof(address));
|
H A D | low_energy_client_unittest.cc | 61 const char* address, bool connected) { 66 void OnMtuChanged(LowEnergyClient* client, int status, const char* address, argument 60 OnConnectionState(LowEnergyClient* client, int status, const char* address, bool connected) argument
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
H A D | packet.cc | 63 bool Packet::AddPayloadBtAddress(const BtAddress& address) { argument 66 address.ToVector(payload_);
|
H A D | event_packet.cc | 166 uint8_t status, const BtAddress& address) { 171 CHECK(evt_ptr->AddPayloadBtAddress(address)); 193 const BtAddress& address, 201 CHECK(evt_ptr->AddPayloadBtAddress(address)); 212 const BtAddress& address, 219 CHECK(AddPayloadBtAddress(address)); 228 const BtAddress& address, 237 CHECK(evt_ptr->AddPayloadBtAddress(address)); 165 CreateCommandCompleteReadBdAddr( uint8_t status, const BtAddress& address) argument 192 CreateInquiryResultEvent( const BtAddress& address, const PageScanRepetitionMode page_scan_repetition_mode, uint32_t class_of_device, uint16_t clock_offset) argument 211 AddInquiryResult( const BtAddress& address, const PageScanRepetitionMode page_scan_repetition_mode, uint32_t class_of_device, uint16_t clock_offset) argument 227 CreateExtendedInquiryResultEvent( const BtAddress& address, const PageScanRepetitionMode page_scan_repetition_mode, uint32_t class_of_device, uint16_t clock_offset, uint8_t rssi, const vector<uint8_t>& extended_inquiry_response) argument
|
/system/bt/service/hal/ |
H A D | fake_bluetooth_interface.cc | 116 const RawAddress* address) { 119 property.val = (void*)address->address; 115 NotifyAdapterAddressPropertyChanged( const RawAddress* address) argument
|
/system/bt/service/ipc/binder/ |
H A D | bluetooth_low_energy_binder_server.cc | 66 const String16& address, 69 VLOG(2) << __func__ << " client_id: " << client_id << " address: " << address 81 client->Connect(std::string(String8(address).string()), is_direct); 86 const String16& address, 88 VLOG(2) << __func__ << " client_id: " << client_id << " address: " << address; local 98 *_aidl_return = client->Disconnect(std::string(String8(address).string())); 103 const String16& address, int mtu, 105 VLOG(2) << __func__ << " client_id: " << client_id << " address 65 Connect(int client_id, const String16& address, bool is_direct, bool* _aidl_return) argument 85 Disconnect(int client_id, const String16& address, bool* _aidl_return) argument 102 SetMtu(int client_id, const String16& address, int mtu, bool* _aidl_return) argument 120 OnConnectionState( bluetooth::LowEnergyClient* client, int status, const char* address, bool connected) argument 136 OnMtuChanged( bluetooth::LowEnergyClient* client, int status, const char* address, int mtu) argument [all...] |
/system/bt/service/ |
H A D | low_energy_client.cc | 53 bool LowEnergyClient::Connect(const std::string& address, bool is_direct) { argument 54 VLOG(2) << __func__ << "Address: " << address << " is_direct: " << is_direct; 57 RawAddress::FromString(address, bda); 70 bool LowEnergyClient::Disconnect(const std::string& address) { argument 71 VLOG(2) << __func__ << "Address: " << address; local 74 RawAddress::FromString(address, bda); 81 LOG(WARNING) << "Can't disconnect, no existing connection to " << address; 97 bool LowEnergyClient::SetMtu(const std::string& address, int mtu) { argument 98 VLOG(2) << __func__ << "Address: " << address << " MTU: " << mtu; 101 RawAddress::FromString(address, bd [all...] |
H A D | adapter.cc | 267 std::string address = variable 269 LOG(INFO) << "Adapter address changed: " << address; 270 address_.Set(address); 373 // The Bluetooth device address of the local adapter in string from
|
/system/netd/server/ |
H A D | NetdConstants.cpp | 85 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen) { argument 86 if (!prefix || !family || !address || !prefixlen) { 90 // Find the '/' separating address from prefix length. 105 // Copy the address part of the prefix to a local buffer. We have to copy 106 // because inet_pton and getaddrinfo operate on null-terminated address 107 // strings, but prefix is const and has '/' after the address. 110 // Parse the address. 120 // Convert the address string to raw address bytes. 154 memcpy(address, rawAddres [all...] |
H A D | NetlinkHandler.cpp | 81 const char *address = evt->findParam("ADDRESS"); local 84 if (action == NetlinkEvent::Action::kAddressRemoved && iface && address) { 89 strncpy(addrstr, address, sizeof(addrstr)); 103 if (iface && iface[0] && address && flags && scope) { 104 notifyAddressChanged(action, address, iface, flags, scope);
|
/system/bt/btif/src/ |
H A D | btif_gatt_server.cc | 283 static void btif_gatts_open_impl(int server_if, const RawAddress& address, argument 290 if (btif_get_address_type(address, &addr_type) && 291 btif_get_device_type(address, &device_type) && 293 BTA_DmAddBleDevice(address, addr_type, device_type); 322 BTA_GATTS_Open(server_if, address, is_direct, transport); 332 static void btif_gatts_close_impl(int server_if, const RawAddress& address, argument 338 BTA_GATTS_CancelOpen(server_if, address, true); 341 BTA_GATTS_CancelOpen(server_if, address, false);
|
/system/bt/device/src/ |
H A D | controller.cc | 51 static RawAddress address; variable 108 // Read the bluetooth address off the controller next 110 packet_parser->parse_read_bd_addr_response(response, &address); 279 return &address;
|
/system/core/adb/ |
H A D | transport_mdns.cpp | 53 const sockaddr* address, 122 void Connect(const sockaddr* address) { argument 127 if (address->sa_family == AF_INET) { 129 &reinterpret_cast<const sockaddr_in*>(address)->sin_addr; 131 } else if (address->sa_family == AF_INET6) { 133 &reinterpret_cast<const sockaddr_in6*>(address)->sin6_addr; 136 D("mDNS resolved non-IP address."); 141 if (!inet_ntop(address->sa_family, const_cast<void*>(ip_addr_data), 143 D("Could not convert IP address to string."); 164 const sockaddr* address, 159 register_service_ip(DNSServiceRef , DNSServiceFlags , uint32_t , DNSServiceErrorType , const char* , const sockaddr* address, uint32_t , void* context) argument [all...] |
/system/core/libpixelflinger/codeflinger/ |
H A D | disassem.c | 77 * a - address operand of ldr/str instruction 78 * e - address operand of ldrh/strh instruction 86 * b - branch address 87 * t - thumb branch address (bits 24, 0-23) 300 static u_int disassemble_readword(u_int address); 301 static void disassemble_printaddr(u_int address); 382 /* a - address operand of ldr/str instruction */ 386 /* e - address operand of ldrh/strh instruction */ 421 /* b - branch address */ 428 /* t - blx address */ 692 disassemble_readword(u_int address) argument 698 disassemble_printaddr(u_int address) argument 708 disassemble(u_int address) argument [all...] |
/system/core/libziparchive/ |
H A D | zip_archive_private.h | 98 explicit MappedZipFile(void* address, size_t length) argument 101 base_ptr_(address), 179 ZipArchive(void* address, size_t length) argument 180 : mapped_zip(address, length),
|
/system/bt/stack/btm/ |
H A D | btm_ble_bgconn.cc | 52 RawAddress address; member in struct:background_connection_t 63 const uint8_t* a = x.address; 73 const RawAddress& address) { 74 auto map_iter = background_connections.find(address); 76 background_connections[address] = 77 background_connection_t{address, addr_type, false, 0, false}; 85 static void background_connection_remove(const RawAddress& address) { argument 86 auto map_iter = background_connections.find(address); 103 BTM_IsAclConnectionUp(connection->address, BT_TRANSPORT_LE); 237 connection->address); 72 background_connection_add(uint8_t addr_type, const RawAddress& address) argument [all...] |