Searched refs:address (Results 1 - 25 of 60) sorted by relevance

123

/system/bt/device/include/classic/
H A Dpeer.h27 // Returns a classic_peer_t for the provided |address|. If the peer
29 // is constructed for that |address| and then returned. |address| may not
31 classic_peer_t *classic_peer_by_address(bt_bdaddr_t *address);
33 // Returns the bluetooth address of the |peer|. |peer| may not be NULL.
/system/bt/device/src/classic/
H A Dpeer.c34 bt_bdaddr_t address; member in struct:classic_peer_t
84 classic_peer_t *classic_peer_by_address(bt_bdaddr_t *address) { argument
86 assert(address != NULL);
88 classic_peer_t *peer = hash_map_get(peers_by_address, address);
94 peer = hash_map_get(peers_by_address, address);
100 peer->address = *address;
101 hash_map_set(peers_by_address, &peer->address, peer);
112 return &peer->address;
117 // Wrapper for bdaddr_equals used in the hash map of peers by address
[all...]
/system/core/base/include/base/
H A Dmemory.h27 static inline T get_unaligned(const T* address) { argument
31 const unaligned* p = reinterpret_cast<const unaligned*>(address);
36 static inline void put_unaligned(T* address, T v) { argument
40 unaligned* p = reinterpret_cast<unaligned*>(address);
/system/extras/tests/net_test/
H A Dsrcaddr_selection_test.py67 def assertAddressNotPresent(self, address):
68 self.assertRaises(IOError, self.iproute.GetAddress, address)
71 self, address, expected_ifindex, expected_flags):
72 ifa_msg = self.iproute.GetAddress(address)[0]
73 self.assertEquals(AF_INET6 if ":" in address else AF_INET, ifa_msg.family)
79 def AddressIsTentative(self, address):
80 ifa_msg = self.iproute.GetAddress(address)[0]
83 def BindToAddress(self, address):
85 s.bind((address, 0, 0, 0))
87 def SendWithSourceAddress(self, address, neti
[all...]
H A Dnet_test.py155 raise ValueError("Unknown hardware address length %d" % len(hwaddr))
186 # Compress the address.
187 address = inet_ntop(AF_INET6, inet_pton(AF_INET6, formatted))
188 return address
191 def FormatSockStatAddress(address):
192 if ":" in address:
196 binary = inet_pton(family, address)
205 for address in addresses:
206 address = [s for s in address
[all...]
H A Diproute.py113 ### Interface address constants. See include/uapi/linux/if_addr.h.
114 # Interface address attributes.
226 def _NlAttrIPAddress(self, nla_type, family, address):
227 return self._NlAttr(nla_type, socket.inet_pton(family, address))
258 family: The address family. Used to convert IP addresses into strings.
329 family: The address family.
569 """Adds or deletes an IP address."""
577 def AddAddress(self, address, prefixlen, ifindex):
578 self._Address(6 if ":" in address else 4,
579 RTM_NEWADDR, address, prefixle
[all...]
/system/core/include/netutils/
H A Difc.h45 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/bt/btif/src/
H A Dbtif_hh.c465 bda.address[0], bda.address[1], bda.address[2], bda.address[3], bda.address[4], bda.address[5]);
470 if (btif_hh_cb.added_devices[i].bd_addr.address[0] == 0 &&
471 btif_hh_cb.added_devices[i].bd_addr.address[1] == 0 &&
472 btif_hh_cb.added_devices[i].bd_addr.address[2] == 0 &&
473 btif_hh_cb.added_devices[i].bd_addr.address[
[all...]
H A Dbtif_gatt_test.c239 params->bda1->address[0], params->bda1->address[1],
240 params->bda1->address[2], params->bda1->address[3],
241 params->bda1->address[4], params->bda1->address[5],
245 BTM_SecAddBleDevice(params->bda1->address, NULL, BT_DEVICE_TYPE_BLE, params->u2);
247 if ( !GATT_Connect(test_cb.gatt_if, params->bda1->address, TRUE, BT_TRANSPORT_LE) )
H A Dbtif_dm.c359 bdcpy(remote_bdaddr.address, p_search_data->inq_res.bd_addr);
489 // Cross key pairing so send callback for static address
508 bdcpy(pairing_cb.bd_addr, bd_addr->address);
562 bdcpy(bdaddr.address, bd_addr);
633 bdcpy(remote_bd.address, pairing_cb.bd_addr);
679 BTA_DmAddBleDevice(bd_addr->address, addr_type, device_type);
696 BTA_DmBondByTransport((UINT8 *)bd_addr->address, transport);
723 BTA_DmRemoveDevice((UINT8 *)bd_addr->address);
740 uint8_t *bda = (uint8_t*)bd_addr->address;
866 bdcpy(bd_addr.address, p_pin_re
[all...]
H A Dbtif_gatt_server.c195 bdcpy(bda.address, p_data->conn.remote_bda);
207 bdcpy(bda.address, p_data->conn.remote_bda);
288 bdcpy(bda.address, p_data->req_data.remote_bda);
301 bdcpy(bda.address, p_data->req_data.remote_bda);
317 bdcpy(bda.address, p_data->req_data.remote_bda);
394 if (btif_get_address_type(p_cb->bd_addr.address, &addr_type) &&
395 btif_get_device_type(p_cb->bd_addr.address, &device_type) &&
398 BTA_DmAddBleDevice(p_cb->bd_addr.address, addr_type, device_type);
428 BTA_GATTS_Open(p_cb->server_if, p_cb->bd_addr.address,
435 BTA_GATTS_CancelOpen(p_cb->server_if, p_cb->bd_addr.address, TRU
[all...]
H A Dbtif_mce.c70 bdcpy(addr.address, evt_data->remote_addr);
140 BTA_MceGetRemoteMasInstances(bd_addr->address);
H A Dbtif_sdp.c71 bdcpy(addr.address, evt_data->remote_addr);
155 BTA_SdpSearch(bd_addr->address, &sdp_uuid);
H A Dbtif_gatt_client.c401 memcpy(p_dev_cb->remote_dev[i].bd_addr.address, p_bda, BD_ADDR_LEN);
412 memcpy(p_dev_cb->remote_dev[i].bd_addr.address, p_bda, BD_ADDR_LEN);
428 !memcmp(p_dev_cb->remote_dev[i].bd_addr.address, p_bda, BD_ADDR_LEN))
458 btif_dm_update_ble_remote_properties( p_btif_cb->bd_addr.address, bdname.name,
558 bdcpy(data.bda.address, p_data->notify.bda);
581 bdcpy(bda.address, p_data->open.remote_bda);
600 bdcpy(bda.address, p_data->close.remote_bda);
633 if (!btif_gattc_find_bdaddr(p_btif_cb->bd_addr.address))
635 btif_gattc_add_remote_bdaddr(p_btif_cb->bd_addr.address, p_btif_cb->addr_type);
1022 bdcpy(btif_cb.bd_addr.address, p_dat
[all...]
/system/core/run-as/
H A Dpackage.c75 /* Open 'filename' and map it into our address-space.
76 * Returns buffer address, or NULL on error
85 void* address = NULL; local
135 address = mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0);
136 } while (address == MAP_FAILED && errno == EINTR);
137 if (address == MAP_FAILED) {
138 address = NULL;
151 return address;
156 unmap_file(void* address, size_t size) argument
159 TEMP_FAILURE_RETRY(munmap(address, siz
[all...]
/system/bt/stack/btm/
H A Dbtm_ble_bgconn.c56 bt_bdaddr_t address; member in struct:background_connection_t
72 static void background_connection_add(bt_bdaddr_t *address) { argument
73 assert(address);
75 background_connection_t *connection = hash_map_get(background_connections, address);
78 connection->address = *address;
79 hash_map_set(background_connections, &(connection->address), connection);
83 static void background_connection_remove(bt_bdaddr_t *address) { argument
84 if (address && background_connections)
85 hash_map_erase(background_connections, address);
[all...]
/system/netd/server/
H A DNetdConstants.h39 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen);
H A DNetlinkHandler.cpp77 const char *address = evt->findParam("ADDRESS"); local
80 if (action == NetlinkEvent::Action::kAddressRemoved && iface && address) {
81 int resetMask = strchr(address, ':') ? RESET_IPV6_ADDRESSES : RESET_IPV4_ADDRESSES;
84 ALOGE("ifc_reset_connections failed on iface %s for address %s (%s)", iface,
85 address, strerror(ret));
89 notifyAddressChanged(action, address, iface, flags, scope);
H A DNetdConstants.cpp145 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen) { argument
146 if (!prefix || !family || !address || !prefixlen) {
150 // Find the '/' separating address from prefix length.
165 // Copy the address part of the prefix to a local buffer. We have to copy
166 // because inet_pton and getaddrinfo operate on null-terminated address
167 // strings, but prefix is const and has '/' after the address.
170 // Parse the address.
180 // Convert the address string to raw address bytes.
214 memcpy(address, rawAddres
[all...]
/system/bt/btif/co/
H A Dbta_hh_co.c297 p_dev->bd_addr.address[0], p_dev->bd_addr.address[1], p_dev->bd_addr.address[2],
298 p_dev->bd_addr.address[3], p_dev->bd_addr.address[4]);
475 p_dev->bd_addr.address[5], p_dev->bd_addr.address[4],
476 p_dev->bd_addr.address[3], p_dev->bd_addr.address[2],
477 p_dev->bd_addr.address[
[all...]
/system/bt/btcore/src/
H A Dbdaddr.c54 const uint8_t *ptr = addr->address;
85 uint8_t *ptr = new_addr.address;
/system/bt/btcore/test/
H A Dproperty_test.cpp33 EXPECT_EQ(addr0.address[0], ((uint8_t*)property->val)[0]);
34 EXPECT_EQ(addr0.address[1], ((uint8_t*)property->val)[1]);
35 EXPECT_EQ(addr0.address[2], ((uint8_t*)property->val)[2]);
36 EXPECT_EQ(addr0.address[3], ((uint8_t*)property->val)[3]);
37 EXPECT_EQ(addr0.address[4], ((uint8_t*)property->val)[4]);
38 EXPECT_EQ(addr0.address[5], ((uint8_t*)property->val)[5]);
43 EXPECT_EQ(addr0.address[0], addr1->address[0]);
/system/core/libpixelflinger/codeflinger/
H A Ddisassem.c77 * 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/extras/kexec_tools/
H A Dkexecload.c21 // Physical buffer address cannot overlap with other regions
24 #define ROUND_TO_PAGE(address,pagesize) ((address + pagesize - 1) & (~(pagesize - 1)))
58 " -s <start address> specify start address of kernel\n"
/system/core/libnetutils/
H A Difc_utils.c244 * Adds or deletes an IP address on an interface.
247 * - RTM_NEWADDR (to add a new address)
248 * - RTM_DELADDR (to delete an existing address)
252 int ifc_act_on_address(int action, const char *name, const char *address, argument
261 // Allow for IPv6 address, headers, and padding.
280 ret = string_to_ip(address, &ss);
285 // Determine address type and length.
307 // Interface address message header.
312 // Routing attribute. Contains the actual IP address.
342 int ifc_add_address(const char *name, const char *address, in argument
346 ifc_del_address(const char *name, const char * address, int prefixlen) argument
663 ifc_configure(const char *ifname, in_addr_t address, uint32_t prefixLength, in_addr_t gateway, in_addr_t dns1, in_addr_t dns2) argument
[all...]

Completed in 933 milliseconds

123