Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 25 of 90) sorted by relevance

1234

/aosp12/art/runtime/gc/space/
H A Dbump_pointer_space-inl.h31 num_bytes = RoundUp(num_bytes, kAlignment); in Alloc()
34 *bytes_allocated = num_bytes; in Alloc()
36 *usable_size = num_bytes; in Alloc()
38 *bytes_tl_bulk_allocated = num_bytes; in Alloc()
48 num_bytes = RoundUp(num_bytes, kAlignment); in AllocThreadUnsafe()
50 if (end + num_bytes > growth_end_) { in AllocThreadUnsafe()
55 *bytes_allocated = num_bytes; in AllocThreadUnsafe()
62 *usable_size = num_bytes; in AllocThreadUnsafe()
64 *bytes_tl_bulk_allocated = num_bytes; in AllocThreadUnsafe()
69 DCHECK_ALIGNED(num_bytes, kAlignment); in AllocNonvirtualWithoutAccounting()
[all …]
H A Drosalloc_space.h59 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
61 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc()
67 return AllocNonvirtualThreadUnsafe(self, num_bytes, bytes_allocated, usable_size, in AllocThreadUnsafe()
81 return AllocCommon(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
84 mirror::Object* AllocNonvirtualThreadUnsafe(Thread* self, size_t num_bytes, in AllocNonvirtualThreadUnsafe() argument
88 return AllocCommon<false>(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtualThreadUnsafe()
94 ALWAYS_INLINE bool CanAllocThreadLocal(Thread* self, size_t num_bytes);
97 ALWAYS_INLINE mirror::Object* AllocThreadLocal(Thread* self, size_t num_bytes,
99 size_t MaxBytesBulkAllocatedFor(size_t num_bytes) override { in MaxBytesBulkAllocatedFor() argument
100 return MaxBytesBulkAllocatedForNonvirtual(num_bytes); in MaxBytesBulkAllocatedFor()
[all …]
H A Dmemory_tool_malloc_space-inl.h34 size_t num_bytes, in AdjustForMemoryTool() argument
52 *usable_size_out = num_bytes; in AdjustForMemoryTool()
66 MEMORY_TOOL_MAKE_DEFINED(result, num_bytes); in AdjustForMemoryTool()
73 usable_size - (num_bytes + kMemoryToolRedZoneBytes)); in AdjustForMemoryTool()
94 size_t num_bytes, in AllocWithGrowth() argument
112 num_bytes, in AllocWithGrowth()
130 size_t num_bytes, in Alloc() argument
138 num_bytes + 2 * kMemoryToolRedZoneBytes, in Alloc()
148 num_bytes, in Alloc()
166 size_t num_bytes, in AllocThreadUnsafe() argument
[all …]
H A Drosalloc_space-inl.h32 inline mirror::Object* RosAllocSpace::AllocCommon(Thread* self, size_t num_bytes, in AllocCommon() argument
42 rosalloc_->Alloc<kThreadSafe>(self, num_bytes, &rosalloc_bytes_allocated, in AllocCommon()
62 inline bool RosAllocSpace::CanAllocThreadLocal(Thread* self, size_t num_bytes) { in CanAllocThreadLocal() argument
63 return rosalloc_->CanAllocFromThreadLocalRun(self, num_bytes); in CanAllocThreadLocal()
66 inline mirror::Object* RosAllocSpace::AllocThreadLocal(Thread* self, size_t num_bytes, in AllocThreadLocal() argument
70 rosalloc_->AllocFromThreadLocalRun(self, num_bytes, bytes_allocated)); in AllocThreadLocal()
73 inline size_t RosAllocSpace::MaxBytesBulkAllocatedForNonvirtual(size_t num_bytes) { in MaxBytesBulkAllocatedForNonvirtual() argument
74 return rosalloc_->MaxBytesBulkAllocatedFor(num_bytes); in MaxBytesBulkAllocatedForNonvirtual()
H A Dregion_space-inl.h32 size_t num_bytes, in Alloc() argument
36 num_bytes = RoundUp(num_bytes, kAlignment); in Alloc()
55 DCHECK_ALIGNED(num_bytes, kAlignment); in AllocNonvirtual()
57 if (LIKELY(num_bytes <= kRegionSize)) { in AllocNonvirtual()
104 DCHECK_ALIGNED(num_bytes, kAlignment); in Alloc()
109 new_top = old_top + num_bytes; in Alloc()
118 *bytes_allocated = num_bytes; in Alloc()
120 *usable_size = num_bytes; in Alloc()
122 *bytes_tl_bulk_allocated = num_bytes; in Alloc()
317 DCHECK_ALIGNED(num_bytes, kAlignment); in AllocLarge()
[all …]
H A Ddlmalloc_space-inl.h28 inline mirror::Object* DlMallocSpace::AllocNonvirtual(Thread* self, size_t num_bytes, in AllocNonvirtual() argument
35 obj = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
40 memset(obj, 0, num_bytes); in AllocNonvirtual()
55 Thread* /*self*/, size_t num_bytes, in AllocWithoutGrowthLocked() argument
59 mirror::Object* result = reinterpret_cast<mirror::Object*>(mspace_malloc(mspace_, num_bytes)); in AllocWithoutGrowthLocked()
H A Ddlmalloc_space.h57 size_t num_bytes,
63 size_t num_bytes, in Alloc() argument
67 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc()
83 size_t MaxBytesBulkAllocatedFor(size_t num_bytes) override { in MaxBytesBulkAllocatedFor() argument
84 return num_bytes; in MaxBytesBulkAllocatedFor()
96 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated,
168 mirror::Object* AllocWithoutGrowthLocked(Thread* self, size_t num_bytes, size_t* bytes_allocated,
H A Dmemory_tool_malloc_space.h34 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
37 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
39 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
53 size_t MaxBytesBulkAllocatedFor(size_t num_bytes) override;
H A Dbump_pointer_space.h42 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
55 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
58 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
62 mirror::Object* AllocNonvirtual(size_t num_bytes);
63 mirror::Object* AllocNonvirtualWithoutAccounting(size_t num_bytes);
H A Dmalloc_space.h41 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
48 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes,
52 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
65 virtual size_t MaxBytesBulkAllocatedFor(size_t num_bytes) = 0;
H A Dregion_space.h49 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
69 size_t num_bytes,
76 size_t num_bytes,
83 ALWAYS_INLINE mirror::Object* AllocNonvirtual(size_t num_bytes,
90 mirror::Object* AllocLarge(size_t num_bytes,
433 ALWAYS_INLINE mirror::Object* Alloc(size_t num_bytes,
603 void RecordThreadLocalAllocations(size_t num_objects, size_t num_bytes) { in RecordThreadLocalAllocations() argument
607 top_.store(begin_ + num_bytes, std::memory_order_relaxed); in RecordThreadLocalAllocations()
/aosp12/system/bt/profile/sdp/common/
H A Ddata_element_reader.cc176 uint32_t num_bytes = 0; in ReadString() local
181 num_bytes = it_.extractBE<uint8_t>(); in ReadString()
185 num_bytes = it_.extractBE<uint16_t>(); in ReadString()
189 num_bytes = it_.extractBE<uint32_t>(); in ReadString()
196 CHECK_REMAINING_LEN(num_bytes); in ReadString()
199 for (uint32_t i = 0; i < num_bytes; i++) { in ReadString()
208 uint32_t num_bytes = 0; in ReadSequence() local
213 num_bytes = it_.extractBE<uint8_t>(); in ReadSequence()
217 num_bytes = it_.extractBE<uint16_t>(); in ReadSequence()
228 CHECK_REMAINING_LEN(num_bytes); in ReadSequence()
[all …]
/aosp12/art/runtime/mirror/
H A Dobject.cc79 size_t num_bytes) { in CopyObject() argument
85 num_bytes -= offset; in CopyObject()
89 while (num_bytes >= sizeof(uintptr_t)) { in CopyObject()
95 num_bytes -= sizeof(uintptr_t); in CopyObject()
104 num_bytes -= sizeof(uint32_t); in CopyObject()
108 while (num_bytes > 0) { in CopyObject()
114 num_bytes -= sizeof(uint8_t); in CopyObject()
140 CopyObjectVisitor(Handle<Object>* orig, size_t num_bytes) in CopyObjectVisitor() argument
141 : orig_(orig), num_bytes_(num_bytes) {} in CopyObjectVisitor()
159 size_t num_bytes = h_this->SizeOf(); in Clone() local
[all …]
/aosp12/art/libelffile/dwarf/
H A Dexpression.h75 void WriteOpPiece(uint32_t num_bytes) { in WriteOpPiece() argument
77 PushUleb128(num_bytes); in WriteOpPiece()
84 void WriteOpDerefSize(uint8_t num_bytes) { in WriteOpDerefSize() argument
86 PushUint8(num_bytes); in WriteOpDerefSize()
H A Dwriter.h119 void PushData(const uint8_t* ptr, size_t num_bytes) { in PushData() argument
120 data_->insert(data_->end(), ptr, ptr + num_bytes); in PushData()
123 void PushData(const char* ptr, size_t num_bytes) { in PushData() argument
124 data_->insert(data_->end(), ptr, ptr + num_bytes); in PushData()
/aosp12/system/core/fs_mgr/libfs_avb/
H A Davb_ops.cpp50 size_t num_bytes, void* buffer, size_t* out_num_read) { in read_from_partition() argument
52 partition, offset, num_bytes, buffer, out_num_read); in read_from_partition()
172 size_t num_bytes, void* buffer, in ReadFromPartition() argument
213 ssize_t num_read = TEMP_FAILURE_RETRY(pread64(fd, buffer, num_bytes, offset)); in ReadFromPartition()
214 if (num_read < 0 || (size_t)num_read != num_bytes) { in ReadFromPartition()
215 PERROR << "Failed to read " << num_bytes << " bytes from " << path << " offset " << offset; in ReadFromPartition()
/aosp12/packages/apps/Gallery2/jni_jpegstream/src/
H A Djpeg_hook.cpp117 void Mgr_skip_input_data_fcn(j_decompress_ptr cinfo, long num_bytes) { in Mgr_skip_input_data_fcn() argument
119 if (num_bytes <= 0) { in Mgr_skip_input_data_fcn()
124 if (src->mgr.bytes_in_buffer >= (size_t)num_bytes) { in Mgr_skip_input_data_fcn()
125 src->mgr.bytes_in_buffer -= num_bytes; in Mgr_skip_input_data_fcn()
126 src->mgr.next_input_byte += num_bytes; in Mgr_skip_input_data_fcn()
129 int64_t skip = num_bytes - src->mgr.bytes_in_buffer; in Mgr_skip_input_data_fcn()
/aosp12/frameworks/base/core/jni/
H A Dandroid_util_FileObserver.cpp61 int num_bytes = read(fd, event_buf, sizeof(event_buf)); in android_os_fileobserver_observe() local
63 if (num_bytes < (int)sizeof(*event)) in android_os_fileobserver_observe()
72 while (num_bytes >= (int)sizeof(*event)) in android_os_fileobserver_observe()
95 num_bytes -= event_size; in android_os_fileobserver_observe()
/aosp12/system/core/fastboot/
H A Dvendor_boot_img_utils.cpp39 [[nodiscard]] Result<void> Copy(uint32_t num_bytes) { in Copy() argument
40 if (num_bytes == 0) return {}; in Copy()
41 if (auto res = CheckAdvance(old_data_ptr_, old_end(), num_bytes, __FUNCTION__); !res.ok()) in Copy()
43 if (auto res = CheckAdvance(new_data_ptr_, new_end(), num_bytes, __FUNCTION__); !res.ok()) in Copy()
45 memcpy(new_data_ptr_, old_data_ptr_, num_bytes); in Copy()
46 old_data_ptr_ += num_bytes; in Copy()
47 new_data_ptr_ += num_bytes; in Copy()
113 uint32_t num_bytes, const char* op) { in CheckAdvance() argument
114 auto new_end = current + num_bytes; in CheckAdvance()
117 num_bytes, fmt::ptr(current)); in CheckAdvance()
[all …]
/aosp12/art/runtime/
H A Dart_field.cc34 void ArtField::SetOffset(MemberOffset num_bytes) { in SetOffset() argument
36 DCHECK_ALIGNED_PARAM(num_bytes.Uint32Value(), in SetOffset()
39 offset_ = num_bytes.Uint32Value(); in SetOffset()
/aosp12/art/runtime/gc/collector/
H A Dobject_byte_pair.h27 explicit ObjectBytePair(uint64_t num_objects = 0, int64_t num_bytes = 0)
28 : objects(num_objects), bytes(num_bytes) {}
/aosp12/system/keymaster/contexts/
H A Dpure_soft_remote_provisioning_context.cpp49 size_t num_bytes) const { in DeriveBytesFromHbk()
54 std::vector<uint8_t> result(num_bytes); in DeriveBytesFromHbk()
58 HKDF(result.data(), num_bytes, // in DeriveBytesFromHbk()
/aosp12/system/nfc/src/nfc/tags/
H A Drw_main.cc82 void rw_main_update_tx_stats(uint32_t num_bytes, bool is_retry) { in rw_main_update_tx_stats() argument
83 rw_cb.stats.bytes_sent += num_bytes; in rw_main_update_tx_stats()
131 void rw_main_update_rx_stats(uint32_t num_bytes) { in rw_main_update_rx_stats() argument
132 rw_cb.stats.bytes_received += num_bytes; in rw_main_update_rx_stats()
/aosp12/system/unwinding/libunwindstack/
H A DDwarfMemory.cpp29 bool DwarfMemory::ReadBytes(void* dst, size_t num_bytes) { in ReadBytes() argument
30 if (!memory_->ReadFully(cur_offset_, dst, num_bytes)) { in ReadBytes()
33 cur_offset_ += num_bytes; in ReadBytes()
/aosp12/system/bt/vendor_libs/test_vendor_lib/model/devices/
H A Dpolled_socket.cc86 size_t PolledSocket::TryReceive(size_t num_bytes, uint8_t* data) { in TryReceive() argument
89 WHILE_EINTR(ret = read(file_descriptor_, data, num_bytes)); in TryReceive()

1234