Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 25 of 96) 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.cpp55 OverrideLayerNames(bool is_instance, const VkAllocationCallbacks& allocator) in OverrideLayerNames() argument
57 allocator_(allocator), in OverrideLayerNames()
334 const VkAllocationCallbacks& allocator) in OverrideExtensionNames() argument
336 allocator_(allocator), in OverrideExtensionNames()
405 const VkAllocationCallbacks* allocator,
410 const VkAllocationCallbacks* allocator,
414 const VkAllocationCallbacks* allocator);
417 const VkAllocationCallbacks* allocator);
425 const VkAllocationCallbacks& allocator);
446 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()
554 allocator->pfnFree(allocator->pUserData, surface); in CreateAndroidSurfaceKHR()
565 const VkAllocationCallbacks* allocator) { in DestroySurfaceKHR() argument
578 if (!allocator) in DestroySurfaceKHR()
579 allocator = &GetData(instance).allocator; in DestroySurfaceKHR()
580 allocator->pfnFree(allocator->pUserData, surface); in DestroySurfaceKHR()
[all …]
Ddriver.cpp99 const VkAllocationCallbacks& allocator);
102 const VkAllocationCallbacks& allocator);
330 const VkAllocationCallbacks& allocator) in CreateInfoWrapper() argument
332 allocator_(allocator), in CreateInfoWrapper()
342 const VkAllocationCallbacks& allocator) in CreateInfoWrapper() argument
344 allocator_(allocator), in CreateInfoWrapper()
692 InstanceData* AllocateInstanceData(const VkAllocationCallbacks& allocator) { in AllocateInstanceData() argument
693 void* data_mem = allocator.pfnAllocation( in AllocateInstanceData()
694 allocator.pUserData, sizeof(InstanceData), alignof(InstanceData), in AllocateInstanceData()
699 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()
76 const VkAllocationCallbacks allocator; member
90 allocator(alloc), in DeviceData()
98 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.cpp58 id_t id, std::shared_ptr<C2Allocator> *const allocator) override;
94 id_t id, std::shared_ptr<C2Allocator> *const allocator) { in fetchAllocator() argument
95 allocator->reset(); in fetchAllocator()
100 *allocator = fetchIonAllocator(); in fetchAllocator()
105 *allocator = fetchGrallocAllocator(); in fetchAllocator()
109 *allocator = fetchBufferQueueAllocator(); in fetchAllocator()
115 C2PlatformStorePluginLoader::GetInstance()->createAllocator(id, allocator); in fetchAllocator()
121 if (*allocator == nullptr) { in fetchAllocator()
133 const std::shared_ptr<C2AllocatorIon> allocator, in UseComponentStoreForIonAllocator() argument
182 allocator->setUsageMapper(mapper, minUsage, maxUsage, blockSize); in UseComponentStoreForIonAllocator()
[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()
/frameworks/native/libs/binder/ndk/
Dparcel.cpp109 ContiguousArrayAllocator<T> allocator) { in ReadArray() argument
119 if (!allocator(arrayData, length, &array)) return STATUS_NO_MEMORY; in ReadArray()
138 ContiguousArrayAllocator<char16_t> allocator) { in ReadArray() argument
148 if (!allocator(arrayData, length, &array)) return STATUS_NO_MEMORY; in ReadArray()
186 binder_status_t ReadArray(const AParcel* parcel, void* arrayData, ArrayAllocator<T> allocator, in ReadArray() argument
196 if (!allocator(arrayData, length)) return STATUS_NO_MEMORY; in ReadArray()
333 AParcel_stringAllocator allocator) { in AParcel_readString() argument
338 if (allocator(stringData, -1, nullptr)) { in AParcel_readString()
359 bool success = allocator(stringData, len8, &str8); in AParcel_readString()
406 AParcel_stringArrayAllocator allocator, in AParcel_readStringArray() argument
[all …]
/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_parcel.h496 AParcel_stringAllocator allocator) __INTRODUCED_IN(29);
538 AParcel_stringArrayAllocator allocator,
572 AParcel_parcelableArrayAllocator allocator,
883 AParcel_int32ArrayAllocator allocator) __INTRODUCED_IN(29);
899 AParcel_uint32ArrayAllocator allocator) __INTRODUCED_IN(29);
915 AParcel_int64ArrayAllocator allocator) __INTRODUCED_IN(29);
931 AParcel_uint64ArrayAllocator allocator) __INTRODUCED_IN(29);
947 AParcel_floatArrayAllocator allocator) __INTRODUCED_IN(29);
963 AParcel_doubleArrayAllocator allocator) __INTRODUCED_IN(29);
980 AParcel_boolArrayAllocator allocator,
[all …]
/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.cpp29 explicit BitmapShaders(BitmapAllocationTestUtils::BitmapAllocator allocator) in BitmapShaders() argument
30 : TestScene(), mAllocator(allocator) {} in BitmapShaders()
DBitmapFillrate.cpp34 explicit BitmapFillrate(BitmapAllocationTestUtils::BitmapAllocator allocator) in BitmapFillrate() argument
35 : TestScene(), mAllocator(allocator) {} in BitmapFillrate()
/frameworks/native/services/surfaceflinger/
DAndroid.bp26 "android.hardware.graphics.allocator@2.0",
27 "android.hardware.graphics.allocator@3.0",
80 "android.hardware.graphics.allocator@2.0",
81 "android.hardware.graphics.allocator@3.0",
192 "android.hardware.graphics.allocator@2.0",
193 "android.hardware.graphics.allocator@3.0",
Dmain_surfaceflinger.cpp46 android::hardware::graphics::allocator::V3_0::IAllocator>(); in startGraphicsAllocatorService()
52 android::hardware::graphics::allocator::V2_0::IAllocator>(); in startGraphicsAllocatorService()
/frameworks/base/libs/hwui/utils/
DLinearAllocator.h160 explicit LinearStdAllocator(LinearAllocator& allocator) : linearAllocator(allocator) {} in LinearStdAllocator() argument
200 explicit LsaVector(const LinearStdAllocator<T>& allocator) in LsaVector() argument
201 : std::vector<T, LinearStdAllocator<T>>(allocator) {} in LsaVector()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaDisplayList.h47 size_t getUsedSize() { return allocator.usedSize() + mDisplayList.usedSize(); } in getUsedSize()
73 return allocator.create<T>(std::forward<Params>(params)...); in allocateDrawable()
144 LinearAllocator allocator; variable
/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/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/base/core/jni/android/graphics/
DImageDecoder.cpp204 jboolean requireMutable, jint allocator, in ImageDecoder_nDecodeBitmap() argument
251 if (allocator != ImageDecoder::kHardware_Allocator && in ImageDecoder_nDecodeBitmap()
252 (allocator != ImageDecoder::kDefault_Allocator || requireMutable)) { in ImageDecoder_nDecodeBitmap()
264 && (allocator == ImageDecoder::kDefault_Allocator || in ImageDecoder_nDecodeBitmap()
265 allocator == ImageDecoder::kHardware_Allocator) in ImageDecoder_nDecodeBitmap()
291 if (allocator == ImageDecoder::kSharedMemory_Allocator && !scale && !jsubset) { in ImageDecoder_nDecodeBitmap()
388 if (allocator == ImageDecoder::kSharedMemory_Allocator) { in ImageDecoder_nDecodeBitmap()
473 if (allocator == ImageDecoder::kHardware_Allocator) { in ImageDecoder_nDecodeBitmap()
DBitmapRegionDecoder.cpp177 SkBRDAllocator* allocator = nullptr; in nativeDecodeRegion() local
181 allocator = &recycleAlloc; in nativeDecodeRegion()
185 allocator = &heapAlloc; in nativeDecodeRegion()
194 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, in nativeDecodeRegion()
/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",

1234