Home
last modified time | relevance | path

Searched refs:allocate (Results 1 – 25 of 268) sorted by relevance

1234567891011

/frameworks/compile/mclinker/unittests/
DLinearAllocatorTest.cpp38 Data* pointer = m_pTestee->allocate(10); in TEST_F()
44 TEST_F(LinearAllocatorTest, allocate) { in TEST_F() argument
45 Data* pointer = m_pTestee->allocate(); in TEST_F()
52 Data* pointer = m_pTestee->allocate(CHUNK_SIZE + 1); in TEST_F()
59 Data* pointer = m_pTestee->allocate(); in TEST_F()
68 Data* pointer = m_pTestee->allocate(); in TEST_F()
79 Data* pointer = m_pTestee->allocate(10); in TEST_F()
88 Data* pointer = m_pTestee->allocate(10); in TEST_F()
100 Data* pointer = m_pTestee->allocate(); in TEST_F()
117 Data* pointer = m_pTestee->allocate(10); in TEST_F()
DRTLinearAllocatorTest.cpp39 Data* pointer = m_pTestee->allocate(10); in TEST_F()
45 TEST_F(RTLinearAllocatorTest, allocate) { in TEST_F() argument
46 Data* pointer = m_pTestee->allocate(); in TEST_F()
53 Data* pointer = m_pTestee->allocate(CHUNK_SIZE + 1); in TEST_F()
60 Data* pointer = m_pTestee->allocate(); in TEST_F()
69 Data* pointer = m_pTestee->allocate(); in TEST_F()
80 Data* pointer = m_pTestee->allocate(10); in TEST_F()
89 Data* pointer = m_pTestee->allocate(10); in TEST_F()
101 Data* pointer = m_pTestee->allocate(); in TEST_F()
118 Data* pointer = m_pTestee->allocate(10); in TEST_F()
/frameworks/av/media/utils/tests/
Dshared_memory_allocator_tests.cpp55 MemoryHeapBaseAllocator().allocate(BasicAllocRequest{kMaxPageSize});
57 MemoryHeapBaseAllocator().allocate(BasicAllocRequest{kMaxPageSize});
94 const auto memory = allocator.allocate(BasicAllocRequest{500}); in TEST()
114 const auto first_memory = allocator.allocate(BasicAllocRequest{500}); in TEST()
115 const auto second_memory = allocator.allocate(BasicAllocRequest{500}); in TEST()
128 const auto first_memory = allocator.allocate(NamedAllocRequest{{500}, "allocate_1"}); in TEST()
131 const auto tmp = allocator.allocate(NamedAllocRequest{{5000}, "allocate_2"}); in TEST()
171 EXPECT_TRUE(allocator.allocate(BasicAllocRequest{kMaxPageSize * 5}) == nullptr); in TEST()
173 EXPECT_TRUE(allocator.allocate(BasicAllocRequest{kMaxPageSize}) == nullptr); in TEST()
174 const auto first_memory = allocator.allocate(BasicAllocRequest{kMaxPageSize * 4}); in TEST()
[all …]
/frameworks/av/media/codec2/tests/aidl/
DGraphicsTracker_test.cpp335 ret = mTracker->allocate(0, 0, 0, kTestUsageFlag, &buf, &fence); in TEST_F()
348 ret = mTracker->allocate(0, 0, 0, kTestUsageFlag, &buf, &fence); in TEST_F()
376 ret = mTracker->allocate(0, 0, 0, kTestUsageFlag, &buf, &fence); in TEST_F()
417 ret = mTracker->allocate(0, 0, 0, kTestUsageFlag, &buf1, &fence1); in TEST_F()
422 ret = mTracker->allocate(0, 0, 0, kTestUsageFlag, &buf2, &fence2); in TEST_F()
478 c2_status_t ret = mTracker->allocate(0, 0, 0, kTestUsageFlag, &buf, &fence); in TEST_F()
533 ASSERT_EQ(C2_OK, mTracker->allocate(0, 0, 0, kTestUsageFlag, &buf1, &fence)); in TEST_F()
537 ASSERT_EQ(C2_OK, mTracker->allocate(0, 0, 0, kTestUsageFlag, &buf2, &fence)); in TEST_F()
582 ASSERT_EQ(C2_OK, mTracker->allocate( in TEST_F()
590 c2_status_t ret = mTracker->allocate( in TEST_F()
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DDiagGOTPLT.inc7 "fial to allocate memory for GOT",
8 "fial to allocate memory for GOT")
11 "fial to allocate memory for PLT",
12 "fial to allocate memory for PLT")
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
DRuleBinaryParserTest.java119 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryStream_validCompoundFormula_noIndexing()
158 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validCompoundFormula_notConnector_noIndexing()
203 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validCompoundFormula_andConnector_noIndexing()
251 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validCompoundFormula_orConnector_noIndexing()
290 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validAtomicFormula_stringValue_noIndexing()
322 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validAtomicFormula_hashedValue_noIndexing()
356 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validAtomicFormulaWithCertificateLineage()
388 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validAtomicFormula_integerValue_noIndexing()
416 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validAtomicFormula_booleanValue_noIndexing()
443 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_invalidAtomicFormula_noIndexing()
[all …]
/frameworks/av/media/utils/include/mediautils/
DSharedMemoryAllocator.h148 auto allocate(T&& request) {
150 const auto allocation = mAllocator->allocate(std::forward<T>(request));
230 AllocationType allocate(T&& request) {
236 AllocationType val = mAllocator.allocate(std::forward<T>(request));
293 AllocationType allocate(T&& request) {
295 AllocationType allocation = mAllocator.allocate(request);
380 AllocationType allocate(T&& request) {
381 AllocationType allocation = mPrimary.allocate(std::forward<T>(request));
382 if (!allocation) allocation = mSecondary.allocate(std::forward<T>(request));
439 AllocationType allocate(T&& request) {
[all …]
/frameworks/native/libs/ui/tests/
DGraphicBufferAllocator_test.cpp53 allocate) in setUpAllocateExpectations()
73 status_t err = mAllocator.allocate(kTestWidth, kTestHeight, format, kTestLayerCount, kTestUsage, in TEST_F()
87 status_t err = mAllocator.allocate(kTestWidth, kTestHeight, format, kTestLayerCount, kTestUsage, in TEST_F()
111 status_t err = mAllocator.allocate(width, height, format, kTestLayerCount, kTestUsage, &handle, in TEST_F()
/frameworks/compile/mclinker/lib/Script/
DOperand.cpp53 SymOperand* result = g_SymOperandFactory->allocate(); in create()
86 IntOperand* result = g_IntOperandFactory->allocate(); in create()
118 SectOperand* result = g_SectOperandFactory->allocate(); in create()
154 SectDescOperand* result = g_SectDescOperandFactory->allocate(); in create()
192 FragOperand* result = g_FragOperandFactory->allocate(); in create()
/frameworks/compile/mclinker/lib/Support/
DMemoryAreaFactory.cpp29 MemoryArea* result = allocate(); in produce()
43 MemoryArea* result = allocate(); in produce()
56 MemoryArea* result = allocate(); in produce()
/frameworks/av/media/mtp/
DMtpPacket.cpp50 allocate(MTP_CONTAINER_HEADER_SIZE); in reset()
55 void MtpPacket::allocate(size_t length) { in allocate() function in android::MtpPacket
89 allocate(length); in copyFrom()
173 allocate(mPacketSize); in setParameter()
DMtpDataPacket.cpp251 allocate(mOffset + 1); in putInt8()
258 allocate(mOffset + 1); in putUInt8()
265 allocate(mOffset + 2); in putInt16()
273 allocate(mOffset + 2); in putUInt16()
281 allocate(mOffset + 4); in putInt32()
291 allocate(mOffset + 4); in putUInt32()
301 allocate(mOffset + 8); in putInt64()
315 allocate(mOffset + 8); in putUInt64()
466 allocate(length + MTP_CONTAINER_HEADER_SIZE); in writeData()
486 allocate(totalLength); in read()
[all …]
/frameworks/av/media/codec2/hal/client/
DGraphicBufferAllocator.cpp47 ::ndk::ScopedAStatus GraphicBufferAllocator::allocate( in allocate() function in aidl::android::hardware::media::c2::implementation::GraphicBufferAllocator
52 c2_status_t ret = allocate( in allocate()
120 c2_status_t GraphicBufferAllocator::allocate( in allocate() function in aidl::android::hardware::media::c2::implementation::GraphicBufferAllocator
123 return mGraphicsTracker->allocate(width, height, format, usage, buf, fence); in allocate()
/frameworks/compile/mclinker/lib/MC/
DContextFactory.cpp27 result = UniqueGCFactoryBase<sys::fs::Path, LDContext, 0>::allocate(); in produce()
39 LDContext* result = allocate(); in produce()
DInputFactory.cpp37 Input* result = Alloc::allocate(); in produce()
46 Input* result = Alloc::allocate(); in produce()
/frameworks/native/libs/ui/include/ui/
DGraphicBufferAllocator.h73 AllocationResult allocate(const AllocationRequest&);
80 status_t allocate(uint32_t w, uint32_t h, PixelFormat format, uint32_t layerCount,
98 status_t allocate(uint32_t w, uint32_t h, PixelFormat format,
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBufferAllocator.h73 AllocationResult allocate(const AllocationRequest&);
80 status_t allocate(uint32_t w, uint32_t h, PixelFormat format, uint32_t layerCount,
98 status_t allocate(uint32_t w, uint32_t h, PixelFormat format,
/frameworks/compile/mclinker/include/mcld/Support/
DGCFactory.h124 value_type* allocate(size_t N) { in allocate() function
125 value_type* result = Alloc::allocate(N); in allocate()
131 value_type* allocate() { in allocate() function
133 return Alloc::allocate(); in allocate()
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/extensions/
DAssetManagerExt.kt35 val dst = ByteBuffer.allocate(fd.length.toInt()) in <lambda>()
55 val dst = ByteBuffer.allocate(byteArray.size) in readAsset()
/frameworks/native/libs/ui/
DGraphicBufferAllocator.cpp116 auto GraphicBufferAllocator::allocate(const AllocationRequest& request) -> AllocationResult { in allocate() function in android::GraphicBufferAllocator
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()
254 status_t GraphicBufferAllocator::allocate(uint32_t width, uint32_t height, PixelFormat format, in allocate() function in android::GraphicBufferAllocator
271 status_t GraphicBufferAllocator::allocate(uint32_t width, uint32_t height, PixelFormat format, in allocate() function in android::GraphicBufferAllocator
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DFakeGateKeeperService.java42 ByteBuffer buffer = ByteBuffer.allocate(handle.length); in VerifyHandle()
52 ByteBuffer buffer = ByteBuffer.allocate(1 + Long.BYTES + password.length); in toBytes()
70 ByteBuffer buffer = ByteBuffer.allocate(handle.length); in AuthToken()
79 ByteBuffer buffer = ByteBuffer.allocate(1 + Long.BYTES + Long.BYTES); in toBytes()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaHistogram.h48 void allocate(size_t bucketCount, bool withBucketLimits);
80 allocate(bucketCount, false); in setup()
96 allocate(bucketCount, true); in setup()
110 void MediaHistogram<T>::allocate(size_t bucketCount, bool withBucketLimits) { in allocate() function
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DMeshActivity.java58 FloatBuffer vertexBuffer = FloatBuffer.allocate(6); in onDraw()
73 FloatBuffer iVertexBuffer = FloatBuffer.allocate(numTriangles * 2 + 4); in onDraw()
74 ShortBuffer indexBuffer = ShortBuffer.allocate(300); in onDraw()
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DBufferPool.java48 return ByteBuffer.allocate(chooseCapacity(mInitialBufferSize, needed)); in acquire()
72 buffer = ByteBuffer.allocate(capacity); in grow()
/frameworks/compile/mclinker/lib/LD/
DRelocationFactory.cpp72 Relocation* result = allocate(); in produce()
78 Relocation* result = allocate(); in produceEmptyEntry()

1234567891011