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

1234567891011>>

/system/bt/bta/test/
H A Dgatt_cache_file_test.cc40 constexpr size_t len = sizeof(tBTA_GATTC_NV_ATTR); local
41 uint8_t binary_form[len] = {0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x10,
47 // LOG(ERROR) << " " << base::HexEncode(binary_form, len);
48 EXPECT_EQ(memcmp(binary_form, &attr, len), 0);
/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/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/bt/osi/src/
H A Dproperties.cc34 int len = 0; local
35 if (!default_value) return len;
37 len = strlen(default_value);
38 if (len >= PROPERTY_VALUE_MAX) len = PROPERTY_VALUE_MAX - 1;
40 memcpy(value, default_value, len);
41 value[len] = '\0';
42 return len;
H A Dallocator.cc41 char* osi_strndup(const char* str, size_t len) { argument
43 if (len < size) size = len;
/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.h44 uint16_t len; member in struct:fs_path_config_from_file
/system/core/libcutils/
H A Dpartition_utils.cpp28 static int only_one_char(char *buf, int len, char c) argument
33 for (i=0; i<len; i++) {
H A Dstrdup16to8.cpp29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len) argument
34 * potentially be as big as 3*len, which will overflow
35 * for len > SIZE_MAX/3.
43 * dst = malloc(strnlen16to8(utf16,len)+1)
55 /* Fast path for the usual case where 3*len is < SIZE_MAX-1.
57 if (len < (SIZE_MAX-1)/3) {
58 while (len != 0) {
59 len--;
73 while (len != 0) {
74 len
109 strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len) argument
152 size_t len = strnlen16to8(s, n); local
[all...]
/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;
H A Dfake_writer.c79 int logFd, len; local
85 len = 0;
87 len += vec[i].iov_len;
90 if (len > LOGGER_ENTRY_MAX_PAYLOAD) {
91 len = LOGGER_ENTRY_MAX_PAYLOAD;
98 } else if (ret > len) {
99 ret = len;
/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/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/netd/libnetdutils/include/netdutils/
H A DMemBlock.h35 MemBlock(size_t len) argument
36 : mData((len > 0U) ? new uint8_t[len]{} : nullptr),
37 mLen(len) {}
/system/bt/bta/ag/
H A Dbta_ag_at.cc167 void bta_ag_at_parse(tBTA_AG_AT_CB* p_cb, char* p_buf, uint16_t len) { argument
176 for (i = 0; i < len;) {
177 while (p_cb->cmd_pos < p_cb->cmd_max_len - 1 && i < len) {
209 if (i < len) p_cb->cmd_pos = 0;
/system/bt/packet/avrcp/
H A Dset_addressed_player.cc31 size_t len = VendorPacket::kMinSize(); local
32 len += 1; // Status
33 return len;
/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) {
64 if (position + len >= ad_len) {
68 position += len + 1;
80 uint8_t len = ad[position]; local
85 if (len == 0) {
94 if (position + len >= ad_len) {
100 position += len + 1;
115 uint8_t len = ad[position]; local
117 if (len
[all...]
/system/bt/test/suite/rfcomm/
H A Drfcomm_unittest.cc34 size_t len = 0; local
44 len = read(fd, &channel, sizeof(channel));
45 EXPECT_TRUE(len == sizeof(channel))
46 << "Channel not read from RFCOMM socket. Bytes read: " << len;
47 len = read(fd, &signal, sizeof(signal));
48 EXPECT_TRUE(len == sizeof(signal))
49 << "Connection signal not read from RFCOMM socket. Bytes read: " << len;
57 len = write(fd, HANDSHAKE_COMMAND, sizeof(HANDSHAKE_COMMAND));
58 EXPECT_TRUE(len == sizeof(HANDSHAKE_COMMAND))
59 << "Unable to send HFP handshake. Bytes written: " << len;
75 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 641 milliseconds

1234567891011>>