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

123

/frameworks/support/v8/renderscript/jni/
H A Dandroid_rscompat_usage_io_driver.cpp15 static bool IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) { argument
16 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
28 alloc->mHal.drvState.lod[0].mallocPtr = dst;
29 alloc->mHal.drvState.lod[0].stride = drv->wndBuffer->stride * alloc->mHal.state.elementSizeBytes;
35 Allocation *alloc = (Allocation *)allocR; local
36 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
49 r = ANativeWindow_setBuffersGeometry(nw, alloc->mHal.drvState.lod[0].dimX,
50 alloc->mHal.drvState.lod[0].dimY,
57 IoGetBuffer(rsc, alloc, n
71 rscAllocationDestroy(const Context *rsc, Allocation *alloc) argument
96 rscAllocationIoSend(const Context *rsc, Allocation *alloc) argument
[all...]
H A Dandroid_rscompat_usage_io.cpp9 extern "C" void AllocationSetSurface(JNIEnv *_env, jobject _this, RsContext con, RsAllocation alloc, jobject sur, dispatchTable dispatchTab) argument
11 LOG_API("nAllocationSetSurface, con(%p), alloc(%p), surface(%p)",
12 con, alloc, sur);
18 dispatchTab.AllocationSetSurface(con, alloc, s);
/frameworks/rs/driver/
H A DrsdAllocation.cpp91 uint8_t *GetOffsetPtr(const android::renderscript::Allocation *alloc, argument
94 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
95 ptr += face * alloc->mHal.drvState.faceOffset;
96 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride;
97 ptr += yoff * alloc->mHal.drvState.lod[lod].stride;
98 ptr += xoff * alloc->mHal.state.elementSizeBytes;
103 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument
107 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
113 if (alloc
122 Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) argument
164 UploadToTexture(const Context *rsc, const Allocation *alloc) argument
202 AllocateRenderTarget(const Context *rsc, const Allocation *alloc) argument
227 UploadToBufferObject(const Context *rsc, const Allocation *alloc) argument
306 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument
374 rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument
479 rsdAllocationAdapterOffset(const Context *rsc, const Allocation *alloc) argument
502 rsdAllocationAdapterInit(const Context *rsc, Allocation *alloc) argument
515 rsdAllocationDestroy(const Context *rsc, Allocation *alloc) argument
574 rsdAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument
602 rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) argument
636 rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument
681 rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument
687 IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
712 rsdAllocationSetSurface(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
802 rsdAllocationIoSend(const Context *rsc, Allocation *alloc) argument
830 rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) argument
843 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, const void *data, size_t sizeBytes) argument
863 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
923 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
962 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, void *data, size_t sizeBytes) argument
974 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
1003 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
1033 rsdAllocationLock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
1038 rsdAllocationUnlock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
1125 rsdAllocationElementData(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, uint32_t z, const void *data, uint32_t cIdx, size_t sizeBytes) argument
1144 rsdAllocationElementRead(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, uint32_t z, void *data, uint32_t cIdx, size_t sizeBytes) argument
1157 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1175 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1193 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1211 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument
1233 rsdAllocationGrallocBits(const android::renderscript::Context *rsc, android::renderscript::Allocation *alloc) argument
1239 rsdAllocationUpdateCachedObject(const Context *rsc, const Allocation *alloc, rs_allocation *obj) argument
[all...]
H A DrsdSampler.cpp45 const Sampler *alloc,
48 obj->p = alloc;
51 if (alloc != nullptr) {
52 obj->v1 = alloc->mHal.drv;
44 rsdSamplerUpdateCachedObject(const Context *rsc, const Sampler *alloc, rs_sampler *obj) argument
H A DrsdAllocation.h83 android::renderscript::Allocation *alloc);
85 android::renderscript::Allocation *alloc,
88 android::renderscript::Allocation *alloc);
90 android::renderscript::Allocation *alloc);
93 const android::renderscript::Allocation *alloc,
96 const android::renderscript::Allocation *alloc,
99 const android::renderscript::Allocation *alloc);
101 android::renderscript::Allocation *alloc, ANativeWindow *nw);
103 android::renderscript::Allocation *alloc);
105 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/base/libs/hwui/unit_tests/
H A DLinearAllocatorTests.cpp49 TEST(LinearAllocator, alloc) {
52 la.alloc(64);
57 auto pair = la.alloc<SimplePair>();
69 la.alloc<SignalingDtor>()->setSignal(destroyed + i);
70 la.alloc<SimplePair>();
72 la.alloc(100);
78 la.alloc(100);
92 auto addr = la.alloc(100);
97 auto sigdtor = la.alloc<SignalingDtor>();
/frameworks/rs/driver/runtime/
H A Drs_allocation.c7 Allocation_t *alloc = (Allocation_t *)a.p; local
8 return alloc->mHal.drvState.lod[0].dimX;
13 Allocation_t *alloc = (Allocation_t *)a.p; local
14 return alloc->mHal.drvState.lod[0].dimY;
19 Allocation_t *alloc = (Allocation_t *)a.p; local
20 return alloc->mHal.drvState.lod[0].dimZ;
25 Allocation_t *alloc = (Allocation_t *)a.p; local
26 return alloc->mHal.state.hasMipmaps;
31 Allocation_t *alloc = (Allocation_t *)a.p; local
32 return alloc
38 Allocation_t *alloc = (Allocation_t *)a.p; local
106 Allocation_t *alloc = (Allocation_t *)a.p; local
121 Allocation_t *alloc = (Allocation_t *)a.p; local
191 Allocation_t *alloc = (Allocation_t *)a.p; local
199 Allocation_t *alloc = (Allocation_t *)a.p; local
208 Allocation_t *alloc = (Allocation_t *)a.p; local
217 Allocation_t *alloc = (Allocation_t *)a.p; local
225 Allocation_t *alloc = (Allocation_t *)a.p; local
234 Allocation_t *alloc = (Allocation_t *)a.p; local
315 Allocation_t *alloc = (Allocation_t *)a.p; local
329 Allocation_t *alloc = (Allocation_t *)a.p; local
[all...]
H A Drs_sample.c268 getBilinearSample1D(const Allocation_t *alloc, float2 weights, argument
272 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
318 getBilinearSample2D(const Allocation_t *alloc, float w0, float w1, float w2, float w3, argument
322 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
323 size_t stride = alloc->mHal.drvState.lod[lod].stride;
348 getNearestSample(const Allocation_t *alloc, uint32_t iPixel, rs_data_kind dk, argument
351 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
385 getNearestSample(const Allocation_t *alloc, uint2 iPixel, rs_data_kind dk, argument
388 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
389 size_t stride = alloc
421 sample_LOD_LinearPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler_value wrapS, float uv, uint32_t lod) argument
453 sample_LOD_NearestPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler_value wrapS, float uv, uint32_t lod) argument
466 sample_LOD_LinearPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler_value wrapS, rs_sampler_value wrapT, float2 uv, uint32_t lod) argument
514 sample_LOD_NearestPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler_value wrapS, rs_sampler_value wrapT, float2 uv, uint32_t lod) argument
536 const Allocation_t *alloc = (const Allocation_t *)a.p; local
588 const Allocation_t *alloc = (const Allocation_t *)a.p; local
635 const Allocation_t *alloc = (const Allocation_t *)a.p; local
[all...]
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_alloc_copyPadded.java93 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create());
94 alloc.setAutoPadding(true);
95 alloc.copyFrom(inArray);
96 alloc.copyTo(outArray);
125 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create());
126 alloc.setAutoPadding(true);
127 alloc.copyFrom(inArray);
128 alloc.copyTo(outArray);
158 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create());
159 alloc
[all...]
H A DUT_apitest.java46 Allocation alloc = Allocation.createTyped(pRS, type);
51 s.set_allocNonNull(alloc);
55 s.bind_allocPtr(alloc);
H A DUT_alloc_copy.java68 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create());
71 alloc.copy1DRangeFrom(offset, count, inArray);
72 alloc.copy1DRangeTo(offset, count, outArray);
110 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create());
113 alloc.copy1DRangeFrom(offset, count, inArray);
114 alloc.copy1DRangeTo(offset, count, outArray);
152 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create());
155 alloc.copy1DRangeFrom(offset, count, inArray);
156 alloc.copy1DRangeTo(offset, count, outArray);
194 Allocation alloc
[all...]
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/
H A DUT_alloc_copyPadded.java93 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create());
94 alloc.setAutoPadding(true);
95 alloc.copyFrom(inArray);
96 alloc.copyTo(outArray);
125 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create());
126 alloc.setAutoPadding(true);
127 alloc.copyFrom(inArray);
128 alloc.copyTo(outArray);
158 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create());
159 alloc
[all...]
H A DUT_apitest.java46 Allocation alloc = Allocation.createTyped(pRS, type);
51 s.set_allocNonNull(alloc);
55 s.bind_allocPtr(alloc);
H A DUT_alloc_copy.java68 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create());
71 alloc.copy1DRangeFrom(offset, count, inArray);
72 alloc.copy1DRangeTo(offset, count, outArray);
110 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create());
113 alloc.copy1DRangeFrom(offset, count, inArray);
114 alloc.copy1DRangeTo(offset, count, outArray);
152 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create());
155 alloc.copy1DRangeFrom(offset, count, inArray);
156 alloc.copy1DRangeTo(offset, count, outArray);
194 Allocation alloc
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicYuvToRGB.cpp47 ObjectBaseRef<Allocation> alloc; member in class:android::renderscript::RsdCpuScriptIntrinsicYuvToRGB
60 alloc.set(static_cast<Allocation *>(data));
108 if (!cp->alloc.get()) {
112 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) {
130 size_t cstep = cp->alloc->mHal.drvState.yuv.step;
132 const uchar *pinU = (const uchar *)cp->alloc->mHal.drvState.lod[1].mallocPtr;
133 const size_t strideU = cp->alloc->mHal.drvState.lod[1].stride;
136 const uchar *pinV = (const uchar *)cp->alloc
[all...]
/frameworks/rs/
H A Drs_hal.h192 bool (*init)(const Context *rsc, Allocation *alloc, bool forceZero);
193 bool (*initOem)(const Context *rsc, Allocation *alloc, bool forceZero, void *usrPtr);
194 bool (*initAdapter)(const Context *rsc, Allocation *alloc);
195 void (*destroy)(const Context *rsc, Allocation *alloc);
196 uint32_t (*grallocBits)(const Context *rsc, Allocation *alloc);
198 void (*resize)(const Context *rsc, const Allocation *alloc, const Type *newType,
200 void (*syncAll)(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src);
201 void (*markDirty)(const Context *rsc, const Allocation *alloc);
203 void (*setSurface)(const Context *rsc, Allocation *alloc, ANativeWindow *sur);
204 void (*ioSend)(const Context *rsc, Allocation *alloc);
[all...]
H A DrsProgram.cpp152 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) { argument
153 if (alloc != nullptr) {
155 ALOGE("Attempt to bind alloc at slot %u, on shader id %" PRIuPTR ", but const count is %u",
160 if (alloc->getType() != mConstantTypes[slot].get()) {
161 ALOGE("Attempt to bind alloc at slot %u, on shader id %" PRIuPTR ", but types mismatch",
167 if (mConstants[slot].get() == alloc) {
173 mConstants[slot].set(alloc);
174 mHal.state.constants[slot] = alloc;
175 if (alloc) {
176 alloc
[all...]
H A DrsAllocation.cpp44 Allocation::Allocation(Context *rsc, const Allocation *alloc, const Type *type) argument
48 mHal.state.baseAlloc = alloc;
49 mHal.state.usageFlags = alloc->mHal.state.usageFlags;
89 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
97 Allocation * Allocation::createAdapter(Context *rsc, const Allocation *alloc, const Type *type) { argument
106 Allocation *a = new (allocMem) Allocation(rsc, alloc, type);
109 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
473 Allocation *alloc = Allocation::createAllocation(rsc, type, RS_ALLOCATION_USAGE_SCRIPT); local
479 uint32_t packedSize = alloc->getPackedSize();
484 ObjectBase::checkDelete(alloc);
652 Allocation *alloc = static_cast<Allocation *>(va); local
722 Allocation * alloc = Allocation::createAllocation(rsc, static_cast<Type *>(vtype), usages, mipmaps, (void*)ptr); local
824 Allocation *alloc = static_cast<Allocation *>(valloc); local
830 Allocation *alloc = static_cast<Allocation *>(valloc); local
835 Allocation *alloc = static_cast<Allocation *>(valloc); local
840 Allocation *alloc = static_cast<Allocation *>(valloc); local
847 Allocation *alloc = static_cast<Allocation *>(valloc); local
883 Allocation * alloc = Allocation::createAdapter(rsc, local
[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);
/frameworks/base/libs/hwui/
H A DDisplayListCanvas.cpp92 addDrawOp(new (alloc()) DrawFunctorOp(functor));
114 addStateOp(new (alloc()) SaveOp((int) flags));
141 addStateOp(new (alloc()) SaveLayerOp(left, top, right, bottom, paint, (int) flags));
158 addStateOp(new (alloc()) RotateOp(degrees));
165 addStateOp(new (alloc()) ScaleOp(sx, sy));
170 addStateOp(new (alloc()) SkewOp(sx, sy));
175 addStateOp(new (alloc()) SetMatrixOp(matrix));
180 addStateOp(new (alloc()) SetLocalMatrixOp(matrix));
185 addStateOp(new (alloc()) ConcatMatrixOp(matrix));
207 addStateOp(new (alloc()) ClipRectO
[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/libs/hwui/utils/
H A DLinearAllocator.h54 void* alloc(size_t size);
61 T* alloc() { function in class:android::uirenderer::LinearAllocator
/frameworks/base/rs/java/android/renderscript/
H A DRenderScript.java463 native void rsnAllocationCopyToBitmap(long con, long alloc, Bitmap bmp); argument
464 synchronized void nAllocationCopyToBitmap(long alloc, Bitmap bmp) { argument
466 rsnAllocationCopyToBitmap(mContext, alloc, bmp);
470 native void rsnAllocationSyncAll(long con, long alloc, int src); argument
471 synchronized void nAllocationSyncAll(long alloc, int src) { argument
473 rsnAllocationSyncAll(mContext, alloc, src);
475 native Surface rsnAllocationGetSurface(long con, long alloc); argument
476 synchronized Surface nAllocationGetSurface(long alloc) { argument
478 return rsnAllocationGetSurface(mContext, alloc);
480 native void rsnAllocationSetSurface(long con, long alloc, Surfac argument
481 nAllocationSetSurface(long alloc, Surface sur) argument
485 rsnAllocationIoSend(long con, long alloc) argument
486 nAllocationIoSend(long alloc) argument
490 rsnAllocationIoReceive(long con, long alloc) argument
491 nAllocationIoReceive(long alloc) argument
497 rsnAllocationGenerateMipmaps(long con, long alloc) argument
498 nAllocationGenerateMipmaps(long alloc) argument
502 rsnAllocationCopyFromBitmap(long con, long alloc, Bitmap bmp) argument
503 nAllocationCopyFromBitmap(long alloc, Bitmap bmp) argument
704 rsnScriptBindAllocation(long con, long script, long alloc, int slot) argument
705 nScriptBindAllocation(long script, long alloc, int slot) argument
837 rsnScriptGroupSetInput(long con, long group, long kernel, long alloc) argument
838 nScriptGroupSetInput(long group, long kernel, long alloc) argument
843 rsnScriptGroupSetOutput(long con, long group, long kernel, long alloc) argument
844 nScriptGroupSetOutput(long group, long kernel, long alloc) argument
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DRenderScript.java409 native void rsnAllocationCopyToBitmap(long con, long alloc, Bitmap bmp); argument
410 synchronized void nAllocationCopyToBitmap(long alloc, Bitmap bmp) { argument
412 rsnAllocationCopyToBitmap(mContext, alloc, bmp);
416 native void rsnAllocationSyncAll(long con, long alloc, int src); argument
417 synchronized void nAllocationSyncAll(long alloc, int src) { argument
419 rsnAllocationSyncAll(mContext, alloc, src);
422 native void rsnAllocationSetSurface(long con, long alloc, Surface sur); argument
423 synchronized void nAllocationSetSurface(long alloc, Surface sur) { argument
425 rsnAllocationSetSurface(mContext, alloc, sur);
428 native void rsnAllocationIoSend(long con, long alloc); argument
429 nAllocationIoSend(long alloc) argument
433 rsnAllocationIoReceive(long con, long alloc) argument
434 nAllocationIoReceive(long alloc) argument
440 rsnAllocationGenerateMipmaps(long con, long alloc) argument
441 nAllocationGenerateMipmaps(long alloc) argument
445 rsnAllocationCopyFromBitmap(long con, long alloc, Bitmap bmp) argument
446 nAllocationCopyFromBitmap(long alloc, Bitmap bmp) argument
602 rsnScriptBindAllocation(long con, long script, long alloc, int slot, boolean mUseInc) argument
603 nScriptBindAllocation(long script, long alloc, int slot, boolean mUseInc) argument
802 rsnScriptGroupSetInput(long con, long group, long kernel, long alloc) argument
803 nScriptGroupSetInput(long group, long kernel, long alloc) argument
808 rsnScriptGroupSetOutput(long con, long group, long kernel, long alloc) argument
809 nScriptGroupSetOutput(long group, long kernel, long alloc) argument
999 rsnIncAllocationCreateTyped(long con, long incCon, long alloc, long type) argument
1000 nIncAllocationCreateTyped(long alloc, long type) argument
[all...]

Completed in 1468 milliseconds

123