Home
last modified time | relevance | path

Searched refs:heap_name (Results 1 – 15 of 15) sorted by relevance

/aosp12/system/memory/libdmabufheap/
H A DBufferAllocator.cpp53 auto it = dmabuf_heap_fds_.find(heap_name); in OpenDmabufHeap()
69 it = dmabuf_heap_fds_.find(heap_name); in OpenDmabufHeap()
72 std::string heap_path = kDmaHeapRoot + heap_name; in OpenDmabufHeap()
125 heap_name_to_config_[heap_name] = heap_config; in MapNameToIonMask()
131 if (heap_name == it.name) { in GetIonHeapIdByName()
153 heap_name_to_config_[heap_name] = heap_config; in MapNameToIonName()
164 int ret = OpenDmabufHeap(heap_name); in MapNameToIonHeap()
185 auto it = heap_name_to_config_.find(heap_name); in GetIonConfig()
213 int fd = OpenDmabufHeap(heap_name); in DmabufAlloc()
233 auto ret = GetIonConfig(heap_name, heap_config); in IonAlloc()
[all …]
H A DBufferAllocatorWrapper.cpp32 int DmabufHeapAlloc(BufferAllocator* buffer_allocator, const char* heap_name, size_t len, in DmabufHeapAlloc() argument
36 return buffer_allocator->Alloc(heap_name, len, heap_flags, legacy_align); in DmabufHeapAlloc()
45 int MapDmabufHeapNameToIonHeap(BufferAllocator* buffer_allocator, const char* heap_name, in MapDmabufHeapNameToIonHeap() argument
51 return buffer_allocator->MapNameToIonHeap(heap_name, ion_heap_name, ion_heap_flags, in MapDmabufHeapNameToIonHeap()
/aosp12/system/memory/libdmabufheap/include/BufferAllocator/
H A DBufferAllocator.h64 int MapNameToIonHeap(const std::string& heap_name, const std::string& ion_heap_name,
82 …int Alloc(const std::string& heap_name, size_t len, unsigned int heap_flags = 0, size_t legacy_ali…
181 int GetIonHeapIdByName(const std::string& heap_name, unsigned int* heap_id);
182 int MapNameToIonMask(const std::string& heap_name, unsigned int ion_heap_mask,
184 int MapNameToIonName(const std::string& heap_name, const std::string& ion_heap_name,
187 …int IonAlloc(const std::string& heap_name, size_t len, unsigned int heap_flags = 0, size_t legacy_…
188 int DmabufAlloc(const std::string& heap_name, size_t len);
194 int GetIonConfig(const std::string& heap_name, IonHeapConfig& heap_config);
H A DBufferAllocatorWrapper.h35 int DmabufHeapAlloc(BufferAllocator* buffer_allocator, const char* heap_name, size_t len,
40 int MapDmabufHeapNameToIonHeap(BufferAllocator* buffer_allocator, const char* heap_name,
/aosp12/frameworks/av/media/codec2/vndk/
H A DC2DmaBufAllocator.cpp126 C2String heap_name, unsigned flags, C2Allocator::id_t id);
269 C2String heap_name, unsigned flags, C2Allocator::id_t id) in C2DmaBufAllocation() argument
274 bufferFd = alloc.Alloc(heap_name, allocSize, flags); in C2DmaBufAllocation()
341 res = mUsageMapper(usage, capacity, heap_name, flags); in mapUsage()
345 *heap_name = "system-uncached"; in mapUsage()
347 *heap_name = "system"; in mapUsage()
352 MapperValue value = std::make_tuple(*heap_name, *flags, res); in mapUsage()
365 std::tie(*heap_name, *flags, res) = value; in mapUsage()
381 C2String heap_name; in newLinearAllocation() local
383 c2_status_t ret = mapUsage(usage, capacity, &heap_name, &flags); in newLinearAllocation()
[all …]
/aosp12/hardware/google/graphics/common/libion/
H A Dion.cpp34 std::string heap_name; member
74 int ret = bufallocator.Alloc(it.heap_name, len, flags); in exynos_ion_alloc()
76 ALOGE("Failed to alloc %s, %zu %x (%d)", it.heap_name.c_str(), len, flags, ret); in exynos_ion_alloc()
/aosp12/hardware/google/gchips/gralloc4/src/allocator/
H A Dmali_gralloc_ion.cpp183 int alloc_from_dmabuf_heap(const std::string& heap_name, size_t size, unsigned int flags);
342 int ion_device::alloc_from_dmabuf_heap(const std::string& heap_name, size_t size, in alloc_from_dmabuf_heap() argument
350 int shared_fd = buffer_allocator->Alloc(heap_name, size, flags); in alloc_from_dmabuf_heap()
353 ALOGE("Allocation failed for heap %s error: %d\n", heap_name.c_str(), shared_fd); in alloc_from_dmabuf_heap()
/aosp12/system/memory/libdmabufheap/tests/
H A Ddmabuf_heap_bench.c170 void dmabuf_heap_bench(char* heap_name, int size) { in dmabuf_heap_bench() argument
177 heap_fd = dmabuf_heap_open(heap_name); in dmabuf_heap_bench()
/aosp12/frameworks/av/media/codec2/vndk/include/
H A DC2DmaBufAllocator.h102 /* => */ C2String* heap_name, unsigned* flags);
/aosp12/art/openjdkjvmti/
H A Dti_heap.h84 static jvmtiError JNICALL GetHeapName(jvmtiEnv* env, jint heap_id, char** heap_name, ...);
H A Dti_heap.cc1567 jvmtiError HeapExtensions::GetHeapName(jvmtiEnv* env, jint heap_id, char** heap_name, ...) { in GetHeapName() argument
1570 return CopyStringAndReturn(env, kHeapIdDefaultName, heap_name); in GetHeapName()
1572 return CopyStringAndReturn(env, kHeapIdImageName, heap_name); in GetHeapName()
1574 return CopyStringAndReturn(env, kHeapIdZygoteName, heap_name); in GetHeapName()
1576 return CopyStringAndReturn(env, kHeapIdAppName, heap_name); in GetHeapName()
/aosp12/hardware/google/gchips/gralloc3/src/
H A Dmali_gralloc_ion.cpp357 static int alloc_from_dmabuf_heap(const std::string& heap_name, size_t size, unsigned int flags) in alloc_from_dmabuf_heap() argument
364 int shared_fd = buffer_allocator->Alloc(heap_name, size, flags); in alloc_from_dmabuf_heap()
367 ALOGE("Allocation failed for heap %s error: %d\n", heap_name.c_str(), shared_fd); in alloc_from_dmabuf_heap()
/aosp12/art/test/913-heaps/
H A Dheaps.cc1000 char* heap_name; in Java_art_Test913_getHeapName() local
1001 jvmtiError result = gGetHeapNameFn(jvmti_env, heap_id, &heap_name); in Java_art_Test913_getHeapName()
1005 jstring ret = env->NewStringUTF(heap_name); in Java_art_Test913_getHeapName()
1006 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(heap_name)); in Java_art_Test913_getHeapName()
/aosp12/art/tools/jvmti-agents/list-extensions/
H A DREADME.md30 dalvikvm64 I 07-30 10:47:37 154719 154719 list-extensions.cc:112] heap_name (ALLOC_BU…
/aosp12/frameworks/base/startop/scripts/trace_analyzer/test_fixtures/
H A Dcommon_systrace432 …<...>-108 (-----) [007] .... 14594.813275: ion_heap_shrink: heap_name=system, len=9469952, total…