Searched defs:len (Results 1 - 25 of 424) sorted by relevance

1234567891011>>

/system/bt/osi/test/
H A Dallocator_test.cc30 size_t len = strlen(str); local
33 // len == 0
38 // len == strlen(str)
39 copy_str = osi_strndup(str, len);
43 // len < strlen(str)
44 copy_str = osi_strndup(str, len - 5);
48 // len > strlen(str)
49 copy_str = osi_strndup(str, len + 5);
/system/bt/osi/src/
H A Dproperties.cc26 int len = 0; local
27 if (!default_value) return len;
29 len = strlen(default_value);
30 if (len >= PROPERTY_VALUE_MAX) len = PROPERTY_VALUE_MAX - 1;
32 memcpy(value, default_value, len);
33 value[len] = '\0';
34 return len;
H A Dallocator.cc41 char* osi_strndup(const char* str, size_t len) { argument
43 if (len < size) size = len;
/system/core/libsparse/
H A Dsparse_file.h28 int64_t len; member in struct:sparse_file
/system/extras/ext4_utils/
H A Dwipe.c36 int wipe_block_device(int fd, s64 len) argument
47 range[1] = len;
51 range[1] = len;
71 int wipe_block_device(int fd, s64 len) argument
/system/nfc/halimpl/bcm2079x/adaptation/
H A D_OverrideLog.cpp63 int len = property_get("nfc.app_log_level", valueStr, ""); local
64 if (len > 0) {
89 int len = property_get("nfc.enable_protocol_log", valueStr, ""); local
90 if (len > 0) {
/system/nfc/src/adaptation/
H A DOverrideLog.cpp59 int len = property_get("nfc.app_log_level", valueStr, ""); local
60 if (len > 0) {
85 int len = property_get("nfc.enable_protocol_log", valueStr, ""); local
86 if (len > 0) {
/system/bt/bta/ag/
H A Dbta_ag_ci.cc44 void bta_ag_ci_rx_write(uint16_t handle, char* p_data, uint16_t len) { argument
45 uint16_t len_remaining = len;
48 if (len > (RFCOMM_DATA_BUF_SIZE - sizeof(tBTA_AG_CI_RX_WRITE) - 1))
49 len = RFCOMM_DATA_BUF_SIZE - sizeof(tBTA_AG_CI_RX_WRITE) - 1;
52 if (len_remaining < len) len = len_remaining;
55 (tBTA_AG_CI_RX_WRITE*)osi_malloc(sizeof(tBTA_AG_CI_RX_WRITE) + len + 1);
60 strncpy(p_data_area, p_data, len);
61 p_data_area[len] = 0;
65 len_remaining -= len;
[all...]
H A Dbta_ag_at.cc165 void bta_ag_at_parse(tBTA_AG_AT_CB* p_cb, char* p_buf, uint16_t len) { argument
174 for (i = 0; i < len;) {
175 while (p_cb->cmd_pos < p_cb->cmd_max_len - 1 && i < len) {
207 if (i < len) p_cb->cmd_pos = 0;
/system/bt/btif/co/
H A Dbta_ag_co.cc86 uint16_t len) {
87 BTIF_TRACE_DEBUG("bta_ag_co_tx_write: handle: %d, len: %d", handle, len);
85 bta_ag_co_tx_write(uint16_t handle, UNUSED_ATTR uint8_t* p_data, uint16_t len) argument
/system/bt/service/common/bluetooth/
H A Dadvertise_data.cc33 size_t len = data_.size(); local
36 if (!len) return true;
38 for (size_t i = 0, field_len = 0; i < len; i += (field_len + 1)) {
43 if (i + field_len >= len) {
/system/core/adb/client/
H A Dusb_dispatch.cpp38 int usb_write(usb_handle* h, const void* data, int len) { argument
40 ? libusb::usb_write(reinterpret_cast<libusb::usb_handle*>(h), data, len)
41 : native::usb_write(reinterpret_cast<native::usb_handle*>(h), data, len);
44 int usb_read(usb_handle* h, void* data, int len) { argument
46 ? libusb::usb_read(reinterpret_cast<libusb::usb_handle*>(h), data, len)
47 : native::usb_read(reinterpret_cast<native::usb_handle*>(h), data, len);
/system/core/base/
H A Derrors_windows.cpp40 DWORD len = FormatMessageW(flags, nullptr, error_code, 0, msgbuf, local
42 if (len == 0) {
/system/core/libcutils/include/private/
H A Dfs_config.h43 uint16_t len; member in struct:fs_path_config_from_file
/system/core/libcutils/
H A Dpartition_utils.c26 static int only_one_char(char *buf, int len, char c) argument
31 for (i=0; i<len; i++) {
/system/core/liblog/
H A Duio.c30 int len = vecs->iov_len; local
32 while (len > 0) {
33 int ret = read(fd, buf, len);
42 len -= ret;
54 int len = vecs->iov_len; local
56 while (len > 0) {
57 int ret = write(fd, buf, len);
66 len -= ret;
/system/core/logd/
H A DLogUtils.h49 char* log_strntok_r(char* s, ssize_t& len, char*& saveptr, ssize_t& sublen);
52 static inline const char* strnstr(const char* s, ssize_t len, argument
54 if (len <= 0) return nullptr;
60 if (len <= (ssize_t)needleLen) return nullptr;
61 --len;
/system/core/toolbox/upstream-netbsd/lib/libc/string/
H A Dswab.c48 swab(const void * __restrict from, void * __restrict to, ssize_t len) argument
54 if (len <= 1)
60 len /= 2;
65 if (__predict_false(len == 1)) {
71 while ((--len % 8) != 0)
73 len /= 8;
74 if (len == 0)
76 while (len-- != 0) {
/system/extras/f2fs_utils/
H A Df2fs_utils.c57 int make_f2fs_sparse_fd(int fd, long long len, argument
65 len &= ~((__u64)(F2FS_BLKSIZE - 1));
67 c.total_sectors = len / c.sector_size;
69 f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, len);
/system/extras/memcpy-perf/
H A Dtest-funcs.cpp17 size_t len = size / sizeof(uint64_t); local
18 for (size_t i = 0; i < len; i+=1)
/system/bt/stack/btm/
H A Dbtm_ble_cont_energy.cc45 uint16_t len = p_params->param_len; local
50 if (len < 17) {
/system/bt/stack/include/
H A Dadvertise_data_parser.h52 uint8_t len = ad[position]; local
59 if (len == 0) {
69 if (position + len >= ad_len) {
73 position += len + 1;
85 uint8_t len = ad[position]; local
90 if (len == 0) {
99 if (position + len >= ad_len) {
105 position += len + 1;
120 uint8_t len = ad[position]; local
122 if (len
[all...]
/system/bt/test/suite/rfcomm/
H A Drfcomm_unittest.cc34 size_t len = 0; local
45 len = read(fd, &channel, sizeof(channel));
46 EXPECT_TRUE(len == sizeof(channel))
47 << "Channel not read from RFCOMM socket. Bytes read: " << len;
48 len = read(fd, &signal, sizeof(signal));
49 EXPECT_TRUE(len == sizeof(signal))
50 << "Connection signal not read from RFCOMM socket. Bytes read: " << len;
58 len = write(fd, HANDSHAKE_COMMAND, sizeof(HANDSHAKE_COMMAND));
59 EXPECT_TRUE(len == sizeof(HANDSHAKE_COMMAND))
60 << "Unable to send HFP handshake. Bytes written: " << len;
76 size_t len = 0; local
[all...]
/system/chre/apps/wifi_offload/
H A Dssid.cc26 void Ssid::SetData(const uint8_t *buff, size_t len) { argument
27 if (len > kMaxSsidLen) {
28 LOGE("Ssid buffer len %zu larger than max ssid len %zu. Truncating.", len,
30 len = kMaxSsidLen;
34 ssid_vec_.reserve(len);
35 for (size_t i = 0; i < len; i++) {
57 LOGE("Failed to deserialize Ssid. Ssid size is larger than max len.");
/system/connectivity/wifilogd/tests/
H A Dmessage_buffer_unittest.cpp56 size_t len; local
57 std::tie(start, len) = buffer_.ConsumeNextMessage();
58 return {start, start + len};

Completed in 3999 milliseconds

1234567891011>>