/art/compiler/linker/ |
H A D | file_output_stream.cc | 28 bool FileOutputStream::WriteFully(const void* buffer, size_t byte_count) { argument 29 return file_->WriteFully(buffer, byte_count);
|
H A D | buffered_output_stream.cc | 32 bool BufferedOutputStream::WriteFully(const void* buffer, size_t byte_count) { argument 33 if (byte_count > kBufferSize) { 37 return out_->WriteFully(buffer, byte_count); 39 if (used_ + byte_count > kBufferSize) { 45 memcpy(&buffer_[used_], src, byte_count); 46 used_ += byte_count;
|
/art/runtime/base/ |
H A D | hex_dump.cc | 55 size_t byte_count = byte_count_; local 57 while (byte_count > 0) { 71 size_t count = std::min(byte_count, 16 - gap); 104 byte_count -= count; 106 if (byte_count > 0) {
|
H A D | hex_dump.h | 32 HexDump(const void* address, size_t byte_count, bool show_actual_addresses, const char* prefix) argument 33 : address_(address), byte_count_(byte_count), show_actual_addresses_(show_actual_addresses),
|
/art/runtime/native/ |
H A D | java_lang_StringFactory.cc | 31 jint high, jint offset, jint byte_count) { 40 if ((offset | byte_count) < 0 || byte_count > data_size - offset) { 43 offset, byte_count); 47 mirror::String* result = mirror::String::AllocFromByteArray<true>(soa.Self(), byte_count, 30 StringFactory_newStringFromBytes(JNIEnv* env, jclass, jbyteArray java_data, jint high, jint offset, jint byte_count) argument
|
/art/runtime/gc/ |
H A D | heap-inl.h | 43 size_t byte_count, 47 CheckPreconditionsForAllocObject(klass, byte_count); 56 if (kCheckLargeObject && UNLIKELY(ShouldAllocLargeObject(klass, byte_count))) { 57 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, 74 byte_count = RoundUp(byte_count, space::BumpPointerSpace::kAlignment); 78 byte_count <= self->TlabSize()) { 79 obj = self->AllocTlab(byte_count); 88 bytes_allocated = byte_count; 93 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, 41 AllocObjectWithAllocator(Thread* self, mirror::Class* klass, size_t byte_count, AllocatorType allocator, const PreFenceVisitor& pre_fence_visitor) argument 223 AllocLargeObject(Thread* self, mirror::Class** klass, size_t byte_count, const PreFenceVisitor& pre_fence_visitor) argument [all...] |
H A D | allocation_record.cc | 266 size_t byte_count) { 307 Put(*obj, AllocRecord(byte_count, (*obj)->GetClass(), std::move(trace))); 264 RecordAllocation(Thread* self, mirror::Object** obj, size_t byte_count) argument
|
H A D | heap.cc | 1327 void Heap::ThrowOutOfMemoryError(Thread* self, size_t byte_count, AllocatorType allocator_type) { argument 1337 oss << "Failed to allocate a " << byte_count << " byte allocation with " << total_bytes_free 1340 if (total_bytes_free >= byte_count) { 1355 space->LogFragmentationAllocFailure(oss, byte_count); 3946 void Heap::CheckPreconditionsForAllocObject(mirror::Class* c, size_t byte_count) { argument 3947 CHECK(c == nullptr || (c->IsClassClass() && byte_count >= sizeof(mirror::Class)) || 3948 (c->IsVariableSize() || c->GetObjectSize() == byte_count)) << c->GetClassFlags(); 3949 CHECK_GE(byte_count, sizeof(mirror::Object));
|
/art/runtime/ |
H A D | mem_map.h | 55 // Request an anonymous region of length 'byte_count' and a requested base address. 66 size_t byte_count, 77 static MemMap* MapDummy(const char* name, uint8_t* addr, size_t byte_count); 83 static MemMap* MapFile(size_t byte_count, argument 92 byte_count, 112 size_t byte_count,
|
H A D | utf.cc | 46 size_t CountModifiedUtf8Chars(const char* utf8, size_t byte_count) { argument 47 DCHECK_LE(byte_count, strlen(utf8)); 49 const char* end = utf8 + byte_count; 120 void ConvertUtf16ToModifiedUtf8(char* utf8_out, size_t byte_count, argument 122 if (LIKELY(byte_count == char_count)) {
|
H A D | mem_map.cc | 210 static bool CheckMapRequest(uint8_t* expected_ptr, void* actual_ptr, size_t byte_count, argument 221 uintptr_t limit = expected + byte_count; 228 int result = munmap(actual_ptr, byte_count); 230 PLOG(WARNING) << StringPrintf("munmap(%p, %zd) failed", actual_ptr, byte_count); 277 size_t byte_count, 286 if (byte_count == 0) { 289 size_t page_aligned_byte_count = RoundUp(byte_count, kPageSize); 297 DCHECK(ContainedWithinExistingMap(expected_ptr, byte_count, error_msg)) << *error_msg; 358 return new MemMap(name, reinterpret_cast<uint8_t*>(actual), byte_count, actual, 362 MemMap* MemMap::MapDummy(const char* name, uint8_t* addr, size_t byte_count) { argument 275 MapAnonymous(const char* name, uint8_t* expected_ptr, size_t byte_count, int prot, bool low_4gb, bool reuse, std::string* error_msg, bool use_ashmem) argument 370 MapFileAtAddress(uint8_t* expected_ptr, size_t byte_count, int prot, int flags, int fd, off_t start, bool low_4gb, bool reuse, const char* filename, std::string* error_msg) argument [all...] |
H A D | check_jni.cc | 1414 size_t byte_count = a->GetLength() * component_size; local 1415 void* result = Create(original_ptr, byte_count, true);
|
H A D | utils.cc | 465 std::string PrettySize(int64_t byte_count) { argument 477 if (byte_count < 0) { 479 byte_count = -byte_count; 483 if (byte_count >= kUnitThresholds[i]) { 488 negative_str, byte_count / kBytesPerUnit[i], kUnitStrings[i]);
|
H A D | jni_internal.cc | 1767 size_t byte_count = s->GetUtfLength(); local 1768 char* bytes = new char[byte_count + 1]; 1771 ConvertUtf16ToModifiedUtf8(bytes, byte_count, chars, s->GetLength()); 1772 bytes[byte_count] = '\0';
|
H A D | debugger.cc | 1686 size_t byte_count = code_item->insns_size_in_code_units_ * 2; local 1688 const uint8_t* end = begin + byte_count; 4366 void Dbg::DdmSendChunk(uint32_t type, size_t byte_count, const uint8_t* buf) { argument 4370 vec[0].iov_len = byte_count;
|
/art/runtime/base/unix_file/ |
H A D | fd_file.cc | 154 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const { argument 156 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); 158 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); 180 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) { argument 183 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)); 185 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset)); 213 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { argument 215 while (byte_count > 0) { 216 ssize_t bytes_read = TEMP_FAILURE_RETRY(read_func(fd, ptr, byte_count, offset)); 222 byte_count 229 ReadFully(void* buffer, size_t byte_count) argument 233 PreadFully(void* buffer, size_t byte_count, size_t offset) argument 238 WriteFullyGeneric(const void* buffer, size_t byte_count, size_t offset) argument 257 PwriteFully(const void* buffer, size_t byte_count, size_t offset) argument 261 WriteFully(const void* buffer, size_t byte_count) argument [all...] |
/art/runtime/mirror/ |
H A D | string.cc | 112 size_t byte_count = strlen(utf); local 113 size_t char_count = CountModifiedUtf8Chars(utf, byte_count); 114 return AllocFromModifiedUtf8(self, char_count, utf, byte_count); 223 size_t byte_count = GetUtfLength(); local 224 std::string result(byte_count, static_cast<char>(0)); 225 ConvertUtf16ToModifiedUtf8(&result[0], byte_count, chars, GetLength());
|
/art/runtime/jit/ |
H A D | offline_profiling_info.cc | 141 static bool WriteBuffer(int fd, const uint8_t* buffer, size_t byte_count) { argument 142 while (byte_count > 0) { 143 int bytes_written = TEMP_FAILURE_RETRY(write(fd, buffer, byte_count)); 147 byte_count -= bytes_written; // Reduce the number of remaining bytes. 347 size_t byte_count = ptr_end_ - ptr_current_; local 349 while (byte_count > 0) { 350 int bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, byte_count)); 358 byte_count -= bytes_read;
|