/art/libelffile/stream/ |
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()
|
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()
|
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()
|
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 bool WriteFully(const void* buffer, size_t byte_count) override;
|
D | buffered_output_stream.h | 34 bool WriteFully(const void* buffer, size_t byte_count) override;
|
D | output_stream.h | 44 virtual bool WriteFully(const void* buffer, size_t byte_count) = 0;
|
/art/runtime/gc/ |
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() 96 if (kCheckLargeObject && UNLIKELY(ShouldAllocLargeObject(klass, byte_count))) { in AllocObjectWithAllocator() 98 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, in AllocObjectWithAllocator() 112 (self, klass, byte_count, GetUpdatedAllocator(allocator), pre_fence_visitor); 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() [all …]
|
D | allocation_listener.h | 59 [[maybe_unused]] size_t* byte_count) in PreObjectAllocated() argument 64 virtual void ObjectAllocated(Thread* self, ObjPtr<mirror::Object>* obj, size_t byte_count)
|
/art/libartbase/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 | mem_map.h | 136 size_t byte_count, 150 size_t byte_count, 157 size_t byte_count, in MapAnonymous() argument 163 byte_count, in MapAnonymous() 171 size_t byte_count, in MapAnonymous() argument 178 byte_count, in MapAnonymous() 190 static MemMap MapPlaceholder(const char* name, uint8_t* addr, size_t byte_count); 196 static MemMap MapFile(size_t byte_count, in MapFile() argument 205 byte_count, in MapFile() 230 size_t byte_count, [all …]
|
D | mem_map.cc | 188 bool MemMap::CheckMapRequest(uint8_t* expected_ptr, void* actual_ptr, size_t byte_count, in CheckMapRequest() argument 205 int result = TargetMUnmap(actual_ptr, byte_count); in CheckMapRequest() 207 PLOG(WARNING) << StringPrintf("munmap(%p, %zd) failed", actual_ptr, byte_count); in CheckMapRequest() 234 size_t byte_count, in CheckReservation() argument 250 if (byte_count > reservation.Size()) { in CheckReservation() 252 byte_count, in CheckReservation() 309 size_t byte_count, in MapAnonymous() argument 319 if (byte_count == 0) { in MapAnonymous() 323 size_t page_aligned_byte_count = RoundUp(byte_count, GetPageSize()); in MapAnonymous() 332 DCHECK(ContainedWithinExistingMap(addr, byte_count, error_msg)) << *error_msg; in MapAnonymous() [all …]
|
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/libprofile/profile/ |
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()
|
/art/runtime/native/ |
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() 123 jint offset, jint byte_count) { in StringFactory_newStringFromUtf8Bytes() argument 144 if ((offset | byte_count) < 0 || byte_count > data_size - offset) { in StringFactory_newStringFromUtf8Bytes() 147 offset, byte_count); in StringFactory_newStringFromUtf8Bytes() 192 if (byte_count <= kDefaultBufferSize) { in StringFactory_newStringFromUtf8Bytes() 195 allocated_buffer.reset(new jchar[byte_count]); in StringFactory_newStringFromUtf8Bytes() 203 int last = offset + byte_count; in StringFactory_newStringFromUtf8Bytes()
|
/art/libartbase/base/unix_file/ |
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; 106 bool ReadFully(void* buffer, size_t byte_count) WARN_UNUSED; 107 bool PreadFully(void* buffer, size_t byte_count, size_t offset) WARN_UNUSED; 108 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED; 109 bool PwriteFully(const void* buffer, size_t byte_count, size_t offset) WARN_UNUSED; 176 bool WriteFullyGeneric(const void* buffer, size_t byte_count, size_t offset);
|
D | fd_file.cc | 74 static ssize_t pread(int fd, void* data, size_t byte_count, off64_t offset) { in pread() argument 88 if (!ReadFile(handle, data, static_cast<DWORD>(byte_count), &bytes_read, &overlapped)) { in pread() 371 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read() argument 373 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); in Read() 375 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); in Read() 397 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument 400 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)); in Write() 402 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset)); in Write() 430 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { in ReadFullyGeneric() argument 432 while (byte_count > 0) { in ReadFullyGeneric() [all …]
|
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;
|
/art/test/ti-agent/ |
D | ti_utf.h | 29 inline size_t CountModifiedUtf8Chars(const char* utf8, size_t byte_count) { in CountModifiedUtf8Chars() argument 30 DCHECK_LE(byte_count, strlen(utf8)); in CountModifiedUtf8Chars() 32 const char* end = utf8 + byte_count; in CountModifiedUtf8Chars() 159 size_t byte_count, in ConvertUtf16ToModifiedUtf8() argument 162 if (LIKELY(byte_count == char_count)) { in ConvertUtf16ToModifiedUtf8()
|
/art/libdexfile/dex/ |
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()
|
D | utf.h | 41 size_t CountModifiedUtf8Chars(const char* utf8, size_t byte_count); 93 void ConvertUtf16ToModifiedUtf8(char* utf8_out, size_t byte_count,
|
/art/openjdkjvmti/ |
D | alloc_manager.cc | 101 size_t* byte_count) { in PreObjectAllocated() argument 104 oss << "allocating " << *byte_count << " bytes of type " << type->PrettyClass(); in PreObjectAllocated() 108 *byte_count = in PreObjectAllocated() 110 *byte_count); in PreObjectAllocated()
|
D | alloc_manager.h | 66 size_t* byte_count) override REQUIRES_SHARED(art::Locks::mutator_lock_); 79 size_t byte_count) REQUIRES_SHARED(art::Locks::mutator_lock_) = 0;
|
/art/runtime/entrypoints/quick/ |
D | quick_alloc_entrypoints.cc | 50 size_t byte_count = klass->GetObjectSizeAllocFastPath(); in artAllocObjectFromCode() local 51 if (LIKELY(byte_count < self->TlabSize())) { in artAllocObjectFromCode() 53 DCHECK_ALIGNED(byte_count, gc::space::BumpPointerSpace::kAlignment); in artAllocObjectFromCode() 54 mirror::Object* obj = self->AllocTlab(byte_count); in artAllocObjectFromCode() 104 mirror::ByteArray* byte_array, int32_t high, int32_t offset, int32_t byte_count, \ 111 self, byte_count, handle_array, offset, high, allocator_type).Ptr(); \
|
/art/runtime/mirror/ |
D | string.cc | 237 size_t byte_count = strlen(utf); in AllocFromModifiedUtf8() local 238 size_t char_count = CountModifiedUtf8Chars(utf, byte_count); in AllocFromModifiedUtf8() 239 return AllocFromModifiedUtf8(self, char_count, utf, byte_count); in AllocFromModifiedUtf8() 328 size_t byte_count = GetModifiedUtf8Length(); in ToModifiedUtf8() local 329 std::string result(byte_count, static_cast<char>(0)); in ToModifiedUtf8() 330 ConvertUtf16ToModifiedUtf8(&result[0], byte_count, GetValue(), GetLength()); in ToModifiedUtf8()
|