Home
last modified time | relevance | path

Searched refs:byte_count (Results 1 – 7 of 7) sorted by relevance

/system/core/base/
Dfile.cpp144 bool ReadFully(int fd, void* data, size_t byte_count) { in ReadFully() argument
146 size_t remaining = byte_count; in ReadFully()
159 static ssize_t pread(int fd, void* data, size_t byte_count, off64_t offset) { in pread() argument
165 if (!ReadFile(reinterpret_cast<HANDLE>(_get_osfhandle(fd)), data, static_cast<DWORD>(byte_count), in pread()
175 bool ReadFullyAtOffset(int fd, void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() argument
177 while (byte_count > 0) { in ReadFullyAtOffset()
178 ssize_t n = TEMP_FAILURE_RETRY(pread(fd, p, byte_count, offset)); in ReadFullyAtOffset()
181 byte_count -= n; in ReadFullyAtOffset()
187 bool WriteFully(int fd, const void* data, size_t byte_count) { in WriteFully() argument
189 size_t remaining = byte_count; in WriteFully()
/system/core/base/include/android-base/
Dfile.h50 bool ReadFully(int fd, void* data, size_t byte_count);
60 bool ReadFullyAtOffset(int fd, void* data, size_t byte_count, off64_t offset);
62 bool WriteFully(int fd, const void* data, size_t byte_count);
/system/core/adb/
Dadb_utils.cpp159 std::string dump_hex(const void* data, size_t byte_count) { in dump_hex() argument
162 if (byte_count > truncate_len) { in dump_hex()
163 byte_count = truncate_len; in dump_hex()
170 for (size_t i = 0; i < byte_count; ++i) { in dump_hex()
175 for (size_t i = 0; i < byte_count; ++i) { in dump_hex()
Dadb_utils.h44 std::string dump_hex(const void* ptr, size_t byte_count);
/system/core/fastboot/
Dsocket_test.cpp256 size_t byte_count = bytes_sent, data_index = 0; in TEST() local
258 if (byte_count >= data[data_index].length()) { in TEST()
259 byte_count -= data[data_index].length(); in TEST()
265 void* expected_next_byte = &data[data_index][byte_count]; in TEST()
266 size_t expected_next_size = data[data_index].length() - byte_count; in TEST()
/system/nfc/src/nfc/tags/
Drw_t2t_ndef.cc2012 uint16_t byte_count = 0; in rw_t2t_get_lock_bits_for_segment() local
2035 byte_count = T2T_STATIC_SIZE; in rw_t2t_get_lock_bits_for_segment()
2043 while ((byte_count <= lower_offset) && in rw_t2t_get_lock_bits_for_segment()
2061 if (((bytes_locked_per_bit * num_bits) + byte_count) <= lower_offset) { in rw_t2t_get_lock_bits_for_segment()
2063 byte_count += bytes_locked_per_bit * num_bits; in rw_t2t_get_lock_bits_for_segment()
2068 byte_count += bytes_locked_per_bit; in rw_t2t_get_lock_bits_for_segment()
2069 if (byte_count > lower_offset) { in rw_t2t_get_lock_bits_for_segment()
2085 while ((byte_count < upper_offset) && in rw_t2t_get_lock_bits_for_segment()
2103 if ((bytes_locked_per_bit * (num_bits - bit_count)) + byte_count < in rw_t2t_get_lock_bits_for_segment()
2106 byte_count += bytes_locked_per_bit * (num_bits - bit_count); in rw_t2t_get_lock_bits_for_segment()
[all …]
Drw_t1t_ndef.cc1832 uint16_t byte_count = T1T_SEGMENT_SIZE; in rw_t1t_get_lock_bits_for_segment() local
1851 while ((byte_count <= lower_offset) && in rw_t1t_get_lock_bits_for_segment()
1870 if (bytes_locked_per_bit * num_bits + byte_count <= lower_offset) { in rw_t1t_get_lock_bits_for_segment()
1871 byte_count += bytes_locked_per_bit * num_bits; in rw_t1t_get_lock_bits_for_segment()
1878 byte_count += bytes_locked_per_bit; in rw_t1t_get_lock_bits_for_segment()
1879 if (byte_count > lower_offset) { in rw_t1t_get_lock_bits_for_segment()
1894 while ((byte_count < upper_offset) && in rw_t1t_get_lock_bits_for_segment()
1914 if ((bytes_locked_per_bit * (num_bits - bit_count)) + byte_count < in rw_t1t_get_lock_bits_for_segment()
1916 byte_count += bytes_locked_per_bit * (num_bits - bit_count); in rw_t1t_get_lock_bits_for_segment()
1925 byte_count += bytes_locked_per_bit; in rw_t1t_get_lock_bits_for_segment()
[all …]