Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 25 of 235) sorted by relevance

12345678910

/hardware/google/aemu/base/include/aemu/base/
Daddress_space.h173 struct address_space_allocator *allocator, in address_space_allocator_split_block() argument
177 address_space_assert(allocator->capacity >= 1); in address_space_allocator_split_block()
178 address_space_assert(allocator->size >= 1); in address_space_allocator_split_block()
179 address_space_assert(allocator->size <= allocator->capacity); in address_space_allocator_split_block()
181 address_space_assert(i < allocator->size); in address_space_allocator_split_block()
182 address_space_assert(size < allocator->blocks[i].size); in address_space_allocator_split_block()
184 if (allocator->size == allocator->capacity) { in address_space_allocator_split_block()
185 int new_capacity = address_space_allocator_grow_capacity(allocator->capacity); in address_space_allocator_split_block()
186 allocator->blocks = in address_space_allocator_split_block()
189 allocator->blocks, in address_space_allocator_split_block()
[all …]
/hardware/google/gfxstream/guest/android-emu/aemu/base/
Daddress_space.h147 struct address_space_allocator *allocator, in address_space_allocator_split_block() argument
151 address_space_assert(allocator->capacity >= 1); in address_space_allocator_split_block()
152 address_space_assert(allocator->size >= 1); in address_space_allocator_split_block()
153 address_space_assert(allocator->size <= allocator->capacity); in address_space_allocator_split_block()
155 address_space_assert(i < allocator->size); in address_space_allocator_split_block()
156 address_space_assert(size < allocator->blocks[i].size); in address_space_allocator_split_block()
158 if (allocator->size == allocator->capacity) { in address_space_allocator_split_block()
159 int new_capacity = address_space_allocator_grow_capacity(allocator->capacity); in address_space_allocator_split_block()
160 allocator->blocks = in address_space_allocator_split_block()
163 allocator->blocks, in address_space_allocator_split_block()
[all …]
DAndroidSubAllocator.cpp60 [](void* context, struct address_space_allocator* allocator) { in save() argument
62 stream->putBe32(allocator->size); in save()
63 stream->putBe32(allocator->capacity); in save()
64 stream->putBe64(allocator->total_bytes); in save()
88 [](void* context, struct address_space_allocator* allocator) { in load() argument
90 allocator->size = stream->getBe32(); in load()
91 allocator->capacity = stream->getBe32(); in load()
92 allocator->total_bytes = stream->getBe64(); in load()
/hardware/google/camera/common/hal/tests/
Dgralloc_buffer_allocator_tests.cc32 auto allocator = GrallocBufferAllocator::Create(); in TEST() local
33 ASSERT_NE(allocator, nullptr) << "Create GrallocBufferAllocator failed."; in TEST()
38 auto allocator = GrallocBufferAllocator::Create(); in TEST() local
39 ASSERT_NE(allocator, nullptr) << "Create GrallocBufferAllocator failed."; in TEST()
51 status_t res = allocator->AllocateBuffers(buffer_descriptor, &buffers_); in TEST()
56 allocator->FreeBuffers(&buffers_); in TEST()
63 auto allocator = GrallocBufferAllocator::Create(); in TEST() local
64 ASSERT_NE(allocator, nullptr) << "Create GrallocBufferAllocator failed."; in TEST()
76 status_t res = allocator->AllocateBuffers(buffer_descriptor, &buffers_); in TEST()
81 res = allocator->AllocateBuffers(buffer_descriptor, &buffers_); in TEST()
[all …]
Dhwl_buffer_allocator_tests.cc36 auto allocator = HwlBufferAllocator::Create(mock_allocator_hwl.get()); in TEST() local
37 ASSERT_NE(allocator, nullptr) << "Create HwlBufferAllocator failed."; in TEST()
45 auto allocator = HwlBufferAllocator::Create(mock_allocator_hwl.get()); in TEST() local
46 ASSERT_NE(allocator, nullptr) << "Create HwlBufferAllocator failed."; in TEST()
58 status_t res = allocator->AllocateBuffers(buffer_descriptor, &buffers_); in TEST()
63 allocator->FreeBuffers(&buffers_); in TEST()
/hardware/google/gchips/gralloc4/service/aidl/
DAndroid.bp13 "android.hardware.graphics.allocator-aidl-service.rc",
17 "android.hardware.graphics.allocator-V1-ndk",
18 "android.hardware.graphics.allocator-aidl-impl",
21 "android.hardware.graphics.allocator-aidl-impl",
32 "android.hardware.graphics.allocator-V2-ndk",
33 "android.hardware.graphics.allocator-aidl-impl",
36 "android.hardware.graphics.allocator-aidl-impl",
46 stem: "android.hardware.graphics.allocator-V1-service",
50 stem: "android.hardware.graphics.allocator-V2-service",
/hardware/interfaces/graphics/allocator/aidl/aidl_api/android.hardware.graphics.allocator/2/android/hardware/graphics/allocator/
DIAllocator.aidl34 package android.hardware.graphics.allocator;
40 android.hardware.graphics.allocator.AllocationResult allocate(in byte[] descriptor, in int count); in allocate()
41 …android.hardware.graphics.allocator.AllocationResult allocate2(in android.hardware.graphics.alloca… in allocate2()
42 boolean isSupported(in android.hardware.graphics.allocator.BufferDescriptorInfo descriptor); in isSupported()
/hardware/interfaces/graphics/allocator/aidl/aidl_api/android.hardware.graphics.allocator/current/android/hardware/graphics/allocator/
DIAllocator.aidl34 package android.hardware.graphics.allocator;
40 android.hardware.graphics.allocator.AllocationResult allocate(in byte[] descriptor, in int count); in allocate()
41 …android.hardware.graphics.allocator.AllocationResult allocate2(in android.hardware.graphics.alloca… in allocate2()
42 boolean isSupported(in android.hardware.graphics.allocator.BufferDescriptorInfo descriptor); in isSupported()
/hardware/interfaces/graphics/allocator/2.0/default/
DAndroid.bp12 name: "android.hardware.graphics.allocator@2.0-impl",
18 "android.hardware.graphics.allocator@2.0-passthrough",
21 "android.hardware.graphics.allocator@2.0",
33 name: "android.hardware.graphics.allocator@2.0-service",
38 init_rc: ["android.hardware.graphics.allocator@2.0-service.rc"],
41 "android.hardware.graphics.allocator@2.0",
Dandroid.hardware.graphics.allocator@2.0-service.rc1 service vendor.gralloc-2-0 /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
2 interface android.hardware.graphics.allocator@2.0::IAllocator default
4 interface android.hardware.graphics.allocator@2.0::IAllocator default
Dpassthrough.cpp20 using android::hardware::graphics::allocator::V2_0::IAllocator;
21 using android::hardware::graphics::allocator::V2_0::passthrough::GrallocLoader;
/hardware/interfaces/graphics/allocator/2.0/utils/passthrough/
DAndroid.bp12 name: "android.hardware.graphics.allocator@2.0-passthrough",
16 "android.hardware.graphics.allocator@2.0",
21 "android.hardware.graphics.allocator@2.0",
26 "android.hardware.graphics.allocator@2.0-hal",
30 "android.hardware.graphics.allocator@2.0-hal",
/hardware/qcom/sm8150/display/gralloc/
Dservice.cpp36 using IQtiAllocator3 = vendor::qti::hardware::display::allocator::V3_0::IQtiAllocator;
37 using IQtiAllocator4 = vendor::qti::hardware::display::allocator::V4_0::IQtiAllocator;
41 new vendor::qti::hardware::display::allocator::V3_0::implementation::QtiAllocator(); in main()
55 new vendor::qti::hardware::display::allocator::V4_0::implementation::QtiAllocator(); in main()
DQtiAllocator.h45 namespace allocator {
56 using android::hardware::graphics::allocator::V3_0::IAllocator;
60 using vendor::qti::hardware::display::allocator::V3_0::IQtiAllocator;
88 namespace allocator {
99 using android::hardware::graphics::allocator::V4_0::IAllocator;
103 using vendor::qti::hardware::display::allocator::V4_0::IQtiAllocator;
/hardware/qcom/sm7250/display/gralloc/
Dservice.cpp35 using IQtiAllocator3 = vendor::qti::hardware::display::allocator::V3_0::IQtiAllocator;
36 using IQtiAllocator4 = vendor::qti::hardware::display::allocator::V4_0::IQtiAllocator;
40 new vendor::qti::hardware::display::allocator::V3_0::implementation::QtiAllocator(); in main()
52 new vendor::qti::hardware::display::allocator::V4_0::implementation::QtiAllocator(); in main()
DQtiAllocator.h45 namespace allocator {
56 using android::hardware::graphics::allocator::V3_0::IAllocator;
60 using vendor::qti::hardware::display::allocator::V3_0::IQtiAllocator;
88 namespace allocator {
99 using android::hardware::graphics::allocator::V4_0::IAllocator;
103 using vendor::qti::hardware::display::allocator::V4_0::IQtiAllocator;
/hardware/google/gchips/gralloc4/src/aidl/
DAndroid.bp17 "android.hardware.graphics.allocator-V1-ndk",
24 "android.hardware.graphics.allocator-V2-ndk",
33 name: "android.hardware.graphics.allocator-aidl-impl",
43 "android.hardware.graphics.allocator@4.0",
DGrallocAllocator.cpp13 namespace pixel::allocator { namespace
15 namespace AidlAllocator = aidl::android::hardware::graphics::allocator;
16 namespace HidlAllocator = android::hardware::graphics::allocator::V4_0;
66 arm::allocator::common::allocate(bufferDescriptor, count, hidl_cb); in allocate()
104 const std::string dump_info = arm::allocator::common::dump(); in dump()
/hardware/interfaces/graphics/allocator/aidl/android/hardware/graphics/allocator/
DIAllocator.aidl17 package android.hardware.graphics.allocator;
19 import android.hardware.graphics.allocator.AllocationResult;
20 import android.hardware.graphics.allocator.BufferDescriptorInfo;
/hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/
DGrallocLoader.h35 namespace allocator {
90 auto allocator = std::make_unique<hal::Allocator>(); in createAllocator() local
91 return allocator->init(std::move(hal)) ? allocator.release() : nullptr; in createAllocator()
/hardware/google/aemu/base/
DSubAllocator.cpp58 [](void* context, struct address_space_allocator* allocator) { in save() argument
60 stream->putBe32(allocator->size); in save()
61 stream->putBe32(allocator->capacity); in save()
62 stream->putBe64(allocator->total_bytes); in save()
86 [](void* context, struct address_space_allocator* allocator) { in load() argument
88 allocator->size = stream->getBe32(); in load()
89 allocator->capacity = stream->getBe32(); in load()
90 allocator->total_bytes = stream->getBe64(); in load()
/hardware/interfaces/graphics/allocator/2.0/utils/hal/
DAndroid.bp12 name: "android.hardware.graphics.allocator@2.0-hal",
16 "android.hardware.graphics.allocator@2.0",
20 "android.hardware.graphics.allocator@2.0",
/hardware/interfaces/graphics/mapper/4.0/utils/vts/include/mapper-vts/4.0/
DMapperVts.h37 using android::hardware::graphics::allocator::V4_0::IAllocator;
58 static Error toHidlError(aidl::android::hardware::graphics::allocator::AllocationError error) { in toHidlError()
60 case aidl::android::hardware::graphics::allocator::AllocationError::BAD_DESCRIPTOR: in toHidlError()
62 case aidl::android::hardware::graphics::allocator::AllocationError::NO_RESOURCES: in toHidlError()
64 case aidl::android::hardware::graphics::allocator::AllocationError::UNSUPPORTED: in toHidlError()
78 static_cast<aidl::android::hardware::graphics::allocator::AllocationError>( in toHidlError()
182 std::shared_ptr<aidl::android::hardware::graphics::allocator::IAllocator> mAidlAllocator;
/hardware/interfaces/graphics/allocator/aidl/aidl_api/android.hardware.graphics.allocator/1/android/hardware/graphics/allocator/
DIAllocator.aidl34 package android.hardware.graphics.allocator;
37 android.hardware.graphics.allocator.AllocationResult allocate(in byte[] descriptor, in int count); in allocate()
/hardware/google/gfxstream/common/vulkan/include/vulkan/
Dvulkansc_handles.hpp4253 …template <typename CheckpointData2NVAllocator = std::allocator<VULKAN_HPP_NAMESPACE::CheckpointDat…
4255 …template <typename CheckpointData2NVAllocator = std::allocator<VULKAN_HPP_NAMESPACE::CheckpointDat…
4361 …void destroy( Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator VULKAN_HPP_DEFAU…
4386 …allocateInfo, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator VULKAN_HPP_DEFAU…
4389 …allocateInfo, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator VULKAN_HPP_DEFAU…
4468 …& createInfo, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator VULKAN_HPP_DEFAU…
4471 …& createInfo, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator VULKAN_HPP_DEFAU…
4480 …T_ASSIGNMENT, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator VULKAN_HPP_DEFAU…
4488 …:Fence fence, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator VULKAN_HPP_DEFAU…
4521 …& createInfo, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator VULKAN_HPP_DEFAU…
[all …]

12345678910