/system/libbase/ |
D | abi_compatibility.cpp | 52 bool ReadFully(int fd, void* data, size_t byte_count) { in ReadFully() argument 53 return ReadFully(borrowed_fd(fd), data, byte_count); in ReadFully() 56 bool ReadFullyAtOffset(int fd, void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() argument 57 return ReadFullyAtOffset(borrowed_fd(fd), data, byte_count, offset); in ReadFullyAtOffset() 60 bool WriteFully(int fd, const void* data, size_t byte_count) { in WriteFully() argument 61 return WriteFully(borrowed_fd(fd), data, byte_count); in WriteFully()
|
D | file.cpp | 310 bool ReadFully(borrowed_fd fd, void* data, size_t byte_count) { in ReadFully() argument 312 size_t remaining = byte_count; in ReadFully() 325 static ssize_t pread(borrowed_fd fd, void* data, size_t byte_count, off64_t offset) { in pread() argument 332 static_cast<DWORD>(byte_count), &bytes_read, &overlapped)) { in pread() 341 bool ReadFullyAtOffset(borrowed_fd fd, void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() argument 343 while (byte_count > 0) { in ReadFullyAtOffset() 344 ssize_t n = TEMP_FAILURE_RETRY(pread(fd.get(), p, byte_count, offset)); in ReadFullyAtOffset() 347 byte_count -= n; in ReadFullyAtOffset() 353 bool WriteFully(borrowed_fd fd, const void* data, size_t byte_count) { in WriteFully() argument 355 size_t remaining = byte_count; in WriteFully()
|
/system/teeui/libteeui/include/teeui/ |
D | utf8range.h | 59 size_t byte_count = byteCount(c); in codePoint() local 60 if (byte_count == 1) { in codePoint() 64 unsigned long result = c & ~(0xff << (8 - byte_count)); in codePoint() 66 for (size_t i = 1; i < byte_count; ++i) { in codePoint() 110 auto byte_count = byteCount(*pos); in verify() local 112 if (end_ - pos < byte_count) return false; in verify() 116 pos += byte_count; in verify()
|
/system/core/adb/daemon/ |
D | services.cpp | 192 explicit SinkSocket(size_t byte_count) { in SinkSocket() 193 LOG(INFO) << "Creating new SinkSocket with capacity " << byte_count; in SinkSocket() 194 bytes_left_ = byte_count; in SinkSocket() 214 explicit SourceSocket(size_t byte_count) { in SourceSocket() 215 LOG(INFO) << "Creating new SourceSocket with capacity " << byte_count; in SourceSocket() 216 bytes_left_ = byte_count; in SourceSocket() 247 uint64_t byte_count = 0; in daemon_service_to_socket() local 248 if (!ParseUint(&byte_count, name)) { in daemon_service_to_socket() 251 return new SinkSocket(byte_count); in daemon_service_to_socket() 253 uint64_t byte_count = 0; in daemon_service_to_socket() local [all …]
|
/system/libbase/include/android-base/ |
D | file.h | 95 bool ReadFully(borrowed_fd fd, void* data, size_t byte_count); 105 bool ReadFullyAtOffset(borrowed_fd fd, void* data, size_t byte_count, off64_t offset); 107 bool WriteFully(borrowed_fd fd, const void* data, size_t byte_count);
|
/system/core/adb/ |
D | adb_utils.cpp | 161 std::string dump_hex(const void* data, size_t byte_count) { in dump_hex() argument 164 if (byte_count > truncate_len) { in dump_hex() 165 byte_count = truncate_len; in dump_hex() 172 for (size_t i = 0; i < byte_count; ++i) { in dump_hex() 177 for (size_t i = 0; i < byte_count; ++i) { in dump_hex()
|
D | adb_utils.h | 47 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/core/adb/client/ |
D | fastdeploy.cpp | 106 static void push_to_device(const void* data, size_t byte_count, const char* dst, bool sync) { in push_to_device() argument 109 android::base::WriteFully(tf.fd, data, byte_count); in push_to_device()
|
/system/nfc/src/nfc/tags/ |
D | rw_t2t_ndef.cc | 2054 uint16_t byte_count = 0; in rw_t2t_get_lock_bits_for_segment() local 2077 byte_count = T2T_STATIC_SIZE; in rw_t2t_get_lock_bits_for_segment() 2085 while ((byte_count <= lower_offset) && in rw_t2t_get_lock_bits_for_segment() 2103 if (((bytes_locked_per_bit * num_bits) + byte_count) <= lower_offset) { in rw_t2t_get_lock_bits_for_segment() 2105 byte_count += bytes_locked_per_bit * num_bits; in rw_t2t_get_lock_bits_for_segment() 2110 byte_count += bytes_locked_per_bit; in rw_t2t_get_lock_bits_for_segment() 2111 if (byte_count > lower_offset) { in rw_t2t_get_lock_bits_for_segment() 2127 while ((byte_count < upper_offset) && in rw_t2t_get_lock_bits_for_segment() 2145 if ((bytes_locked_per_bit * (num_bits - bit_count)) + byte_count < in rw_t2t_get_lock_bits_for_segment() 2148 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 …]
|