Searched refs:byte_count (Results 1 – 7 of 7) sorted by relevance
/system/core/base/ |
D | file.cpp | 144 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/ |
D | file.h | 50 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/ |
D | adb_utils.cpp | 159 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()
|
D | adb_utils.h | 44 std::string dump_hex(const void* ptr, size_t byte_count);
|
/system/core/fastboot/ |
D | socket_test.cpp | 256 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/ |
D | rw_t2t_ndef.cc | 2055 uint16_t byte_count = 0; in rw_t2t_get_lock_bits_for_segment() local 2078 byte_count = T2T_STATIC_SIZE; in rw_t2t_get_lock_bits_for_segment() 2086 while ((byte_count <= lower_offset) && in rw_t2t_get_lock_bits_for_segment() 2104 if (((bytes_locked_per_bit * num_bits) + byte_count) <= lower_offset) { in rw_t2t_get_lock_bits_for_segment() 2106 byte_count += bytes_locked_per_bit * num_bits; in rw_t2t_get_lock_bits_for_segment() 2111 byte_count += bytes_locked_per_bit; in rw_t2t_get_lock_bits_for_segment() 2112 if (byte_count > lower_offset) { in rw_t2t_get_lock_bits_for_segment() 2128 while ((byte_count < upper_offset) && in rw_t2t_get_lock_bits_for_segment() 2146 if ((bytes_locked_per_bit * (num_bits - bit_count)) + byte_count < in rw_t2t_get_lock_bits_for_segment() 2149 byte_count += bytes_locked_per_bit * (num_bits - bit_count); in rw_t2t_get_lock_bits_for_segment() [all …]
|
D | rw_t1t_ndef.cc | 1832 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 …]
|