Home
last modified time | relevance | path

Searched refs:allocation (Results 1 – 25 of 254) sorted by relevance

1234567891011

/aosp12/system/bt/osi/src/
H A Dallocation_tracker.cc88 if (!allocation->freed) { in allocation_tracker_expect_no_allocations()
92 __func__, (uintptr_t)allocation->ptr, allocation->size); in allocation_tracker_expect_no_allocations()
113 allocation_t* allocation; in allocation_tracker_notify_alloc() local
115 allocation = map_entry->second; in allocation_tracker_notify_alloc()
119 allocations[return_ptr] = allocation; in allocation_tracker_notify_alloc()
123 allocation->freed = false; in allocation_tracker_notify_alloc()
124 allocation->size = requested_size; in allocation_tracker_notify_alloc()
125 allocation->ptr = return_ptr; in allocation_tracker_notify_alloc()
146 CHECK(allocation->allocator_id == in allocation_tracker_notify_free()
153 allocation->freed = true; in allocation_tracker_notify_free()
[all …]
/aosp12/frameworks/rs/
H A DrsDriverLoader.cpp77 ret &= fn(RS_HAL_ALLOCATION_INIT, (void **)&rsc->mHal.funcs.allocation.init); in LoadHalTable()
80 ret &= fn(RS_HAL_ALLOCATION_DESTROY, (void **)&rsc->mHal.funcs.allocation.destroy); in LoadHalTable()
82 ret &= fn(RS_HAL_ALLOCATION_RESIZE, (void **)&rsc->mHal.funcs.allocation.resize); in LoadHalTable()
86 ret &= fn(RS_HAL_ALLOCATION_IO_SEND, (void **)&rsc->mHal.funcs.allocation.ioSend); in LoadHalTable()
88 ret &= fn(RS_HAL_ALLOCATION_DATA_1D, (void **)&rsc->mHal.funcs.allocation.data1D); in LoadHalTable()
89 ret &= fn(RS_HAL_ALLOCATION_DATA_2D, (void **)&rsc->mHal.funcs.allocation.data2D); in LoadHalTable()
90 ret &= fn(RS_HAL_ALLOCATION_DATA_3D, (void **)&rsc->mHal.funcs.allocation.data3D); in LoadHalTable()
91 ret &= fn(RS_HAL_ALLOCATION_READ_1D, (void **)&rsc->mHal.funcs.allocation.read1D); in LoadHalTable()
92 ret &= fn(RS_HAL_ALLOCATION_READ_2D, (void **)&rsc->mHal.funcs.allocation.read2D); in LoadHalTable()
93 ret &= fn(RS_HAL_ALLOCATION_READ_3D, (void **)&rsc->mHal.funcs.allocation.read3D); in LoadHalTable()
[all …]
H A DrsProgramVertex.cpp48 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D( in setup()
58 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setup()
77 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D( in setProjectionMatrix()
81 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setProjectionMatrix()
95 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D( in setModelviewMatrix()
99 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setModelviewMatrix()
113 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D( in setTextureMatrix()
117 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setTextureMatrix()
134 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in getProjectionMatrix()
147 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in transformToScreen()
[all …]
H A DrsAllocation.cpp117 if (!rsc->mHal.funcs.allocation.initAdapter(rsc, a)) { in createAdapter()
139 rsc->mHal.funcs.allocation.adapterOffset(rsc, this); in adapterOffset()
165 mRSC->mHal.funcs.allocation.destroy(mRSC, this); in ~Allocation()
169 rsc->mHal.funcs.allocation.syncAll(rsc, this, src); in syncAll()
425 rsc->mHal.funcs.allocation.unlock1D(rsc, this); in unpackVec3Allocation()
439 rsc->mHal.funcs.allocation.unlock1D(rsc, this); in packVec3Allocation()
459 rsc->mHal.funcs.allocation.unlock1D(rsc, this); in serialize()
518 mRSC->mHal.funcs.allocation.markDirty(rsc, this); in sendDirty()
544 mRSC->mHal.funcs.allocation.unlock1D(mRSC, this); in freeChildrenUnlocked()
568 rsc->mHal.funcs.allocation.unlock1D(rsc, this); in resize1D()
[all …]
H A DrsHidlAdaptation.cpp217 uint64_t _allocation = (uint64_t)(uintptr_t)allocation; in AllocationGetType()
428 return (RsAllocation) allocation; in AllocationCreateTyped()
443 return (RsAllocation) allocation; in AllocationCreateFromBitmap()
456 return (RsAllocation) allocation; in AllocationCubeCreateFromBitmap()
461 uint64_t _allocation = (uint64_t)(uintptr_t)allocation; in AllocationGetSurface()
468 uint64_t _allocation = (uint64_t)(uintptr_t)allocation; in AllocationSetSurface()
551 uint64_t _allocation = (uint64_t)(uintptr_t)allocation; in AllocationCopyToBitmap()
559 uint64_t _allocation = (uint64_t)(uintptr_t)allocation; in Allocation1DData()
569 uint64_t _allocation = (uint64_t)(uintptr_t)allocation; in Allocation1DElementData()
580 uint64_t _allocation = (uint64_t)(uintptr_t)allocation; in AllocationElementData()
[all …]
/aosp12/hardware/interfaces/renderscript/1.0/vts/functional/
H A DVtsCopyTests.cpp43 ASSERT_NE(Allocation(0), allocation); in TEST_P()
79 ASSERT_NE(Allocation(0), allocation); in TEST_P()
116 ASSERT_NE(Allocation(0), allocation); in TEST_P()
154 Allocation allocation = context->allocationCreateFromBitmap(type, in TEST_P() local
158 ASSERT_NE(Allocation(0), allocation); in TEST_P()
160 context->allocationCopyToBitmap(allocation, (Ptr)dataOut1.data(), in TEST_P()
303 ASSERT_NE(Allocation(0), allocation); in TEST_P()
360 ASSERT_NE(Allocation(0), allocation); in TEST_P()
364 context->allocationGenerateMipmaps(allocation); in TEST_P()
405 ASSERT_NE(Allocation(0), allocation); in TEST_P()
[all …]
H A DVtsScriptTests.cpp217 ASSERT_NE(Allocation(0), allocation); in TEST_P()
224 context->allocation1DWrite(allocation, 0, 0, (Size)dataIn.size(), _data); in TEST_P()
226 vains.setToExternal(&allocation, 1); in TEST_P()
265 ASSERT_NE(Allocation(0), allocation); in TEST_P()
272 context->allocation1DWrite(allocation, 0, 0, (Size)dataIn.size(), _data); in TEST_P()
274 vains.setToExternal(&allocation, 1); in TEST_P()
309 ASSERT_NE(Allocation(0), allocation); in TEST_P()
314 context->allocation1DWrite(allocation, 0, 0, (Size)dataIn.size(), _data); in TEST_P()
441 ASSERT_NE(Allocation(0), allocation); in TEST_P()
466 hidl_vec<int64_t> values2 = {(int64_t)(intptr_t)allocation}; in TEST_P()
[all …]
H A DVtsMiscellaneousTests.cpp56 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P() local
60 ASSERT_NE(Allocation(0), allocation); in TEST_P()
63 Type type2 = context->allocationGetType(allocation); in TEST_P()
120 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P() local
123 ASSERT_NE(Allocation(0), allocation); in TEST_P()
127 context->allocationGetPointer(allocation, 0, AllocationCubemapFace::POSITIVE_X, 0, in TEST_P()
132 context->allocationResize1D(allocation, 1024*1024); in TEST_P()
133 context->allocationGetPointer(allocation, 0, AllocationCubemapFace::POSITIVE_X, 0, in TEST_P()
/aosp12/bionic/libc/stdio/
H A Dvfscanf.cpp374 if (allocation != nullptr) { in __svfscanf()
376 allocation = nullptr; in __svfscanf()
407 if (allocation != nullptr) { in __svfscanf()
409 allocation = nullptr; in __svfscanf()
464 allocation = wcp = new_allocation; in __svfscanf()
482 if (allocation != nullptr) { in __svfscanf()
484 allocation = nullptr; in __svfscanf()
513 allocation = p = new_allocation; in __svfscanf()
522 if (allocation != nullptr) { in __svfscanf()
524 allocation = nullptr; in __svfscanf()
[all …]
/aosp12/art/test/904-object-allocation/
H A DAndroid.bp3 // Build rules for ART run-test `904-object-allocation`.
16 name: "art-run-test-904-object-allocation",
21 ":art-run-test-904-object-allocation-expected-stdout",
22 ":art-run-test-904-object-allocation-expected-stderr",
28 name: "art-run-test-904-object-allocation-expected-stdout",
29 out: ["art-run-test-904-object-allocation-expected-stdout.txt"],
36 name: "art-run-test-904-object-allocation-expected-stderr",
37 out: ["art-run-test-904-object-allocation-expected-stderr.txt"],
/aosp12/system/chre/util/tests/
H A Dmemory_pool_test.cc62 size_t *allocation; member
78 AllocationExpectedValuePair allocation = { in TEST() local
79 .allocation = memoryPool.allocate(), in TEST()
83 *allocation.allocation = j; in TEST()
84 allocations.push_back(allocation); in TEST()
98 EXPECT_EQ(*allocations[deallocateIndex].allocation, in TEST()
100 memoryPool.deallocate(allocations[deallocateIndex].allocation); in TEST()
/aosp12/system/memory/libmemunreachable/
H A DAllocator.cpp393 FreeLocked(allocation); in MapAlloc()
396 allocation->ptr = ptr; in MapAlloc()
397 allocation->size = size; in MapAlloc()
398 allocation->next = map_allocation_list_; in MapAlloc()
399 map_allocation_list_ = allocation; in MapAlloc()
405 MapAllocation** allocation = &map_allocation_list_; in MapFree() local
406 while (*allocation && (*allocation)->ptr != ptr) allocation = &(*allocation)->next; in MapFree()
408 assert(*allocation != nullptr); in MapFree()
410 munmap((*allocation)->ptr, (*allocation)->size); in MapFree()
411 FreeLocked(*allocation); in MapFree()
[all …]
/aosp12/hardware/interfaces/renderscript/1.0/default/
H A DContext.h58 Return<Type> allocationGetType(Allocation allocation) override;
62 Return<NativeWindow> allocationGetNativeWindow(Allocation allocation) override;
63 … Return<void> allocationSetNativeWindow(Allocation allocation, NativeWindow nativewindow) override;
66 Return<void> allocationCopyToBitmap(Allocation allocation, Ptr data, Size sizeBytes) override;
71 Return<void> allocationGenerateMipmaps(Allocation allocation) override;
72 Return<void> allocationRead(Allocation allocation, Ptr data, Size sizeBytes) override;
77 Return<void> allocationSyncAll(Allocation allocation, AllocationUsageType usageType) override;
78 Return<void> allocationResize1D(Allocation allocation, uint32_t dimX) override;
81 Return<void> allocationIoSend(Allocation allocation) override;
82 Return<void> allocationIoReceive(Allocation allocation) override;
[all …]
H A DContext.cpp96 Return<Type> Context::allocationGetType(Allocation allocation) { in allocationGetType() argument
97 RsAllocation _allocation = hidl_to_rs<RsAllocation>(allocation); in allocationGetType()
130 RsAllocation _allocation = hidl_to_rs<RsAllocation>(allocation); in allocationGetNativeWindow()
136 RsAllocation _allocation = hidl_to_rs<RsAllocation>(allocation); in allocationSetNativeWindow()
157 RsAllocation _allocation = hidl_to_rs<RsAllocation>(allocation); in allocationCopyToBitmap()
165 RsAllocation _allocation = hidl_to_rs<RsAllocation>(allocation); in allocation1DWrite()
176 RsAllocation _allocation = hidl_to_rs<RsAllocation>(allocation); in allocationElementWrite()
189 RsAllocation _allocation = hidl_to_rs<RsAllocation>(allocation); in allocation2DWrite()
204 RsAllocation _allocation = hidl_to_rs<RsAllocation>(allocation); in allocation3DWrite()
337 Return<void> Context::allocationIoSend(Allocation allocation) { in allocationIoSend() argument
[all …]
/aosp12/bionic/libc/malloc_debug/
H A DREADME_marshmallow_and_earlier.md20 the normal allocation calls. The replaced calls are:
46 that contains information about the allocation.
49 Enable capturing the backtrace of each allocation site. Only the
66 Whenever an allocation is created, initialize the data with a known
68 Whenever an allocation is freed, write a known pattern over the data (0xef).
73 that contains information about the allocation.
78 A 32 byte buffer is placed before the returned allocation (known as
83 When the allocation is freed, both of these guards are verified to contain
89 entire allocation is filled with the value 0xef, and the backtrace at
90 the time of the free is recorded. As with the backtrace on allocation,
[all …]
H A DREADME.md14 the normal allocation calls. The replaced calls are:
56 the backtrace of the allocation site.
65 and information about the original allocation.
85 information about the original allocation.
169 Any allocation routine, other than calloc, will result in the allocation being
174 of bytes in the allocation. The default is to fill the entire allocation.
177 When an allocation is freed, fill it with 0xef.
180 of bytes in the allocation. The default is to fill the entire allocation.
186 of bytes in the allocation. The default is to fill the entire allocation.
483 The allocation record data has this format:
[all …]
H A DREADME_api.md13 the allocation information.
16 value is zero, then there are no allocation being tracked.
17 *total\_memory* is set to the sum of all allocation sizes that are live at
21 that are present for each allocation.
42 backtrace and size as this allocation. On Android Nougat, this value was
56 Note, the size value in each allocation data structure will have bit 31 set
57 if this allocation was created in a process forked from the Zygote process.
/aosp12/hardware/interfaces/renderscript/1.0/
H A DIContext.hal37 * "adapted allocation" that's returned.
80 * @param allocation Allocation
95 * the allocation
98 * @return allocation Created Allocation
110 * the allocation
126 * for the allocation
143 * @param allocation Allocation
191 * @param allocation Allocation
443 * Resizes a 1D allocation. The contents of the allocation are preserved.
521 allocationIoSend(Allocation allocation);
[all …]
/aosp12/frameworks/av/media/codec2/vndk/
H A DC2AllocatorBlob.cpp170 uint32_t capacity, C2MemoryUsage usage, std::shared_ptr<C2LinearAllocation>* allocation) { in newLinearAllocation() argument
171 if (allocation == nullptr) { in newLinearAllocation()
175 allocation->reset(); in newLinearAllocation()
191 allocation->reset(new C2AllocationBlob(std::move(graphicAllocation), in newLinearAllocation()
197 const C2Handle* handle, std::shared_ptr<C2LinearAllocation>* allocation) { in priorLinearAllocation() argument
198 if (allocation == nullptr) { in priorLinearAllocation()
202 allocation->reset(); in priorLinearAllocation()
223 allocation->reset(new C2AllocationBlob(std::move(graphicAllocation), capacity, mTraits->id)); in priorLinearAllocation()
/aosp12/frameworks/rs/script_api/
H A Drs_allocation_data.spec21 an allocation.
73 arg: rs_allocation srcAlloc, "Source allocation."
76 arg: uint32_t srcMip, "Mip level in the source allocation. 0 if mip mapping is not used."
77 arg: rs_allocation_cubemap_face srcFace, "Cubemap face of the source allocation. Ignored for alloc…
H A Drs_object_types.spec62 summary: Handle to an allocation
64 An opaque handle to a RenderScript allocation.
112 summary: Bitfield to specify how an allocation is used
115 relevant to an allocation or an operation on an allocation.
/aosp12/art/runtime/
H A Dalloc_instrumentation.md2 checks for both allocation instrumentation and allocator changes by a single function table
3 dispatch, and templatized allocation code that can be used to generate either instrumented
4 or uninstrumented versions of allocation routines.
6 When we call an allocation routine, we always indirect through a thread-local function table that
7 either points to instrumented or uninstrumented allocation routines. The instrumented code has a
/aosp12/packages/apps/Camera2/src/com/android/camera/one/v2/core/
H A DRequestBuilder.java101 for (Allocation allocation : mAllocations) { in allocateCaptureRequest()
102 allocation.allocate(); in allocateCaptureRequest()
114 for (Allocation allocation : mAllocations) { in abort()
115 allocation.abort(); in abort()
/aosp12/bionic/docs/
H A Dnative_allocator.md6 [SQL Allocation Trace Benchmark](#sql-allocation-trace-benchmark),
34 call to an allocation function (malloc/free/etc). When a call
40 a call to an allocation function (malloc/free/etc) when `malloc_disable`
67 allocation operation occurs. For server processes, this can mean that
100 The allocation tests are not meant to be complete, so it is expected
175 single allocation, touching every page in the allocation to make it resident
176 and then freeing the allocation.
241 allocation in bytes.
246 since they simulate real world allocation profiles.
295 address space consumed, speed of allocation. They are designed to
[all …]
/aosp12/system/libhidl/transport/allocator/1.0/
H A DIAllocator.hal28 * @return success Whether allocation succeeded.
38 * @return success Whether allocation succeeded (returns false if any allocation failed).

1234567891011