Home
last modified time | relevance | path

Searched refs:mAllocator (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/native/libs/ui/tests/
DGraphicBufferAllocator_test.cpp48 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/codec2/vndk/include/
DC2BufferPriv.h32 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;
82 return mAllocator->getId(); in getAllocatorId()
118 const std::shared_ptr<C2Allocator> mAllocator;
DC2BqBufferPriv.h33 return mAllocator->getId(); in getAllocatorId()
71 const std::shared_ptr<C2Allocator> mAllocator;
/frameworks/native/libs/ui/
DGraphicBufferAllocator.cpp50 mAllocator = std::make_unique<const Gralloc3Allocator>( in GraphicBufferAllocator()
52 if (!mAllocator->isLoaded()) { in GraphicBufferAllocator()
53 mAllocator = std::make_unique<const Gralloc2Allocator>( in GraphicBufferAllocator()
57 if (!mAllocator->isLoaded()) { in GraphicBufferAllocator()
96 result.append(mAllocator->dumpDebugInfo()); in dump()
134 mAllocator->allocate(width, height, format, layerCount, usage, 1, stride, handle); in allocate()
DGralloc2.cpp361 mAllocator = IAllocator::getService(); in Gralloc2Allocator()
362 if (mAllocator == nullptr) { in Gralloc2Allocator()
369 return mAllocator != nullptr; in isLoaded()
375 mAllocator->dumpDebugInfo([&](const auto& tmpDebugInfo) { in dumpDebugInfo()
399 auto ret = mAllocator->allocate(descriptor, bufferCount, in allocate()
DGralloc3.cpp344 mAllocator = IAllocator::getService(); in Gralloc3Allocator()
345 if (mAllocator == nullptr) { in Gralloc3Allocator()
352 return mAllocator != nullptr; in isLoaded()
358 mAllocator->dumpDebugInfo([&](const auto& tmpDebugInfo) { debugInfo = tmpDebugInfo.c_str(); }); in dumpDebugInfo()
376 auto ret = mAllocator->allocate(descriptor, bufferCount, in allocate()
/frameworks/base/libs/hwui/tests/common/scenes/
DBitmapShaders.cpp30 : TestScene(), mAllocator(allocator) {} in BitmapShaders()
36 mAllocator(200, 200, kRGBA_8888_SkColorType, [](SkBitmap& skBitmap) { in createContent()
63 BitmapAllocationTestUtils::BitmapAllocator mAllocator; member in BitmapShaders
DBitmapFillrate.cpp35 : TestScene(), mAllocator(allocator) {} in BitmapFillrate()
63 mAllocator(itemWidth, itemHeight, kRGBA_8888_SkColorType, in createNode()
71 BitmapAllocationTestUtils::BitmapAllocator mAllocator; member in BitmapFillrate
DTvApp.cpp53 : TestScene(), mAllocator(allocator) {} in TvApp()
61 BitmapAllocationTestUtils::BitmapAllocator mAllocator; member in TvApp
71 mSingleBitmap = mAllocator(dp(160), dp(120), kRGBA_8888_SkColorType, in createContent()
100 mAllocator(width, height, kRGBA_8888_SkColorType, in createBitmapNode()
161 : mAllocator(width, dp(120), kRGBA_8888_SkColorType, in createCard()
/frameworks/av/media/bufferpool/1.0/vts/
Dsingle.cpp60 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 __anon2ed7fd040111::BufferpoolSingleTest
Dmulti.cpp94 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 __anon32f7160d0111::BufferpoolMultiTest
/frameworks/av/media/bufferpool/2.0/tests/
Dsingle.cpp60 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 __anon953acadb0111::BufferpoolSingleTest
Dmulti.cpp94 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 __anone0bc05040111::BufferpoolMultiTest
/frameworks/av/media/codec2/vndk/
DC2Buffer.cpp328 : mAllocator(allocator) { } in C2BasicLinearBlockPool()
337 c2_status_t err = mAllocator->newLinearAllocation(capacity, usage, &alloc); in fetchLinearBlock()
436 : mAllocator(allocator) {} in _C2BufferPoolAllocator()
515 const std::shared_ptr<C2Allocator> mAllocator; member in _C2BufferPoolAllocator
548 status = mAllocator->newLinearAllocation( in allocate()
567 status = mAllocator->newGraphicAllocation( in allocate()
630 return mAllocator->priorLinearAllocation(handle, c2Allocation); in priorLinearAllocation()
636 return mAllocator->priorGraphicAllocation(handle, c2Allocation); in priorGraphicAllocation()
644 mAllocator(std::make_shared<_C2BufferPoolAllocator>(allocator)) { in Impl()
645 if (mAllocator && mBufferPoolManager) { in Impl()
[all …]
/frameworks/base/libs/hwui/
DDamageAccumulator.h70 LinearAllocator mAllocator; variable
DDamageAccumulator.cpp48 mHead = mAllocator.create_trivial<DirtyStack>(); in DamageAccumulator()
82 DirtyStack* nextFrame = mAllocator.create_trivial<DirtyStack>(); in pushCommon()
/frameworks/native/libs/binder/include/binder/
DMemoryDealer.h57 SimpleBestFitAllocator* mAllocator; variable
/frameworks/native/include/binder/
DMemoryDealer.h57 SimpleBestFitAllocator* mAllocator; variable
/frameworks/ml/nn/runtime/
DMemory.cpp466 mAllocator = nullptr; in finish()
468 mAllocator = *devices.begin(); in finish()
469 VLOG(MEMORY) << "Using " << mAllocator->getName() << " as allocator."; in finish()
472 mAllocator = nullptr; in finish()
498 if (mAllocator != nullptr) { in allocate()
499 std::tie(n, memory) = mAllocator->allocate(mDesc, mOperand->type); in allocate()
/frameworks/native/libs/ui/include/ui/
DGraphicBufferAllocator.h77 std::unique_ptr<const GrallocAllocator> mAllocator; variable
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBufferAllocator.h77 std::unique_ptr<const GrallocAllocator> mAllocator; variable
/frameworks/native/libs/binder/
DMemoryDealer.cpp232 mAllocator(new SimpleBestFitAllocator(size)) in MemoryDealer()
238 delete mAllocator; in ~MemoryDealer()
266 return mAllocator; in allocator()
/frameworks/av/media/codec2/vndk/platform/
DC2BqBuffer.cpp464 c2_status_t err = mAllocator->priorGraphicAllocation(c2Handle, &alloc); in fetchFromIgbp_l()
488 mAllocator(allocator) { in Impl()
533 c2_status_t err = mAllocator->newGraphicAllocation( in fetchGraphicBlock()
656 const std::shared_ptr<C2Allocator> mAllocator; member in C2BufferQueueBlockPool::Impl
766 : mAllocator(allocator), mLocalId(localId), mImpl(new Impl(allocator)) {} in C2BufferQueueBlockPool()
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.h96 sp<IAllocator> mAllocator; member
/frameworks/av/media/codec2/hidl/1.0/utils/
DInputSurfaceConnection.cpp175 &mAllocator); in init()
201 c2_status_t err = mAllocator->priorGraphicAllocation(handle, &alloc); in submitBuffer()
440 std::shared_ptr<C2Allocator> mAllocator; member

12