/dalvik/tests/080-oom-throw/ |
info.txt | 1 Inject memory allocation failures for NEW_ARRAY and NEW_INSTANCE and make sure
|
/external/stlport/test/eh/ |
mwerks_debug_prefix.h | 4 #define _STLP_DEBUG 1 // enable the use of allocation debugging
|
/external/valgrind/main/massif/tests/ |
one.c | 3 // A test for a single allocation. There are two .post.exp* files, for each
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
ErrorCalculator.java | 26 import android.renderscript.Allocation; 39 private Allocation mIdealPixelsAllocation; 40 private Allocation mGivenPixelsAllocation; 41 private Allocation mOutputPixelsAllocation; 43 private final Allocation mInputRowsAllocation; 44 private final Allocation mOutputRegionsAllocation; 65 mInputRowsAllocation = Allocation.createSized(mRS, Element.I32(mRS), rowIndices.length, 66 Allocation.USAGE_SCRIPT); 68 mOutputRegionsAllocation = Allocation.createSized(mRS, Element.I32(mRS), 69 mOutputRowRegions.length, Allocation.USAGE_SCRIPT) [all...] |
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
UT_mesh.java | 35 Allocation vAlloc0 = Allocation.createSized(RS, Element.F32(RS), 10); 36 Allocation vAlloc1 = Allocation.createSized(RS, Element.F32_2(RS), 10); 38 Allocation iAlloc0 = Allocation.createSized(RS, Element.I16(RS), 10); 39 Allocation iAlloc2 = Allocation.createSized(RS, Element.I16(RS), 10);
|
UT_array_alloc.java | 27 super(rstc, "Array Allocation", ctx); 37 Allocation[] Arr = new Allocation[dimX]; 41 Allocation A = Allocation.createTyped(pRS, T);
|
UT_copy_test.java | 34 Allocation a1 = Allocation.createSized(rs, Element.F32_2(rs), 1024); 35 Allocation a2 = Allocation.createSized(rs, Element.F32_2(rs), 1024); 58 Allocation a1 = Allocation.createSized(rs, Element.F32_3(rs), 1024); 59 Allocation a2 = Allocation.createSized(rs, Element.F32_3(rs), 1024); 82 Allocation a1 = Allocation.createSized(rs, Element.F32_4(rs), 1024) [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
Allocation.java | 32 * and from RenderScript kernels. An Allocation provides the backing store for 35 * <p>An Allocation also contains a set of usage flags that denote how the 36 * Allocation could be used. For example, an Allocation may have usage flags 40 * {@link android.support.v8.renderscript.Allocation#syncAll} in 41 * order to ensure that different users of the Allocation have a consistent view 42 * of memory. For example, in the case where an Allocation is used as the output 44 * {@link #syncAll syncAll(Allocation.USAGE_SCRIPT)} prior to launching the 47 * <p>An Allocation can be populated with the {@link #copyFrom} routines. For 59 public class Allocation extends BaseObj [all...] |
/external/chromium/chrome/browser/ui/gtk/ |
gtk_expanded_container.cc | 22 GtkAllocation* allocation; member in struct:__anon4581::SizeAllocateData 43 child_requisition.width = data->allocation->width - data->border_width * 2; 44 child_requisition.height = data->allocation->height - data->border_width * 2; 70 child_allocation.x += data->allocation->x; 71 child_allocation.y += data->allocation->y; 114 GtkAllocation* allocation); 143 GtkAllocation* allocation) { 144 widget->allocation = *allocation; 148 allocation->x [all...] |
gtk_chrome_shrinkable_hbox_unittest.cc | 61 // Check if all children's size allocation are inside the |box_|'s boundary. 78 int x = box_->allocation.x + border_width; 79 int width = box_->allocation.width - border_width * 2; 131 GtkAllocation allocation = { 0, 0, 0, 200 }; local 138 allocation.width = width; 140 // cause queue resize, so it's necessary to do another size allocation to 142 gtk_widget_size_allocate(box_, &allocation); 143 gtk_widget_size_allocate(box_, &allocation); 151 allocation.width = width; 154 // allocation to emulate the queue resize [all...] |
/frameworks/rs/tests/cppbasic/ |
compute.cpp | 28 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000); 29 printf("Allocation %p\n", a1.get()); 31 sp<Allocation> ain = Allocation::createTyped(rs, t); 32 sp<Allocation> aout = Allocation::createTyped(rs, t); 33 printf("Allocation %p %p\n", ain.get(), aout.get()); 38 // We read back the status from the script-side via a "failed" allocation. 43 sp<Allocation> failed_alloc = Allocation::createTyped(rs, failed_t) [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
SampleTest.java | 22 import android.renderscript.Allocation; 23 import android.renderscript.Allocation.MipmapControl; 34 Allocation mAlloc_RGBA_1D; 35 Allocation mAlloc_RGBA_2D; 44 mAlloc_RGBA_1D = Allocation.createTyped(mRS, b.setX(8).create(), 45 Allocation.MipmapControl.MIPMAP_FULL, 46 Allocation.USAGE_SCRIPT); 47 mAlloc_RGBA_2D = Allocation.createTyped(mRS, b.setX(8).setY(8).create(), 48 Allocation.MipmapControl.MIPMAP_FULL, 49 Allocation.USAGE_SCRIPT) [all...] |
/frameworks/rs/ |
rsFBOCache.h | 26 class Allocation; 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;
|
/external/qemu/memcheck/ |
memcheck_malloc_map.h | 20 * intersect in any part. Allocation descriptor maps are instantiated one per 34 /* Allocation descriptors map. */ 44 /* Initializes allocation descriptors map. 46 * map - Allocation descriptors map to initialize. 50 /* Inserts new (or replaces existing) entry in the allocation descriptors map. 58 * map - Allocation descriptors map where to insert new, or replace existing 60 * desc - Allocation descriptor to insert to the map. 73 /* Finds an entry in the allocation descriptors map that matches the given 76 * map - Allocation descriptors map where to search for an entry. 80 * memory allocation descriptor for that entry [all...] |
/frameworks/rs/cpp/ |
rsCppStructs.h | 27 // Every row in an RS allocation is guaranteed to be aligned by this amount 28 // Every row in a user-backed allocation must be aligned by this amount 41 class Allocation; 97 Element *ALLOCATION; 180 class Allocation : public BaseObj { 184 android::sp<Allocation> mAdaptedAllocation; 205 Allocation(void *id, sp<RS> rs, sp<const Type> t, uint32_t usage); 229 void copy1DRangeFrom(uint32_t off, size_t count, sp<const Allocation> data, uint32_t dataOff); 243 sp<const Allocation> data, uint32_t dataXoff, uint32_t dataYoff); 256 static sp<Allocation> createTyped(sp<RS> rs, sp<const Type> type [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterRS.java | 44 float scaleFactor, int quality, Allocation in) {} 45 protected void bindScriptValues(Allocation in) {} 57 protected Allocation getInPixelsAllocation() { 62 protected Allocation getOutPixelsAllocation() { 68 public void apply(Allocation in, Allocation out) { 97 protected void run(Allocation in, Allocation out) {} 144 protected static Allocation convertBitmap(Bitmap bitmap) { 145 return Allocation.createFromBitmap(CachingPipeline.getRenderScriptContext(), bitmap [all...] |
/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}}
|
/dalvik/vm/ |
AllocTracker.h | 17 * Allocation tracking and reporting. 29 * Enable allocation tracking. Does nothing if tracking is already enabled. 34 * Disable allocation tracking. Does nothing if tracking is not enabled. 39 * If allocation tracking is enabled, add a new entry to the set. 49 * Generate a DDM packet with all of the tracked allocation data.
|
/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/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);
|
UT_copy_test.java | 34 Allocation a1 = Allocation.createSized(rs, Element.F32_2(rs), 1024); 35 Allocation a2 = Allocation.createSized(rs, Element.F32_2(rs), 1024); 58 Allocation a1 = Allocation.createSized(rs, Element.F32_3(rs), 1024); 59 Allocation a2 = Allocation.createSized(rs, Element.F32_3(rs), 1024); 82 Allocation a1 = Allocation.createSized(rs, Element.F32_4(rs), 1024) [all...] |
/frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/ |
SampleRSActivity.java | 26 import android.renderscript.Allocation; 43 private Allocation mOutPixelsAllocation; 46 TextureViewUpdater(Allocation outAlloc, Sampler sampler) { 76 private Allocation mTwoByTwoAlloc; 77 private Allocation mCityAlloc; 98 mTwoByTwoAlloc = Allocation.createFromBitmap(mRS, mBitmapTwoByTwo, 99 Allocation.MipmapControl.MIPMAP_NONE, 100 Allocation.USAGE_SCRIPT); 102 mCityAlloc = Allocation.createFromBitmap(mRS, mBitmapCity, 103 Allocation.MipmapControl.MIPMAP_NONE [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
ScriptIntrinsic3DLUT.java | 25 * allocation. The 8 nearest values are sampled and linearly interpolated. The 30 private Allocation mLUT; 59 * Sets the {@link android.renderscript.Allocation} to be used as the lookup table. 65 public void setLUT(Allocation lut) { 85 * @param ain Input allocation 86 * @param aout Output allocation 88 public void forEach(Allocation ain, Allocation aout) {
|
ScriptIntrinsicBlur.java | 25 * specified radius to all elements of an allocation. 31 private Allocation mInput; 38 * Create an intrinsic for applying a blur to an allocation. The 62 * @param ain The input allocation 64 public void setInput(Allocation ain) { 85 * allocation. 87 * @param aout Output allocation. Must match creation element 90 public void forEach(Allocation aout) {
|
/frameworks/rs/cpu_ref/ |
rsCpuScript.h | 56 const Allocation * ain, 57 Allocation * aout, 68 virtual void setGlobalBind(uint32_t slot, Allocation *data); 77 void forEachMtlsSetup(const Allocation * ain, Allocation * aout, 86 virtual Allocation * getAllocationForPointer(const void *ptr) const; 125 Allocation **mBoundAllocs; 132 Allocation * rsdScriptGetAllocationForPointer(
|