/aosp12/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 217 alloc->mHal.drvState.lod[0].dimX, alloc->mHal.drvState.lod[0].dimY); in AllocateRenderTarget() 317 o += DeriveYUVLayout(alloc->mHal.state.yuv, &alloc->mHal.drvState); in AllocationBuildPointerTable() 377 alloc->mHal.drv = drv; in rsdAllocationInitStrided() 399 if (alloc->getType()->getDimLOD() || alloc->getType()->getDimFaces()) { in rsdAllocationInitStrided() 415 if (alloc->getType()->getDimLOD() || alloc->getType()->getDimFaces()) { in rsdAllocationInitStrided() 482 …ationData2D(rsc, alloc, 0, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X, alloc->getType()->getDimX(… in rsdAllocationInitStrided() 516 alloc->mHal.drvState.lod[lod].mallocPtr = GetOffsetPtr(alloc, in rsdAllocationAdapterOffset() 517 … alloc->mHal.state.originX, alloc->mHal.state.originY, alloc->mHal.state.originZ, in rsdAllocationAdapterOffset() 527 alloc->mHal.drv = drv; in rsdAllocationAdapterInit() 823 DeriveYUVLayout(alloc->mHal.state.yuv, &alloc->mHal.drvState); in rsdAllocationIoReceive() [all …]
|
H A D | rsdAllocation.h | 83 android::renderscript::Allocation *alloc, 87 android::renderscript::Allocation *alloc, 91 android::renderscript::Allocation *alloc); 93 android::renderscript::Allocation *alloc); 96 const android::renderscript::Allocation *alloc, 99 const android::renderscript::Allocation *alloc, 106 android::renderscript::Allocation *alloc); 108 android::renderscript::Allocation *alloc); 111 const android::renderscript::Allocation *alloc, 115 const android::renderscript::Allocation *alloc, [all …]
|
/aosp12/frameworks/rs/support/jni/ |
H A D | android_rscompat_usage_io_driver.cpp | 16 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; in IoGetBuffer() 28 alloc->mHal.drvState.lod[0].mallocPtr = dst; in IoGetBuffer() 29 … alloc->mHal.drvState.lod[0].stride = drv->wndBuffer->stride * alloc->mHal.state.elementSizeBytes; in IoGetBuffer() 35 Allocation *alloc = (Allocation *)allocR; in rscAllocationSetSurface() local 36 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; in rscAllocationSetSurface() 57 IoGetBuffer(rsc, alloc, nw); in rscAllocationSetSurface() 72 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; in rscAllocationDestroy() 73 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rscAllocationDestroy() 80 alloc->mHal.drvState.lod[0].mallocPtr = NULL; in rscAllocationDestroy() 97 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; in rscAllocationIoSend() [all …]
|
/aosp12/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
H A D | UT_alloc_copyPadded.java | 95 alloc.copyFrom(inArray); in testAllocation_Byte3_1D() 96 alloc.copyTo(outArray); in testAllocation_Byte3_1D() 127 alloc.copyFrom(inArray); in testAllocation_Byte3_2D() 128 alloc.copyTo(outArray); in testAllocation_Byte3_2D() 160 alloc.copyFrom(inArray); in testAllocation_Byte3_3D() 161 alloc.copyTo(outArray); in testAllocation_Byte3_3D() 195 alloc.copyTo(outArray); in testAllocation_Short3_1D() 230 alloc.copyTo(outArray); in testAllocation_Short3_2D() 266 alloc.copyTo(outArray); in testAllocation_Short3_3D() 300 alloc.copyTo(outArray); in testAllocation_Int3_1D() [all …]
|
H A D | UT_alloc_copy.java | 71 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Byte() 72 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Byte() 113 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Short() 114 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Short() 155 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Int() 156 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Int() 197 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Float() 198 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Float() 239 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Long() 240 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Long() [all …]
|
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | UT_alloc_copyPadded.java | 96 alloc.copyFrom(inArray); in testAllocation_Byte3_1D() 97 alloc.copyTo(outArray); in testAllocation_Byte3_1D() 128 alloc.copyFrom(inArray); in testAllocation_Byte3_2D() 129 alloc.copyTo(outArray); in testAllocation_Byte3_2D() 161 alloc.copyFrom(inArray); in testAllocation_Byte3_3D() 162 alloc.copyTo(outArray); in testAllocation_Byte3_3D() 196 alloc.copyTo(outArray); in testAllocation_Short3_1D() 231 alloc.copyTo(outArray); in testAllocation_Short3_2D() 267 alloc.copyTo(outArray); in testAllocation_Short3_3D() 301 alloc.copyTo(outArray); in testAllocation_Int3_1D() [all …]
|
H A D | UT_fp16.java | 30 private Allocation alloc; field in UT_fp16 55 s.set_gAlloc(alloc); in initializeGlobals() 62 s.forEach_set_kernel_half(alloc); in TestHalf() 66 alloc.destroy(); in TestHalf() 75 alloc.destroy(); in TestHalf() 87 alloc.destroy(); in TestHalf2() 96 alloc.destroy(); in TestHalf2() 108 alloc.destroy(); in TestHalf3() 117 alloc.destroy(); in TestHalf3() 129 alloc.destroy(); in TestHalf4() [all …]
|
H A D | UT_alloc_copy.java | 73 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Byte() 74 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Byte() 115 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Short() 116 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Short() 157 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Int() 158 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Int() 199 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Float() 200 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Float() 241 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Long() 242 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Long() [all …]
|
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
H A D | UT_alloc_copyPadded.java | 98 alloc.copyFrom(inArray); in testAllocation_Byte3_1D() 99 alloc.copyTo(outArray); in testAllocation_Byte3_1D() 130 alloc.copyFrom(inArray); in testAllocation_Byte3_2D() 131 alloc.copyTo(outArray); in testAllocation_Byte3_2D() 163 alloc.copyFrom(inArray); in testAllocation_Byte3_3D() 164 alloc.copyTo(outArray); in testAllocation_Byte3_3D() 198 alloc.copyTo(outArray); in testAllocation_Short3_1D() 233 alloc.copyTo(outArray); in testAllocation_Short3_2D() 269 alloc.copyTo(outArray); in testAllocation_Short3_3D() 303 alloc.copyTo(outArray); in testAllocation_Int3_1D() [all …]
|
H A D | UT_alloc_copy.java | 75 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Byte() 76 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Byte() 117 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Short() 118 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Short() 159 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Int() 160 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Int() 201 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Float() 202 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Float() 243 alloc.copy1DRangeFrom(offset, count, inArray); in allocation_copy1DRangeTo_Long() 244 alloc.copy1DRangeTo(offset, count, outArray); in allocation_copy1DRangeTo_Long() [all …]
|
/aosp12/frameworks/rs/driver/runtime/ |
H A D | rs_allocation.c | 7 Allocation_t *alloc = (Allocation_t *)a.p; in rsAllocationGetDimX() local 8 return alloc->mHal.drvState.lod[0].dimX; in rsAllocationGetDimX() 13 Allocation_t *alloc = (Allocation_t *)a.p; in rsAllocationGetDimY() local 14 return alloc->mHal.drvState.lod[0].dimY; in rsAllocationGetDimY() 19 Allocation_t *alloc = (Allocation_t *)a.p; in rsAllocationGetDimZ() local 20 return alloc->mHal.drvState.lod[0].dimZ; in rsAllocationGetDimZ() 25 Allocation_t *alloc = (Allocation_t *)a.p; in rsAllocationGetDimLOD() local 26 return alloc->mHal.state.hasMipmaps; in rsAllocationGetDimLOD() 31 Allocation_t *alloc = (Allocation_t *)a.p; in rsAllocationGetDimFaces() local 32 return alloc->mHal.state.hasFaces; in rsAllocationGetDimFaces() [all …]
|
H A D | rs_sample.c | 323 size_t stride = alloc->mHal.drvState.lod[lod].stride; in getBilinearSample2D() 389 size_t stride = alloc->mHal.drvState.lod[lod].stride; in getNearestSample() 421 sample_LOD_LinearPixel(const Allocation_t *alloc, in sample_LOD_LinearPixel() argument 426 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_LinearPixel() 451 sample_LOD_NearestPixel(const Allocation_t *alloc, in sample_LOD_NearestPixel() argument 456 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_NearestPixel() 464 sample_LOD_LinearPixel(const Allocation_t *alloc, in sample_LOD_LinearPixel() argument 470 int sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_LinearPixel() 471 int sourceH = alloc->mHal.drvState.lod[lod].dimY; in sample_LOD_LinearPixel() 515 int sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_NearestPixel() [all …]
|
/aosp12/system/bt/osi/test/fuzzers/allocation_tracker/ |
H A D | fuzz_allocation_tracker.cc | 37 for (const auto& alloc : *alloc_vector) { in freeAllocationVector() 38 void* real_ptr = allocation_tracker_notify_free(alloc.alloc_id, alloc.ptr); in freeAllocationVector() 64 alloc_struct alloc; in callArbitraryFunction() local 66 alloc.alloc_id = dataProvider->ConsumeIntegral<allocator_id_t>(); in callArbitraryFunction() 78 alloc.ptr = in callArbitraryFunction() 79 allocation_tracker_notify_alloc(alloc.alloc_id, tmp_ptr, size); in callArbitraryFunction() 81 if (tracker_initialized && alloc.ptr) { in callArbitraryFunction() 82 alloc_vector->push_back(alloc); in callArbitraryFunction() 93 alloc_struct alloc = alloc_vector->at(index); in callArbitraryFunction() local 95 allocation_tracker_notify_free(alloc.alloc_id, alloc.ptr); in callArbitraryFunction()
|
/aosp12/bionic/linker/ |
H A D | linker_block_allocator_test.cpp | 66 test_struct_nominal* ptr1 = allocator.alloc(); in TEST() 69 test_struct_nominal* ptr2 = allocator.alloc(); in TEST() 84 char* ptr1 = reinterpret_cast<char*>(allocator.alloc()); in TEST() 85 char* ptr2 = reinterpret_cast<char*>(allocator.alloc()); in TEST() 97 test_struct_larger* ptr1 = allocator.alloc(); in TEST() 98 test_struct_larger* ptr2 = allocator.alloc(); in TEST() 111 ASSERT_TRUE(allocator.alloc() != nullptr); in TEST() 114 test_struct_larger* ptr_to_free = allocator.alloc(); in TEST() 124 test_struct_larger* page1_ptr = allocator.alloc(); in protect_all() 127 allocator.alloc(); in protect_all() [all …]
|
/aosp12/system/chre/apps/test/chqts/src/shared/ |
H A D | chunk_allocator_test.cc | 33 void *ptr = da.alloc(kAllocSize); in TEST() 42 ptrs[i] = da.alloc(kAllocSize); in TEST() 50 EXPECT_EQ(nullptr, da.alloc(kAllocSize)); in TEST() 57 void *newPtr = da.alloc(kAllocSize); in TEST() 66 uint8_t *ptr = static_cast<uint8_t *>(da.alloc(kAllocSize)); in TEST() 75 EXPECT_EQ(nullptr, da.alloc(kAllocSize + 1)); in TEST() 76 EXPECT_EQ(nullptr, da.alloc(kAllocSize * 2)); in TEST() 81 ExpectGoodAlloc(da, da.alloc(kAllocSize - 1)); in TEST() 82 ExpectGoodAlloc(da, da.alloc(1)); in TEST() 83 ExpectGoodAlloc(da, da.alloc(0)); in TEST()
|
/aosp12/system/core/libutils/ |
H A D | SharedBuffer_test.cpp | 31 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX), ""); in TEST() 32 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer)), ""); in TEST() 39 android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer) - 1); in TEST() 49 android::SharedBuffer* buf = android::SharedBuffer::alloc(SIZE_MAX / 2); in TEST() 57 android::SharedBuffer* buf = android::SharedBuffer::alloc(0); in TEST() 64 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST() 66 buf = android::SharedBuffer::alloc(10); in TEST() 73 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST() 84 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST()
|
/aosp12/frameworks/rs/ |
H A D | rs_hal.h | 223 bool (*initAdapter)(const Context *rsc, Allocation *alloc); 224 void (*destroy)(const Context *rsc, Allocation *alloc); 233 void (*ioSend)(const Context *rsc, Allocation *alloc); 242 void (*ioReceive)(const Context *rsc, Allocation *alloc); 244 void (*data1D)(const Context *rsc, const Allocation *alloc, 247 void (*data2D)(const Context *rsc, const Allocation *alloc, 251 void (*data3D)(const Context *rsc, const Allocation *alloc, 256 void (*read1D)(const Context *rsc, const Allocation *alloc, 259 void (*read2D)(const Context *rsc, const Allocation *alloc, 263 void (*read3D)(const Context *rsc, const Allocation *alloc, [all …]
|
/aosp12/hardware/qcom/camera/msm8998/QCamera2/HAL3/test/ |
H A D | QCameraHAL3Test.cpp | 98 struct ion_allocation_data alloc; in allocateBuffers() local 108 memset(&alloc, 0, sizeof(alloc)); in allocateBuffers() 110 alloc.len = (size_t)(buf_size); in allocateBuffers() 111 alloc.len = (alloc.len + 4095U) & (~4095U); in allocateBuffers() 112 alloc.align = 4096; in allocateBuffers() 113 alloc.flags = ION_FLAG_CACHED; in allocateBuffers() 114 alloc.heap_id_mask = ION_HEAP(ION_SYSTEM_HEAP_ID); in allocateBuffers() 115 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocateBuffers() 121 ion_info_fd.handle = alloc.handle; in allocateBuffers() 129 LOGD("%s ION FD %d len %d\n", __func__, ion_info_fd.fd, alloc.len); in allocateBuffers() [all …]
|
/aosp12/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/ |
H A D | mm_jpeg_ionbuf.c | 61 p_buffer->alloc.len = p_buffer->size; in buffer_allocate() 62 p_buffer->alloc.align = 4096; in buffer_allocate() 63 p_buffer->alloc.flags = (cached) ? ION_FLAG_CACHED : 0; in buffer_allocate() 64 p_buffer->alloc.heap_id_mask = 0x1 << ION_IOMMU_HEAP_ID; in buffer_allocate() 73 p_buffer->alloc.len = (p_buffer->alloc.len + 4095U) & (~4095U); in buffer_allocate() 74 lrc = ioctl(p_buffer->ion_fd, ION_IOC_ALLOC, &p_buffer->alloc); in buffer_allocate() 77 p_buffer->alloc.len); in buffer_allocate() 81 p_buffer->ion_info_fd.handle = p_buffer->alloc.handle; in buffer_allocate() 91 l_buffer = mmap(NULL, p_buffer->alloc.len, PROT_READ | PROT_WRITE, in buffer_allocate()
|
/aosp12/art/test/175-alloc-big-bignums/ |
H A D | Android.bp | 3 // Build rules for ART run-test `175-alloc-big-bignums`. 16 name: "art-run-test-175-alloc-big-bignums", 21 ":art-run-test-175-alloc-big-bignums-expected-stdout", 22 ":art-run-test-175-alloc-big-bignums-expected-stderr", 28 name: "art-run-test-175-alloc-big-bignums-expected-stdout", 29 out: ["art-run-test-175-alloc-big-bignums-expected-stdout.txt"], 36 name: "art-run-test-175-alloc-big-bignums-expected-stderr", 37 out: ["art-run-test-175-alloc-big-bignums-expected-stderr.txt"],
|
/aosp12/art/test/1900-track-alloc/ |
H A D | Android.bp | 3 // Build rules for ART run-test `1900-track-alloc`. 16 name: "art-run-test-1900-track-alloc", 21 ":art-run-test-1900-track-alloc-expected-stdout", 22 ":art-run-test-1900-track-alloc-expected-stderr", 28 name: "art-run-test-1900-track-alloc-expected-stdout", 29 out: ["art-run-test-1900-track-alloc-expected-stdout.txt"], 36 name: "art-run-test-1900-track-alloc-expected-stderr", 37 out: ["art-run-test-1900-track-alloc-expected-stderr.txt"],
|
/aosp12/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicYuvToRGB.cpp | 44 ObjectBaseRef<Allocation> alloc; member in android::renderscript::RsdCpuScriptIntrinsicYuvToRGB 54 alloc.set(static_cast<Allocation *>(data)); in setGlobalObj() 102 if (!cp->alloc.get()) { in kernel() 106 const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernel() 112 size_t strideY = cp->alloc->mHal.drvState.lod[0].stride; in kernel() 115 if (cp->alloc->mHal.drvState.lod[0].dimY == 0) { in kernel() 124 size_t cstep = cp->alloc->mHal.drvState.yuv.step; in kernel() 127 const size_t strideU = cp->alloc->mHal.drvState.lod[1].stride; in kernel() 131 const size_t strideV = cp->alloc->mHal.drvState.lod[2].stride; in kernel() 142 v = ((uint8_t *)cp->alloc->mHal.drvState.lod[0].mallocPtr) + in kernel() [all …]
|
/aosp12/art/libartbase/base/ |
H A D | dchecked_vector.h | 60 explicit dchecked_vector(const allocator_type& alloc) in dchecked_vector() argument 61 : Base(alloc) { } in dchecked_vector() 63 : Base(n, alloc) { } 66 const allocator_type& alloc = allocator_type()) 67 : Base(n, value, alloc) { } 71 const allocator_type& alloc = allocator_type()) 72 : Base(first, last, alloc) { } 76 : Base(src, alloc) { } in dchecked_vector() 80 : Base(std::move(src), alloc) { } in dchecked_vector() 82 const allocator_type& alloc = allocator_type()) [all …]
|
/aosp12/bionic/tests/ |
H A D | bionic_allocator_test.cpp | 66 void* ptr = allocator.alloc(0); in TEST() 78 uint32_t* array = reinterpret_cast<uint32_t*>(allocator.alloc(512)); in TEST() 137 reinterpret_cast<test_struct_small*>(allocator.alloc(sizeof(test_struct_small))); in TEST() 139 reinterpret_cast<test_struct_small*>(allocator.alloc(sizeof(test_struct_small))); in TEST() 158 reinterpret_cast<test_struct_huge*>(allocator.alloc(sizeof(test_struct_huge))); in TEST() 160 reinterpret_cast<test_struct_huge*>(allocator.alloc(sizeof(test_struct_huge))); in TEST() 177 reinterpret_cast<test_struct_large*>(allocator.alloc(sizeof(test_struct_large))); in TEST() 179 reinterpret_cast<test_struct_large*>(allocator.alloc(1024)); in TEST() 194 reinterpret_cast<test_struct_large*>(allocator.alloc(sizeof(test_struct_large))); in TEST() 200 reinterpret_cast<test_struct_large*>(allocator.alloc(sizeof(test_struct_large))); in TEST() [all …]
|
/aosp12/frameworks/rs/tests/lldb/java/Reduction/src/com/android/rs/lldbreductiontest/ |
H A D | MainActivity.java | 66 RenderScript rs, ScriptC_reduce_auto_comb s, Allocation alloc) { in findMinUserTypeAutoComb() argument 71 return s.reduce_find_min_user_type_auto_comb(alloc).get(); in findMinUserTypeAutoComb() 74 private float findMinUserType(RenderScript rs, ScriptC_reduce s, Allocation alloc) { in findMinUserType() argument 79 return s.reduce_find_min_user_type(alloc).get(); in findMinUserType() 91 Allocation alloc = minUserType.getAllocation(); in findMinUserType1DAutoComb() local 93 return findMinUserTypeAutoComb(rs, s, alloc); in findMinUserType1DAutoComb() 105 Allocation alloc = minUserType.getAllocation(); in findMinUserType1D() local 107 return findMinUserType(rs, s, alloc); in findMinUserType1D()
|