/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
TestPow.java | 21 import android.renderscript.Allocation; 44 Allocation inX = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x470aeab18312445bl, false); 45 Allocation inY = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x470aeab18312445cl, false); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 64 private void verifyResultsPowFloatFloatFloat(Allocation inX, Allocation inY, Allocation out, boolean relaxed) [all...] |
TestPown.java | 21 import android.renderscript.Allocation; 44 Allocation inX = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xde633e0d2c462948l, false); 45 Allocation inY = createRandomAllocation(mRS, Element.DataType.SIGNED_32, 1, 0xde633e0d2c462949l, false); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 64 private void verifyResultsPownFloatIntFloat(Allocation inX, Allocation inY, Allocation out, boolean relaxed) [all...] |
TestPowr.java | 21 import android.renderscript.Allocation; 44 Allocation inX = createRandomFloatAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x616e17ec158f6a8dl, 0, 3000); 45 Allocation inY = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x616e17ec158f6a8el, false); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 64 private void verifyResultsPowrFloatFloatFloat(Allocation inX, Allocation inY, Allocation out, boolean relaxed) [all...] |
TestRemainder.java | 21 import android.renderscript.Allocation; 44 Allocation inX = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x27d6330966022888l, false); 45 Allocation inY = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x27d6330966022889l, false); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 64 private void verifyResultsRemainderFloatFloatFloat(Allocation inX, Allocation inY, Allocation out, boolean relaxed) [all...] |
TestRootn.java | 21 import android.renderscript.Allocation; 44 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x37d0d9514daae0ccl, false); 45 Allocation inN = createRandomAllocation(mRS, Element.DataType.SIGNED_32, 1, 0x37d0d9514daae0c4l, false); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 64 private void verifyResultsRootnFloatIntFloat(Allocation inV, Allocation inN, Allocation out, boolean relaxed) [all...] |
TestMax.java | 21 import android.renderscript.Allocation; 44 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xfb01ed3804837dddl, false); 45 Allocation in1 = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x2952d868c2162450l, false); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 64 private void verifyResultsMaxFloatFloatFloat(Allocation in, Allocation in1, Allocation out, boolean relaxed) [all...] |
TestMin.java | 21 import android.renderscript.Allocation; 44 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x816f2fe273bf4977l, false); 45 Allocation in1 = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xbdad0b097121572el, false); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 64 private void verifyResultsMinFloatFloatFloat(Allocation in, Allocation in1, Allocation out, boolean relaxed) [all...] |
SampleTest.java | 20 import android.renderscript.Allocation; 21 import android.renderscript.Allocation.MipmapControl; 32 Allocation mAlloc_RGBA_1D; 33 Allocation mAlloc_RGBA_2D; 35 Allocation createAlloc(Type t) { 36 Allocation a = Allocation.createTyped(mRS, t, Allocation.MipmapControl.MIPMAP_FULL, 37 Allocation.USAGE_SCRIPT);
|
AllocationCopy2DRangeTest.java | 19 import android.renderscript.Allocation; 25 private Allocation mInAllocation; 26 private Allocation mOutAllocation; 45 mInAllocation = Allocation.createTyped(mRS, typeBuilder.create()); 46 mOutAllocation = Allocation.createTyped(mRS, mInAllocation.getType());
|
DebugContext.java | 19 import android.renderscript.Allocation; 28 Allocation AUnused; 29 Allocation AInt; 51 AInt = Allocation.createTyped(mRS, t); 54 AUnused = Allocation.createTyped(mRS, t); 58 * Test whether we are detect out-of-bounds allocation accesses 74 * Test whether we are detect out-of-bounds allocation accesses
|
GetAllocationTest.java | 19 import android.renderscript.Allocation; 35 Allocation mTemp = Allocation.createSized(mRS, Element.I32(mRS), INPUTSIZE); 37 Allocation mOut = Allocation.createTyped(mRS, mTemp.getType());
|
TestMix.java | 21 import android.renderscript.Allocation; 45 Allocation inStart = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x9f4beff6471d6db1l, false); 46 Allocation inStop = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x6ede0b88b4422e8fl, false); 47 Allocation inAmount = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xc1c14e5d52dc3fe5l, false); 49 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 58 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 68 private void verifyResultsMixFloatFloatFloatFloat(Allocation inStart, Allocation inStop, Allocation inAmount, Allocation out, boolean relaxed) [all...] |
TestFract.java | 21 import android.renderscript.Allocation; 44 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x57d8e6573c675d27l, false); 46 Allocation outFloor = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation outFloor = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 56 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE) [all...] |
TestLgamma.java | 21 import android.renderscript.Allocation; 43 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xe748c67429cab138l, false); 45 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 52 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 60 private void verifyResultsLgammaFloatFloat(Allocation in, Allocation out, boolean relaxed) { 102 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0x7ca07efd8a327894l, false); 104 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE) [all...] |
TestFrexp.java | 21 import android.renderscript.Allocation; 44 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x57ae9fe07384e56dl, false); 46 Allocation outIptr = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation outIptr = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE); 56 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE) [all...] |
TestModf.java | 21 import android.renderscript.Allocation; 44 Allocation inX = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xd655dc05ccaef47l, false); 46 Allocation outIret = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation outIret = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 56 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE) [all...] |
TestNativeSincos.java | 21 import android.renderscript.Allocation; 44 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xe15df2366436cc13l, false); 46 Allocation outCosptr = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation outCosptr = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 56 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE) [all...] |
TestSincos.java | 21 import android.renderscript.Allocation; 44 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xb8748e13e46c48d4l, false); 46 Allocation outCosptr = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation outCosptr = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 56 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterRS.java | 45 float scaleFactor, int quality, Allocation in) {} 46 protected void bindScriptValues(Allocation in) {} 59 protected Allocation getInPixelsAllocation() { 64 protected Allocation getOutPixelsAllocation() { 70 public void apply(Allocation in, Allocation out) { 108 protected void run(Allocation in, Allocation out) {} 154 protected static Allocation convertBitmap(RenderScript RS, Bitmap bitmap) { 155 return Allocation.createFromBitmap(RS, bitmap [all...] |
/frameworks/base/rs/java/android/renderscript/ |
ScriptIntrinsicResize.java | 20 * Intrinsic for performing a resize of a 2D allocation. 23 private Allocation mInput; 48 * @param ain The input allocation. 50 public void setInput(Allocation ain) { 74 * Resize copy the input allocation to the output specified. The 75 * Allocation is rescaled if necessary using bi-cubic 78 * @param aout Output allocation. Element type must match 81 public void forEach_bicubic(Allocation aout) { 89 * Resize copy the input allocation to the output specified. The 90 * Allocation is rescaled if necessary using bi-cubi [all...] |
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
FBOSyncRS.java | 54 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, 119 Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE, 120 Allocation.USAGE_GRAPHICS_TEXTURE); 126 mTextAlloc = Allocation.createFromString(mRS, allocString, Allocation.USAGE_SCRIPT) [all...] |
/frameworks/rs/ |
rsPath.cpp | 28 Allocation *vtx, Allocation *loops, float quality) 51 void Path::rasterize(const BezierSegment_t *s, uint32_t num, Allocation *alloc) { 75 return new Path(rsc, pp, isStatic, (Allocation *)vtx, (Allocation *)loops, quality);
|
rsAllocation.cpp | 30 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, 44 void Allocation::operator delete(void* ptr) { 46 Allocation *a = (Allocation*) ptr; 51 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages, 53 // Allocation objects must use allocator specified by the driver 54 void* allocMem = rsc->mHal.funcs.allocRuntimeMem(sizeof(Allocation), 0); 57 rsc->setError(RS_ERROR_FATAL_DRIVER, "Couldn't allocate memory for Allocation"); [all...] |
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis4/ |
Visualization4RS.java | 62 private Allocation[] mTextures; 110 mTextures = new Allocation[6]; 111 mTextures[0] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.background, 112 Allocation.MipmapControl.MIPMAP_NONE, 113 Allocation.USAGE_GRAPHICS_TEXTURE); 115 mTextures[1] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.frame, 116 Allocation.MipmapControl.MIPMAP_NONE, 117 Allocation.USAGE_GRAPHICS_TEXTURE); 119 mTextures[2] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.peak_on, 120 Allocation.MipmapControl.MIPMAP_NONE [all...] |
/prebuilts/ndk/9/platforms/android-19/arch-arm/usr/include/rs/ |
rs_hal.h | 31 class Allocation; 112 const Allocation * ain, 113 Allocation * aout, 137 Allocation *data); 146 bool (*init)(const Context *rsc, Allocation *alloc, bool forceZero); 147 void (*destroy)(const Context *rsc, Allocation *alloc); 148 uint32_t (*grallocBits)(const Context *rsc, Allocation *alloc); 150 void (*resize)(const Context *rsc, const Allocation *alloc, const Type *newType, 152 void (*syncAll)(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src); 153 void (*markDirty)(const Context *rsc, const Allocation *alloc) 224 } allocation; member in struct:android::renderscript::__anon53844 [all...] |