Home
last modified time | relevance | path

Searched refs:Allocation (Results 1 – 25 of 274) sorted by relevance

1234567891011

/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicBlend.java43 private void blend(int id, Allocation ain, Allocation aout, Script.LaunchOptions opt) { in blend()
59 public void forEachClear(Allocation ain, Allocation aout) { in forEachClear()
70 public void forEachClear(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachClear()
90 public void forEachSrc(Allocation ain, Allocation aout) { in forEachSrc()
101 public void forEachSrc(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachSrc()
122 public void forEachDst(Allocation ain, Allocation aout) { in forEachDst()
135 public void forEachDst(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachDst()
154 public void forEachSrcOver(Allocation ain, Allocation aout) { in forEachSrcOver()
165 public void forEachSrcOver(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachSrcOver()
184 public void forEachDstOver(Allocation ain, Allocation aout) { in forEachDstOver()
[all …]
DPath.java35 Allocation mVertexBuffer;
36 Allocation mLoopBuffer;
41 Path(long id, RenderScript rs, Primitive p, Allocation vtx, Allocation loop, float q) { in Path()
49 public Allocation getVertexAllocation() { in getVertexAllocation()
53 public Allocation getLoopAllocation() { in getLoopAllocation()
66 … public static Path createStaticPath(RenderScript rs, Primitive p, float quality, Allocation vtx) { in createStaticPath()
72 …h createStaticPath(RenderScript rs, Primitive p, float quality, Allocation vtx, Allocation loops) { in createStaticPath()
76 …public static Path createDynamicPath(RenderScript rs, Primitive p, float quality, Allocation vtx) { in createDynamicPath()
80 … createDynamicPath(RenderScript rs, Primitive p, float quality, Allocation vtx, Allocation loops) { in createDynamicPath()
DMesh.java88 Allocation[] mVertexBuffers;
89 Allocation[] mIndexBuffers;
113 public Allocation getVertexAllocation(int slot) { in getVertexAllocation()
136 public Allocation getIndexSetAllocation(int slot) { in getIndexSetAllocation()
162 mVertexBuffers = new Allocation[vtxCount]; in updateFromNative()
163 mIndexBuffers = new Allocation[idxCount]; in updateFromNative()
168 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative()
175 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative()
355 Allocation[] vertexBuffers = new Allocation[mVertexTypeCount]; in create()
356 Allocation[] indexBuffers = new Allocation[mIndexTypes.size()]; in create()
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptIntrinsicBlend.java48 private void blend(int id, Allocation ain, Allocation aout) { in blend()
64 public void forEachClear(Allocation ain, Allocation aout) { in forEachClear()
84 public void forEachSrc(Allocation ain, Allocation aout) { in forEachSrc()
105 public void forEachDst(Allocation ain, Allocation aout) { in forEachDst()
124 public void forEachSrcOver(Allocation ain, Allocation aout) { in forEachSrcOver()
143 public void forEachDstOver(Allocation ain, Allocation aout) { in forEachDstOver()
162 public void forEachSrcIn(Allocation ain, Allocation aout) { in forEachSrcIn()
181 public void forEachDstIn(Allocation ain, Allocation aout) { in forEachDstIn()
200 public void forEachSrcOut(Allocation ain, Allocation aout) { in forEachSrcOut()
219 public void forEachDstOut(Allocation ain, Allocation aout) { in forEachDstOut()
[all …]
DScriptIntrinsicBlendThunker.java43 public void forEachClear(Allocation ain, Allocation aout) { in forEachClear()
64 public void forEachSrc(Allocation ain, Allocation aout) { in forEachSrc()
85 public void forEachDst(Allocation ain, Allocation aout) { in forEachDst()
106 public void forEachSrcOver(Allocation ain, Allocation aout) { in forEachSrcOver()
127 public void forEachDstOver(Allocation ain, Allocation aout) { in forEachDstOver()
148 public void forEachSrcIn(Allocation ain, Allocation aout) { in forEachSrcIn()
169 public void forEachDstIn(Allocation ain, Allocation aout) { in forEachDstIn()
190 public void forEachSrcOut(Allocation ain, Allocation aout) { in forEachSrcOut()
211 public void forEachDstOut(Allocation ain, Allocation aout) { in forEachDstOut()
232 public void forEachSrcAtop(Allocation ain, Allocation aout) { in forEachSrcAtop()
[all …]
DAllocationThunker.java29 class AllocationThunker extends Allocation {
30 android.renderscript.Allocation mN;
33 android.renderscript.Allocation getNObj() { in getNObj()
37 static android.renderscript.Allocation.MipmapControl
42 return android.renderscript.Allocation.MipmapControl.MIPMAP_NONE; in convertMipmapControl()
44 return android.renderscript.Allocation.MipmapControl.MIPMAP_FULL; in convertMipmapControl()
46 return android.renderscript.Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE; in convertMipmapControl()
75 AllocationThunker(RenderScript rs, Type t, int usage, android.renderscript.Allocation na) { in AllocationThunker()
186 public void copyFrom(Allocation a) { in copyFrom()
295 public void copy1DRangeFrom(int off, int count, Allocation data, int dataOff) { in copy1DRangeFrom()
[all …]
/frameworks/rs/
DrsAllocation.cpp30 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, in Allocation() function in Allocation
44 void Allocation::operator delete(void* ptr) { in operator delete()
46 Allocation *a = (Allocation*) ptr; in operator delete()
51 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages, in createAllocation()
54 void* allocMem = rsc->mHal.funcs.allocRuntimeMem(sizeof(Allocation), 0); in createAllocation()
61 Allocation *a = new (allocMem) Allocation(rsc, type, usages, mc, ptr); in createAllocation()
72 void Allocation::updateCache() { in updateCache()
81 Allocation::~Allocation() { in ~Allocation()
93 void Allocation::syncAll(Context *rsc, RsAllocationUsageType src) { in syncAll()
97 void * Allocation::getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, in getPointer()
[all …]
Drs_hal.h31 class Allocation; variable
68 RS_BASE_OBJ(Allocation) rs_allocation;
121 const Allocation * ain,
122 Allocation * aout,
146 Allocation *data);
155 const Allocation ** ains,
157 Allocation * aout,
165 bool (*init)(const Context *rsc, Allocation *alloc, bool forceZero);
166 void (*destroy)(const Context *rsc, Allocation *alloc);
167 uint32_t (*grallocBits)(const Context *rsc, Allocation *alloc);
[all …]
DrsFBOCache.h26 class Allocation; variable
36 void bindColorTarget(Context *rsc, Allocation *a, uint32_t slot);
37 void bindDepthTarget(Context *, Allocation *a);
47 Allocation **colorTargets;
49 Allocation *depthTarget;
56 ObjectBaseRef<Allocation> *mColorTargets;
57 ObjectBaseRef<Allocation> mDepthTarget;
DrsRuntime.h34 void rsrAllocationSyncAll(Context *, Script *, Allocation *);
37 void rsrBindTexture(Context *, ProgramFragment *, uint32_t slot, Allocation *);
38 void rsrBindConstant(Context *, ProgramFragment *, uint32_t slot, Allocation *);
39 void rsrBindConstant(Context *, ProgramVertex*, uint32_t slot, Allocation *);
45 void rsrBindFrameBufferObjectColorTarget(Context *, Allocation *, uint32_t slot);
46 void rsrBindFrameBufferObjectDepthTarget(Context *, Allocation *);
83 void rsrAllocationCopy1DRange(Context *, Allocation *dstAlloc,
87 Allocation *srcAlloc,
89 void rsrAllocationCopy2DRange(Context *, Allocation *dstAlloc,
93 Allocation *srcAlloc,
[all …]
/frameworks/rs/driver/
DrsdAllocation.h80 android::renderscript::Allocation *alloc);
82 android::renderscript::Allocation *alloc,
85 android::renderscript::Allocation *alloc);
88 const android::renderscript::Allocation *alloc,
91 const android::renderscript::Allocation *alloc,
94 const android::renderscript::Allocation *alloc);
96 android::renderscript::Allocation *alloc, ANativeWindow *nw);
98 android::renderscript::Allocation *alloc);
100 android::renderscript::Allocation *alloc);
103 const android::renderscript::Allocation *alloc,
[all …]
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DErrorCalculator.java23 import android.renderscript.Allocation;
36 private Allocation mIdealPixelsAllocation;
37 private Allocation mGivenPixelsAllocation;
38 private Allocation mOutputPixelsAllocation;
40 private Allocation mInputRowsAllocation;
41 private Allocation mOutputRegionsAllocation;
62 mInputRowsAllocation = Allocation.createSized(mRS, Element.I32(mRS), rowIndices.length, in ErrorCalculator()
63 Allocation.USAGE_SCRIPT); in ErrorCalculator()
65 mOutputRegionsAllocation = Allocation.createSized(mRS, Element.I32(mRS), in ErrorCalculator()
66 mOutputRowRegions.length, Allocation.USAGE_SCRIPT); in ErrorCalculator()
[all …]
/frameworks/rs/cpp/
DAllocation.cpp23 void * Allocation::getIDSafe() const { in getIDSafe()
27 void Allocation::updateCacheInfo(sp<const Type> t) { in updateCacheInfo()
40 Allocation::Allocation(void *id, sp<RS> rs, sp<const Type> t, uint32_t usage) : in Allocation() function in Allocation
75 void Allocation::validateIsInt32() { in validateIsInt32()
83 void Allocation::validateIsInt16() { in validateIsInt16()
91 void Allocation::validateIsInt8() { in validateIsInt8()
99 void Allocation::validateIsFloat32() { in validateIsFloat32()
107 void Allocation::validateIsObject() { in validateIsObject()
124 void Allocation::updateFromNative() { in updateFromNative()
137 void Allocation::syncAll(RsAllocationUsageType srcLocation) { in syncAll()
[all …]
DScriptIntrinsics.cpp47 void ScriptIntrinsic3DLUT::forEach(sp<Allocation> ain, sp<Allocation> aout) { in forEach()
55 void ScriptIntrinsic3DLUT::setLUT(sp<Allocation> lut) { in setLUT()
81 void ScriptIntrinsicBlend::forEachClear(sp<Allocation> in, sp<Allocation> out) { in forEachClear()
89 void ScriptIntrinsicBlend::forEachSrc(sp<Allocation> in, sp<Allocation> out) { in forEachSrc()
97 void ScriptIntrinsicBlend::forEachDst(sp<Allocation> in, sp<Allocation> out) { in forEachDst()
105 void ScriptIntrinsicBlend::forEachSrcOver(sp<Allocation> in, sp<Allocation> out) { in forEachSrcOver()
113 void ScriptIntrinsicBlend::forEachDstOver(sp<Allocation> in, sp<Allocation> out) { in forEachDstOver()
121 void ScriptIntrinsicBlend::forEachSrcIn(sp<Allocation> in, sp<Allocation> out) { in forEachSrcIn()
129 void ScriptIntrinsicBlend::forEachDstIn(sp<Allocation> in, sp<Allocation> out) { in forEachDstIn()
137 void ScriptIntrinsicBlend::forEachSrcOut(sp<Allocation> in, sp<Allocation> out) { in forEachSrcOut()
[all …]
/frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/
DSampleRSActivity.java26 import android.renderscript.Allocation;
44 private Allocation mOutPixelsAllocation;
47 TextureViewUpdater(Allocation outAlloc, Sampler sampler) { in TextureViewUpdater()
80 private Allocation mTwoByTwoAlloc;
81 private Allocation mCityAlloc;
102 mTwoByTwoAlloc = Allocation.createFromBitmap(mRS, mBitmapTwoByTwo, in onCreate()
103 Allocation.MipmapControl.MIPMAP_NONE, in onCreate()
104Allocation.USAGE_SCRIPT | Allocation.USAGE_GRAPHICS_TEXTURE); in onCreate()
106 mCityAlloc = Allocation.createFromBitmap(mRS, mBitmapCity, in onCreate()
107 Allocation.MipmapControl.MIPMAP_NONE, in onCreate()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuScript.h67 virtual void preLaunch(uint32_t slot, const Allocation * ain,
68 Allocation * aout, const void * usr,
70 virtual void postLaunch(uint32_t slot, const Allocation * ain,
71 Allocation * aout, const void * usr,
74 const Allocation * ain,
75 Allocation * aout,
81 const Allocation** ains,
83 Allocation* aout,
94 virtual void setGlobalBind(uint32_t slot, Allocation *data);
103 void forEachMtlsSetup(const Allocation * ain, Allocation * aout,
[all …]
DrsCpuIntrinsic.h34 const Allocation * ain,
35 Allocation * aout,
41 const Allocation ** ain,
43 Allocation * aout,
52 virtual void preLaunch(uint32_t slot, const Allocation * ain,
53 Allocation * aout, const void * usr,
55 virtual void postLaunch(uint32_t slot, const Allocation * ain,
56 Allocation * aout, const void * usr,
62 virtual void setGlobalBind(uint32_t slot, Allocation *data);
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
DFBOSyncRS.java54 private Allocation mGridImage;
55 private Allocation mOffscreen;
56 private Allocation mOffscreenDepth;
57 private Allocation mAllocPV;
58 private Allocation mReadBackTest;
61 private Allocation mTextAlloc;
118 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, in loadImage()
119Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE, in loadImage()
120 Allocation.USAGE_GRAPHICS_TEXTURE); in loadImage()
126 mTextAlloc = Allocation.createFromString(mRS, allocString, Allocation.USAGE_SCRIPT); in initTextAllocation()
[all …]
DFBOTestRS.java54 private Allocation mGridImage;
55 private Allocation mOffscreen;
56 private Allocation mOffscreenDepth;
57 private Allocation mAllocPV;
60 private Allocation mTextAlloc;
117 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, in loadImage()
118Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE, in loadImage()
119 Allocation.USAGE_GRAPHICS_TEXTURE); in loadImage()
125 mTextAlloc = Allocation.createFromString(mRS, allocString, Allocation.USAGE_SCRIPT); in initTextAllocation()
177 mOffscreen = Allocation.createTyped(mRS, in initRS()
[all …]
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
DUsageIO.java22 import android.renderscript.Allocation;
34 private Allocation mScratchPixelsAllocation1;
35 private Allocation mScratchPixelsAllocation2;
51 …mScratchPixelsAllocation1 = Allocation.createTyped(mRS, connect, Allocation.USAGE_IO_OUTPUT | Allo… in createTest()
52 …mScratchPixelsAllocation2 = Allocation.createTyped(mRS, connect, Allocation.USAGE_IO_INPUT | Alloc… in createTest()
/frameworks/rs/tests/cppbasic-shared/
Dcompute.cpp31 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000); in test_compute()
34 sp<Allocation> ain = Allocation::createTyped(rs, t); in test_compute()
35 sp<Allocation> aout = Allocation::createTyped(rs, t); in test_compute()
54 sp<Allocation> failed_alloc = Allocation::createTyped(rs, failed_t); in test_compute()
85 sp<Allocation> kern1_in = Allocation::createTyped(rs, t); in test_compute()
86 sp<Allocation> kern1_out = Allocation::createTyped(rs, t); in test_compute()
/frameworks/rs/tests/cppbasic/
Dcompute.cpp31 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000); in test_compute()
34 sp<Allocation> ain = Allocation::createTyped(rs, t); in test_compute()
35 sp<Allocation> aout = Allocation::createTyped(rs, t); in test_compute()
54 sp<Allocation> failed_alloc = Allocation::createTyped(rs, failed_t); in test_compute()
85 sp<Allocation> kern1_in = Allocation::createTyped(rs, t); in test_compute()
86 sp<Allocation> kern1_out = Allocation::createTyped(rs, t); in test_compute()
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
DUT_copy_test.java34 Allocation a1 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2()
35 Allocation a2 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2()
58 Allocation a1 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3()
59 Allocation a2 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3()
82 Allocation a1 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4()
83 Allocation a2 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4()
DUT_instance.java49 Allocation ai1 = Allocation.createTyped(mRS, t); in run()
50 Allocation ai2 = Allocation.createTyped(mRS, t); in run()
51 Allocation ai3 = Allocation.createTyped(mRS, t); in run()
52 Allocation ai4 = Allocation.createTyped(mRS, t); in run()
53 Allocation ai5 = Allocation.createTyped(mRS, t); in run()
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
DUT_copy_test.java34 Allocation a1 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2()
35 Allocation a2 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2()
58 Allocation a1 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3()
59 Allocation a2 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3()
82 Allocation a1 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4()
83 Allocation a2 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4()

1234567891011