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

123

/frameworks/rs/
H A Drs_native.spec3 param RsAllocation alloc
7 param RsAllocation alloc
H A Drs_hal.h146 bool (*init)(const Context *rsc, Allocation *alloc, bool forceZero);
147 void (*destroy)(const Context *rsc, Allocation *alloc);
149 void (*resize)(const Context *rsc, const Allocation *alloc, const Type *newType,
151 void (*syncAll)(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src);
152 void (*markDirty)(const Context *rsc, const Allocation *alloc);
154 void * (*getSurface)(const Context *rsc, const Allocation *alloc);
155 void (*setSurface)(const Context *rsc, Allocation *alloc, ANativeWindow *sur);
156 void (*ioSend)(const Context *rsc, Allocation *alloc);
157 void (*ioReceive)(const Context *rsc, Allocation *alloc);
159 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 DrsAdapter.cpp62 Allocation * alloc = static_cast<Allocation *>(valloc); local
63 a->setAllocation(alloc);
136 Allocation * alloc = static_cast<Allocation *>(valloc); local
137 a->setAllocation(alloc);
H A DrsPath.h59 void rasterize(const BezierSegment_t *s, uint32_t num, Allocation *alloc);
H A DrsAllocation.cpp64 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
370 Allocation *alloc = Allocation::createAllocation(rsc, type, RS_ALLOCATION_USAGE_SCRIPT); local
376 uint32_t packedSize = alloc->getPackedSize();
380 ObjectBase::checkDelete(alloc);
385 alloc->setName(name.string(), name.size());
390 alloc->data(rsc, 0, 0, count, stream->getPtr() + stream->getPos(), dataSize);
392 alloc->unpackVec3Allocation(rsc, stream->getPtr() + stream->getPos(), dataSize);
396 return alloc;
488 Allocation *alloc = static_cast<Allocation *>(va); local
489 rsc->mHal.funcs.allocation.generateMipmaps(rsc, alloc);
555 Allocation * alloc = Allocation::createAllocation(rsc, static_cast<Type *>(vtype), usages, mips, (void*)ptr); local
657 Allocation *alloc = static_cast<Allocation *>(valloc); local
663 Allocation *alloc = static_cast<Allocation *>(valloc); local
668 Allocation *alloc = static_cast<Allocation *>(valloc); local
673 Allocation *alloc = static_cast<Allocation *>(valloc); local
[all...]
/frameworks/rs/driver/
H A DrsdAllocation.cpp92 uint8_t *GetOffsetPtr(const android::renderscript::Allocation *alloc, argument
95 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
96 ptr += face * alloc->mHal.drvState.faceOffset;
97 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride;
98 ptr += yoff * alloc->mHal.drvState.lod[lod].stride;
99 ptr += xoff * alloc->mHal.state.elementSizeBytes;
104 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument
108 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
114 if (alloc
123 Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) argument
165 UploadToTexture(const Context *rsc, const Allocation *alloc) argument
203 AllocateRenderTarget(const Context *rsc, const Allocation *alloc) argument
228 UploadToBufferObject(const Context *rsc, const Allocation *alloc) argument
294 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument
362 rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument
460 rsdAllocationDestroy(const Context *rsc, Allocation *alloc) argument
513 rsdAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument
541 rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) argument
575 rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument
614 rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument
626 rsdAllocationGetSurface(const Context *rsc, const Allocation *alloc) argument
648 IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
673 rsdAllocationSetSurface(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
765 rsdAllocationIoSend(const Context *rsc, Allocation *alloc) argument
793 rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) argument
827 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, const void *data, size_t sizeBytes) argument
848 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, size_t stride) argument
899 rsdAllocationData3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) argument
938 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, void *data, size_t sizeBytes) argument
950 rsdAllocationRead2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) argument
979 rsdAllocationRead3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) argument
1009 rsdAllocationLock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
1014 rsdAllocationUnlock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
1101 rsdAllocationElementData1D(const Context *rsc, const Allocation *alloc, uint32_t x, const void *data, uint32_t cIdx, size_t sizeBytes) argument
1121 rsdAllocationElementData2D(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, const void *data, uint32_t cIdx, size_t sizeBytes) argument
1141 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1159 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1177 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1195 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument
[all...]
H A DrsdAllocation.h57 const android::renderscript::Allocation *alloc; member in class:DrvAllocation::NewBufferListener
96 android::renderscript::Allocation *alloc,
99 android::renderscript::Allocation *alloc);
102 const android::renderscript::Allocation *alloc,
105 const android::renderscript::Allocation *alloc,
108 const android::renderscript::Allocation *alloc);
110 const android::renderscript::Allocation *alloc);
112 android::renderscript::Allocation *alloc, ANativeWindow *nw);
114 android::renderscript::Allocation *alloc);
116 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.lod[0].mallocPtr;
/frameworks/compile/libbcc/lib/Renderscript/runtime/
H A Drs_allocation.c8 Allocation_t *alloc = (Allocation_t *)a.p; local
9 return alloc->mHal.drvState.lod[0].dimX;
14 Allocation_t *alloc = (Allocation_t *)a.p; local
15 return alloc->mHal.drvState.lod[0].dimY;
20 Allocation_t *alloc = (Allocation_t *)a.p; local
21 return alloc->mHal.drvState.lod[0].dimZ;
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
39 Allocation_t *alloc = (Allocation_t *)a.p; local
156 Allocation_t *alloc = (Allocation_t *)a.p; local
164 Allocation_t *alloc = (Allocation_t *)a.p; local
173 Allocation_t *alloc = (Allocation_t *)a.p; local
182 Allocation_t *alloc = (Allocation_t *)a.p; local
190 Allocation_t *alloc = (Allocation_t *)a.p; local
199 Allocation_t *alloc = (Allocation_t *)a.p; local
260 Allocation_t *alloc = (Allocation_t *)a.p; local
284 Allocation_t *alloc = (Allocation_t *)a.p; local
[all...]
H A Drs_sample.c269 getBilinearSample1D(const Allocation_t *alloc, float2 weights, argument
273 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
319 getBilinearSample2D(const Allocation_t *alloc, float w0, float w1, float w2, float w3, argument
323 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
324 size_t stride = alloc->mHal.drvState.lod[lod].stride;
351 getNearestSample(const Allocation_t *alloc, uint32_t iPixel, rs_data_kind dk, argument
354 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
388 getNearestSample(const Allocation_t *alloc, uint2 iPixel, rs_data_kind dk, argument
391 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
392 size_t stride = alloc
424 sample_LOD_LinearPixel(const Allocation_t *alloc, const Type_t *type, rs_data_kind dk, rs_data_type dt, rs_sampler s, float uv, uint32_t lod) argument
457 sample_LOD_NearestPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler s, float uv, uint32_t lod) argument
471 sample_LOD_LinearPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler s, float2 uv, uint32_t lod) argument
521 sample_LOD_NearestPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler s, float2 uv, uint32_t lod) argument
552 const Allocation_t *alloc = (const Allocation_t *)a.p; local
596 const Allocation_t *alloc = (const Allocation_t *)a.p; local
645 const Allocation_t *alloc = (const Allocation_t *)a.p; local
[all...]
/frameworks/base/libs/hwui/
H A DDisplayListRenderer.cpp151 addDrawOp(new (alloc()) DrawFunctorOp(functor));
157 addStateOp(new (alloc()) SaveOp(flags));
180 addStateOp(new (alloc()) SaveLayerOp(left, top, right, bottom, alpha, mode, flags));
193 addStateOp(new (alloc()) RotateOp(degrees));
198 addStateOp(new (alloc()) ScaleOp(sx, sy));
203 addStateOp(new (alloc()) SkewOp(sx, sy));
209 addStateOp(new (alloc()) SetMatrixOp(matrix));
215 addStateOp(new (alloc()) ConcatMatrixOp(matrix));
221 addStateOp(new (alloc()) ClipRectOp(left, top, right, bottom, op));
227 addStateOp(new (alloc()) ClipPathO
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicYuvToRGB.cpp43 ObjectBaseRef<Allocation> alloc; member in class:android::renderscript::RsdCpuScriptIntrinsicYuvToRGB
56 alloc.set(static_cast<Allocation *>(data));
112 if (!cp->alloc.get()) {
116 const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
118 size_t strideY = cp->alloc->mHal.drvState.lod[0].stride;
121 if (cp->alloc->mHal.drvState.lod[0].dimY == 0) {
127 // ALOGE("dimX, %d, dimY, %d", cp->alloc->mHal.drvState.lod[0].dimX, cp->alloc->mHal.drvState.lod[0].dimY);
134 switch (cp->alloc->mHal.state.yuv) {
141 const uchar *pinUV = (const uchar *)cp->alloc
[all...]
H A DrsCpuIntrinsicConvolve5x5.cpp42 ObjectBaseRef<Allocation> alloc; member in class:android::renderscript::RsdCpuScriptIntrinsicConvolve5x5
57 alloc.set(static_cast<Allocation *>(data));
127 if (!cp->alloc.get()) {
131 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
132 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride;
192 alloc.clear();
/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/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp335 nAllocationGenerateMipmaps(JNIEnv *_env, jobject _this, RsContext con, jint alloc) argument
337 LOG_API("nAllocationGenerateMipmaps, con(%p), a(%p)", con, (RsAllocation)alloc);
338 rsAllocationGenerateMipmaps(con, (RsAllocation)alloc);
403 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jobject jbitmap) argument
413 rsAllocation2DData(con, (RsAllocation)alloc, 0, 0,
421 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jobject jbitmap) argument
431 rsAllocationCopyToBitmap(con, (RsAllocation)alloc, pixels, GetBitmapSize(_env, jbitmap));
439 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) argument
442 LOG_API("nAllocation1DData_i, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
444 rsAllocation1DData(con, (RsAllocation)alloc, offse
449 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) argument
459 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) argument
469 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) argument
480 nAllocationElementData1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyteArray data, int sizeBytes) argument
490 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
501 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
512 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
523 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
558 nAllocationData3D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jshortArray data, int sizeBytes) argument
569 nAllocationData3D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jbyteArray data, int sizeBytes) argument
580 nAllocationData3D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jintArray data, int sizeBytes) argument
591 nAllocationData3D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jfloatArray data, int sizeBytes) argument
624 nAllocationRead_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jintArray data) argument
635 nAllocationRead_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jshortArray data) argument
646 nAllocationRead_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jbyteArray data) argument
657 nAllocationRead_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jfloatArray data) argument
675 nAllocationResize1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint dimX) argument
684 nScriptBindAllocation(JNIEnv *_env, jobject _this, RsContext con, jint script, jint alloc, jint slot) argument
949 nScriptGroupSetInput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) argument
957 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) argument
[all...]
/frameworks/base/graphics/jni/
H A Dandroid_renderscript_RenderScript.cpp487 nAllocationSetSurface(JNIEnv *_env, jobject _this, RsContext con, RsAllocation alloc, jobject sur) argument
489 LOG_API("nAllocationSetSurface, con(%p), alloc(%p), surface(%p)",
490 con, alloc, (Surface *)sur);
497 rsAllocationSetSurface(con, alloc, static_cast<ANativeWindow *>(s.get()));
501 nAllocationIoSend(JNIEnv *_env, jobject _this, RsContext con, RsAllocation alloc) argument
503 LOG_API("nAllocationIoSend, con(%p), alloc(%p)", con, alloc);
504 rsAllocationIoSend(con, alloc);
508 nAllocationIoReceive(JNIEnv *_env, jobject _this, RsContext con, RsAllocation alloc) argument
510 LOG_API("nAllocationIoReceive, con(%p), alloc(
516 nAllocationGenerateMipmaps(JNIEnv *_env, jobject _this, RsContext con, jint alloc) argument
571 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jobject jbitmap) argument
588 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jobject jbitmap) argument
609 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) argument
619 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) argument
629 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) argument
639 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) argument
650 nAllocationElementData1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyteArray data, int sizeBytes) argument
660 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
671 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
682 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
693 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
728 nAllocationData3D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jshortArray data, int sizeBytes) argument
739 nAllocationData3D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jbyteArray data, int sizeBytes) argument
750 nAllocationData3D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jintArray data, int sizeBytes) argument
761 nAllocationData3D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jfloatArray data, int sizeBytes) argument
794 nAllocationRead_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jintArray data) argument
805 nAllocationRead_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jshortArray data) argument
816 nAllocationRead_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jbyteArray data) argument
827 nAllocationRead_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jfloatArray data) argument
845 nAllocationResize1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint dimX) argument
977 nScriptBindAllocation(JNIEnv *_env, jobject _this, RsContext con, jint script, jint alloc, jint slot) argument
1288 nScriptGroupSetInput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) argument
1296 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) argument
[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/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DRenderScript.java253 native void rsnAllocationCopyToBitmap(int con, int alloc, Bitmap bmp); argument
254 synchronized void nAllocationCopyToBitmap(int alloc, Bitmap bmp) { argument
256 rsnAllocationCopyToBitmap(mContext, alloc, bmp);
260 native void rsnAllocationSyncAll(int con, int alloc, int src); argument
261 synchronized void nAllocationSyncAll(int alloc, int src) { argument
263 rsnAllocationSyncAll(mContext, alloc, src);
265 native void rsnAllocationIoSend(int con, int alloc); argument
266 synchronized void nAllocationIoSend(int alloc) { argument
268 rsnAllocationIoSend(mContext, alloc);
270 native void rsnAllocationIoReceive(int con, int alloc); argument
271 nAllocationIoReceive(int alloc) argument
277 rsnAllocationGenerateMipmaps(int con, int alloc) argument
278 nAllocationGenerateMipmaps(int alloc) argument
282 rsnAllocationCopyFromBitmap(int con, int alloc, Bitmap bmp) argument
283 nAllocationCopyFromBitmap(int alloc, Bitmap bmp) argument
439 rsnScriptBindAllocation(int con, int script, int alloc, int slot) argument
440 nScriptBindAllocation(int script, int alloc, int slot) argument
553 rsnScriptGroupSetInput(int con, int group, int kernel, int alloc) argument
554 nScriptGroupSetInput(int group, int kernel, int alloc) argument
559 rsnScriptGroupSetOutput(int con, int group, int kernel, int alloc) argument
560 nScriptGroupSetOutput(int group, int kernel, int alloc) argument
[all...]
/frameworks/base/graphics/java/android/renderscript/
H A DRenderScript.java320 native void rsnAllocationCopyToBitmap(int con, int alloc, Bitmap bmp); argument
321 synchronized void nAllocationCopyToBitmap(int alloc, Bitmap bmp) { argument
323 rsnAllocationCopyToBitmap(mContext, alloc, bmp);
327 native void rsnAllocationSyncAll(int con, int alloc, int src); argument
328 synchronized void nAllocationSyncAll(int alloc, int src) { argument
330 rsnAllocationSyncAll(mContext, alloc, src);
332 native Surface rsnAllocationGetSurface(int con, int alloc); argument
333 synchronized Surface nAllocationGetSurface(int alloc) { argument
335 return rsnAllocationGetSurface(mContext, alloc);
337 native void rsnAllocationSetSurface(int con, int alloc, Surfac argument
338 nAllocationSetSurface(int alloc, Surface sur) argument
342 rsnAllocationIoSend(int con, int alloc) argument
343 nAllocationIoSend(int alloc) argument
347 rsnAllocationIoReceive(int con, int alloc) argument
348 nAllocationIoReceive(int alloc) argument
354 rsnAllocationGenerateMipmaps(int con, int alloc) argument
355 nAllocationGenerateMipmaps(int alloc) argument
359 rsnAllocationCopyFromBitmap(int con, int alloc, Bitmap bmp) argument
360 nAllocationCopyFromBitmap(int alloc, Bitmap bmp) argument
559 rsnScriptBindAllocation(int con, int script, int alloc, int slot) argument
560 nScriptBindAllocation(int script, int alloc, int slot) argument
701 rsnScriptGroupSetInput(int con, int group, int kernel, int alloc) argument
702 nScriptGroupSetInput(int group, int kernel, int alloc) argument
707 rsnScriptGroupSetOutput(int con, int group, int kernel, int alloc) argument
708 nScriptGroupSetOutput(int group, int kernel, int alloc) argument
[all...]
H A DAllocationAdapter.java29 AllocationAdapter(int id, RenderScript rs, Allocation alloc) { argument
30 super(id, rs, alloc.mType, alloc.mUsage);
31 mAdaptedAllocation = alloc;
H A DMesh.java362 Allocation alloc = null;
365 alloc = Allocation.createTyped(mRS, entry.t, mUsage);
367 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage);
369 vertexBuffers[ct] = alloc;
370 vtx[ct] = alloc.getID(mRS);
374 Allocation alloc = null;
377 alloc = Allocation.createTyped(mRS, entry.t, mUsage);
379 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage);
381 int allocID = (alloc == null) ? 0 : alloc
[all...]
/frameworks/native/include/utils/
H A DLinearAllocator.h52 void* alloc(size_t size);
H A DSharedBuffer.h39 static SharedBuffer* alloc(size_t size);
/frameworks/native/include/ui/
H A DGraphicBufferAllocator.h65 status_t alloc(uint32_t w, uint32_t h, PixelFormat format, int usage,

Completed in 466 milliseconds

123