Searched refs:Allocation (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/base/libs/rs/
H A DrsProgram.h35 void bindAllocation(Allocation *);
36 void checkUpdatedAllocation(const Allocation *);
44 ObjectBaseRef<Allocation> mConstants;
H A DrsSimpleMesh.h40 ObjectBaseRef<Allocation> mIndexBuffer;
41 ObjectBaseRef<Allocation> mPrimitiveBuffer;
42 ObjectBaseRef<Allocation> *mVertexBuffers;
H A DrsProgram.cpp38 void Program::bindAllocation(Allocation *alloc)
44 void Program::checkUpdatedAllocation(const Allocation *alloc)
H A DrsAdapter.h34 Adapter1D(Context *, Allocation *);
38 void setAllocation(Allocation *a) {mAllocation.set(a);}
54 ObjectBaseRef<Allocation> mAllocation;
68 Adapter2D(Context *, Allocation *);
76 void setAllocation(Allocation *a) {mAllocation.set(a);}
86 ObjectBaseRef<Allocation> mAllocation;
H A DrsAllocation.cpp25 Allocation::Allocation(Context *rsc, const Type *type) : ObjectBase(rsc) function in class:Allocation
49 LOGE("Allocation::Allocation, alloc failure");
53 Allocation::~Allocation()
70 void Allocation::setCpuWritable(bool)
74 void Allocation::setGpuWritable(bool)
78 void Allocation::setCpuReadable(bool)
82 void Allocation
[all...]
H A DrsAllocation.h28 class Allocation : public ObjectBase class in namespace:android::renderscript
36 Allocation(Context *rsc, const Type *);
37 virtual ~Allocation();
H A DrsProgramFragment.h42 void bindTexture(uint32_t slot, Allocation *);
58 ObjectBaseRef<Allocation> mTextures[MAX_TEXTURE];
H A DrsMesh.h37 Allocation ** mAllocations;
H A DrsSampler.h43 void bind(Allocation *);
H A DrsScript.h65 ObjectBaseRef<Allocation> mSlots[MAX_SCRIPT_BANKS];
H A DrsSimpleMesh.cpp119 sm->mVertexBuffers = new ObjectBaseRef<Allocation>[vtxCount];
141 sm->mVertexBuffers[slot].set((Allocation *)va);
147 sm->mIndexBuffer.set((Allocation *)va);
153 sm->mPrimitiveBuffer.set((Allocation *)va);
H A DrsAdapter.cpp31 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);
H A DrsProgramFragment.cpp72 Allocation *a = (Allocation *)mTextures[ct].get();
127 void ProgramFragment::bindTexture(uint32_t slot, Allocation *a)
228 pf->bindTexture(slot, static_cast<Allocation *>(a));
H A DrsProgramVertex.h70 ObjectBaseRef<Allocation> mDefaultAlloc;
H A DrsProgramVertex.cpp154 Allocation *alloc = (Allocation *)rsi_AllocationCreateTyped(rsc, mAllocType.get());
204 pv->bindAllocation(static_cast<Allocation *>(constants));
/frameworks/base/libs/rs/java/Film/src/com/android/film/
H A DFilmRS.java81 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,
158 mImages[0] = Allocation
[all...]
/frameworks/base/libs/rs/java/Rollo/src/com/android/rollo/
H A DRolloRS.java24 import android.renderscript.Allocation;
109 private Allocation[] mIcons;
110 private Allocation[] mLabels;
113 private Allocation mAllocState;
116 private Allocation mAllocIconID;
119 private Allocation mAllocLabelID;
122 private Allocation mAllocScratch;
184 mAllocScratch = Allocation.createSized(mRS,
193 mIcons = new Allocation[29];
195 mAllocIconID = Allocation
[all...]
/frameworks/base/graphics/java/android/renderscript/
H A DAllocation.java33 public class Allocation extends BaseObj { class in inherits:BaseObj
36 Allocation(int id, RenderScript rs, Type t) { method in class:Allocation
230 static public Allocation createTyped(RenderScript rs, Type type)
238 return new Allocation(id, rs, type);
241 static public Allocation createSized(RenderScript rs, Element e, int count)
253 return new Allocation(id, rs, t);
256 static public Allocation createFromBitmap(RenderScript rs, Bitmap b, Element dstFmt, boolean genMips)
261 return new Allocation(id, rs, null);
264 static public Allocation createFromBitmapBoxed(RenderScript rs, Bitmap b, Element dstFmt, boolean genMips)
269 return new Allocation(i
[all...]
H A DSimpleMesh.java37 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);
341 Allocation vertexAlloc = sm.createVertexAllocation(0);
342 Allocation indexAlloc = sm.createIndexAllocation();
H A DProgramVertex.java108 public Allocation mAlloc;
115 mAlloc = Allocation.createSized(rs, Element.USER_F32(rs), 48);
H A DProgramFragment.java48 public void bindTexture(Allocation va, int slot)
/frameworks/base/libs/rs/java/ImageProcessing/src/com/android/rs/image/
H A DImageProcessingActivity.java27 import android.renderscript.Allocation;
46 private Allocation mParamsAllocation;
50 private Allocation mInPixelsAllocation;
52 private Allocation mOutPixelsAllocation;
140 mParamsAllocation = Allocation.createTyped(mRS, mParamsType);
146 mInPixelsAllocation = Allocation.createSized(mRS, Element.USER_I32(mRS),
148 mOutPixelsAllocation = Allocation.createSized(mRS, Element.USER_I32(mRS),
/frameworks/base/libs/rs/java/Fountain/src/com/android/fountain/
H A DFountainRS.java69 private Allocation mIntAlloc;
77 mIntAlloc = Allocation.createTyped(mRS, mSDType);
95 Allocation partAlloc = mSM.createVertexAllocation(vtxSlot);
/frameworks/base/libs/binder/
H A DMemoryDealer.cpp62 MemoryDealer::Allocation::Allocation( function in class:android::MemoryDealer::Allocation
69 MemoryDealer::Allocation::~Allocation()
79 sp<IMemoryHeap> MemoryDealer::Allocation::getMemory(
116 memory = new Allocation(this, offset, size, new_memory);
/frameworks/base/include/binder/
H A DMemoryDealer.h236 class Allocation : public BnMemory { class in class:android::MemoryDealer
238 Allocation(const sp<MemoryDealer>& dealer,
240 virtual ~Allocation();

Completed in 141 milliseconds

12