/aosp12/system/bt/gd/btaa/linux_generic/ |
H A D | hci_processor.cc | 65 uint16_t byte_count, in process_special_event() argument 78 avg_byte_count = byte_count / inquiry_results.size(); in process_special_event() 90 avg_byte_count = byte_count / completed_packets.size(); in process_special_event() 103 avg_byte_count = byte_count / keys_and_addresses.size(); in process_special_event() 118 uint16_t byte_count) { in process_command() argument 146 uint16_t byte_count) { in process_event() argument 175 pending_command_.btaa_hci_packet.byte_count += byte_count; in process_event() 184 pending_command_.btaa_hci_packet.byte_count += byte_count; in process_event() 207 uint16_t byte_count) { in process_acl() argument 220 uint16_t byte_count) { in process_sco() argument [all …]
|
H A D | attribution_processor.cc | 44 wakelock_duration_aggregator_[key].byte_count += btaa_packet.byte_count; in OnBtaaPackets() 59 total_byte_count += it.second.byte_count; in OnWakelockReleased() 69 it.second.wakelock_duration_ms = ms_per_byte * it.second.byte_count; in OnWakelockReleased() 79 btaa_aggregator_[it.first].byte_count = 0; in OnWakelockReleased() 85 btaa_aggregator_[it.first].byte_count += it.second.byte_count; in OnWakelockReleased() 98 it.second.byte_count < kByteCountTransientDeviceActivityEntry) { in OnWakelockReleased() 137 device_entry_builder.add_byte_count(it.second.byte_count); in Dump()
|
/aosp12/system/bt/gd/btaa/ |
H A D | hci_processor.h | 30 uint16_t byte_count; member 33 BtaaHciPacket(Activity activity, hci::Address address, uint16_t byte_count) in BtaaHciPacket() 34 : activity(activity), address(address), byte_count(byte_count) {} in BtaaHciPacket() 55 …void process_le_event(std::vector<BtaaHciPacket>& btaa_hci_packets, int16_t byte_count, hci::Event… 59 uint16_t byte_count, 64 uint16_t byte_count); 68 uint16_t byte_count); 72 uint16_t byte_count); 76 uint16_t byte_count); 80 uint16_t byte_count);
|
/aosp12/art/runtime/gc/ |
H A D | heap-inl.h | 47 size_t byte_count, in AllocObjectWithAllocator() argument 57 CheckPreconditionsForAllocObject(klass, byte_count); in AllocObjectWithAllocator() 75 l->PreObjectAllocated(self, h_klass, &byte_count); in AllocObjectWithAllocator() 116 byte_count = RoundUp(byte_count, space::BumpPointerSpace::kAlignment); in AllocObjectWithAllocator() 119 if (IsTLABAllocator(allocator) && byte_count <= self->TlabSize()) { in AllocObjectWithAllocator() 120 obj = self->AllocTlab(byte_count); in AllocObjectWithAllocator() 126 bytes_allocated = byte_count; in AllocObjectWithAllocator() 152 byte_count, in AllocObjectWithAllocator() 167 byte_count, in AllocObjectWithAllocator() 285 size_t byte_count, in AllocLargeObject() argument [all …]
|
/aosp12/bionic/linker/ |
H A D | linker_memory.cpp | 71 void* malloc(size_t byte_count) { in malloc() argument 72 return get_allocator().alloc(byte_count); in malloc() 79 void* realloc(void* p, size_t byte_count) { in realloc() argument 80 return get_allocator().realloc(p, byte_count); in realloc() 84 size_t byte_count; in reallocarray() local 85 if (__builtin_mul_overflow(item_count, item_size, &byte_count)) { in reallocarray() 89 return get_allocator().realloc(p, byte_count); in reallocarray()
|
/aosp12/art/libartbase/base/unix_file/ |
H A D | fd_file.cc | 366 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); in Read() 393 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset)); in Write() 423 while (byte_count > 0) { in ReadFullyGeneric() 437 bool FdFile::ReadFully(void* buffer, size_t byte_count) { in ReadFully() argument 442 return ReadFullyGeneric<pread>(fd_, buffer, byte_count, offset); in PreadFully() 451 while (byte_count > 0) { in WriteFullyGeneric() 453 ? TEMP_FAILURE_RETRY(pwrite(fd_, ptr, byte_count, offset)) in WriteFullyGeneric() 454 : TEMP_FAILURE_RETRY(write(fd_, ptr, byte_count)); in WriteFullyGeneric() 466 return WriteFullyGeneric<true>(buffer, byte_count, offset); in PwriteFully() 469 bool FdFile::WriteFully(const void* buffer, size_t byte_count) { in WriteFully() argument [all …]
|
H A D | fd_file.h | 71 int64_t Read(char* buf, int64_t byte_count, int64_t offset) const override WARN_UNUSED; 74 int64_t Write(const char* buf, int64_t byte_count, int64_t offset) override WARN_UNUSED; 108 bool ReadFully(void* buffer, size_t byte_count) WARN_UNUSED; 109 bool PreadFully(void* buffer, size_t byte_count, size_t offset) WARN_UNUSED; 110 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED; 111 bool PwriteFully(const void* buffer, size_t byte_count, size_t offset) WARN_UNUSED; 166 bool WriteFullyGeneric(const void* buffer, size_t byte_count, size_t offset);
|
/aosp12/art/runtime/native/ |
H A D | java_lang_StringFactory.cc | 34 jint high, jint offset, jint byte_count) { in StringFactory_newStringFromBytes() argument 43 if ((offset | byte_count) < 0 || byte_count > data_size - offset) { in StringFactory_newStringFromBytes() 46 offset, byte_count); in StringFactory_newStringFromBytes() 51 byte_count, in StringFactory_newStringFromBytes() 93 jint offset, jint byte_count) { in StringFactory_newStringFromUtf8Bytes() argument 114 if ((offset | byte_count) < 0 || byte_count > data_size - offset) { in StringFactory_newStringFromUtf8Bytes() 117 offset, byte_count); in StringFactory_newStringFromUtf8Bytes() 162 if (byte_count <= kDefaultBufferSize) { in StringFactory_newStringFromUtf8Bytes() 165 allocated_buffer.reset(new jchar[byte_count]); in StringFactory_newStringFromUtf8Bytes() 173 int last = offset + byte_count; in StringFactory_newStringFromUtf8Bytes()
|
/aosp12/art/libartbase/base/ |
H A D | mem_map.h | 133 size_t byte_count, 141 size_t byte_count, in MapAnonymous() argument 147 byte_count, in MapAnonymous() 155 size_t byte_count, in MapAnonymous() argument 162 byte_count, in MapAnonymous() 180 static MemMap MapFile(size_t byte_count, in MapFile() argument 189 byte_count, in MapFile() 294 MemMap TakeReservedMemory(size_t byte_count); 364 void ReleaseReservedMemory(size_t byte_count); 369 size_t byte_count, [all …]
|
H A D | mem_map.cc | 316 if (byte_count == 0) { in MapAnonymous() 385 byte_count, in MapAnonymous() 393 if (byte_count == 0) { in MapPlaceholder() 518 if (byte_count == 0) { in MapFileAtAddress() 581 byte_count, in MapFileAtAddress() 799 DCHECK_NE(byte_count, 0u); in ReleaseReservedMemory() 800 DCHECK_LE(byte_count, size_); in ReleaseReservedMemory() 801 byte_count = RoundUp(byte_count, kPageSize); in ReleaseReservedMemory() 803 if (byte_count == size_) { in ReleaseReservedMemory() 810 begin_ += byte_count; in ReleaseReservedMemory() [all …]
|
H A D | hex_dump.cc | 55 size_t byte_count = byte_count_; in Dump() local 57 while (byte_count > 0) { in Dump() 71 size_t count = std::min(byte_count, 16 - gap); in Dump() 104 byte_count -= count; in Dump() 106 if (byte_count > 0) { in Dump()
|
/aosp12/art/libelffile/stream/ |
H A D | buffered_output_stream.cc | 32 bool BufferedOutputStream::WriteFully(const void* buffer, size_t byte_count) { in WriteFully() argument 33 if (byte_count > kBufferSize) { in WriteFully() 37 return out_->WriteFully(buffer, byte_count); in WriteFully() 39 if (used_ + byte_count > kBufferSize) { in WriteFully() 45 memcpy(&buffer_[used_], src, byte_count); in WriteFully() 46 used_ += byte_count; in WriteFully()
|
H A D | vector_output_stream.h | 34 bool WriteFully(const void* buffer, size_t byte_count) override { in WriteFully() argument 37 vector_->insert(vector_->end(), &start[0], &start[byte_count]); in WriteFully() 38 offset_ += byte_count; in WriteFully() 40 off_t new_offset = offset_ + byte_count; in WriteFully() 42 memcpy(&(*vector_)[offset_], buffer, byte_count); in WriteFully()
|
H A D | error_delaying_output_stream.h | 39 bool WriteFully(const void* buffer, size_t byte_count) override { in WriteFully() argument 41 if (!output_->WriteFully(buffer, byte_count)) { in WriteFully() 42 PLOG(ERROR) << "Failed to write " << byte_count in WriteFully() 47 output_offset_ += byte_count; in WriteFully()
|
/aosp12/bootable/recovery/install/ |
H A D | package.cpp | 57 bool ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) override; 105 bool ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) override; 176 bool MemoryPackage::ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) { in ReadFullyAtOffset() argument 177 if (byte_count > package_size_ || offset > package_size_ - byte_count) { in ReadFullyAtOffset() 178 LOG(ERROR) << "Out of bound read, offset: " << offset << ", size: " << byte_count in ReadFullyAtOffset() 182 memcpy(buffer, addr_ + offset, byte_count); in ReadFullyAtOffset() 227 bool FilePackage::ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) { in ReadFullyAtOffset() argument 228 if (byte_count > package_size_ || offset > package_size_ - byte_count) { in ReadFullyAtOffset() 229 LOG(ERROR) << "Out of bound read, offset: " << offset << ", size: " << byte_count in ReadFullyAtOffset() 234 if (!android::base::ReadFullyAtOffset(fd_.get(), buffer, byte_count, offset)) { in ReadFullyAtOffset() [all …]
|
/aosp12/system/teeui/libteeui/include/teeui/ |
H A 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()
|
/aosp12/system/libbase/ |
H A 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()
|
H A 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()
|
/aosp12/packages/modules/adb/daemon/ |
H A 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() 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 254 if (!ParseUint(&byte_count, name)) { in daemon_service_to_socket() [all …]
|
/aosp12/art/libprofile/profile/ |
H A D | profile_helpers.h | 29 inline bool WriteBuffer(int fd, const uint8_t* buffer, size_t byte_count) { in WriteBuffer() argument 30 while (byte_count > 0) { in WriteBuffer() 31 int bytes_written = TEMP_FAILURE_RETRY(write(fd, buffer, byte_count)); in WriteBuffer() 35 byte_count -= bytes_written; // Reduce the number of remaining bytes. in WriteBuffer()
|
/aosp12/art/test/ti-agent/ |
H A D | ti_utf.h | 28 inline size_t CountModifiedUtf8Chars(const char* utf8, size_t byte_count) { in CountModifiedUtf8Chars() argument 29 DCHECK_LE(byte_count, strlen(utf8)); in CountModifiedUtf8Chars() 31 const char* end = utf8 + byte_count; in CountModifiedUtf8Chars() 108 size_t byte_count, in ConvertUtf16ToModifiedUtf8() argument 111 if (LIKELY(byte_count == char_count)) { in ConvertUtf16ToModifiedUtf8()
|
/aosp12/bionic/libc/bionic/ |
H A D | legacy_32_bit_support.cpp | 64 ssize_t pread(int fd, void* buf, size_t byte_count, off_t offset) { in pread() argument 65 return pread64(fd, buf, byte_count, static_cast<off64_t>(offset)); in pread() 69 ssize_t pwrite(int fd, const void* buf, size_t byte_count, off_t offset) { in pwrite() argument 70 return pwrite64(fd, buf, byte_count, static_cast<off64_t>(offset)); in pwrite()
|
/aosp12/art/libdexfile/dex/ |
H A D | utf.cc | 50 size_t CountModifiedUtf8Chars(const char* utf8, size_t byte_count) { in CountModifiedUtf8Chars() argument 51 DCHECK_LE(byte_count, strlen(utf8)); in CountModifiedUtf8Chars() 53 const char* end = utf8 + byte_count; in CountModifiedUtf8Chars() 124 void ConvertUtf16ToModifiedUtf8(char* utf8_out, size_t byte_count, in ConvertUtf16ToModifiedUtf8() argument 126 if (LIKELY(byte_count == char_count)) { in ConvertUtf16ToModifiedUtf8()
|
/aosp12/hardware/qcom/bt/msm8909/libbt-vendor/src/ |
H A D | hw_ar3k.c | 537 tag->data[info->byte_count] = strtol(buf, NULL, 16); in update_tag_data() 539 info->byte_count++; in update_tag_data() 544 info->byte_count++; in update_tag_data() 570 int16_t byte_count = 0; in ath_parse_ps() local 612 if (byte_count > PS_MAX_LEN) in ath_parse_ps() 615 tag->len = byte_count; in ath_parse_ps() 632 ENTRY_PER_LINE : byte_count; in ath_parse_ps() 640 if (byte_count > ENTRY_PER_LINE) in ath_parse_ps() 641 byte_count -= ENTRY_PER_LINE; in ath_parse_ps() 643 byte_count = 0; in ath_parse_ps() [all …]
|
/aosp12/hardware/qcom/bt/msm8909w_3100/libbt-vendor/src/ |
H A D | hw_ar3k.c | 539 tag->data[info->byte_count] = strtol(buf, NULL, 16); in update_tag_data() 541 info->byte_count++; in update_tag_data() 546 info->byte_count++; in update_tag_data() 572 int16_t byte_count = 0; in ath_parse_ps() local 614 if (byte_count > PS_MAX_LEN) in ath_parse_ps() 617 tag->len = byte_count; in ath_parse_ps() 634 ENTRY_PER_LINE : byte_count; in ath_parse_ps() 642 if (byte_count > ENTRY_PER_LINE) in ath_parse_ps() 643 byte_count -= ENTRY_PER_LINE; in ath_parse_ps() 645 byte_count = 0; in ath_parse_ps() [all …]
|