/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
H A D | FillTest.java | 66 mTests[index].testName = Allocation.createFromString(mRS, 68 Allocation.USAGE_SCRIPT); 71 Allocation.USAGE_SCRIPT); 131 private Allocation loadTextureARGB(int id) { 133 return Allocation.createFromBitmap(mRS, b, 134 Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE, 135 Allocation.USAGE_GRAPHICS_TEXTURE); 138 private Allocation loadTextureRGB(int id) { 139 return Allocation.createFromBitmapResource(mRS, mRes, id, 140 Allocation [all...] |
H A D | TextTest.java | 48 mTests[index].testName = Allocation.createFromString(mRS, 50 Allocation.USAGE_SCRIPT); 53 Allocation.USAGE_SCRIPT);
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
H A D | BallsRS.java | 42 private Allocation mGridCache; 46 Allocation.USAGE_SCRIPT | 47 Allocation.USAGE_GRAPHICS_CONSTANTS); 75 private Allocation loadTexture(int id) { 79 final Allocation allocation = 80 Allocation.createFromBitmap(mRS, bp, 81 Allocation.MipmapControl.MIPMAP_NONE, 82 Allocation.USAGE_GRAPHICS_TEXTURE); 112 mPoints = new ScriptField_Point(mRS, PART_COUNT, Allocation.USAGE_SCRIPT); 120 mGridCache = Allocation [all...] |
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | VrState.java | 20 import android.renderscript.Allocation;
37 Allocation mzRangeFullAllocation;
38 public Allocation mScrAllocation; // the RGB data out
76 mScrAllocation = Allocation.createTyped(mRs, b.create(),
77 Allocation.USAGE_IO_OUTPUT | Allocation.USAGE_SCRIPT);
95 mzRangeFullAllocation = Allocation.createTyped(mRs, b.create());
|
/frameworks/rs/ |
H A D | rsAllocation.h | 46 class Allocation : public ObjectBase { class in namespace:android::renderscript 73 // Allocation adapter state 74 const Allocation *baseAlloc; 91 } lod[android::renderscript::Allocation::MAX_LOD]; 111 static Allocation * createAllocation(Context *rsc, const Type *, uint32_t usages, 114 static Allocation * createAdapter(Context *rsc, const Allocation *alloc, const Type *type); 117 virtual ~Allocation(); 124 void copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len); 153 static Allocation *createFromStrea [all...] |
H A D | rsScriptC_Lib.cpp | 229 void rsrAllocationIoSend(Context *rsc, Allocation *src) { 233 void rsrAllocationIoReceive(Context *rsc, Allocation *src) { 239 Allocation *in, Allocation *out, 248 const Allocation *ins[1] = {in}; 255 void rsrAllocationSyncAll(Context *rsc, Allocation *a, RsAllocationUsageType usage) { 259 void rsrAllocationCopy1DRange(Context *rsc, Allocation *dstAlloc, 263 Allocation *srcAlloc, 270 void rsrAllocationCopy2DRange(Context *rsc, Allocation *dstAlloc, 274 Allocation *srcAllo [all...] |
H A D | rsAdapter.cpp | 28 Adapter1D::Adapter1D(Context *rsc, Allocation *a) : ObjectBase(rsc) { 62 Allocation * alloc = static_cast<Allocation *>(valloc); 99 Adapter2D::Adapter2D(Context *rsc, Allocation *a) : ObjectBase(rsc) { 136 Allocation * alloc = static_cast<Allocation *>(valloc);
|
H A D | rsScriptIntrinsic.cpp | 37 mSlots = new ObjectBaseRef<Allocation>[2]; 60 const Allocation** ains, 62 Allocation* aout,
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | SceneManager.java | 43 import android.renderscript.Allocation.MipmapControl; 54 HashMap<String, Allocation> mAllocationMap; 75 private Allocation mDefault2D; 76 private Allocation mDefaultCube; 85 private static Allocation getDefault(boolean isCube) { 99 Allocation.MipmapControl mip = Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE; 100 int usage = Allocation.USAGE_GRAPHICS_TEXTURE; 101 Allocation defaultImage = Allocation [all...] |
/frameworks/rs/cpp/ |
H A D | rsCppStructs.h | 47 class Allocation; 287 * from RenderScript kernels. An Allocation provides the backing store for a 290 * An Allocation also contains a set of usage flags that denote how the 291 * Allocation could be used. For example, an Allocation may have usage flags 294 * syncAll(int) in order to ensure that different users of the Allocation have 295 * a consistent view of memory. For example, in the case where an Allocation is 300 class Allocation : public BaseObj { class in namespace:android::RSC 304 sp<Allocation> mAdaptedAllocation; 326 Allocation(voi [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | ScriptIntrinsicHistogram.java | 25 private Allocation mOut; 69 public void forEach(Allocation ain) { 87 public void forEach(Allocation ain, Script.LaunchOptions opt) { 139 public void setOutput(Allocation aout) { 173 public void forEach_Dot(Allocation ain) { 188 public void forEach_Dot(Allocation ain, Script.LaunchOptions opt) {
|
H A D | Script.java | 169 protected void forEach(int slot, Allocation ain, Allocation aout, 178 protected void forEach(int slot, Allocation ain, Allocation aout, 224 protected void forEach(int slot, Allocation[] ains, Allocation aout, 234 protected void forEach(int slot, Allocation[] ains, Allocation aout, 240 for (Allocation ain : ains) { 299 public void bindAllocation(Allocation v [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsd_cpu.h | 72 const Allocation ** ains, 74 Allocation * aout, 86 virtual void setGlobalBind(uint32_t slot, Allocation *data) = 0; 89 virtual Allocation * getAllocationForPointer(const void *ptr) const = 0; 115 virtual void setInput(const ScriptKernelID *kid, Allocation *) = 0; 116 virtual void setOutput(const ScriptKernelID *kid, Allocation *) = 0;
|
/frameworks/rs/driver/ |
H A D | rsdBcc.h | 40 const android::renderscript::Allocation * ain, 41 android::renderscript::Allocation * aout, 49 const android::renderscript::Allocation ** ains, 51 android::renderscript::Allocation * aout, 78 uint32_t slot, android::renderscript::Allocation *data); 96 android::renderscript::Allocation * rsdScriptGetAllocationForPointer(
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
H A D | ImageProcessingActivity2.java | 149 Allocation mInPixelsAllocation; 150 Allocation mInPixelsAllocation2; 151 Allocation mOutDisplayAllocation1; 152 Allocation mOutDisplayAllocation2; 164 Allocation mOutDisplayAllocationIO; 165 Allocation mOutPixelsAllocationIO; 205 mInPixelsAllocation = Allocation.createFromBitmapResource( 207 mInPixelsAllocation2 = Allocation.createFromBitmapResource( 213 mInPixelsAllocation = Allocation.createFromBitmapResource( 215 mInPixelsAllocation2 = Allocation [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | ScriptIntrinsicHistogram.java | 27 private Allocation mOut; 79 public void forEach(Allocation ain) { 97 public void forEach(Allocation ain, Script.LaunchOptions opt) { 149 public void setOutput(Allocation aout) { 183 public void forEach_Dot(Allocation ain) { 198 public void forEach_Dot(Allocation ain, Script.LaunchOptions opt) {
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
H A D | UT_alloc_copyPadded.java | 28 super(rstc, "Allocation CopyTo Padded", ctx); 93 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); 125 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); 158 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); 192 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); 227 Allocation allo [all...] |
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
H A D | UT_alloc_copyPadded.java | 28 super(rstc, "Allocation CopyTo Padded", ctx); 93 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); 125 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); 158 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); 192 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); 227 Allocation allo [all...] |
/frameworks/rs/api/ |
H A D | rs_object_info.spec | 20 The functions below can be used to query the characteristics of an Allocation, Element, 34 See the <a href='http://developer.android.com/reference/android/renderscript/Allocation.html'>android.renderscript.Allocation</a> for details on to create Allocations. 39 for the cells of an Allocation and the instantiation of that type. For example:<ul> 42 i.e. a cell of an Allocation.</li></ul> 73 If the Allocation is a cubemap, this function returns 1 if there's more than one face 85 Query an Allocation for the presence of more than one Level Of Detail. This is useful 93 ret: uint32_t, "X dimension of the Allocation." 97 Returns the size of the X dimension of the Allocation. 104 ret: uint32_t, "Y dimension of the Allocation [all...] |
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
H A D | ColorCube.java | 21 import android.renderscript.Allocation; 33 private Allocation mCube; 52 mCube = Allocation.createTyped(mRS, t);
|
H A D | Resize.java | 21 import android.renderscript.Allocation; 35 private Allocation mScratchAllocation; 51 mScratchAllocation = Allocation.createTyped(mRS, t);
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | ColorCube.java | 21 import android.renderscript.Allocation; 33 private Allocation mCube; 52 mCube = Allocation.createTyped(mRS, t);
|
H A D | Resize.java | 21 import android.renderscript.Allocation; 35 private Allocation mScratchAllocation; 51 mScratchAllocation = Allocation.createTyped(mRS, t);
|
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
H A D | UT_script_group2_pointwise.java | 48 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE); 68 ((Allocation)group.execute(input)[0]).copyTo(a);
|
/frameworks/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/ |
H A D | TestBase.java | 26 import android.renderscript.Allocation; 43 protected Allocation mInPixelsAllocation; 44 // protected Allocation mInPixelsAllocation2; 45 protected Allocation mOutPixelsAllocation;
|