/hardware/interfaces/bluetooth/1.0/default/ |
D | bluetooth_address.cc | 31 void BluetoothAddress::bytes_to_string(const uint8_t* addr, char* addr_str) { in bytes_to_string() argument 32 sprintf(addr_str, "%02x:%02x:%02x:%02x:%02x:%02x", addr[0], addr[1], addr[2], in bytes_to_string() 33 addr[3], addr[4], addr[5]); in bytes_to_string() 36 bool BluetoothAddress::string_to_bytes(const char* addr_str, uint8_t* addr) { in string_to_bytes() argument 42 &addr[0], &addr[1], &addr[2], &addr[3], &addr[4], &addr[5], in string_to_bytes()
|
D | bluetooth_address.h | 50 static void bytes_to_string(const uint8_t* addr, char* addr_str); 52 static bool string_to_bytes(const char* addr_str, uint8_t* addr); 54 static bool get_local_address(uint8_t* addr);
|
/hardware/qcom/sdm845/gps/sdm845/utils/ |
D | LocIpc.cpp | 83 struct sockaddr_un addr = { .sun_family = AF_UNIX }; in startListeningBlocking() local 84 snprintf(addr.sun_path, sizeof(addr.sun_path), "%s", name.c_str()); in startListeningBlocking() 88 if (::bind(fd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in startListeningBlocking() 189 struct sockaddr_un addr = { .sun_family = AF_UNIX }; in send() local 190 snprintf(addr.sun_path, sizeof(addr.sun_path), "%s", name); in send() 192 result = sendData(fd, addr, data, length); in send() 199 bool LocIpc::sendData(int fd, const sockaddr_un &addr, const uint8_t data[], uint32_t length) { in sendData() argument 205 (struct sockaddr*)&addr, sizeof(addr)) < 0) { in sendData() 213 (struct sockaddr*)&addr, sizeof(addr)) < 0) { in sendData() 224 (struct sockaddr*)&addr, sizeof(addr)); in sendData()
|
/hardware/interfaces/bluetooth/1.0/default/test/ |
D | bluetooth_address_test.cc | 71 uint8_t addr[BluetoothAddress::kBytes]; in TEST_F() local 74 EXPECT_FALSE(BluetoothAddress::string_to_bytes("", addr)); in TEST_F() 75 EXPECT_FALSE(BluetoothAddress::string_to_bytes("000000000000", addr)); in TEST_F() 76 EXPECT_FALSE(BluetoothAddress::string_to_bytes("00:00:00:00:0000", addr)); in TEST_F() 77 EXPECT_FALSE(BluetoothAddress::string_to_bytes("00:00:00:00:00:0", addr)); in TEST_F() 78 EXPECT_FALSE(BluetoothAddress::string_to_bytes("00:00:00:00:00:0;", addr)); in TEST_F() 79 EXPECT_FALSE(BluetoothAddress::string_to_bytes("aB:cD:eF:Gh:iJ:Kl", addr)); in TEST_F() 80 EXPECT_FALSE(BluetoothAddress::string_to_bytes("00:00:000:00:00:0;", addr)); in TEST_F() 81 EXPECT_FALSE(BluetoothAddress::string_to_bytes("12:34:56:78:90:12;", addr)); in TEST_F() 82 EXPECT_FALSE(BluetoothAddress::string_to_bytes("12:34:56:78:90:123", addr)); in TEST_F() [all …]
|
/hardware/libhardware_legacy/ |
D | uevent.c | 45 struct sockaddr_nl addr; in uevent_init() local 49 memset(&addr, 0, sizeof(addr)); in uevent_init() 50 addr.nl_family = AF_NETLINK; in uevent_init() 51 addr.nl_pid = getpid(); in uevent_init() 52 addr.nl_groups = 0xffffffff; in uevent_init() 60 if(bind(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in uevent_init()
|
/hardware/google/av/codec2/vndk/ |
D | C2AllocatorIon.cpp | 128 void **addr /* nonnull */) override; 129 virtual c2_status_t unmap(void *addr, size_t size, C2Fence *fenceFd) override; 231 c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { in map() argument 233 *addr = nullptr; in map() 262 flags, mapOffset, (unsigned char**)&map.addr, &mMapFd); in map() 268 map.addr = *addr = nullptr; in map() 271 *addr = (uint8_t *)map.addr + alignmentBytes; in map() 274 map.addr = mmap(nullptr, mapSize, prot, flags, mMapFd, mapOffset); in map() 278 if (map.addr == MAP_FAILED) { in map() 279 map.addr = *addr = nullptr; in map() [all …]
|
/hardware/qcom/sm8150/gps/utils/ |
D | LocSharedLock.h | 41 inline int32_t android_atomic_inc(volatile int32_t *addr) in android_atomic_inc() argument 43 volatile std::atomic_int_least32_t* a = (volatile std::atomic_int_least32_t*)addr; in android_atomic_inc() 47 inline int32_t android_atomic_dec(volatile int32_t *addr) in android_atomic_dec() argument 49 volatile std::atomic_int_least32_t* a = (volatile std::atomic_int_least32_t*)addr; in android_atomic_dec()
|
/hardware/libhardware_legacy/include/hardware_legacy/ |
D | tdls.h | 52 void (*on_tdls_state_changed)(mac_addr addr, wifi_tdls_status status); 65 wifi_error wifi_enable_tdls(wifi_interface_handle iface, mac_addr addr, 76 wifi_error wifi_disable_tdls(wifi_interface_handle iface, mac_addr addr); 79 wifi_error wifi_get_tdls_status(wifi_interface_handle iface, mac_addr addr,
|
/hardware/qcom/gps/msm8998/android/ |
D | AGnssRil.cpp | 68 struct sockaddr_un addr = { .sun_family = AF_UNIX }; in createSocket() local 69 snprintf(addr.sun_path, sizeof(addr.sun_path), "%s", socketPath); in createSocket() 71 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
|
/hardware/qcom/sdm845/gps/msm8998/android/ |
D | AGnssRil.cpp | 68 struct sockaddr_un addr = { .sun_family = AF_UNIX }; in createSocket() local 69 snprintf(addr.sun_path, sizeof(addr.sun_path), "%s", socketPath); in createSocket() 71 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
|
/hardware/libhardware/modules/camera/3_4/arc/ |
D | frame_buffer.cpp | 84 void* addr = mmap(NULL, buffer_size_, PROT_READ, MAP_SHARED, fd_.get(), 0); in Map() local 85 if (addr == MAP_FAILED) { in Map() 89 data_ = static_cast<uint8_t*>(addr); in Map() 137 void* addr; in Map() local 146 addr = yuv_data.y; in Map() 150 device_buffer_length_, 1, &addr); in Map() 155 width_, height_, &addr); in Map() 166 data_ = static_cast<uint8_t*>(addr); in Map()
|
/hardware/qcom/data/ipacfg-mgr/msm8998/hal/src/ |
D | PrefixParser.cpp | 141 string addr; in add() local 143 if (!splitIntoAddrAndMask(in, addr, subnet)) { in add() 157 if (!parseV4Addr(addr, pre)) { in add() 158 mLastErr = "Failed to parse V4 Address(" + addr + ")"; in add() 161 } else if (!parseV6Addr(addr, pre)) { in add() 162 mLastErr = "Failed to parse V6 Address(" + addr + ")"; in add() 168 + ", " + addr + ")"; in add() 172 + ", " + addr + ")"; in add() 207 bool PrefixParser::splitIntoAddrAndMask(string in, string &addr, string &mask) { in splitIntoAddrAndMask() argument 212 addr = in.substr(0, pos); in splitIntoAddrAndMask() [all …]
|
/hardware/qcom/sm8150/data/ipacfg-mgr/hal/src/ |
D | PrefixParser.cpp | 147 string addr; in add() local 149 if (!splitIntoAddrAndMask(in, addr, subnet)) { in add() 163 if (!parseV4Addr(addr, pre)) { in add() 164 mLastErr = "Failed to parse V4 Address(" + addr + ")"; in add() 167 } else if (!parseV6Addr(addr, pre)) { in add() 168 mLastErr = "Failed to parse V6 Address(" + addr + ")"; in add() 174 + ", " + addr + ")"; in add() 178 + ", " + addr + ")"; in add() 213 bool PrefixParser::splitIntoAddrAndMask(string in, string &addr, string &mask) { in splitIntoAddrAndMask() argument 218 addr = in.substr(0, pos); in splitIntoAddrAndMask() [all …]
|
/hardware/qcom/sdm845/data/ipacfg-mgr/hal/src/ |
D | PrefixParser.cpp | 147 string addr; in add() local 149 if (!splitIntoAddrAndMask(in, addr, subnet)) { in add() 163 if (!parseV4Addr(addr, pre)) { in add() 164 mLastErr = "Failed to parse V4 Address(" + addr + ")"; in add() 167 } else if (!parseV6Addr(addr, pre)) { in add() 168 mLastErr = "Failed to parse V6 Address(" + addr + ")"; in add() 174 + ", " + addr + ")"; in add() 178 + ", " + addr + ")"; in add() 213 bool PrefixParser::splitIntoAddrAndMask(string in, string &addr, string &mask) { in splitIntoAddrAndMask() argument 218 addr = in.substr(0, pos); in splitIntoAddrAndMask() [all …]
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/ |
D | loc_eng_agps.h | 279 virtual void setIPAddresses(struct sockaddr_storage& addr) = 0; 320 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 321 { addr.ss_family = AF_INET6;/*todo: convert mIPv6Addr into addr */ } in setIPAddresses() 347 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 348 { memset(&addr, 0, sizeof(addr)); in setIPAddresses() 349 addr.ss_family = AF_INET6; } in setIPAddresses() 383 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 384 { addr.ss_family = AF_INET6; } in setIPAddresses() 419 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 420 { addr.ss_family = AF_INET6; } in setIPAddresses()
|
/hardware/qcom/sdm845/gps/msm8084/loc_api/libloc_api_50001/ |
D | loc_eng_agps.h | 279 virtual void setIPAddresses(struct sockaddr_storage& addr) = 0; 320 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 321 { addr.ss_family = AF_INET6;/*todo: convert mIPv6Addr into addr */ } in setIPAddresses() 347 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 348 { memset(&addr, 0, sizeof(addr)); in setIPAddresses() 349 addr.ss_family = AF_INET6; } in setIPAddresses() 383 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 384 { addr.ss_family = AF_INET6; } in setIPAddresses() 419 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 420 { addr.ss_family = AF_INET6; } in setIPAddresses()
|
/hardware/knowles/athletico/sound_trigger_hal/tests/ |
D | dump_debug_info.c | 253 uint32_t addr; in dump_all_regs() local 277 addr = srb_info->reg_start_addr; in dump_all_regs() 282 ALOGD("0x%X\t\t\t0x%08X", addr, val); in dump_all_regs() 284 fprintf(out_fp, "0x%X\t\t\t0x%08X\n", addr, val); in dump_all_regs() 286 addr += sizeof(uint32_t); in dump_all_regs() 290 addr = arb_info->reg_start_addr; in dump_all_regs() 299 ALOGD("0x%X\t\t\t0x%08X", addr, arb_phy_addr); in dump_all_regs() 300 ALOGD("0x%X\t\t\t0x%08X", (addr + 4), arb_sz); in dump_all_regs() 302 fprintf(out_fp, "0x%X\t\t\t0x%08X\n", addr, arb_phy_addr); in dump_all_regs() 303 fprintf(out_fp, "0x%X\t\t\t0x%08X\n", (addr + sizeof(uint32_t)), arb_sz); in dump_all_regs() [all …]
|
/hardware/google/av/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 255 void mapLinear(size_t offset, size_t size, uint8_t **addr) { in mapLinear() argument 270 *addr = (uint8_t *)mAddr; in mapLinear() 301 void mapGraphic(C2Rect rect, C2PlanarLayout *layout, uint8_t **addr) { in mapGraphic() argument 309 addr); in mapGraphic() 311 addr[C2PlanarLayout::PLANE_Y] = nullptr; in mapGraphic() 312 addr[C2PlanarLayout::PLANE_U] = nullptr; in mapGraphic() 313 addr[C2PlanarLayout::PLANE_V] = nullptr; in mapGraphic() 317 memcpy(mAddrGraphic, addr, sizeof(uint8_t*) * C2PlanarLayout::MAX_NUM_PLANES); in mapGraphic() 349 uint8_t *addr = nullptr; in TEST_F() local 350 mapLinear(0u, kCapacity, &addr); in TEST_F() [all …]
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
D | tdls.cpp | 104 mac_addr addr; in handleEvent() local 107 memset(&addr, 0, sizeof(mac_addr)); in handleEvent() 120 memcpy(addr, in handleEvent() 124 ALOGV(MAC_ADDR_STR, MAC_ADDR_ARRAY(addr)); in handleEvent() 169 (*mHandler.on_tdls_state_changed)(addr, status); in handleEvent() 349 mac_addr addr, in wifi_enable_tdls() argument 379 ALOGV("%s: MAC_ADDR: " MAC_ADDR_STR, __FUNCTION__, MAC_ADDR_ARRAY(addr)); in wifi_enable_tdls() 381 (char *)addr, 6); in wifi_enable_tdls() 435 wifi_error wifi_disable_tdls(wifi_interface_handle iface, mac_addr addr) in wifi_disable_tdls() argument 459 ALOGV("%s: MAC_ADDR: " MAC_ADDR_STR, __FUNCTION__, MAC_ADDR_ARRAY(addr)); in wifi_disable_tdls() [all …]
|
/hardware/qcom/display/msm8909w_3100/hdmi_cec/ |
D | qhdmi_cec.cpp | 175 cec_logical_address_t addr) in cec_add_logical_address() argument 177 if (addr < CEC_ADDR_TV || addr > CEC_ADDR_BROADCAST) { in cec_add_logical_address() 178 ALOGE("%s: Received invalid address: %d ", __FUNCTION__, addr); in cec_add_logical_address() 182 ctx->logical_address[addr] = LOGICAL_ADDRESS_SET; in cec_add_logical_address() 186 ssize_t err = write_int_to_node(ctx, "cec/logical_addr", addr); in cec_add_logical_address() 187 ALOGI("%s: Allocated logical address: %d ", __FUNCTION__, addr); in cec_add_logical_address() 202 uint16_t* addr) in cec_get_physical_address() argument 210 *addr = (uint16_t) atoi(pa_data); in cec_get_physical_address() 211 ALOGD_IF(DEBUG, "%s: Physical Address: 0x%x", __FUNCTION__, *addr); in cec_get_physical_address() 680 struct sockaddr_nl addr; in uevent_init() local [all …]
|
/hardware/qcom/display/msm8909/hdmi_cec/ |
D | qhdmi_cec.cpp | 175 cec_logical_address_t addr) in cec_add_logical_address() argument 177 if (addr < CEC_ADDR_TV || addr > CEC_ADDR_BROADCAST) { in cec_add_logical_address() 178 ALOGE("%s: Received invalid address: %d ", __FUNCTION__, addr); in cec_add_logical_address() 182 ctx->logical_address[addr] = LOGICAL_ADDRESS_SET; in cec_add_logical_address() 186 ssize_t err = write_int_to_node(ctx, "cec/logical_addr", addr); in cec_add_logical_address() 187 ALOGI("%s: Allocated logical address: %d ", __FUNCTION__, addr); in cec_add_logical_address() 202 uint16_t* addr) in cec_get_physical_address() argument 210 *addr = (uint16_t) atoi(pa_data); in cec_get_physical_address() 211 ALOGD_IF(DEBUG, "%s: Physical Address: 0x%x", __FUNCTION__, *addr); in cec_get_physical_address() 680 struct sockaddr_nl addr; in uevent_init() local [all …]
|
/hardware/qcom/sdm845/gps/msm8996/loc_api/libloc_api_50001/ |
D | loc_eng_agps.h | 279 virtual void setIPAddresses(struct sockaddr_storage& addr) = 0; 320 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 321 { addr.ss_family = AF_INET6;/*todo: convert mIPv6Addr into addr */ } in setIPAddresses() 347 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 348 { addr.ss_family = AF_INET6; } in setIPAddresses() 382 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 383 { addr.ss_family = AF_INET6; } in setIPAddresses() 418 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 419 { addr.ss_family = AF_INET6; } in setIPAddresses()
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/ |
D | loc_eng_agps.h | 279 virtual void setIPAddresses(struct sockaddr_storage& addr) = 0; 320 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 321 { addr.ss_family = AF_INET6;/*todo: convert mIPv6Addr into addr */ } in setIPAddresses() 347 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 348 { addr.ss_family = AF_INET6; } in setIPAddresses() 382 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 383 { addr.ss_family = AF_INET6; } in setIPAddresses() 418 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 419 { addr.ss_family = AF_INET6; } in setIPAddresses()
|
/hardware/qcom/sdm845/gps/msm8909/loc_api/libloc_api_50001/ |
D | loc_eng_agps.h | 279 virtual void setIPAddresses(struct sockaddr_storage& addr) = 0; 320 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 321 { addr.ss_family = AF_INET6;/*todo: convert mIPv6Addr into addr */ } in setIPAddresses() 347 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 348 { addr.ss_family = AF_INET6; } in setIPAddresses() 382 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 383 { addr.ss_family = AF_INET6; } in setIPAddresses() 418 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 419 { addr.ss_family = AF_INET6; } in setIPAddresses()
|
/hardware/qcom/gps/loc_api/libloc_api_50001/ |
D | loc_eng_agps.h | 279 virtual void setIPAddresses(struct sockaddr_storage& addr) = 0; 320 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 321 { addr.ss_family = AF_INET6;/*todo: convert mIPv6Addr into addr */ } in setIPAddresses() 347 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 348 { addr.ss_family = AF_INET6; } in setIPAddresses() 382 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 383 { addr.ss_family = AF_INET6; } in setIPAddresses() 418 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses() 419 { addr.ss_family = AF_INET6; } in setIPAddresses()
|