Searched refs:alloc (Results 1 - 25 of 47) sorted by relevance

12

/frameworks/compile/libbcc/lib/ScriptCRT/
H A Drs_allocation.c8 Allocation_t *alloc = (Allocation_t *)a.p; local
9 return alloc->mHal.state.dimensionX;
14 Allocation_t *alloc = (Allocation_t *)a.p; local
15 return alloc->mHal.state.dimensionY;
20 Allocation_t *alloc = (Allocation_t *)a.p; local
21 return alloc->mHal.state.dimensionZ;
26 Allocation_t *alloc = (Allocation_t *)a.p; local
27 return alloc->mHal.state.hasMipmaps;
32 Allocation_t *alloc = (Allocation_t *)a.p; local
33 return alloc
38 Allocation_t *alloc = (Allocation_t *)a.p; local
46 Allocation_t *alloc = (Allocation_t *)a.p; local
55 Allocation_t *alloc = (Allocation_t *)a.p; local
65 Allocation_t *alloc = (Allocation_t *)a.p; local
[all...]
H A Drs_sample.c10 Allocation_t *alloc = (Allocation_t *)a.p; local
11 const Type_t *type = (const Type_t*)alloc->mHal.state.type;
12 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.mallocPtr;
15 const uint32_t eSize = alloc->mHal.state.elementSizeBytes;
22 Allocation_t *alloc = (Allocation_t *)a.p; local
23 const Type_t *type = (const Type_t*)alloc->mHal.state.type;
24 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.mallocPtr;
26 const uint32_t eSize = alloc->mHal.state.elementSizeBytes;
30 stride = alloc->mHal.drvState.stride;
144 Allocation_t *alloc
[all...]
/frameworks/rs/driver/
H A DrsdAllocation.cpp82 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument
85 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
91 if (alloc->mHal.state.hasFaces) {
98 static void Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) { argument
99 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
105 if (alloc->mHal.state.hasFaces) {
111 for (uint32_t lod = 0; lod < alloc->mHal.state.type->getLODCount(); lod++) {
112 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.mallocPtr;
113 p += alloc->mHal.state.type->getLODFaceOffset(lod, (RsAllocationCubemapFace)face, 0, 0);
116 if (alloc
140 UploadToTexture(const Context *rsc, const Allocation *alloc) argument
176 AllocateRenderTarget(const Context *rsc, const Allocation *alloc) argument
199 UploadToBufferObject(const Context *rsc, const Allocation *alloc) argument
222 rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument
274 rsdAllocationDestroy(const Context *rsc, Allocation *alloc) argument
304 rsdAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument
322 rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) argument
353 rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument
388 rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument
393 rsdAllocationInitSurfaceTexture(const Context *rsc, const Allocation *alloc) argument
399 IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
429 rsdAllocationSetSurfaceTexture(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
482 rsdAllocationIoSend(const Context *rsc, Allocation *alloc) argument
505 rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) argument
511 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument
530 rsdAllocationData2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument
558 rsdAllocationData3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes) argument
572 getOffsetPtr(const android::renderscript::Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face) argument
632 rsdAllocationElementData1D(const Context *rsc, const Allocation *alloc, uint32_t x, const void *data, uint32_t cIdx, uint32_t sizeBytes) argument
653 rsdAllocationElementData2D(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, const void *data, uint32_t cIdx, uint32_t sizeBytes) argument
[all...]
H A DrsdAllocation.h61 android::renderscript::Allocation *alloc,
64 android::renderscript::Allocation *alloc);
67 const android::renderscript::Allocation *alloc,
70 const android::renderscript::Allocation *alloc,
73 const android::renderscript::Allocation *alloc);
75 const android::renderscript::Allocation *alloc);
77 android::renderscript::Allocation *alloc, ANativeWindow *nw);
79 android::renderscript::Allocation *alloc);
81 android::renderscript::Allocation *alloc);
84 const android::renderscript::Allocation *alloc,
[all...]
H A DrsdMeshObj.cpp136 const Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[ct]; local
137 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
139 rsdAllocationSyncAll(rsc, alloc, RS_ALLOCATION_USAGE_SCRIPT);
146 Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[allocIndex]; local
147 DrvAllocation *drvAlloc = (DrvAllocation *)alloc->mHal.drv;
154 mAttribs[ct].ptr = (const uint8_t*)alloc->mHal.drvState.mallocPtr;
/frameworks/native/libs/utils/
H A DSharedBuffer.cpp27 SharedBuffer* SharedBuffer::alloc(size_t size) function in class:android::SharedBuffer
50 SharedBuffer* sb = alloc(mSize);
69 SharedBuffer* sb = alloc(newSize);
89 SharedBuffer* sb = alloc(new_size);
/frameworks/rs/
H A Drs_hal.h120 bool (*init)(const Context *rsc, Allocation *alloc, bool forceZero);
121 void (*destroy)(const Context *rsc, Allocation *alloc);
123 void (*resize)(const Context *rsc, const Allocation *alloc, const Type *newType,
125 void (*syncAll)(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src);
126 void (*markDirty)(const Context *rsc, const Allocation *alloc);
128 int32_t (*initSurfaceTexture)(const Context *rsc, const Allocation *alloc);
129 void (*setSurfaceTexture)(const Context *rsc, Allocation *alloc, ANativeWindow *sur);
130 void (*ioSend)(const Context *rsc, Allocation *alloc);
131 void (*ioReceive)(const Context *rsc, Allocation *alloc);
133 void (*data1D)(const Context *rsc, const Allocation *alloc,
[all...]
H A DrsProgram.cpp139 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) { argument
140 if (alloc != NULL) {
142 ALOGE("Attempt to bind alloc at slot %u, on shader id %u, but const count is %u",
147 if (alloc->getType() != mConstantTypes[slot].get()) {
148 ALOGE("Attempt to bind alloc at slot %u, on shader id %u, but types mismatch",
154 if (mConstants[slot].get() == alloc) {
160 mConstants[slot].set(alloc);
161 mHal.state.constants[slot] = alloc;
162 if (alloc) {
163 alloc
[all...]
H A DrsPath.h59 void rasterize(const BezierSegment_t *s, uint32_t num, Allocation *alloc);
H A DrsAllocation.cpp46 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
322 Allocation *alloc = Allocation::createAllocation(rsc, type, RS_ALLOCATION_USAGE_SCRIPT); local
328 uint32_t packedSize = alloc->getPackedSize();
332 ObjectBase::checkDelete(alloc);
337 alloc->setName(name.string(), name.size());
342 alloc->data(rsc, 0, 0, count, stream->getPtr() + stream->getPos(), dataSize);
344 alloc->unpackVec3Allocation(stream->getPtr() + stream->getPos(), dataSize);
348 return alloc;
603 Allocation * alloc = Allocation::createAllocation(rsc, static_cast<Type *>(vtype), usages, mips, (void *)ptr); local
604 if (!alloc) {
690 Allocation *alloc = static_cast<Allocation *>(valloc); local
695 Allocation *alloc = static_cast<Allocation *>(valloc); local
700 Allocation *alloc = static_cast<Allocation *>(valloc); local
705 Allocation *alloc = static_cast<Allocation *>(valloc); local
710 Allocation *alloc = static_cast<Allocation *>(valloc); local
[all...]
H A Drs.spec68 param RsAllocation alloc
73 param RsAllocation alloc
79 param RsAllocation alloc
85 param RsAllocation alloc
89 param RsAllocation alloc
173 param RsAllocation alloc
H A DrsAdapter.cpp81 Allocation * alloc = static_cast<Allocation *>(valloc); local
82 a->setAllocation(alloc);
199 Allocation * alloc = static_cast<Allocation *>(valloc); local
200 a->setAllocation(alloc);
H A DrsPath.cpp51 void Path::rasterize(const BezierSegment_t *s, uint32_t num, Allocation *alloc) { argument
/frameworks/compile/libbcc/runtime/BlocksRuntime/
H A DBlock_private.h131 BLOCK_EXPORT void _Block_use_GC( void *(*alloc)(const unsigned long, const bool isOne, const bool isObject),
138 BLOCK_EXPORT void _Block_use_GC5( void *(*alloc)(const unsigned long, const bool isOne, const bool isObject),
/frameworks/base/graphics/java/android/renderscript/
H A DRenderScript.java280 native void rsnAllocationCopyToBitmap(int con, int alloc, Bitmap bmp); argument
281 synchronized void nAllocationCopyToBitmap(int alloc, Bitmap bmp) { argument
283 rsnAllocationCopyToBitmap(mContext, alloc, bmp);
287 native void rsnAllocationSyncAll(int con, int alloc, int src); argument
288 synchronized void nAllocationSyncAll(int alloc, int src) { argument
290 rsnAllocationSyncAll(mContext, alloc, src);
292 native int rsnAllocationGetSurfaceTextureID(int con, int alloc); argument
293 synchronized int nAllocationGetSurfaceTextureID(int alloc) { argument
295 return rsnAllocationGetSurfaceTextureID(mContext, alloc);
297 native void rsnAllocationGetSurfaceTextureID2(int con, int alloc, SurfaceTextur argument
298 nAllocationGetSurfaceTextureID2(int alloc, SurfaceTexture st) argument
302 rsnAllocationSetSurface(int con, int alloc, Surface sur) argument
303 nAllocationSetSurface(int alloc, Surface sur) argument
307 rsnAllocationIoSend(int con, int alloc) argument
308 nAllocationIoSend(int alloc) argument
312 rsnAllocationIoReceive(int con, int alloc) argument
313 nAllocationIoReceive(int alloc) argument
319 rsnAllocationGenerateMipmaps(int con, int alloc) argument
320 nAllocationGenerateMipmaps(int alloc) argument
324 rsnAllocationCopyFromBitmap(int con, int alloc, Bitmap bmp) argument
325 nAllocationCopyFromBitmap(int alloc, Bitmap bmp) argument
489 rsnScriptBindAllocation(int con, int script, int alloc, int slot) argument
490 nScriptBindAllocation(int script, int alloc, int slot) argument
[all...]
H A DAllocationAdapter.java28 AllocationAdapter(int id, RenderScript rs, Allocation alloc) { argument
29 super(id, rs, alloc.mType, alloc.mUsage);
30 mAdaptedAllocation = alloc;
H A DMesh.java361 Allocation alloc = null;
364 alloc = Allocation.createTyped(mRS, entry.t, mUsage);
366 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage);
368 vertexBuffers[ct] = alloc;
369 vtx[ct] = alloc.getID(mRS);
373 Allocation alloc = null;
376 alloc = Allocation.createTyped(mRS, entry.t, mUsage);
378 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage);
380 int allocID = (alloc == null) ? 0 : alloc
[all...]
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
H A DFakeBackgroundService.java49 int[] alloc = new int[FakeApp.PAGE_SIZE/4];
50 mAllocs.add(alloc);
53 alloc[j] = VAL;
/frameworks/base/graphics/jni/
H A Dandroid_renderscript_RenderScript.cpp490 nAllocationSetSurface(JNIEnv *_env, jobject _this, RsContext con, RsAllocation alloc, jobject sur) argument
492 LOG_API("nAllocationSetSurfaceTexture, con(%p), alloc(%p), surface(%p)",
493 con, alloc, (Surface *)sur);
500 rsAllocationSetSurface(con, alloc, static_cast<ANativeWindow *>(s.get()));
504 nAllocationIoSend(JNIEnv *_env, jobject _this, RsContext con, RsAllocation alloc) argument
506 LOG_API("nAllocationIoSend, con(%p), alloc(%p)", con, alloc);
507 rsAllocationIoSend(con, alloc);
511 nAllocationIoReceive(JNIEnv *_env, jobject _this, RsContext con, RsAllocation alloc) argument
513 LOG_API("nAllocationIoReceive, con(%p), alloc(
519 nAllocationGenerateMipmaps(JNIEnv *_env, jobject _this, RsContext con, jint alloc) argument
558 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jobject jbitmap) argument
575 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jobject jbitmap) argument
596 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) argument
606 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) argument
616 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) argument
626 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) argument
637 nAllocationElementData1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyteArray data, int sizeBytes) argument
647 nAllocationData2D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jshortArray data, int sizeBytes) argument
658 nAllocationData2D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jbyteArray data, int sizeBytes) argument
669 nAllocationData2D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jintArray data, int sizeBytes) argument
680 nAllocationData2D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jfloatArray data, int sizeBytes) argument
715 nAllocationRead_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jintArray data) argument
726 nAllocationRead_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jshortArray data) argument
737 nAllocationRead_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jbyteArray data) argument
748 nAllocationRead_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jfloatArray data) argument
766 nAllocationResize1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint dimX) argument
773 nAllocationResize2D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint dimX, jint dimY) argument
905 nScriptBindAllocation(JNIEnv *_env, jobject _this, RsContext con, jint script, jint alloc, jint slot) argument
[all...]
/frameworks/base/tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java151 private synchronized void filterAlloc(Allocation alloc, Sampler sampler) { argument
153 mScript.invoke_setSampleData(alloc, mTwoByTwoAlloc, sampler);
154 mScript.forEach_root(alloc);
155 alloc.ioSendOutput();
/frameworks/native/include/ui/
H A DGraphicBufferAllocator.h65 status_t alloc(uint32_t w, uint32_t h, PixelFormat format, int usage,
/frameworks/native/include/utils/
H A DSharedBuffer.h39 static SharedBuffer* alloc(size_t size);
/frameworks/native/libs/ui/
H A DGraphicBufferAllocator.cpp93 status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format, function in class:android::GraphicBufferAllocator
105 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
107 ALOGW_IF(err, "alloc(%u, %u, %d, %08x, ...) failed %d (%s)",
/frameworks/base/libs/androidfw/
H A DCursorWindow.cpp173 uint32_t fieldDirOffset = alloc(fieldDirSize, true /*aligned*/);
200 uint32_t CursorWindow::alloc(size_t size, bool aligned) { function in class:android::CursorWindow
243 chunk->nextChunkOffset = alloc(sizeof(RowSlotChunk), true /*aligned*/);
292 uint32_t offset = alloc(size);
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
H A DUT_alloc.java59 ScriptC_alloc s = new ScriptC_alloc(pRS, mRes, R.raw.alloc);

Completed in 441 milliseconds

12