/aosp12/frameworks/native/libs/ui/include/ui/ |
H A D | FatVector.h | 47 explicit InlineStdAllocator(Allocation& allocation) : mAllocation(allocation) {} in InlineStdAllocator() 48 InlineStdAllocator(const InlineStdAllocator& other) : mAllocation(other.mAllocation) {} in InlineStdAllocator() 52 if (!mAllocation.inUse && num <= SIZE) { 53 mAllocation.inUse = true; 54 return static_cast<T*>(static_cast<void*>(mAllocation.array)); 61 if (p == static_cast<T*>(static_cast<void*>(mAllocation.array))) { in deallocate() 62 mAllocation.inUse = false; in deallocate() 68 Allocation& mAllocation; variable 81 : std::vector<T, InlineStdAllocator<T, SIZE>>(InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector() 87 InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector() [all …]
|
/aosp12/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | FatVector.h | 47 explicit InlineStdAllocator(Allocation& allocation) : mAllocation(allocation) {} in InlineStdAllocator() 48 InlineStdAllocator(const InlineStdAllocator& other) : mAllocation(other.mAllocation) {} in InlineStdAllocator() 52 if (!mAllocation.inUse && num <= SIZE) { 53 mAllocation.inUse = true; 54 return static_cast<T*>(static_cast<void*>(mAllocation.array)); 61 if (p == static_cast<T*>(static_cast<void*>(mAllocation.array))) { in deallocate() 62 mAllocation.inUse = false; in deallocate() 68 Allocation& mAllocation; variable 81 : std::vector<T, InlineStdAllocator<T, SIZE>>(InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector() 87 InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector() [all …]
|
/aosp12/frameworks/native/include/ui/ |
H A D | FatVector.h | 47 explicit InlineStdAllocator(Allocation& allocation) : mAllocation(allocation) {} in InlineStdAllocator() 48 InlineStdAllocator(const InlineStdAllocator& other) : mAllocation(other.mAllocation) {} in InlineStdAllocator() 52 if (!mAllocation.inUse && num <= SIZE) { 53 mAllocation.inUse = true; 54 return static_cast<T*>(static_cast<void*>(mAllocation.array)); 61 if (p == static_cast<T*>(static_cast<void*>(mAllocation.array))) { in deallocate() 62 mAllocation.inUse = false; in deallocate() 68 Allocation& mAllocation; variable 81 : std::vector<T, InlineStdAllocator<T, SIZE>>(InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector() 87 InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/ |
H A D | FakeExtensionController.java | 42 private final Object mAllocation; field in FakeExtensionController.FakeExtensionBuilder 45 mAllocation = o; in FakeExtensionBuilder() 90 return new FakeExtension(mAllocation); in build() 95 private final Object mAllocation; field in FakeExtensionController.FakeExtension 98 mAllocation = allocation; in FakeExtension() 119 mTracker.getLeakInfo(mAllocation).clearAllocations(); in destroy()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
H A D | Buffer.java | 30 private Allocation mAllocation; field in Buffer 42 mAllocation = Allocation.createFromBitmap(rs, mBitmap, in Buffer() 69 return mAllocation; in getAllocation() 74 mAllocation.copyTo(mBitmap); in sync()
|
/aosp12/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/f32/ |
H A D | RefocusFilterF32.java | 83 Allocation mAllocation = Allocation.createFromBitmap(renderScript, mBitmap); in extractSharpImage() local 84 scriptC.forEach_PackSharpImage(mAllocation); in extractSharpImage() 86 mAllocation.copyTo(mBitmap); in extractSharpImage() 96 Allocation mAllocation = Allocation.createFromBitmap(renderScript, mBitmap); in extractFuzzyImage() local 97 scriptC.forEach_PackFuzzyImage(mAllocation); in extractFuzzyImage() 99 mAllocation.copyTo(mBitmap); in extractFuzzyImage()
|
/aosp12/frameworks/compile/slang/tests/P_reduce_general_input/ |
H A D | ScriptField_MyStruct.java.expect | 77 obj.mAllocation = Allocation.createSized(rs, obj.mElement, dimX, usages); 95 obj.mAllocation = Allocation.createTyped(rs, t, usages); 110 obj.mAllocation = Allocation.createTyped(rs, t, usages); 133 mAllocation.setFromFieldPacker(index, fp); 153 mAllocation.setFromFieldPacker(index, 0, fp); 168 mAllocation.setFromFieldPacker(index, 2, fp); 185 mAllocation.setFromFieldPacker(0, mIOBuffer); 198 mAllocation.resize(newSize);
|
/aosp12/frameworks/compile/slang/tests/P_reduce_general_inputs/ |
H A D | ScriptField_MyStruct.java.expect | 77 obj.mAllocation = Allocation.createSized(rs, obj.mElement, dimX, usages); 95 obj.mAllocation = Allocation.createTyped(rs, t, usages); 110 obj.mAllocation = Allocation.createTyped(rs, t, usages); 133 mAllocation.setFromFieldPacker(index, fp); 153 mAllocation.setFromFieldPacker(index, 0, fp); 168 mAllocation.setFromFieldPacker(index, 2, fp); 185 mAllocation.setFromFieldPacker(0, mIOBuffer); 198 mAllocation.resize(newSize);
|
/aosp12/frameworks/compile/slang/tests/P_reduce_general_result/ |
H A D | ScriptField_MyStruct.java.expect | 77 obj.mAllocation = Allocation.createSized(rs, obj.mElement, dimX, usages); 95 obj.mAllocation = Allocation.createTyped(rs, t, usages); 110 obj.mAllocation = Allocation.createTyped(rs, t, usages); 133 mAllocation.setFromFieldPacker(index, fp); 153 mAllocation.setFromFieldPacker(index, 0, fp); 168 mAllocation.setFromFieldPacker(index, 2, fp); 185 mAllocation.setFromFieldPacker(0, mIOBuffer); 198 mAllocation.resize(newSize);
|
/aosp12/frameworks/compile/slang/tests/P_reflection3264_divergent/ |
H A D | ScriptField_NonDivergent.java.expect | 76 obj.mAllocation = Allocation.createSized(rs, obj.mElement, dimX, usages); 94 obj.mAllocation = Allocation.createTyped(rs, t, usages); 109 obj.mAllocation = Allocation.createTyped(rs, t, usages); 131 mAllocation.setFromFieldPacker(index, fp); 151 mAllocation.setFromFieldPacker(index, 0, fp); 166 mAllocation.setFromFieldPacker(index, 1, fp); 183 mAllocation.setFromFieldPacker(0, mIOBuffer); 196 mAllocation.resize(newSize);
|
H A D | ScriptField_Divergent.java.expect | 86 obj.mAllocation = Allocation.createSized(rs, obj.mElement, dimX, usages); 104 obj.mAllocation = Allocation.createTyped(rs, t, usages); 119 obj.mAllocation = Allocation.createTyped(rs, t, usages); 144 mAllocation.setFromFieldPacker(index, fp); 164 mAllocation.setFromFieldPacker(index, 0, fp); 179 mAllocation.setFromFieldPacker(index, sIs64Bit ? 2 : 1, fp); 194 mAllocation.setFromFieldPacker(index, sIs64Bit ? 3 : 2, fp); 216 mAllocation.setFromFieldPacker(0, mIOBuffer); 229 mAllocation.resize(newSize);
|
H A D | ScriptField_DivergentNest.java.expect | 87 obj.mAllocation = Allocation.createSized(rs, obj.mElement, dimX, usages); 105 obj.mAllocation = Allocation.createTyped(rs, t, usages); 120 obj.mAllocation = Allocation.createTyped(rs, t, usages); 149 mAllocation.setFromFieldPacker(index, fp); 169 mAllocation.setFromFieldPacker(index, 0, fp); 192 mAllocation.setFromFieldPacker(index, sIs64Bit ? 2 : 1, fp); 207 mAllocation.setFromFieldPacker(index, sIs64Bit ? 3 : 2, fp); 229 mAllocation.setFromFieldPacker(0, mIOBuffer); 242 mAllocation.resize(newSize);
|
/aosp12/frameworks/compile/slang/tests/P_struct_field/ |
H A D | ScriptField_InnerOne.java.expect | 78 obj.mAllocation = Allocation.createSized(rs, obj.mElement, dimX, usages); 96 obj.mAllocation = Allocation.createTyped(rs, t, usages); 111 obj.mAllocation = Allocation.createTyped(rs, t, usages); 134 mAllocation.setFromFieldPacker(index, fp); 154 mAllocation.setFromFieldPacker(index, 0, fp); 169 mAllocation.setFromFieldPacker(index, 1, fp); 184 mAllocation.setFromFieldPacker(index, 2, fp); 206 mAllocation.setFromFieldPacker(0, mIOBuffer); 219 mAllocation.resize(newSize);
|
H A D | ScriptField_InnerTwo.java.expect | 79 obj.mAllocation = Allocation.createSized(rs, obj.mElement, dimX, usages); 97 obj.mAllocation = Allocation.createTyped(rs, t, usages); 112 obj.mAllocation = Allocation.createTyped(rs, t, usages); 137 mAllocation.setFromFieldPacker(index, fp); 157 mAllocation.setFromFieldPacker(index, 0, fp); 176 mAllocation.setFromFieldPacker(index, 3, fp); 193 mAllocation.setFromFieldPacker(0, mIOBuffer); 206 mAllocation.resize(newSize);
|
H A D | ScriptField_Outer.java.expect | 123 obj.mAllocation = Allocation.createTyped(rs, t, usages); 191 mAllocation.setFromFieldPacker(index, fp); 215 mAllocation.setFromFieldPacker(index, 0, fp); 230 mAllocation.setFromFieldPacker(index, 2, fp); 249 mAllocation.setFromFieldPacker(index, 3, fp); 278 mAllocation.setFromFieldPacker(index, 4, fp); 307 mAllocation.setFromFieldPacker(index, 5, fp); 332 mAllocation.setFromFieldPacker(index, 6, fp); 351 mAllocation.setFromFieldPacker(index, 7, fp); 393 mAllocation.setFromFieldPacker(0, mIOBuffer); [all …]
|
/aosp12/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/d1new/ |
H A D | RefocusFilterd1new.java | 85 Allocation mAllocation = Allocation.createFromBitmap(renderScript, mBitmap); in extractSharpImage() local 86 scriptC.forEach_PackSharpImage(mAllocation); in extractSharpImage() 88 mAllocation.copyTo(mBitmap); in extractSharpImage() 98 Allocation mAllocation = Allocation.createFromBitmap(renderScript, mBitmap); in extractFuzzyImage() local 99 scriptC.forEach_PackFuzzyImage(mAllocation); in extractFuzzyImage() 101 mAllocation.copyTo(mBitmap); in extractFuzzyImage()
|
/aosp12/frameworks/compile/slang/tests/P_reflection3264_divergent_support/ |
H A D | ScriptField_NonDivergent.java.expect | 73 obj.mAllocation = Allocation.createSized(rs, obj.mElement, dimX, usages); 91 obj.mAllocation = Allocation.createTyped(rs, t, usages); 106 obj.mAllocation = Allocation.createTyped(rs, t, usages); 128 mAllocation.setFromFieldPacker(index, fp); 148 mAllocation.setFromFieldPacker(index, 0, fp); 163 mAllocation.setFromFieldPacker(index, 1, fp); 180 mAllocation.setFromFieldPacker(0, mIOBuffer);
|
H A D | ScriptField_Divergent.java.expect | 83 obj.mAllocation = Allocation.createSized(rs, obj.mElement, dimX, usages); 101 obj.mAllocation = Allocation.createTyped(rs, t, usages); 116 obj.mAllocation = Allocation.createTyped(rs, t, usages); 141 mAllocation.setFromFieldPacker(index, fp); 161 mAllocation.setFromFieldPacker(index, 0, fp); 176 mAllocation.setFromFieldPacker(index, (RenderScript.getPointerSize() == 8) ? 2 : 1, fp); 191 mAllocation.setFromFieldPacker(index, (RenderScript.getPointerSize() == 8) ? 3 : 2, fp); 213 mAllocation.setFromFieldPacker(0, mIOBuffer);
|
H A D | ScriptField_DivergentNest.java.expect | 84 obj.mAllocation = Allocation.createSized(rs, obj.mElement, dimX, usages); 102 obj.mAllocation = Allocation.createTyped(rs, t, usages); 117 obj.mAllocation = Allocation.createTyped(rs, t, usages); 146 mAllocation.setFromFieldPacker(index, fp); 166 mAllocation.setFromFieldPacker(index, 0, fp); 189 mAllocation.setFromFieldPacker(index, (RenderScript.getPointerSize() == 8) ? 2 : 1, fp); 204 mAllocation.setFromFieldPacker(index, (RenderScript.getPointerSize() == 8) ? 3 : 2, fp); 226 mAllocation.setFromFieldPacker(0, mIOBuffer);
|
/aosp12/frameworks/av/media/codec2/vndk/ |
H A D | C2Buffer.cpp | 128 mAllocation(alloc), in _C2Block1DImpl() 133 mAllocation(other.mAllocation), in _C2Block1DImpl() 143 return mAllocation ? mAllocation->handle() : nullptr; in handle() 149 return mAllocation ? mAllocation->getAllocatorId() : C2Allocator::BAD_ID; in getAllocatorId() 153 return mAllocation; in getAllocation() 546 : mAllocation(alloc) {} in LinearAllocationDtor() 555 : mAllocation(alloc) {} in GraphicAllocationDtor() 819 mAllocation(alloc), in _C2Block2DImpl() 831 return mAllocation ? mAllocation->handle() : nullptr; in handle() 837 return mAllocation ? mAllocation->getAllocatorId() : C2Allocator::BAD_ID; in getAllocatorId() [all …]
|
/aosp12/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | BackingStore.java | 799 private Allocation mAllocation = null; field in BackingStore.AllocationBacking 823 mAllocation = Allocation.createTyped(mRenderScript, imageType); in allocate() 848 mAllocation.copyFrom(pixels.array()); in syncTo() 851 mAllocation.copyFrom(bitmap); in syncTo() 866 mAllocation.copyFromUnchecked(bytes); in syncTo() 876 return mAllocation; in lock() 895 if (mAllocation != null) { in destroy() 896 mAllocation.destroy(); in destroy() 897 mAllocation = null; in destroy()
|
/aosp12/frameworks/rs/support/java/src/androidx/renderscript/ |
H A D | ScriptGroup.java | 60 Allocation mAllocation; field in ScriptGroup.IO 84 Allocation mAllocation; field in ScriptGroup.ConnectLine 488 mInputs[ct].mAllocation = a; in setInput() 513 mOutputs[ct].mAllocation = a; in setOutput() 544 if (l.mAllocation !=null) { in execute() 553 l.mAllocation = alloc; in execute() 556 n.mOutputs.get(ct3).mAllocation = alloc; in execute() 568 ain = nodeInput.mAllocation; in execute() 574 ain = sgInput.mAllocation; in execute() 580 aout = nodeOutput.mAllocation; in execute() [all …]
|
H A D | Script.java | 541 protected Allocation mAllocation; field in Script.FieldBase 544 mAllocation = Allocation.createSized(rs, mElement, dimx, Allocation.USAGE_SCRIPT); in init() 548 … mAllocation = Allocation.createSized(rs, mElement, dimx, Allocation.USAGE_SCRIPT | usages); in init() 559 return mAllocation.getType(); in getType() 563 return mAllocation; in getAllocation()
|
/aosp12/frameworks/base/rs/java/android/renderscript/ |
H A D | Script.java | 500 protected Allocation mAllocation; field in Script.FieldBase 503 mAllocation = Allocation.createSized(rs, mElement, dimx, in init() 508 mAllocation = in init() 521 return mAllocation.getType(); in getType() 525 return mAllocation; in getAllocation()
|
/aosp12/frameworks/rs/cpp/ |
H A D | Script.cpp | 56 mAllocation = Allocation::createSized(rs, mElement, dimx, RS_ALLOCATION_USAGE_SCRIPT | usages); in init()
|