/frameworks/libs/binary_translation/lite_translator/riscv64_to_x86_64/ |
D | allocator_tests.cc | 28 Allocator<x86_64::Assembler::Register> allocator; in TEST() local 29 EXPECT_EQ(allocator.Alloc().value(), x86_64::Assembler::rbx); in TEST() 30 EXPECT_EQ(allocator.Alloc().value(), x86_64::Assembler::rsi); in TEST() 31 EXPECT_EQ(allocator.Alloc().value(), x86_64::Assembler::rdi); in TEST() 32 EXPECT_EQ(allocator.Alloc().value(), x86_64::Assembler::r8); in TEST() 33 EXPECT_EQ(allocator.Alloc().value(), x86_64::Assembler::r9); in TEST() 34 EXPECT_EQ(allocator.Alloc().value(), x86_64::Assembler::r10); in TEST() 35 EXPECT_EQ(allocator.Alloc().value(), x86_64::Assembler::r11); in TEST() 36 EXPECT_EQ(allocator.Alloc().value(), x86_64::Assembler::r12); in TEST() 37 EXPECT_EQ(allocator.Alloc().value(), x86_64::Assembler::r13); in TEST() [all …]
|
/frameworks/av/media/utils/tests/ |
D | shared_memory_allocator_tests.cpp | 93 MemoryHeapBaseAllocator allocator; in TEST() local 94 const auto memory = allocator.allocate(BasicAllocRequest{500}); in TEST() 100 allocator.deallocate(memory); in TEST() 113 MemoryHeapBaseAllocator allocator; in TEST() local 114 const auto first_memory = allocator.allocate(BasicAllocRequest{500}); in TEST() 115 const auto second_memory = allocator.allocate(BasicAllocRequest{500}); in TEST() 118 allocator.deallocate(first_memory); in TEST() 120 allocator.deallocate(second_memory); in TEST() 127 SnoopingAllocator<MemoryHeapBaseAllocator> allocator{"allocator"}; in TEST() local 128 const auto first_memory = allocator.allocate(NamedAllocRequest{{500}, "allocate_1"}); in TEST() [all …]
|
/frameworks/native/vulkan/libvulkan/ |
D | debug_report.cpp | 25 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 …]
|
D | api.cpp | 58 OverrideLayerNames(bool is_instance, const VkAllocationCallbacks& allocator) in OverrideLayerNames() argument 60 allocator_(allocator), in OverrideLayerNames() 346 const VkAllocationCallbacks& allocator) in OverrideExtensionNames() argument 348 allocator_(allocator), in OverrideExtensionNames() 418 const VkAllocationCallbacks* allocator, 423 const VkAllocationCallbacks* allocator, 427 const VkAllocationCallbacks* allocator); 430 const VkAllocationCallbacks* allocator); 438 const VkAllocationCallbacks& allocator); 459 const VkAllocationCallbacks* allocator, [all …]
|
D | swapchain.h | 26 …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);
|
D | driver.cpp | 100 const VkAllocationCallbacks& allocator); 104 const VkAllocationCallbacks& allocator); 393 const VkAllocationCallbacks& allocator) in CreateInfoWrapper() argument 395 allocator_(allocator), in CreateInfoWrapper() 405 const VkAllocationCallbacks& allocator) in CreateInfoWrapper() argument 407 allocator_(allocator), in CreateInfoWrapper() 867 InstanceData* AllocateInstanceData(const VkAllocationCallbacks& allocator) { in AllocateInstanceData() argument 868 void* data_mem = allocator.pfnAllocation( in AllocateInstanceData() 869 allocator.pUserData, sizeof(InstanceData), alignof(InstanceData), in AllocateInstanceData() 874 return new (data_mem) InstanceData(allocator); in AllocateInstanceData() [all …]
|
D | swapchain.cpp | 611 const VkAllocationCallbacks* allocator, in CreateAndroidSurfaceKHR() argument 615 if (!allocator) in CreateAndroidSurfaceKHR() 616 allocator = &GetData(instance).allocator; in CreateAndroidSurfaceKHR() 617 void* mem = allocator->pfnAllocation(allocator->pUserData, sizeof(Surface), in CreateAndroidSurfaceKHR() 633 allocator->pfnFree(allocator->pUserData, surface); in CreateAndroidSurfaceKHR() 643 allocator->pfnFree(allocator->pUserData, surface); in CreateAndroidSurfaceKHR() 654 const VkAllocationCallbacks* allocator) { in DestroySurfaceKHR() argument 667 if (!allocator) in DestroySurfaceKHR() 668 allocator = &GetData(instance).allocator; in DestroySurfaceKHR() 669 allocator->pfnFree(allocator->pUserData, surface); in DestroySurfaceKHR() [all …]
|
/frameworks/av/media/codec2/vndk/ |
D | C2Store.cpp | 69 id_t id, std::shared_ptr<C2Allocator> *const allocator) override; 140 id_t id, std::shared_ptr<C2Allocator> *const allocator) { in fetchAllocator() argument 141 allocator->reset(); in fetchAllocator() 149 *allocator = fetchIonAllocator(); in fetchAllocator() 151 *allocator = fetchDmaBufAllocator(); in fetchAllocator() 156 *allocator = fetchGrallocAllocator(); in fetchAllocator() 160 *allocator = fetchBufferQueueAllocator(); in fetchAllocator() 164 *allocator = fetchBlobAllocator(); in fetchAllocator() 168 *allocator = fetchIgbaAllocator(); in fetchAllocator() 174 C2PlatformStorePluginLoader::GetInstance()->createAllocator(id, allocator); in fetchAllocator() [all …]
|
D | C2PlatformStorePluginLoader.cpp | 80 std::shared_ptr<C2Allocator>* const allocator, in createAllocator() argument 88 allocator->reset(mCreateAllocator(allocatorId, &res), deleter); in createAllocator() 91 allocator->reset(); in createAllocator()
|
/frameworks/av/services/audioflinger/afutils/ |
D | AllocatorFactory.h | 38 static const auto allocator = in getDedicated() local 40 return allocator; in getDedicated() 45 static const auto allocator = std::make_shared< in getSharedLarge() local 47 return allocator; in getSharedLarge() 52 static const auto allocator = in getSharedSmall() local 55 return allocator; in getSharedSmall() 59 inline auto wrapWithPolicySnooping(Allocator allocator, std::string_view name) { in wrapWithPolicySnooping() argument 61 return SnoopingAllocator{PolicyAllocator{IndirectAllocator{allocator}, Policy{}}, name}; in wrapWithPolicySnooping()
|
/frameworks/native/vulkan/nulldrv/ |
D | null_driver.cpp | 41 VkAllocationCallbacks allocator; member 101 VkAllocationCallbacks allocator; member 294 const VkAllocationCallbacks* allocator, in CreateInstance() argument 296 if (!allocator) in CreateInstance() 297 allocator = &kDefaultAllocCallbacks; in CreateInstance() 300 static_cast<VkInstance_T*>(allocator->pfnAllocation( in CreateInstance() 301 allocator->pUserData, sizeof(VkInstance_T), alignof(VkInstance_T), in CreateInstance() 307 instance->allocator = *allocator; in CreateInstance() 345 instance->allocator.pfnFree(instance->allocator.pUserData, instance); in DestroyInstance() 663 const VkAllocationCallbacks* allocator, in CreateDevice() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/graphics/ |
D | ImageLoader.kt | 105 allocator: Int = ImageDecoder.ALLOCATOR_DEFAULT in <lambda>() 107 withContext(backgroundDispatcher) { loadBitmapSync(source, maxWidth, maxHeight, allocator) } in <lambda>() 129 allocator: Int = ImageDecoder.ALLOCATOR_DEFAULT in <lambda>() 136 allocator in <lambda>() 164 allocator: Int = ImageDecoder.ALLOCATOR_DEFAULT in <lambda>() 169 decoder.allocator = allocator in <lambda>() 200 allocator: Int = ImageDecoder.ALLOCATOR_DEFAULT in <lambda>() 203 loadDrawableSync(source, maxWidth, maxHeight, allocator) in <lambda>() 228 allocator: Int = ImageDecoder.ALLOCATOR_DEFAULT in <lambda>() 231 loadDrawableSync(icon, context, maxWidth, maxHeight, allocator) in <lambda>() [all …]
|
/frameworks/native/libs/binder/ndk/ |
D | parcel.cpp | 122 ContiguousArrayAllocator<T> allocator) { in ReadArray() argument 131 if (!allocator(arrayData, length, &array)) { in ReadArray() 156 ContiguousArrayAllocator<char16_t> allocator) { in ReadArray() argument 165 if (!allocator(arrayData, length, &array)) { in ReadArray() 209 binder_status_t ReadArray(const AParcel* parcel, void* arrayData, ArrayAllocator<T> allocator, in ReadArray() argument 218 if (!allocator(arrayData, length)) { in ReadArray() 364 AParcel_stringAllocator allocator) { in AParcel_readString() argument 369 if (allocator(stringData, -1, nullptr)) { in AParcel_readString() 390 bool success = allocator(stringData, len8, &str8); in AParcel_readString() 437 AParcel_stringArrayAllocator allocator, in AParcel_readStringArray() argument [all …]
|
/frameworks/native/libs/binder/ndk/include_ndk/android/ |
D | binder_parcel.h | 525 AParcel_stringAllocator allocator) __INTRODUCED_IN(29); 571 AParcel_stringArrayAllocator allocator, 609 AParcel_parcelableArrayAllocator allocator, 976 AParcel_int32ArrayAllocator allocator) __INTRODUCED_IN(29); 994 AParcel_uint32ArrayAllocator allocator) __INTRODUCED_IN(29); 1012 AParcel_int64ArrayAllocator allocator) __INTRODUCED_IN(29); 1030 AParcel_uint64ArrayAllocator allocator) __INTRODUCED_IN(29); 1048 AParcel_floatArrayAllocator allocator) __INTRODUCED_IN(29); 1066 AParcel_doubleArrayAllocator allocator) __INTRODUCED_IN(29); 1085 AParcel_boolArrayAllocator allocator, [all …]
|
/frameworks/av/media/utils/include/mediautils/ |
D | SharedMemoryAllocator.h | 143 explicit ScopedAllocator(const std::shared_ptr<Allocator>& allocator) : mAllocator(allocator) {} 155 [allocator = mAllocator, lock = mLock] (const AllocationType& allocation) { 157 allocator->deallocate(allocation); 223 PolicyAllocator(Allocator allocator, Policy policy) 224 : mAllocator(allocator), mPolicy(std::move(policy)) {} 282 SnoopingAllocator(Allocator allocator, std::string_view name) 283 : mName(name), mAllocator(std::move(allocator)) {} 287 explicit SnoopingAllocator(Allocator allocator) : mAllocator(std::move(allocator)) {} 435 explicit IndirectAllocator(const std::shared_ptr<Allocator>& allocator) 436 : mAllocator(allocator) {}
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | TvApp.cpp | 57 explicit TvApp(BitmapAllocationTestUtils::BitmapAllocator allocator) in TvApp() argument 58 : TestScene(), mAllocator(allocator) {} in TvApp() 241 …it TvAppNoRoundedCorner(BitmapAllocationTestUtils::BitmapAllocator allocator) : TvApp(allocator) {} in TvAppNoRoundedCorner() argument 249 …plicit TvAppColorFilter(BitmapAllocationTestUtils::BitmapAllocator allocator) : TvApp(allocator) {} in TvAppColorFilter() argument 257 explicit TvAppNoRoundedCornerColorFilter(BitmapAllocationTestUtils::BitmapAllocator allocator) in TvAppNoRoundedCornerColorFilter() argument 258 : TvApp(allocator) {} in TvAppNoRoundedCornerColorFilter()
|
D | BitmapShaders.cpp | 40 explicit BitmapShaders(BitmapAllocationTestUtils::BitmapAllocator allocator) in BitmapShaders() argument 41 : TestScene(), mAllocator(allocator) {} in BitmapShaders()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaDisplayList.h | 51 size_t getUsedSize() const { return allocator.usedSize() + mDisplayList.usedSize(); } in getUsedSize() 53 return allocator.allocatedSize() + mDisplayList.allocatedSize(); in getAllocatedSize() 80 return allocator.create<T>(std::forward<Params>(params)...); in allocateDrawable() 166 LinearAllocator allocator; variable
|
/frameworks/av/media/module/bufferpool/2.0/tests/ |
D | Android.bp | 31 "allocator.cpp", 50 "allocator.cpp", 69 "allocator.cpp", 89 "allocator.cpp",
|
/frameworks/base/libs/hwui/jni/ |
D | BitmapRegionDecoder.cpp | 83 bool decodeRegion(SkBitmap* bitmap, skia::BRDAllocator* allocator, const SkIRect& desiredSubset, in decodeRegion() argument 86 return mMainImageBRD->decodeRegion(bitmap, allocator, desiredSubset, sampleSize, colorType, in decodeRegion() 115 RecyclingClippingPixelAllocator allocator(nativeBitmap.get(), false); in decodeGainmapRegion() local 116 if (!mGainmapBRD->decodeRegion(&bm, &allocator, desiredSubset, sampleSize, decodeColorType, in decodeGainmapRegion() 121 allocator.copyIfNecessary(); in decodeGainmapRegion() 278 skia::BRDAllocator* allocator = nullptr; in nativeDecodeRegion() local 282 allocator = &recycleAlloc; in nativeDecodeRegion() 286 allocator = &heapAlloc; in nativeDecodeRegion() 295 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, in nativeDecodeRegion()
|
/frameworks/base/libs/hwui/utils/ |
D | LinearAllocator.h | 161 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/ |
D | buffer_wrapper.h | 114 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/av/media/codec2/vndk/include/ |
D | C2BufferPriv.h | 27 explicit C2BasicLinearBlockPool(const std::shared_ptr<C2Allocator> &allocator); 52 explicit C2BasicGraphicBlockPool(const std::shared_ptr<C2Allocator> &allocator); 82 const std::shared_ptr<C2Allocator> &allocator,
|
/frameworks/native/services/surfaceflinger/ |
D | Android.bp | 60 "android.hardware.graphics.allocator@2.0", 61 "android.hardware.graphics.allocator@3.0", 120 "android.hardware.graphics.allocator@2.0", 121 "android.hardware.graphics.allocator@3.0", 241 "android.hardware.graphics.allocator@2.0", 242 "android.hardware.graphics.allocator@3.0",
|
/frameworks/av/media/codec2/hal/aidl/ |
D | Component.cpp | 355 const IComponent::BlockPoolAllocator &allocator, in createBlockPool() argument 360 allocatorParam.allocatorId = allocator.allocatorId; in createBlockPool() 361 switch (allocator.allocatorId) { in createBlockPool() 363 allocatorParam.igba = allocator.gbAllocator->igba; in createBlockPool() 365 allocator.gbAllocator->waitableFd.dup().release()); in createBlockPool() 490 std::shared_ptr<C2Allocator> allocator; in initListener() local 493 if(store->fetchAllocator(C2AllocatorStore::DEFAULT_LINEAR, &allocator) == C2_OK) { in initListener() 495 desc.allocatorId = allocator->getId(); in initListener()
|