/frameworks/native/libs/ui/tests/ |
D | GraphicBufferAllocator_test.cpp | 48 mAllocator = std::make_unique<const mock::MockGrallocAllocator>(); in TestableGraphicBufferAllocator() 52 EXPECT_CALL(*(reinterpret_cast<const mock::MockGrallocAllocator*>(mAllocator.get())), in setUpAllocateExpectations() 56 std::unique_ptr<const GrallocAllocator>& getAllocator() { return mAllocator; } in getAllocator() 61 GraphicBufferAllocatorTest() : mAllocator() {} in GraphicBufferAllocatorTest() 62 const TestableGraphicBufferAllocator& getAllocator() { return mAllocator; } in getAllocator() 65 TestableGraphicBufferAllocator mAllocator; member in android::GraphicBufferAllocatorTest 69 mAllocator.setUpAllocateExpectations(NO_ERROR, kTestWidth); in TEST_F() 73 status_t err = mAllocator.allocate(kTestWidth, kTestHeight, format, kTestLayerCount, kTestUsage, in TEST_F() 83 mAllocator.setUpAllocateExpectations(NO_ERROR, expectedStride); in TEST_F() 87 status_t err = mAllocator.allocate(kTestWidth, kTestHeight, format, kTestLayerCount, kTestUsage, in TEST_F() [all …]
|
/frameworks/av/media/utils/include/mediautils/ |
D | SharedMemoryAllocator.h | 143 explicit ScopedAllocator(const std::shared_ptr<Allocator>& allocator) : mAllocator(allocator) {} 145 ScopedAllocator() : mAllocator(std::make_shared<Allocator>()) {} 150 const auto allocation = mAllocator->allocate(std::forward<T>(request)); 155 [allocator = mAllocator, lock = mLock] (const AllocationType& allocation) { 171 return mAllocator->owns(allocation->mAllocation); 177 return mAllocator->dump(); 183 const std::shared_ptr<Allocator> mAllocator; 224 : mAllocator(allocator), mPolicy(std::move(policy)) {} 236 AllocationType val = mAllocator.allocate(std::forward<T>(request)); 245 mAllocator.deallocate(allocation); [all …]
|
/frameworks/av/media/codec2/vndk/include/ |
D | C2BufferPriv.h | 32 return mAllocator->getId(); in getAllocatorId() 47 const std::shared_ptr<C2Allocator> mAllocator; 57 return mAllocator->getId(); in getAllocatorId() 72 const std::shared_ptr<C2Allocator> mAllocator; 89 return mAllocator->getId(); in getAllocatorId() 125 const std::shared_ptr<C2Allocator> mAllocator;
|
D | C2IgbaBufferPriv.h | 45 return mAllocator->getId(); in getAllocatorId() 82 const std::shared_ptr<C2Allocator> mAllocator; variable
|
D | C2BqBufferPriv.h | 56 return mAllocator->getId(); in getAllocatorId() 156 const std::shared_ptr<C2Allocator> mAllocator;
|
/frameworks/native/libs/ui/ |
D | GraphicBufferAllocator.cpp | 54 mAllocator = std::make_unique<const Gralloc5Allocator>( in GraphicBufferAllocator() 58 mAllocator = std::make_unique<const Gralloc4Allocator>( in GraphicBufferAllocator() 62 mAllocator = std::make_unique<const Gralloc3Allocator>( in GraphicBufferAllocator() 66 mAllocator = std::make_unique<const Gralloc2Allocator>( in GraphicBufferAllocator() 70 LOG_ALWAYS_FATAL_IF(!mAllocator->isLoaded(), in GraphicBufferAllocator() 107 result.append(mAllocator->dumpDebugInfo(less)); in dump() 137 auto result = mAllocator->allocate(request); in allocate() 146 result.status = mAllocator->allocate(request.requestorName, request.width, request.height, in allocate() 216 status_t error = mAllocator->allocate(requestorName, width, height, format, layerCount, usage, in allocateHelper() 295 return mAllocator->supportsAdditionalOptions(); in supportsAdditionalOptions()
|
D | Gralloc2.cpp | 364 mAllocator = IAllocator::getService(); in Gralloc2Allocator() 365 if (mAllocator == nullptr) { in Gralloc2Allocator() 372 return mAllocator != nullptr; in isLoaded() 378 mAllocator->dumpDebugInfo([&](const auto& tmpDebugInfo) { in dumpDebugInfo() 405 auto ret = mAllocator->allocate(descriptor, bufferCount, in allocate()
|
D | Gralloc3.cpp | 353 mAllocator = IAllocator::getService(); in Gralloc3Allocator() 354 if (mAllocator == nullptr) { in Gralloc3Allocator() 361 return mAllocator != nullptr; in isLoaded() 367 mAllocator->dumpDebugInfo([&](const auto& tmpDebugInfo) { debugInfo = tmpDebugInfo.c_str(); }); in dumpDebugInfo() 388 auto ret = mAllocator->allocate(descriptor, bufferCount, in allocate()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | BitmapShaders.cpp | 41 : TestScene(), mAllocator(allocator) {} in BitmapShaders() 47 mAllocator(200, 200, kRGBA_8888_SkColorType, [](SkBitmap& skBitmap) { in createContent() 73 BitmapAllocationTestUtils::BitmapAllocator mAllocator; member in BitmapShaders
|
D | BitmapFillrate.cpp | 36 : TestScene(), mAllocator(allocator) {} in BitmapFillrate() 64 mAllocator(itemWidth, itemHeight, kRGBA_8888_SkColorType, in createNode() 72 BitmapAllocationTestUtils::BitmapAllocator mAllocator; member in BitmapFillrate
|
D | TvApp.cpp | 58 : TestScene(), mAllocator(allocator) {} in TvApp() 66 BitmapAllocationTestUtils::BitmapAllocator mAllocator; member in TvApp 76 mSingleBitmap = mAllocator(dp(160), dp(120), kRGBA_8888_SkColorType, in createContent() 105 mAllocator(width, height, kRGBA_8888_SkColorType, in createBitmapNode() 166 : mAllocator(width, dp(120), kRGBA_8888_SkColorType, in createCard()
|
/frameworks/av/media/module/bufferpool/1.0/vts/ |
D | single.cpp | 60 mAllocator = std::make_shared<TestBufferPoolAllocator>(); in SetUp() 61 ASSERT_TRUE((bool)mAllocator); in SetUp() 63 status = mManager->create(mAllocator, &mConnectionId); in SetUp() 85 std::shared_ptr<BufferPoolAllocator> mAllocator; member in __anon56d7bbf90111::BufferpoolSingleTest
|
D | multi.cpp | 96 mAllocator = std::make_shared<TestBufferPoolAllocator>(); in SetUp() 97 ASSERT_TRUE((bool)mAllocator); in SetUp() 99 status = mManager->create(mAllocator, &mConnectionId); in SetUp() 122 std::shared_ptr<BufferPoolAllocator> mAllocator; member in __anonbfd04a620111::BufferpoolMultiTest
|
/frameworks/av/media/codec2/vndk/ |
D | C2Buffer.cpp | 364 : mAllocator(allocator) { } in C2BasicLinearBlockPool() 373 c2_status_t err = mAllocator->newLinearAllocation(capacity, usage, &alloc); in fetchLinearBlock() 557 : mAllocator(allocator) {} in _C2BufferPoolAllocator() 636 const std::shared_ptr<C2Allocator> mAllocator; member in _C2BufferPoolAllocator 669 status = mAllocator->newLinearAllocation( in allocate() 689 status = mAllocator->newGraphicAllocation( in allocate() 753 return mAllocator->priorLinearAllocation(handle, c2Allocation); in priorLinearAllocation() 759 return mAllocator->priorGraphicAllocation(handle, c2Allocation); in priorGraphicAllocation() 767 mAllocator(std::make_shared<_C2BufferPoolAllocator>(allocator)) { in Impl() 768 if (mAllocator && mBufferPoolManager) { in Impl() [all …]
|
/frameworks/av/media/module/bufferpool/2.0/tests/ |
D | single.cpp | 60 mAllocator = std::make_shared<TestBufferPoolAllocator>(); in SetUp() 61 ASSERT_TRUE((bool)mAllocator); in SetUp() 63 status = mManager->create(mAllocator, &mConnectionId); in SetUp() 85 std::shared_ptr<BufferPoolAllocator> mAllocator; member in __anonbc261b100111::BufferpoolSingleTest
|
D | multi.cpp | 94 mAllocator = std::make_shared<TestBufferPoolAllocator>(); in SetUp() 95 ASSERT_TRUE((bool)mAllocator); in SetUp() 97 status = mManager->create(mAllocator, &mConnectionId); in SetUp() 120 std::shared_ptr<BufferPoolAllocator> mAllocator; member in __anon08b3a2990111::BufferpoolMultiTest
|
D | cond.cpp | 97 mAllocator = std::make_shared<TestBufferPoolAllocator>(); in SetUp() 98 ASSERT_TRUE((bool)mAllocator); in SetUp() 100 status = mManager->create(mAllocator, &mConnectionId); in SetUp() 123 std::shared_ptr<BufferPoolAllocator> mAllocator; member in __anonfb3d15b20111::BufferpoolMultiTest
|
D | BufferpoolUnitTest.cpp | 73 BufferpoolTest() : mConnectionValid(false), mManager(nullptr), mAllocator(nullptr) { in BufferpoolTest() 90 std::shared_ptr<BufferPoolAllocator> mAllocator; member in BufferpoolTest 100 mAllocator = std::make_shared<TestBufferPoolAllocator>(); in setupBufferpoolManager() 101 ASSERT_NE(mAllocator, nullptr) << "unable to create TestBufferPoolAllocator\n"; in setupBufferpoolManager() 104 ResultStatus status = mManager->create(mAllocator, &mConnectionId); in setupBufferpoolManager()
|
/frameworks/av/media/codec2/hal/client/ |
D | GraphicBufferAllocator.cpp | 31 std::weak_ptr<GraphicBufferAllocator> mAllocator; member in aidl::android::hardware::media::c2::implementation::OnBufferReleasedListener 36 : mGeneration(generation), mAllocator(allocator) {} in OnBufferReleasedListener() 39 auto p = mAllocator.lock(); in onBufferReleased()
|
/frameworks/native/include/binder/ |
D | MemoryDealer.h | 57 SimpleBestFitAllocator* mAllocator; variable
|
/frameworks/native/libs/binder/include/binder/ |
D | MemoryDealer.h | 57 SimpleBestFitAllocator* mAllocator; variable
|
/frameworks/base/libs/hwui/ |
D | DamageAccumulator.h | 97 LinearAllocator mAllocator; variable
|
/frameworks/av/media/libstagefright/omx/tests/ |
D | OMXHarness.h | 96 sp<IAllocator> mAllocator; member
|
/frameworks/native/libs/ui/include/ui/ |
D | Gralloc2.h | 89 sp<hardware::graphics::allocator::V2_0::IAllocator> mAllocator; variable
|
D | Gralloc3.h | 90 sp<hardware::graphics::allocator::V3_0::IAllocator> mAllocator; variable
|