/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/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/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/intel/img/hwcomposer/merrifield/common/observers/ |
D | UeventObserver.cpp | 58 struct sockaddr_nl addr; in initialize() local 63 memset(&addr, 0, sizeof(addr)); in initialize() 64 addr.nl_family = AF_NETLINK; in initialize() 65 addr.nl_pid = pthread_self() | getpid(); in initialize() 66 addr.nl_groups = 0xffffffff; in initialize() 78 if (bind(mUeventFd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in initialize()
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/observers/ |
D | UeventObserver.cpp | 58 struct sockaddr_nl addr; in initialize() local 63 memset(&addr, 0, sizeof(addr)); in initialize() 64 addr.nl_family = AF_NETLINK; in initialize() 65 addr.nl_pid = pthread_self() | getpid(); in initialize() 66 addr.nl_groups = 0xffffffff; in initialize() 78 if (bind(mUeventFd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in initialize()
|
/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/gps/sdm845/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_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/marvell/bt/libbt-vendor/ |
D | hardware_mrvl.c | 129 static void populate_bd_addr_params(uint8_t *params, uint8_t *addr) in populate_bd_addr_params() argument 131 assert(params && addr); in populate_bd_addr_params() 133 *params++ = addr[5]; in populate_bd_addr_params() 134 *params++ = addr[4]; in populate_bd_addr_params() 135 *params++ = addr[3]; in populate_bd_addr_params() 136 *params++ = addr[2]; in populate_bd_addr_params() 137 *params++ = addr[1]; in populate_bd_addr_params() 138 *params = addr[0]; in populate_bd_addr_params()
|
/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/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/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() 348 mac_addr addr, in wifi_enable_tdls() argument 378 ALOGV("%s: MAC_ADDR: " MAC_ADDR_STR, __FUNCTION__, MAC_ADDR_ARRAY(addr)); in wifi_enable_tdls() 380 (char *)addr, 6); in wifi_enable_tdls() 429 wifi_error wifi_disable_tdls(wifi_interface_handle iface, mac_addr addr) in wifi_disable_tdls() argument 453 ALOGV("%s: MAC_ADDR: " MAC_ADDR_STR, __FUNCTION__, MAC_ADDR_ARRAY(addr)); in wifi_disable_tdls() [all …]
|
/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()
|
/hardware/qcom/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/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/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/display/msm8996/libgralloc1/ |
D | gr_ion_alloc.cpp | 127 void *addr = 0; in MapBuffer() local 131 addr = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in MapBuffer() 132 *base = addr; in MapBuffer() 133 if (addr == MAP_FAILED) { in MapBuffer() 137 ALOGD_IF(DEBUG, "ion: Mapped buffer base:%p size:%u offset:%u fd:%d", addr, size, offset, fd); in MapBuffer()
|
/hardware/qcom/display/msm8998/libgralloc1/ |
D | gr_ion_alloc.cpp | 137 void *addr = 0; in MapBuffer() local 141 addr = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in MapBuffer() 142 *base = addr; in MapBuffer() 143 if (addr == MAP_FAILED) { in MapBuffer() 147 ALOGD_IF(DEBUG, "ion: Mapped buffer base:%p size:%u offset:%u fd:%d", addr, size, offset, fd); in MapBuffer()
|
/hardware/qcom/display/sdm845/libgralloc1/ |
D | gr_ion_alloc.cpp | 137 void *addr = 0; in MapBuffer() local 141 addr = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in MapBuffer() 142 *base = addr; in MapBuffer() 143 if (addr == MAP_FAILED) { in MapBuffer() 147 ALOGD_IF(DEBUG, "ion: Mapped buffer base:%p size:%u offset:%u fd:%d", addr, size, offset, fd); in MapBuffer()
|
/hardware/intel/img/psb_video/fw/topazhp/ |
D | topazhp_bin.c | 149 unsigned int addr; member 173 sec_t[iter].addr = FW_NUM * 16 + SECURE_VRL_HEADER + SECURE_FIP_HEADER; in create_firmware_A0() 187 …sec_t[iter].addr = sec_t[iter-1].addr + sec_t[iter-1].text_size_bytes + sec_t[iter-1].data_size_by… in create_firmware_A0() 223 unsigned int addr; member 259 sec_t[iter].addr = FW_NUM * 16 + SECURE_VRL_HEADER + SECURE_FIP_HEADER; in create_firmware_B0() 270 sec_t[iter].addr = sec_t[iter-1].addr + in create_firmware_B0()
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-lib2d-interface/test/ |
D | mm_lib2d_test.c | 141 void lib2d_dump_tga(void *addr, cam_format_t format, int width, in lib2d_dump_tga() argument 146 unsigned char *pb = (unsigned char *)addr; in lib2d_dump_tga() 147 uint32_t *pd = (uint32_t *)addr; in lib2d_dump_tga() 216 void *addr) in lib2d_test_load_input_yuv_data() argument 220 void *y_ptr = addr; in lib2d_test_load_input_yuv_data() 221 void *crcb_ptr = (uint8_t *)addr + crcb_offset; in lib2d_test_load_input_yuv_data() 266 int32_t height, int32_t crcb_offset, void *addr) in lib2d_test_load_input_yuv_data_linebyline() argument 270 void *y_ptr = addr; in lib2d_test_load_input_yuv_data_linebyline() 271 void *crcb_ptr = (uint8_t *)addr + crcb_offset; in lib2d_test_load_input_yuv_data_linebyline()
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpegdec_test.c | 148 p_buffer->addr = (uint8_t *)buffer_allocate(p_buffer, 0); in mm_jpegdec_test_alloc() 149 if (NULL == p_buffer->addr) { in mm_jpegdec_test_alloc() 155 p_buffer->addr = (uint8_t *)malloc(p_buffer->size); in mm_jpegdec_test_alloc() 156 if (NULL == p_buffer->addr) { in mm_jpegdec_test_alloc() 166 if (p_buffer->addr == NULL) in mm_jpegdec_test_free() 172 free(p_buffer->addr); in mm_jpegdec_test_free() 203 fread(p_obj->input.addr, 1, p_obj->input.size, fp); in mm_jpegdec_test_read() 276 p_params->dest_buf[0].buf_vaddr = p_obj->output.addr; in decode_init() 291 p_params->src_main_buf[0].buf_vaddr = p_obj->input.addr; in decode_init()
|
/hardware/interfaces/gnss/1.0/default/ |
D | AGnss.cpp | 65 switch (status->addr.ss_family) in statusCb() 72 struct sockaddr_in* in = reinterpret_cast<struct sockaddr_in*>(&(status->addr)); in statusCb() 100 &(status->addr)); in statusCb() 110 ALOGE("Invalid ss_family found: %d", status->addr.ss_family); in statusCb()
|
/hardware/qcom/display/msm8996/hdmi_cec/ |
D | qhdmi_cec.cpp | 163 cec_logical_address_t addr) in cec_add_logical_address() argument 165 if (addr < CEC_ADDR_TV || addr > CEC_ADDR_BROADCAST) { in cec_add_logical_address() 166 ALOGE("%s: Received invalid address: %d ", __FUNCTION__, addr); in cec_add_logical_address() 170 ctx->logical_address[addr] = LOGICAL_ADDRESS_SET; in cec_add_logical_address() 174 ssize_t err = write_int_to_node(ctx, "cec/logical_addr", addr); in cec_add_logical_address() 175 ALOGI("%s: Allocated logical address: %d ", __FUNCTION__, addr); in cec_add_logical_address() 190 uint16_t* addr) in cec_get_physical_address() argument 198 *addr = (uint16_t) atoi(pa_data); in cec_get_physical_address() 199 ALOGD_IF(DEBUG, "%s: Physical Address: 0x%x", __FUNCTION__, *addr); in cec_get_physical_address()
|