/external/webkit/JavaScriptCore/jit/ |
ExecutableAllocatorWin.cpp | 43 ExecutablePool::Allocation ExecutablePool::systemAlloc(size_t n) 45 void* allocation = VirtualAlloc(0, n, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); local 46 if (!allocation) 48 ExecutablePool::Allocation alloc = {reinterpret_cast<char*>(allocation), n}; 52 void ExecutablePool::systemRelease(const ExecutablePool::Allocation& alloc)
|
ExecutableAllocatorSymbian.cpp | 50 ExecutablePool::Allocation ExecutablePool::systemAlloc(size_t n) 56 char* allocation = reinterpret_cast<char*>(codeChunk->Base()); local 57 if (!allocation) 59 ExecutablePool::Allocation alloc = { allocation, n, codeChunk }; 63 void ExecutablePool::systemRelease(const ExecutablePool::Allocation& alloc)
|
ExecutableAllocatorPosix.cpp | 45 ExecutablePool::Allocation ExecutablePool::systemAlloc(size_t n) 47 void* allocation = mmap(NULL, n, INITIAL_PROTECTION_FLAGS, MAP_PRIVATE | MAP_ANON, VM_TAG_FOR_EXECUTABLEALLOCATOR_MEMORY, 0); local 48 if (allocation == MAP_FAILED) 50 ExecutablePool::Allocation alloc = { reinterpret_cast<char*>(allocation), n }; 54 void ExecutablePool::systemRelease(const ExecutablePool::Allocation& alloc)
|
ExecutableAllocator.h | 68 CRASH(); // Allocation is too large 85 struct Allocation { 92 typedef Vector<Allocation, 2> AllocationList; 129 static Allocation systemAlloc(size_t n); 130 static void systemRelease(const Allocation& alloc); 258 Allocation mem = systemAlloc(allocSize); 270 Allocation result = systemAlloc(allocSize); 276 // Replace allocation pool
|
/frameworks/base/libs/rs/ |
rsSimpleMesh.h | 40 ObjectBaseRef<Allocation> mIndexBuffer; 41 ObjectBaseRef<Allocation> mPrimitiveBuffer; 42 ObjectBaseRef<Allocation> *mVertexBuffers;
|
rsAdapter.h | 31 // By policy this allocation will hold a pointer to the type 34 Adapter1D(Context *, Allocation *); 38 void setAllocation(Allocation *a) {mAllocation.set(a);} 54 ObjectBaseRef<Allocation> mAllocation; 65 // By policy this allocation will hold a pointer to the type 68 Adapter2D(Context *, Allocation *); 76 void setAllocation(Allocation *a) {mAllocation.set(a);} 86 ObjectBaseRef<Allocation> mAllocation;
|
rsAllocation.cpp | 26 Allocation::Allocation(Context *rsc, const Type *type) : ObjectBase(rsc) 32 LOGE("Allocation::Allocation, alloc failure"); 36 Allocation::Allocation(Context *rsc, const Type *type, void *bmp, 47 void Allocation::init(Context *rsc, const Type *type) 76 Allocation::~Allocation() 97 void Allocation::setCpuWritable(bool [all...] |
rsProgram.h | 42 void bindAllocation(Allocation *, uint32_t slot); 47 void bindTexture(uint32_t slot, Allocation *); 75 ObjectBaseRef<Allocation> mConstants[MAX_UNIFORMS]; 94 ObjectBaseRef<Allocation> mTextures[MAX_TEXTURE];
|
rsAllocation.h | 28 class Allocation : public ObjectBase 30 // The graphics equilivent of malloc. The allocation contains a structure of elements. 33 // By policy this allocation will hold a pointer to the type 35 Allocation(Context *rsc, const Type *); 36 Allocation(Context *rsc, const Type *, void *bmp, void *callbackData, RsBitmapCallback_t callback); 38 virtual ~Allocation();
|
rsMesh.h | 37 Allocation ** mAllocations;
|
rsSampler.h | 43 void bind(Allocation *);
|
rsScript.h | 65 ObjectBaseRef<Allocation> mSlots[MAX_SCRIPT_BANKS];
|
rsSimpleMesh.cpp | 128 sm->mVertexBuffers = new ObjectBaseRef<Allocation>[vtxCount]; 150 sm->mVertexBuffers[slot].set((Allocation *)va); 156 sm->mIndexBuffer.set((Allocation *)va); 162 sm->mPrimitiveBuffer.set((Allocation *)va);
|
rsAdapter.cpp | 31 Adapter1D::Adapter1D(Context *rsc, Allocation *a) : ObjectBase(rsc) 86 Allocation * alloc = static_cast<Allocation *>(valloc); 139 Adapter2D::Adapter2D(Context *rsc, Allocation *a) : ObjectBase(rsc) 203 Allocation * alloc = static_cast<Allocation *>(valloc);
|
/frameworks/base/libs/rs/java/Film/src/com/android/film/ |
FilmRS.java | 81 private Allocation mImages[]; 82 private Allocation mAllocIDs; 83 private Allocation mAllocPos; 84 private Allocation mAllocState; 85 private Allocation mAllocPV; 86 private Allocation mAllocOffsetsTex; 87 private Allocation mAllocOffsets; 153 mImages = new Allocation[13]; 154 mAllocIDs = Allocation.createSized(mRS, 159 mImages[0] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p01, ie, true) [all...] |
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis4/ |
Visualization4RS.java | 28 import android.renderscript.Allocation; 64 private Allocation mState; 69 private Allocation[] mTextures; 104 // Create an allocation from the type we just created. 105 mState = Allocation.createTyped(mRS, mStateType); 117 mTextures = new Allocation[6]; 118 mTextures[0] = Allocation.createFromBitmapResourceBoxed(mRS, mResources, R.drawable.background, Element.RGBA_8888(mRS), false); 120 mTextures[1] = Allocation.createFromBitmapResourceBoxed(mRS, mResources, R.drawable.frame, Element.RGBA_8888(mRS), false); 122 mTextures[2] = Allocation.createFromBitmapResourceBoxed(mRS, mResources, R.drawable.peak_on, Element.RGBA_8888(mRS), false); 124 mTextures[3] = Allocation.createFromBitmapResourceBoxed(mRS, mResources, R.drawable.peak_off, Element.RGBA_8888(mRS), false) [all...] |
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/ |
NexusRS.java | 34 import android.renderscript.Allocation; 74 private Allocation mState; 80 private Allocation mCommandAllocation; 86 private Allocation[] mTextures = new Allocation[TEXTURES_COUNT]; 178 mState = Allocation.createTyped(mRS, mStateType); 187 mCommandAllocation = Allocation.createTyped(mRS, mCommandType); 203 private Allocation loadTexture(int id, String name) { 204 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mResources local 212 final Allocation allocation = Allocation.createFromBitmap(mRS, b, RGBA_8888(mRS), false); local [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
Allocation.java | 33 public class Allocation extends BaseObj { 37 Allocation(int id, RenderScript rs, Type t) { 85 throw new IllegalArgumentException("Array too small for allocation type."); 183 throw new IllegalStateException("allocation failed."); 226 throw new IllegalStateException("allocation failed."); 240 static public Allocation createTyped(RenderScript rs, Type type) 248 return new Allocation(id, rs, type); 251 static public Allocation createSized(RenderScript rs, Element e, int count) 263 return new Allocation(id, rs, t); 291 static public Allocation createFromBitmap(RenderScript rs, Bitmap b, Element dstFmt, boolean genMips [all...] |
SimpleMesh.java | 37 public void bindVertexAllocation(Allocation a, int slot) { 42 public void bindIndexAllocation(Allocation a) { 47 public Allocation createVertexAllocation(int slot) { 49 return Allocation.createTyped(mRS, mVertexTypes[slot]); 52 public Allocation createIndexAllocation() { 54 return Allocation.createTyped(mRS, mIndexType); 349 Allocation vertexAlloc = sm.createVertexAllocation(0); 350 Allocation indexAlloc = sm.createIndexAllocation();
|
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/ |
FallRS.java | 25 import android.renderscript.Allocation; 76 private Allocation mState; 77 private Allocation mDropState; 82 private Allocation mUniformAlloc; 247 mState = Allocation.createTyped(mRS, mStateType); 255 mDropState = Allocation.createTyped(mRS, mDropType); 260 final Allocation[] textures = new Allocation[TEXTURES_COUNT]; 270 private Allocation loadTexture(int id, String name) { 271 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mResources local 279 final Allocation allocation = Allocation.createFromBitmap(mRS, b, RGBA_8888(mRS), false); local [all...] |
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/ |
Visualization5RS.java | 24 import android.renderscript.Allocation; 69 private Allocation mState; 76 private Allocation[] mTextures; 83 protected Allocation mPointAlloc; 88 private Allocation mLineIdxAlloc; 164 // Create an allocation from the type we just created. 165 mState = Allocation.createTyped(mRS, mStateType); 175 mTextures = new Allocation[8]; 176 mTextures[0] = Allocation.createFromBitmapResourceBoxed(mRS, mResources, R.drawable.background, Element.RGBA_8888(mRS), true); 178 mTextures[1] = Allocation.createFromBitmapResourceBoxed(mRS, mResources, R.drawable.frame, Element.RGBA_8888(mRS), true) [all...] |
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/ |
GalaxyRS.java | 24 import android.renderscript.Allocation; 82 private Allocation[] mTextures; 86 private Allocation mState; 87 private Allocation mParticlesBuffer; 196 mState = Allocation.createTyped(mRS, mStateType); 201 mTextures = new Allocation[TEXTURES_COUNT]; 203 final Allocation[] textures = mTextures; 214 private Allocation loadTexture(int id, String name) { 215 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mResources local 224 final Allocation allocation = Allocation.createFromBitmap(mRS, b, RGBA_8888(mRS), false); local [all...] |
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/ |
GrassRS.java | 25 import android.renderscript.Allocation; 97 private Allocation[] mTextures; 100 private Allocation mState; 103 private Allocation mBlades; 104 private Allocation mBladesBuffer; 105 private Allocation mBladesIndicies; 245 mState = Allocation.createTyped(mRS, mStateType); 254 mBlades = Allocation.createTyped(mRS, mBladesType); 291 final Allocation buffer = mBladesBuffer; 348 mTextures = new Allocation[TEXTURES_COUNT] 369 final Allocation allocation = Allocation.createTyped(mRS, builder.create()); local 386 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mResources, local [all...] |
/frameworks/base/libs/rs/java/ImageProcessing/src/com/android/rs/image/ |
ImageProcessingActivity.java | 27 import android.renderscript.Allocation; 48 private Allocation mParamsAllocation; 52 private Allocation mInPixelsAllocation; 54 private Allocation mOutPixelsAllocation; 174 mParamsAllocation = Allocation.createTyped(mRS, mParamsType); 180 mInPixelsAllocation = Allocation.createSized(mRS, 183 mOutPixelsAllocation = Allocation.createSized(mRS,
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/ |
GenericWaveRS.java | 25 import android.renderscript.Allocation; 58 protected Allocation mState; 62 protected Allocation mPointAlloc; 67 private Allocation mLineIdxAlloc; 79 private Allocation mTexture; 120 // Create an allocation from the type we just created. 121 mState = Allocation.createTyped(mRS, mStateType); 122 // set our java object as the data for the renderscript allocation 156 // Create the Allocation for the vertices 162 // Create the Allocation for the indice [all...] |