/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 | 138 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read() argument 140 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); in Read() 142 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); in Read() 163 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument 165 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)); in Write() 167 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset)); in Write() 181 bool FdFile::ReadFully(void* buffer, size_t byte_count) { in ReadFully() argument 183 while (byte_count > 0) { in ReadFully() 184 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd_, ptr, byte_count)); in ReadFully() 190 byte_count -= bytes_read; // Reduce the number of remaining bytes. in ReadFully() [all …]
|
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 | 112 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read() argument 119 std::min(byte_count, file_size_ - offset)); in Read() 125 return FdFile::Read(buf, byte_count, offset); in Read() 148 int64_t MappedFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument 156 std::min(byte_count, file_size_ - offset)); in Write() 163 return FdFile::Write(buf, byte_count, offset); in Write()
|
D | fd_file.h | 54 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const WARN_UNUSED; 57 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset) WARN_UNUSED; 76 bool ReadFully(void* buffer, size_t byte_count) WARN_UNUSED; 77 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED;
|
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 | 69 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const; 76 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, size_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, size_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, size_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, size_t byte_count);
|
D | buffered_output_stream.h | 34 virtual bool WriteFully(const void* buffer, size_t byte_count);
|
D | output_stream.h | 45 virtual bool WriteFully(const void* buffer, size_t byte_count) = 0;
|
/art/runtime/gc/ |
D | heap-inl.h | 40 size_t byte_count, AllocatorType allocator, in AllocObjectWithAllocator() argument 43 CheckPreconditionsForAllocObject(klass, byte_count); in AllocObjectWithAllocator() 52 if (kCheckLargeObject && UNLIKELY(ShouldAllocLargeObject(klass, byte_count))) { in AllocObjectWithAllocator() 53 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, in AllocObjectWithAllocator() 70 byte_count = RoundUp(byte_count, space::BumpPointerSpace::kAlignment); in AllocObjectWithAllocator() 73 if (allocator == kAllocatorTypeTLAB && byte_count <= self->TlabSize()) { in AllocObjectWithAllocator() 74 obj = self->AllocTlab(byte_count); in AllocObjectWithAllocator() 83 bytes_allocated = byte_count; in AllocObjectWithAllocator() 88 obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated, in AllocObjectWithAllocator() 92 obj = AllocateInternalWithGc(self, allocator, byte_count, &bytes_allocated, &usable_size, in AllocObjectWithAllocator() [all …]
|
D | heap.h | 194 Thread* self, mirror::Class* klass, size_t byte_count, AllocatorType allocator, 210 void CheckPreconditionsForAllocObject(mirror::Class* c, size_t byte_count) 634 bool ShouldAllocLargeObject(mirror::Class* c, size_t byte_count) const 646 mirror::Object* AllocLargeObject(Thread* self, mirror::Class** klass, size_t byte_count, 675 void ThrowOutOfMemoryError(Thread* self, size_t byte_count, AllocatorType allocator_type)
|
D | heap.cc | 934 void Heap::ThrowOutOfMemoryError(Thread* self, size_t byte_count, AllocatorType allocator_type) { in ThrowOutOfMemoryError() argument 937 oss << "Failed to allocate a " << byte_count << " byte allocation with " << total_bytes_free in ThrowOutOfMemoryError() 940 if (total_bytes_free >= byte_count) { in ThrowOutOfMemoryError() 952 space->LogFragmentationAllocFailure(oss, byte_count); in ThrowOutOfMemoryError() 3241 void Heap::CheckPreconditionsForAllocObject(mirror::Class* c, size_t byte_count) { in CheckPreconditionsForAllocObject() argument 3242 CHECK(c == NULL || (c->IsClassClass() && byte_count >= sizeof(mirror::Class)) || in CheckPreconditionsForAllocObject() 3243 (c->IsVariableSize() || c->GetObjectSize() == byte_count)); in CheckPreconditionsForAllocObject() 3244 CHECK_GE(byte_count, sizeof(mirror::Object)); in CheckPreconditionsForAllocObject()
|
/art/runtime/base/ |
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()
|
D | hex_dump.h | 32 HexDump(const void* address, size_t byte_count, bool show_actual_addresses, const char* prefix) in HexDump() argument 33 : address_(address), byte_count_(byte_count), show_actual_addresses_(show_actual_addresses), in HexDump()
|
/art/runtime/ |
D | mem_map.h | 63 static MemMap* MapAnonymous(const char* ashmem_name, byte* addr, size_t byte_count, int prot, 70 static MemMap* MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, in MapFile() argument 72 return MapFileAtAddress(NULL, byte_count, prot, flags, fd, start, false, filename, error_msg); in MapFile() 83 static MemMap* MapFileAtAddress(byte* addr, size_t byte_count, int prot, int flags, int fd,
|
D | mem_map.cc | 194 static bool CheckMapRequest(byte* expected_ptr, void* actual_ptr, size_t byte_count, in CheckMapRequest() argument 205 uintptr_t limit = expected + byte_count; in CheckMapRequest() 212 int result = munmap(actual_ptr, byte_count); in CheckMapRequest() 214 PLOG(WARNING) << StringPrintf("munmap(%p, %zd) failed", actual_ptr, byte_count); in CheckMapRequest() 239 MemMap* MemMap::MapAnonymous(const char* name, byte* expected_ptr, size_t byte_count, int prot, in MapAnonymous() argument 241 if (byte_count == 0) { in MapAnonymous() 244 size_t page_aligned_byte_count = RoundUp(byte_count, kPageSize); in MapAnonymous() 382 return new MemMap(name, reinterpret_cast<byte*>(actual), byte_count, actual, in MapAnonymous() 386 MemMap* MemMap::MapFileAtAddress(byte* expected_ptr, size_t byte_count, int prot, int flags, int fd, in MapFileAtAddress() argument 401 uintptr_t limit = expected + byte_count; in MapFileAtAddress() [all …]
|
D | utils.cc | 451 std::string PrettySize(int64_t byte_count) { in PrettySize() argument 463 if (byte_count < 0) { in PrettySize() 465 byte_count = -byte_count; in PrettySize() 469 if (byte_count >= kUnitThresholds[i]) { in PrettySize() 474 negative_str, byte_count / kBytesPerUnit[i], kUnitStrings[i]); in PrettySize()
|
/art/runtime/jdwp/ |
D | jdwp_priv.h | 64 void ConsumeBytes(size_t byte_count);
|
/art/runtime/mirror/ |
D | string.cc | 195 size_t byte_count = GetUtfLength(); in ToModifiedUtf8() local 196 std::string result(byte_count, static_cast<char>(0)); in ToModifiedUtf8()
|