/frameworks/base/rs/java/android/renderscript/ |
ScriptIntrinsicBlur.java | 21 * specified radius to all elements of an allocation. 27 private Allocation mInput; 34 * Create an intrinsic for applying a blur to an allocation. The 59 * @param ain The input allocation 61 public void setInput(Allocation ain) { 82 * allocation. 84 * @param aout Output allocation. Must match creation element 87 public void forEach(Allocation aout) { 88 forEach(0, (Allocation) null, aout, null); 93 * allocation [all...] |
ScriptIntrinsicResize.java | 20 * Intrinsic for performing a resize of a 2D allocation. 23 private Allocation mInput; 50 * @param ain The input allocation. 52 public void setInput(Allocation ain) { 80 * Resize copy the input allocation to the output specified. The 81 * Allocation is rescaled if necessary using bi-cubic 84 * @param aout Output allocation. Element type must match 87 public void forEach_bicubic(Allocation aout) { 95 * Resize copy the input allocation to the output specified. The 96 * Allocation is rescaled if necessary using bi-cubi [all...] |
ScriptIntrinsicYuvToRGB.java | 23 * The input allocation should be supplied in a supported YUV format 24 * as a YUV element Allocation. The output is RGBA; the alpha channel 28 private Allocation mInput; 53 * Set the input yuv allocation, must be {@link Element#U8}. 55 * @param ain The input allocation. 57 public void setInput(Allocation ain) { 65 * @param aout Output allocation. Must match creation element 68 public void forEach(Allocation aout) { 69 forEach(0, (Allocation) null, aout, null);
|
AllocationAdapter.java | 23 public class AllocationAdapter extends Allocation { 26 AllocationAdapter(long id, RenderScript rs, Allocation alloc, Type t) { 96 * type being adapted. The base allocation must have mipmaps. 105 throw new RSInvalidStateException("Cannot set LOD when the allocation type does not include mipmaps."); 117 * Set the active Face. The base allocation must be of a type 124 throw new RSInvalidStateException("Cannot set Face when the allocation type does not include faces."); 141 * the allocation being adapted. 147 throw new RSInvalidStateException("Cannot set X greater than dimension of allocation."); 153 throw new RSInvalidStateException("Cannot set (X + window) which would be larger than dimension of allocation."); 162 * the allocation being adapted. The base allocation mus [all...] |
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/ |
ViewfinderProcessor.java | 22 import android.renderscript.Allocation; 36 private Allocation mInputAllocation; 37 private Allocation mOutputAllocation; 49 mInputAllocation = Allocation.createTyped(rs, yuvTypeBuilder.create(), 50 Allocation.USAGE_IO_INPUT | Allocation.USAGE_SCRIPT); 56 mOutputAllocation = Allocation.createTyped(rs, rgbTypeBuilder.create(), 57 Allocation.USAGE_IO_OUTPUT | Allocation.USAGE_SCRIPT); 81 class ProcessingTask implements Runnable, Allocation.OnBufferAvailableListener [all...] |
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
RsBrickedBitMask.java | 18 import android.renderscript.Allocation;
39 Allocation mBrick_allocation;
61 mBrick_allocation = Allocation.createTyped(state.mRs, b.create(), Allocation.USAGE_SCRIPT);
74 Allocation tmp = Allocation.createTyped(state.mRs, b.create(), Allocation.USAGE_SCRIPT);
82 Allocation createChunkAllocation(RenderScript rs) {
87 return Allocation.createTyped(rs, b.create(), Allocation.USAGE_SCRIPT); [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
ScriptIntrinsicResize.java | 22 * Intrinsic for performing a resize of a 2D allocation. 25 private Allocation mInput; 60 * @param ain The input allocation. 62 public void setInput(Allocation ain) { 90 * Resize copy the input allocation to the output specified. The 91 * Allocation is rescaled if necessary using bi-cubic 94 * @param aout Output allocation. Element type must match 97 public void forEach_bicubic(Allocation aout) { 105 * Resize copy the input allocation to the output specified. The 106 * Allocation is rescaled if necessary using bi-cubi [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
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);
|
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());
|
/external/clang/test/Analysis/ |
malloc-overflow.c | 9 return malloc(n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}} 14 return malloc(sizeof(int) * n); // // expected-warning {{the computation of the size of the memory allocation may overflow}} 29 return malloc(s->n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}} 35 return malloc(s2.n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}} 40 return malloc((n + 1) * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}} 62 int * x = malloc(n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}} 70 int * x = malloc(n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}} 79 int * x = malloc(n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}} 112 return malloc(n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
|
/external/v8/test/unittests/compiler/ |
escape-analysis-unittest.cc | 76 Node* Store(const FieldAccess& access, Node* allocation, Node* value, 85 allocation, value, effect, control); 187 Node* allocation = Allocate(Constant(kPointerSize)); local 188 Store(AccessAtIndex(0), allocation, object1); 189 Node* finish = FinishRegion(allocation); 196 ExpectVirtual(allocation); 208 Node* allocation = Allocate(Constant(kPointerSize)); local 209 Store(AccessAtIndex(0), allocation, object1); 210 Node* finish = FinishRegion(allocation); 212 Node* result = Return(allocation); 259 Node* allocation = Allocate(Constant(kPointerSize)); local 289 Node* allocation = Allocate(Constant(kPointerSize)); local 314 Node* allocation = Allocate(Constant(kPointerSize)); local 353 Node* allocation = Allocate(Constant(kPointerSize * 2)); local 355 Store(AccessAtIndex(kPointerSize), allocation, allocation); local [all...] |
/frameworks/compile/slang/tests/P_reduce_general_struct/ |
ScriptC_reduce_general_struct.java.expect | 57 for (Allocation tempIn : mTempIns) { 70 private result_int(Allocation out) { 76 private Allocation[] mTempIns; 77 private Allocation mOut; 84 public result_int reduce_inStruct(Allocation ain1) { 89 public result_int reduce_inStruct(Allocation ain1, Script.LaunchOptions sc) { 94 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 96 reduce(mExportReduceIdx_inStruct, new Allocation[]{ain1}, aout, sc);
|
/system/bt/osi/include/ |
allocation_tracker.h | 28 // Initialize the allocation tracker. If you do not call this function, 29 // the allocation tracker functions do nothing but are still safe to call. 32 // Reset the allocation tracker. Don't call this in the normal course of 41 // Notify the tracker of a new allocation belonging to |allocator_id|. 43 // size of the allocation without any canaries. The caller must allocate 44 // enough memory for canaries; the total allocation size can be determined 49 // Notify the tracker of an allocation that is being freed. |ptr| must be a 52 // |ptr| offset to the real beginning of the allocation including any canary 56 // Get the full size for an allocation, taking into account the size of canaries.
|
/external/deqp/external/vulkancts/framework/vulkan/ |
vkMemUtil.hpp | 33 * \brief Memory allocation interface 35 * Allocation represents block of device memory and is allocated by 39 * Allocation doesn't necessarily correspond to a whole VkDeviceMemory, but 40 * instead it may represent sub-allocation. Thus whenever VkDeviceMemory 41 * (getMemory()) managed by Allocation is passed to Vulkan API calls, 46 * pointer, i.e. the pointer is already adjusted in case of sub-allocation. 48 * Memory mappings are managed solely by Allocation, i.e. unmapping or 49 * re-mapping VkDeviceMemory owned by Allocation is not allowed. 51 class Allocation 54 virtual ~Allocation (void) [all...] |
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
UT_array_alloc.java | 27 super(rstc, "Array Allocation", ctx); 37 Allocation[] Arr = new Allocation[dimX]; 41 Allocation A = Allocation.createTyped(pRS, T);
|
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
UT_array_alloc.java | 27 super(rstc, "Array Allocation", ctx); 37 Allocation[] Arr = new Allocation[dimX]; 41 Allocation A = Allocation.createTyped(pRS, T);
|
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
UT_array_alloc.java | 27 super(rstc, "Array Allocation", ctx); 37 Allocation[] Arr = new Allocation[dimX]; 41 Allocation A = Allocation.createTyped(pRS, T);
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/ |
TestMax.java | 21 import android.renderscript.Allocation; 47 Allocation inA = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xc2162460l, false); 48 Allocation inB = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xc2162461l, false); 50 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); 67 private void verifyResultsMaxFloatFloatFloat(Allocation inA, Allocation inB, Allocation out, boolean relaxed) [all...] |
TestMin.java | 21 import android.renderscript.Allocation; 47 Allocation inA = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x7121573el, false); 48 Allocation inB = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x7121573fl, false); 50 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); 67 private void verifyResultsMinFloatFloatFloat(Allocation inA, Allocation inB, Allocation out, boolean relaxed) [all...] |
TestLgamma.java | 21 import android.renderscript.Allocation; 46 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x50bc4bel, false); 48 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); 63 private void verifyResultsLgammaFloatFloat(Allocation inV, Allocation out, boolean relaxed) { 115 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0x367a4132l, false); 117 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE) [all...] |
TestFrexp.java | 21 import android.renderscript.Allocation; 47 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x7384e56dl, false); 49 Allocation outExponent = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE); 50 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 58 Allocation outExponent = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE); 59 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE) [all...] |
TestModf.java | 21 import android.renderscript.Allocation; 47 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x5ccaef45l, false); 49 Allocation outIntegralPart = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 50 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 58 Allocation outIntegralPart = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 59 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE) [all...] |
TestClamp.java | 21 import android.renderscript.Allocation; 48 Allocation inValue = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xc83c447dl, false); 49 Allocation inMinValue = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x30234027l, false); 50 Allocation inMaxValue = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xc180322dl, false); 53 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 62 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 72 private void verifyResultsClampFloatFloatFloatFloat(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) [all...] |
/system/core/libmemunreachable/tests/ |
LeakFolding_test.cpp | 42 #define ALLOCATION(heap_walker, buffer) \ 43 ASSERT_EQ(true, heap_walker.Allocation(buffer_begin(buffer), buffer_end(buffer))) 50 ALLOCATION(heap_walker, buffer1); 74 ALLOCATION(heap_walker, buffer1); 75 ALLOCATION(heap_walker, buffer2); 103 ALLOCATION(heap_walker, buffer1); 104 ALLOCATION(heap_walker, buffer2); 133 ALLOCATION(heap_walker, buffer1); 134 ALLOCATION(heap_walker, buffer2); 135 ALLOCATION(heap_walker, buffer3) [all...] |
/frameworks/rs/ |
rsRuntime.h | 34 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...] |