/aosp14/frameworks/base/rs/java/android/renderscript/ |
H A D | Element.java | 342 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8); in U8() 360 rs.mElement_I8 = createUser(rs, DataType.SIGNED_8); in I8() 382 rs.mElement_I16 = createUser(rs, DataType.SIGNED_16); in I16() 404 rs.mElement_I32 = createUser(rs, DataType.SIGNED_32); in I32() 426 rs.mElement_I64 = createUser(rs, DataType.SIGNED_64); in I64() 437 rs.mElement_F16 = createUser(rs, DataType.FLOAT_16); in F16() 448 rs.mElement_F32 = createUser(rs, DataType.FLOAT_32); in F32() 459 rs.mElement_F64 = createUser(rs, DataType.FLOAT_64); in F64() 481 rs.mElement_TYPE = createUser(rs, DataType.RS_TYPE); in TYPE() 525 rs.mElement_MESH = createUser(rs, DataType.RS_MESH); in MESH() [all …]
|
H A D | Sampler.java | 58 super(id, rs); in Sampler() 107 synchronized (rs) { in CLAMP_NEAREST() 131 synchronized (rs) { in CLAMP_LINEAR() 155 synchronized (rs) { in CLAMP_LINEAR_MIP_LINEAR() 179 synchronized (rs) { in WRAP_NEAREST() 203 synchronized (rs) { in WRAP_LINEAR() 227 synchronized (rs) { in WRAP_LINEAR_MIP_LINEAR() 251 synchronized (rs) { in MIRRORED_REPEAT_NEAREST() 275 synchronized (rs) { in MIRRORED_REPEAT_LINEAR() 299 synchronized (rs) { in MIRRORED_REPEAT_LINEAR_MIP_LINEAR() [all …]
|
H A D | ProgramRaster.java | 57 ProgramRaster(long id, RenderScript rs) { in ProgramRaster() argument 58 super(id, rs); in ProgramRaster() 87 if(rs.mProgramRaster_CULL_BACK == null) { in CULL_BACK() 90 rs.mProgramRaster_CULL_BACK = builder.create(); in CULL_BACK() 92 return rs.mProgramRaster_CULL_BACK; in CULL_BACK() 99 if(rs.mProgramRaster_CULL_FRONT == null) { in CULL_FRONT() 104 return rs.mProgramRaster_CULL_FRONT; in CULL_FRONT() 111 if(rs.mProgramRaster_CULL_NONE == null) { in CULL_NONE() 116 return rs.mProgramRaster_CULL_NONE; in CULL_NONE() 131 public Builder(RenderScript rs) { in Builder() argument [all …]
|
H A D | ProgramStore.java | 160 ProgramStore(long id, RenderScript rs) { in ProgramStore() argument 161 super(id, rs); in ProgramStore() 250 if(rs.mProgramStore_BLEND_NONE_DEPTH_TEST == null) { in BLEND_NONE_DEPTH_TEST() 258 return rs.mProgramStore_BLEND_NONE_DEPTH_TEST; in BLEND_NONE_DEPTH_TEST() 271 if(rs.mProgramStore_BLEND_NONE_DEPTH_NO_DEPTH == null) { in BLEND_NONE_DEPTH_NONE() 279 return rs.mProgramStore_BLEND_NONE_DEPTH_NO_DEPTH; in BLEND_NONE_DEPTH_NONE() 295 if(rs.mProgramStore_BLEND_ALPHA_DEPTH_TEST == null) { in BLEND_ALPHA_DEPTH_TEST() 303 return rs.mProgramStore_BLEND_ALPHA_DEPTH_TEST; in BLEND_ALPHA_DEPTH_TEST() 326 return rs.mProgramStore_BLEND_ALPHA_DEPTH_NO_DEPTH; in BLEND_ALPHA_DEPTH_NONE() 347 public Builder(RenderScript rs) { in Builder() argument [all …]
|
H A D | ScriptC.java | 43 protected ScriptC(int id, RenderScript rs) { in ScriptC() argument 44 super(id, rs); in ScriptC() 53 protected ScriptC(long id, RenderScript rs) { in ScriptC() argument 54 super(id, rs); in ScriptC() 64 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC() argument 65 super(0, rs); in ScriptC() 66 long id = internalCreate(rs, resources, resourceID); in ScriptC() 79 super(0, rs); in ScriptC() 82 id = internalStringCreate(rs, resName, bitcode32); in ScriptC() 84 id = internalStringCreate(rs, resName, bitcode64); in ScriptC() [all …]
|
H A D | ScriptIntrinsicConvolve3x3.java | 31 private ScriptIntrinsicConvolve3x3(long id, RenderScript rs) { in ScriptIntrinsicConvolve3x3() argument 32 super(id, rs); in ScriptIntrinsicConvolve3x3() 55 if (!e.isCompatible(Element.U8(rs)) && in create() 56 !e.isCompatible(Element.U8_2(rs)) && in create() 57 !e.isCompatible(Element.U8_3(rs)) && in create() 58 !e.isCompatible(Element.U8_4(rs)) && in create() 59 !e.isCompatible(Element.F32(rs)) && in create() 60 !e.isCompatible(Element.F32_2(rs)) && in create() 61 !e.isCompatible(Element.F32_3(rs)) && in create() 62 !e.isCompatible(Element.F32_4(rs))) { in create() [all …]
|
H A D | ScriptIntrinsicConvolve5x5.java | 32 super(id, rs); in ScriptIntrinsicConvolve5x5() 56 if (!e.isCompatible(Element.U8(rs)) && in create() 57 !e.isCompatible(Element.U8_2(rs)) && in create() 58 !e.isCompatible(Element.U8_3(rs)) && in create() 59 !e.isCompatible(Element.U8_4(rs)) && in create() 60 !e.isCompatible(Element.F32(rs)) && in create() 61 !e.isCompatible(Element.F32_2(rs)) && in create() 62 !e.isCompatible(Element.F32_3(rs)) && in create() 63 !e.isCompatible(Element.F32_4(rs))) { in create() 67 long id = rs.nScriptIntrinsicCreate(4, e.getID(rs)); in create() [all …]
|
H A D | FileA3D.java | 151 entry.mLoadedObj = new Mesh(objectID, rs); in internalCreate() 163 mRS = rs; in IndexEntry() 175 FileA3D(long id, RenderScript rs, InputStream stream) { in FileA3D() argument 176 super(id, rs); in FileA3D() 239 rs.validate(); in createFromAsset() 245 FileA3D fa3d = new FileA3D(fileId, rs, null); in createFromAsset() 260 long fileId = rs.nFileA3DCreateFromFile(path); in createFromFile() 265 FileA3D fa3d = new FileA3D(fileId, rs, null); in createFromFile() 280 return createFromFile(rs, path.getAbsolutePath()); in createFromFile() 296 rs.validate(); in createFromResource() [all …]
|
H A D | Font.java | 154 Font(long id, RenderScript rs) { in Font() argument 155 super(id, rs); in Font() 164 rs.validate(); in createFromFile() 166 long fontId = rs.nFontCreateFromFile(path, pointSize, dpi); in createFromFile() 171 Font rsFont = new Font(fontId, rs); in createFromFile() 187 rs.validate(); in createFromAsset() 191 long fontId = rs.nFontCreateFromAsset(mgr, path, pointSize, dpi); in createFromAsset() 195 Font rsFont = new Font(fontId, rs); in createFromAsset() 205 rs.validate(); in createFromResource() 226 Font rsFont = new Font(fontId, rs); in createFromResource() [all …]
|
H A D | ProgramVertexFixedFunction.java | 33 ProgramVertexFixedFunction(long id, RenderScript rs) { in ProgramVertexFixedFunction() argument 34 super(id, rs); in ProgramVertexFixedFunction() 54 public InternalBuilder(RenderScript rs) { in InternalBuilder() argument 55 super(rs); in InternalBuilder() 126 public Builder(RenderScript rs) { in Builder() argument 127 mRS = rs; in Builder() 142 b.add(Element.MATRIX4X4(rs), "MV"); in getConstantInputType() 143 b.add(Element.MATRIX4X4(rs), "P"); in getConstantInputType() 144 b.add(Element.MATRIX4X4(rs), "TexMatrix"); in getConstantInputType() 145 b.add(Element.MATRIX4X4(rs), "MVP"); in getConstantInputType() [all …]
|
H A D | AllocationAdapter.java | 30 AllocationAdapter(long id, RenderScript rs, Allocation alloc, Type t) { in AllocationAdapter() argument 31 super(id, rs, alloc.mType, alloc.mUsage); in AllocationAdapter() 235 static public AllocationAdapter create1D(RenderScript rs, Allocation a) { in create1D() argument 236 rs.validate(); in create1D() 237 Type t = Type.createX(rs, a.getElement(), a.getType().getX()); in create1D() 238 return createTyped(rs, a, t); in create1D() 243 rs.validate(); in create2D() 245 return createTyped(rs, a, t); in create2D() 271 rs.validate(); in createTyped() 303 long id = rs.nAllocationAdapterCreate(a.getID(rs), t.getID(rs)); in createTyped() [all …]
|
H A D | Type.java | 233 Type(long id, RenderScript rs) { in Type() argument 234 super(id, rs); in Type() 268 static public Type createX(RenderScript rs, Element e, int dimX) { in createX() argument 273 long id = rs.nTypeCreate(e.getID(rs), dimX, 0, 0, false, false, 0); in createX() 274 Type t = new Type(id, rs); in createX() 297 long id = rs.nTypeCreate(e.getID(rs), dimX, dimY, 0, false, false, 0); in createXY() 298 Type t = new Type(id, rs); in createXY() 323 long id = rs.nTypeCreate(e.getID(rs), dimX, dimY, dimZ, false, false, 0); in createXYZ() 324 Type t = new Type(id, rs); in createXYZ() 355 public Builder(RenderScript rs, Element e) { in Builder() argument [all …]
|
H A D | ScriptIntrinsicBlur.java | 32 private ScriptIntrinsicBlur(long id, RenderScript rs) { in ScriptIntrinsicBlur() argument 33 super(id, rs); in ScriptIntrinsicBlur() 48 public static ScriptIntrinsicBlur create(RenderScript rs, Element e) { in create() argument 49 if ((!e.isCompatible(Element.U8_4(rs))) && (!e.isCompatible(Element.U8(rs)))) { in create() 52 long id = rs.nScriptIntrinsicCreate(5, e.getID(rs)); in create() 53 ScriptIntrinsicBlur sib = new ScriptIntrinsicBlur(id, rs); in create()
|
H A D | ScriptIntrinsic3DLUT.java | 35 private ScriptIntrinsic3DLUT(long id, RenderScript rs, Element e) { in ScriptIntrinsic3DLUT() argument 36 super(id, rs); in ScriptIntrinsic3DLUT() 50 public static ScriptIntrinsic3DLUT create(RenderScript rs, Element e) { in create() argument 51 long id = rs.nScriptIntrinsicCreate(8, e.getID(rs)); in create() 53 if (!e.isCompatible(Element.U8_4(rs))) { in create() 57 return new ScriptIntrinsic3DLUT(id, rs, e); in create()
|
H A D | ScriptIntrinsicLUT.java | 36 private ScriptIntrinsicLUT(long id, RenderScript rs) { in ScriptIntrinsicLUT() argument 37 super(id, rs); in ScriptIntrinsicLUT() 38 mTables = Allocation.createSized(rs, Element.U8(rs), 1024); in ScriptIntrinsicLUT() 58 public static ScriptIntrinsicLUT create(RenderScript rs, Element e) { in create() argument 59 long id = rs.nScriptIntrinsicCreate(3, e.getID(rs)); in create() 60 return new ScriptIntrinsicLUT(id, rs); in create()
|
H A D | ScriptIntrinsicYuvToRGB.java | 35 ScriptIntrinsicYuvToRGB(long id, RenderScript rs) { in ScriptIntrinsicYuvToRGB() argument 36 super(id, rs); in ScriptIntrinsicYuvToRGB() 49 public static ScriptIntrinsicYuvToRGB create(RenderScript rs, Element e) { in create() argument 51 long id = rs.nScriptIntrinsicCreate(6, e.getID(rs)); in create() 52 ScriptIntrinsicYuvToRGB si = new ScriptIntrinsicYuvToRGB(id, rs); in create()
|
H A D | Allocation.java | 387 super(id, rs); in Allocation() 2671 rs.validate(); in createTyped() 2676 long id = rs.nAllocationCreateTyped(type.getID(rs), mips.mID, usage, 0); in createTyped() 2729 rs.validate(); in createSized() 2802 rs.validate(); in createFromBitmap() 2893 rs.validate(); in createAllocations() 2932 rs.validate(); in createFromAllocation() 2940 long id = rs.nAllocationCreateTyped(type.getID(rs), mips.mID, usage, 0); in createFromAllocation() 3092 rs.validate(); in createCubemapFromBitmap() 3259 rs.validate(); in createFromBitmapResource() [all …]
|
H A D | ScriptIntrinsicHistogram.java | 30 private ScriptIntrinsicHistogram(long id, RenderScript rs) { in ScriptIntrinsicHistogram() argument 31 super(id, rs); in ScriptIntrinsicHistogram() 47 public static ScriptIntrinsicHistogram create(RenderScript rs, Element e) { in create() argument 48 if ((!e.isCompatible(Element.U8_4(rs))) && in create() 49 (!e.isCompatible(Element.U8_3(rs))) && in create() 50 (!e.isCompatible(Element.U8_2(rs))) && in create() 51 (!e.isCompatible(Element.U8(rs)))) { in create() 54 long id = rs.nScriptIntrinsicCreate(9, e.getID(rs)); in create() 55 ScriptIntrinsicHistogram sib = new ScriptIntrinsicHistogram(id, rs); in create()
|
H A D | ScriptGroup.java | 116 Closure(long id, RenderScript rs) { in Closure() argument 117 super(id, rs); in Closure() 122 super(0, rs); in Closure() 152 long id = rs.nClosureCreate(kernelID.getID(rs), mReturnValue.getID(rs), in Closure() 162 super(0, rs); in Closure() 187 long id = rs.nInvokeClosureCreate(invokeID.getID(rs), mFP.getData(), fieldIDs, in Closure() 410 super(id, rs); in ScriptGroup() 416 super(0, rs); in ScriptGroup() 571 public Builder(RenderScript rs) { in Builder() argument 572 mRS = rs; in Builder() [all …]
|
H A D | BaseObj.java | 36 BaseObj(long id, RenderScript rs) { in BaseObj() argument 37 rs.validate(); in BaseObj() 38 mRS = rs; in BaseObj() 59 long getID(RenderScript rs) { in getID() argument 67 if ((rs != null) && (rs != mRS)) { in getID()
|
H A D | ScriptIntrinsicResize.java | 30 private ScriptIntrinsicResize(long id, RenderScript rs) { in ScriptIntrinsicResize() argument 31 super(id, rs); in ScriptIntrinsicResize() 44 public static ScriptIntrinsicResize create(RenderScript rs) { in create() argument 45 long id = rs.nScriptIntrinsicCreate(12, 0); in create() 46 ScriptIntrinsicResize si = new ScriptIntrinsicResize(id, rs); in create()
|
H A D | RSSurfaceView.java | 141 RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); in createRenderScriptGL() local 142 setRenderScriptGL(rs); in createRenderScriptGL() 143 return rs; in createRenderScriptGL() 159 public void setRenderScriptGL(RenderScriptGL rs) { in setRenderScriptGL() argument 160 mRS = rs; in setRenderScriptGL()
|
H A D | RSTextureView.java | 153 RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); in createRenderScriptGL() local 154 setRenderScriptGL(rs); in createRenderScriptGL() 158 return rs; in createRenderScriptGL() 178 public void setRenderScriptGL(RenderScriptGL rs) { in setRenderScriptGL() argument 179 mRS = rs; in setRenderScriptGL()
|
/aosp14/frameworks/base/libs/hwui/renderthread/ |
H A D | ReliableSurface.cpp | 180 std::lock_guard _lock{rs->mMutex}; in hook_dequeueBuffer() 181 if (rs->mReservedBuffer) { in hook_dequeueBuffer() 182 *buffer = rs->mReservedBuffer; in hook_dequeueBuffer() 184 rs->mReservedBuffer = nullptr; in hook_dequeueBuffer() 196 std::lock_guard _lock{rs->mMutex}; in hook_dequeueBuffer() 197 rs->mHasDequeuedBuffer = true; in hook_dequeueBuffer() 206 rs->clearReservedBuffer(); in hook_cancelBuffer() 207 if (rs->isFallbackBuffer(buffer)) { in hook_cancelBuffer() 220 rs->clearReservedBuffer(); in hook_queueBuffer() 222 if (rs->isFallbackBuffer(buffer)) { in hook_queueBuffer() [all …]
|
/aosp14/system/core/trusty/libtrusty-rs/ |
H A D | Android.bp | 20 name: "libtrusty-rs", 24 "src/lib.rs" 33 name: "libtrusty-rs-tests", 35 srcs: ["tests/test.rs"], 37 "libtrusty-rs",
|