/art/runtime/base/unix_file/ |
D | string_file.cc | 38 int64_t StringFile::Read(char *buf, int64_t byte_count, int64_t offset) const { in Read() argument 40 CHECK_GE(byte_count, 0); in Read() 46 const int64_t available_bytes = std::min(byte_count, GetLength() - offset); in Read() 66 int64_t StringFile::Write(const char *buf, int64_t byte_count, int64_t offset) { in Write() argument 68 CHECK_GE(byte_count, 0); in Write() 74 if (byte_count == 0) { in Write() 86 data_.replace(offset, byte_count, buf, byte_count); in Write() 87 return byte_count; in Write()
|
D | fd_file.cc | 76 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read() argument 77 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); in Read() 92 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument 93 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)); in Write() 109 bool FdFile::ReadFully(void* buffer, int64_t byte_count) { in ReadFully() argument 111 while (byte_count > 0) { in ReadFully() 112 int bytes_read = TEMP_FAILURE_RETRY(read(fd_, ptr, byte_count)); in ReadFully() 116 byte_count -= bytes_read; // Reduce the number of remaining bytes. in ReadFully() 122 bool FdFile::WriteFully(const void* buffer, int64_t byte_count) { in WriteFully() argument 124 while (byte_count > 0) { in WriteFully() [all …]
|
D | fd_file.h | 51 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const; 54 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset); 62 bool ReadFully(void* buffer, int64_t byte_count); 63 bool WriteFully(const void* buffer, int64_t byte_count);
|
D | null_file.cc | 36 int64_t NullFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read() argument 54 int64_t NullFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument 58 return byte_count; in Write()
|
D | mapped_file.cc | 98 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read() argument 104 int64_t read_size = std::max(0LL, std::min(byte_count, file_size_ - offset)); in Read() 110 return FdFile::Read(buf, byte_count, offset); in Read() 132 int64_t MappedFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument 139 int64_t write_size = std::max(0LL, std::min(byte_count, file_size_ - offset)); in Write() 145 return FdFile::Write(buf, byte_count, offset); in Write()
|
D | random_access_file.h | 45 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const = 0; 60 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset) = 0;
|
D | null_file.h | 39 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const; 42 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
|
D | string_file.h | 42 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const; 45 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
|
D | mapped_file.h | 63 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const; 70 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
|
/art/compiler/ |
D | buffered_output_stream.cc | 26 bool BufferedOutputStream::WriteFully(const void* buffer, int64_t byte_count) { in WriteFully() argument 27 if (byte_count > kBufferSize) { in WriteFully() 29 return out_->WriteFully(buffer, byte_count); in WriteFully() 31 if (used_ + byte_count > kBufferSize) { in WriteFully() 38 memcpy(&buffer_[used_], src, byte_count); in WriteFully() 39 used_ += byte_count; in WriteFully()
|
D | vector_output_stream.h | 34 bool WriteFully(const void* buffer, int64_t byte_count) { 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()
|
D | file_output_stream.cc | 28 bool FileOutputStream::WriteFully(const void* buffer, int64_t byte_count) { in WriteFully() argument 29 return file_->WriteFully(buffer, byte_count); in WriteFully()
|
D | file_output_stream.h | 32 virtual bool WriteFully(const void* buffer, int64_t byte_count);
|
D | buffered_output_stream.h | 34 virtual bool WriteFully(const void* buffer, int64_t byte_count);
|
D | output_stream.h | 44 virtual bool WriteFully(const void* buffer, int64_t byte_count) = 0;
|
/art/runtime/ |
D | mem_map.cc | 45 static void CheckMapRequest(byte* addr, size_t byte_count) { in CheckMapRequest() argument 51 uint32_t limit = base + byte_count; in CheckMapRequest() 70 MemMap* MemMap::MapAnonymous(const char* name, byte* addr, size_t byte_count, int prot) { in MapAnonymous() argument 71 if (byte_count == 0) { in MapAnonymous() 74 size_t page_aligned_byte_count = RoundUp(byte_count, kPageSize); in MapAnonymous() 102 return new MemMap(name, actual, byte_count, actual, page_aligned_byte_count, prot); in MapAnonymous() 105 MemMap* MemMap::MapFileAtAddress(byte* addr, size_t byte_count, in MapFileAtAddress() argument 109 if (byte_count == 0) { in MapFileAtAddress() 116 size_t page_aligned_byte_count = RoundUp(byte_count + page_offset, kPageSize); in MapFileAtAddress() 142 return new MemMap("file", actual + page_offset, byte_count, actual, page_aligned_byte_count, in MapFileAtAddress()
|
D | mem_map.h | 41 static MemMap* MapAnonymous(const char* ashmem_name, byte* addr, size_t byte_count, int prot); 47 static MemMap* MapFile(size_t byte_count, int prot, int flags, int fd, off_t start) { in MapFile() argument 48 return MapFileAtAddress(NULL, byte_count, prot, flags, fd, start, false); in MapFile() 57 byte* addr, size_t byte_count, int prot, int flags, int fd, off_t start, bool reuse);
|
D | utils.cc | 438 std::string PrettySize(size_t byte_count) { in PrettySize() argument 452 if (byte_count >= kUnitThresholds[i]) { in PrettySize() 457 return StringPrintf("%zd%s", byte_count / kBytesPerUnit[i], kUnitStrings[i]); in PrettySize()
|
D | debugger.cc | 73 size_t byte_count; member 1417 size_t byte_count = code_item->insns_size_in_code_units_ * 2; in GetBytecodes() local 1419 const uint8_t* end = begin + byte_count; in GetBytecodes() 3072 void Dbg::DdmSendChunk(uint32_t type, size_t byte_count, const uint8_t* buf) { in DdmSendChunk() argument 3076 vec[0].iov_len = byte_count; in DdmSendChunk() 3527 void Dbg::RecordAllocation(mirror::Class* type, size_t byte_count) { in RecordAllocation() argument 3544 record->byte_count = byte_count; in RecordAllocation() 3585 LOG(INFO) << StringPrintf(" Thread %-2d %6zd bytes ", record->thin_lock_id, record->byte_count) in DumpRecentAllocations() 3761 JDWP::Append4BE(bytes, record->byte_count); in GetRecentAllocations()
|
D | debugger.h | 390 static void RecordAllocation(mirror::Class* type, size_t byte_count)
|
/art/runtime/base/ |
D | logging.cc | 161 HexDump::HexDump(const void* address, size_t byte_count, bool show_actual_addresses) in HexDump() argument 162 : address_(address), byte_count_(byte_count), show_actual_addresses_(show_actual_addresses) { in HexDump() 189 size_t byte_count = byte_count_; in Dump() local 191 while (byte_count) { in Dump() 204 int count = std::min(static_cast<int>(byte_count), 16 - gap); in Dump() 237 byte_count -= count; in Dump()
|
D | logging.h | 217 HexDump(const void* address, size_t byte_count, bool show_actual_addresses = false);
|
/art/runtime/jdwp/ |
D | jdwp_priv.h | 64 void ConsumeBytes(size_t byte_count);
|
/art/runtime/mirror/ |
D | string.cc | 240 size_t byte_count = GetUtfLength(); in ToModifiedUtf8() local 241 std::string result(byte_count, static_cast<char>(0)); in ToModifiedUtf8()
|
/art/runtime/gc/ |
D | heap.cc | 557 mirror::Object* Heap::AllocObject(Thread* self, mirror::Class* c, size_t byte_count) { in AllocObject() argument 558 DCHECK(c == NULL || (c->IsClassClass() && byte_count >= sizeof(mirror::Class)) || in AllocObject() 559 (c->IsVariableSize() || c->GetObjectSize() == byte_count) || in AllocObject() 561 DCHECK_GE(byte_count, sizeof(mirror::Object)); in AllocObject() 575 byte_count >= large_object_threshold_ && have_zygote_space_ && c->IsPrimitiveArray(); in AllocObject() 577 obj = Allocate(self, large_object_space_, byte_count, &bytes_allocated); in AllocObject() 584 obj = Allocate(self, alloc_space_, byte_count, &bytes_allocated); in AllocObject() 597 Dbg::RecordAllocation(c, byte_count); in AllocObject() 616 oss << "Failed to allocate a " << byte_count << " byte allocation with " << total_bytes_free in AllocObject() 619 if (!large_object_allocation && total_bytes_free >= byte_count) { in AllocObject()
|