Home
last modified time | relevance | path

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

1234

/frameworks/native/vulkan/libvulkan/
Ddebug_report.cpp25 const VkAllocationCallbacks& allocator) { in AddCallback() argument
26 void* mem = allocator.pfnAllocation(allocator.pUserData, sizeof(Node), in AddCallback()
42 const VkAllocationCallbacks& allocator) { in RemoveCallback() argument
53 allocator.pfnFree(allocator.pUserData, node); in RemoveCallback()
120 const VkAllocationCallbacks* allocator, in CreateDebugReportCallbackEXT() argument
126 instance, create_info, allocator, &driver_handle); in CreateDebugReportCallbackEXT()
134 (allocator) ? *allocator : GetData(instance).allocator); in CreateDebugReportCallbackEXT()
138 allocator); in CreateDebugReportCallbackEXT()
151 const VkAllocationCallbacks* allocator) { in DestroyDebugReportCallbackEXT() argument
160 node, (allocator) ? *allocator : GetData(instance).allocator); in DestroyDebugReportCallbackEXT()
[all …]
Dapi.cpp57 OverrideLayerNames(bool is_instance, const VkAllocationCallbacks& allocator) in OverrideLayerNames() argument
59 allocator_(allocator), in OverrideLayerNames()
336 const VkAllocationCallbacks& allocator) in OverrideExtensionNames() argument
338 allocator_(allocator), in OverrideExtensionNames()
408 const VkAllocationCallbacks* allocator,
413 const VkAllocationCallbacks* allocator,
417 const VkAllocationCallbacks* allocator);
420 const VkAllocationCallbacks* allocator);
428 const VkAllocationCallbacks& allocator);
449 const VkAllocationCallbacks* allocator,
[all …]
Dswapchain.cpp520 const VkAllocationCallbacks* allocator, in CreateAndroidSurfaceKHR() argument
524 if (!allocator) in CreateAndroidSurfaceKHR()
525 allocator = &GetData(instance).allocator; in CreateAndroidSurfaceKHR()
526 void* mem = allocator->pfnAllocation(allocator->pUserData, sizeof(Surface), in CreateAndroidSurfaceKHR()
541 allocator->pfnFree(allocator->pUserData, surface); in CreateAndroidSurfaceKHR()
551 allocator->pfnFree(allocator->pUserData, surface); in CreateAndroidSurfaceKHR()
562 const VkAllocationCallbacks* allocator) { in DestroySurfaceKHR() argument
575 if (!allocator) in DestroySurfaceKHR()
576 allocator = &GetData(instance).allocator; in DestroySurfaceKHR()
577 allocator->pfnFree(allocator->pUserData, surface); in DestroySurfaceKHR()
[all …]
Ddriver.cpp95 const VkAllocationCallbacks& allocator);
98 const VkAllocationCallbacks& allocator);
319 const VkAllocationCallbacks& allocator) in CreateInfoWrapper() argument
321 allocator_(allocator), in CreateInfoWrapper()
335 const VkAllocationCallbacks& allocator) in CreateInfoWrapper() argument
337 allocator_(allocator), in CreateInfoWrapper()
713 InstanceData* AllocateInstanceData(const VkAllocationCallbacks& allocator) { in AllocateInstanceData() argument
714 void* data_mem = allocator.pfnAllocation( in AllocateInstanceData()
715 allocator.pUserData, sizeof(InstanceData), alignof(InstanceData), in AllocateInstanceData()
720 return new (data_mem) InstanceData(allocator); in AllocateInstanceData()
[all …]
Dswapchain.h26 …kAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* allocator, VkSurfaceKHR* s…
27 …stroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* allocator);
35 …nst VkSwapchainCreateInfoKHR* create_info, const VkAllocationCallbacks* allocator, VkSwapchainKHR*…
36 …chainKHR(VkDevice device, VkSwapchainKHR swapchain_handle, const VkAllocationCallbacks* allocator);
Ddriver.h68 allocator(alloc), in InstanceData()
74 const VkAllocationCallbacks allocator; member
88 allocator(alloc), in DeviceData()
94 const VkAllocationCallbacks allocator; member
/frameworks/native/vulkan/nulldrv/
Dnull_driver.cpp40 VkAllocationCallbacks allocator; member
100 VkAllocationCallbacks allocator; member
293 const VkAllocationCallbacks* allocator, in CreateInstance() argument
295 if (!allocator) in CreateInstance()
296 allocator = &kDefaultAllocCallbacks; in CreateInstance()
299 static_cast<VkInstance_T*>(allocator->pfnAllocation( in CreateInstance()
300 allocator->pUserData, sizeof(VkInstance_T), alignof(VkInstance_T), in CreateInstance()
306 instance->allocator = *allocator; in CreateInstance()
344 instance->allocator.pfnFree(instance->allocator.pUserData, instance); in DestroyInstance()
662 const VkAllocationCallbacks* allocator, in CreateDevice() argument
[all …]
/frameworks/av/media/codec2/vndk/
DC2Store.cpp64 id_t id, std::shared_ptr<C2Allocator> *const allocator) override;
103 id_t id, std::shared_ptr<C2Allocator> *const allocator) { in fetchAllocator() argument
104 allocator->reset(); in fetchAllocator()
111 *allocator = fetchIonAllocator(); in fetchAllocator()
116 *allocator = fetchGrallocAllocator(); in fetchAllocator()
120 *allocator = fetchBufferQueueAllocator(); in fetchAllocator()
124 *allocator = fetchBlobAllocator(); in fetchAllocator()
130 C2PlatformStorePluginLoader::GetInstance()->createAllocator(id, allocator); in fetchAllocator()
136 if (*allocator == nullptr) { in fetchAllocator()
148 const std::shared_ptr<C2AllocatorIon> allocator, in UseComponentStoreForIonAllocator() argument
[all …]
DC2PlatformStorePluginLoader.cpp77 ::C2Allocator::id_t allocatorId, std::shared_ptr<C2Allocator>* const allocator) { in createAllocator() argument
84 allocator->reset(mCreateAllocator(allocatorId, &res)); in createAllocator()
87 allocator->reset(); in createAllocator()
DC2Buffer.cpp330 const std::shared_ptr<C2Allocator> &allocator) in C2BasicLinearBlockPool() argument
331 : mAllocator(allocator) { } in C2BasicLinearBlockPool()
400 std::unique_ptr<C2Allocator> allocator; in CreateLinearBlock() local
403 allocator = std::make_unique<C2AllocatorBlob>(android::C2PlatformAllocatorStore::BLOB); in CreateLinearBlock()
405 allocator = std::make_unique<C2AllocatorIon>(android::C2PlatformAllocatorStore::ION); in CreateLinearBlock()
407 return allocator; in CreateLinearBlock()
435 std::unique_ptr<C2Allocator> allocator; in CreateLinearBlock() local
438 allocator = std::make_unique<C2AllocatorBlob>(android::C2PlatformAllocatorStore::BLOB); in CreateLinearBlock()
440 allocator = std::make_unique<C2AllocatorIon>(android::C2PlatformAllocatorStore::ION); in CreateLinearBlock()
442 return allocator; in CreateLinearBlock()
[all …]
/frameworks/native/libs/binder/ndk/
Dparcel.cpp110 ContiguousArrayAllocator<T> allocator) { in ReadArray() argument
120 if (!allocator(arrayData, length, &array)) return STATUS_NO_MEMORY; in ReadArray()
139 ContiguousArrayAllocator<char16_t> allocator) { in ReadArray() argument
149 if (!allocator(arrayData, length, &array)) return STATUS_NO_MEMORY; in ReadArray()
187 binder_status_t ReadArray(const AParcel* parcel, void* arrayData, ArrayAllocator<T> allocator, in ReadArray() argument
197 if (!allocator(arrayData, length)) return STATUS_NO_MEMORY; in ReadArray()
326 AParcel_stringAllocator allocator) { in AParcel_readString() argument
331 if (allocator(stringData, -1, nullptr)) { in AParcel_readString()
352 bool success = allocator(stringData, len8, &str8); in AParcel_readString()
399 AParcel_stringArrayAllocator allocator, in AParcel_readStringArray() argument
[all …]
/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_parcel.h520 AParcel_stringAllocator allocator) __INTRODUCED_IN(29);
566 AParcel_stringArrayAllocator allocator,
604 AParcel_parcelableArrayAllocator allocator,
971 AParcel_int32ArrayAllocator allocator) __INTRODUCED_IN(29);
989 AParcel_uint32ArrayAllocator allocator) __INTRODUCED_IN(29);
1007 AParcel_int64ArrayAllocator allocator) __INTRODUCED_IN(29);
1025 AParcel_uint64ArrayAllocator allocator) __INTRODUCED_IN(29);
1043 AParcel_floatArrayAllocator allocator) __INTRODUCED_IN(29);
1061 AParcel_doubleArrayAllocator allocator) __INTRODUCED_IN(29);
1080 AParcel_boolArrayAllocator allocator,
[all …]
/frameworks/ml/nn/common/
DMemoryUtils.cpp25 using ::android::hidl::allocator::V1_0::IAllocator;
32 static sp<IAllocator> allocator = IAllocator::getService(type); in allocateSharedMemory() local
37 allocator->allocate(size, [&](bool success, const hidl_memory& mem) { in allocateSharedMemory()
/frameworks/base/libs/hwui/tests/common/scenes/
DTvApp.cpp52 explicit TvApp(BitmapAllocationTestUtils::BitmapAllocator allocator) in TvApp() argument
53 : TestScene(), mAllocator(allocator) {} in TvApp()
236 …it TvAppNoRoundedCorner(BitmapAllocationTestUtils::BitmapAllocator allocator) : TvApp(allocator) {} in TvAppNoRoundedCorner() argument
244 …plicit TvAppColorFilter(BitmapAllocationTestUtils::BitmapAllocator allocator) : TvApp(allocator) {} in TvAppColorFilter() argument
252 explicit TvAppNoRoundedCornerColorFilter(BitmapAllocationTestUtils::BitmapAllocator allocator) in TvAppNoRoundedCornerColorFilter() argument
253 : TvApp(allocator) {} in TvAppNoRoundedCornerColorFilter()
DBitmapShaders.cpp30 explicit BitmapShaders(BitmapAllocationTestUtils::BitmapAllocator allocator) in BitmapShaders() argument
31 : TestScene(), mAllocator(allocator) {} in BitmapShaders()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaDisplayList.h49 size_t getUsedSize() { return allocator.usedSize() + mDisplayList.usedSize(); } in getUsedSize()
50 size_t getAllocatedSize() { return allocator.allocatedSize() + mDisplayList.allocatedSize(); } in getAllocatedSize()
76 return allocator.create<T>(std::forward<Params>(params)...); in allocateDrawable()
147 LinearAllocator allocator; variable
/frameworks/base/libs/hwui/utils/
DLinearAllocator.h161 explicit LinearStdAllocator(LinearAllocator& allocator) : linearAllocator(allocator) {} in LinearStdAllocator() argument
201 explicit LsaVector(const LinearStdAllocator<T>& allocator) in LsaVector() argument
202 : std::vector<T, LinearStdAllocator<T>>(allocator) {} in LsaVector()
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dbuffer_wrapper.h114 BufferWrapper(const BufferType& buffer, const Allocator& allocator) in BufferWrapper() argument
115 : buffer_(buffer, allocator) {} in BufferWrapper()
117 BufferWrapper(BufferType&& buffer, const Allocator& allocator) in BufferWrapper() argument
118 : buffer_(std::move(buffer), allocator) {} in BufferWrapper()
166 template <typename T, typename Allocator = std::allocator<T>>
/frameworks/native/services/surfaceflinger/
DAndroid.bp27 "android.hardware.graphics.allocator@2.0",
28 "android.hardware.graphics.allocator@3.0",
89 "android.hardware.graphics.allocator@2.0",
90 "android.hardware.graphics.allocator@3.0",
225 "android.hardware.graphics.allocator@2.0",
226 "android.hardware.graphics.allocator@3.0",
Dmain_surfaceflinger.cpp51 android::hardware::graphics::allocator::V3_0::IAllocator>(); in startGraphicsAllocatorService()
57 android::hardware::graphics::allocator::V2_0::IAllocator>(); in startGraphicsAllocatorService()
/frameworks/av/media/codec2/vndk/include/
DC2BufferPriv.h27 explicit C2BasicLinearBlockPool(const std::shared_ptr<C2Allocator> &allocator);
52 explicit C2BasicGraphicBlockPool(const std::shared_ptr<C2Allocator> &allocator);
77 C2PooledBlockPool(const std::shared_ptr<C2Allocator> &allocator, const local_id_t localId);
/frameworks/base/libs/hwui/tests/common/
DBitmapAllocationTestUtils.h52 template <class T, BitmapAllocator allocator>
54 return new T(allocator); in createBitmapAllocationScene()
/frameworks/av/media/bufferpool/2.0/tests/
DAndroid.bp21 "allocator.cpp",
39 "allocator.cpp",
/frameworks/av/media/bufferpool/1.0/vts/
DAndroid.bp21 "allocator.cpp",
39 "allocator.cpp",
/frameworks/base/libs/hwui/jni/
DBitmapRegionDecoder.cpp169 SkBRDAllocator* allocator = nullptr; in nativeDecodeRegion() local
173 allocator = &recycleAlloc; in nativeDecodeRegion()
177 allocator = &heapAlloc; in nativeDecodeRegion()
186 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, in nativeDecodeRegion()

1234