Searched defs:alloc (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/rs/driver/
H A DrsdSampler.cpp45 const Sampler *alloc,
48 obj->p = alloc;
51 if (alloc != NULL) {
52 obj->v1 = alloc->mHal.drv;
44 rsdSamplerUpdateCachedObject(const Context *rsc, const Sampler *alloc, rs_sampler *obj) argument
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;
H A DrsdShader.cpp523 Allocation *alloc = mRSProgram->mHal.state.constants[ct]; local
525 if (!alloc) {
526 ALOGE("Attempting to set constants on shader id %p, but alloc at slot %u is not set",
532 const uint8_t *data = static_cast<const uint8_t *>(alloc->mHal.drvState.lod[0].mallocPtr);
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
303 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument
371 rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument
476 rsdAllocationDestroy(const Context *rsc, Allocation *alloc) argument
533 rsdAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument
561 rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) argument
595 rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument
640 rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument
646 IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
671 rsdAllocationSetSurface(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
757 rsdAllocationIoSend(const Context *rsc, Allocation *alloc) argument
785 rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) argument
795 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, const void *data, size_t sizeBytes) argument
815 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
875 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
914 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, void *data, size_t sizeBytes) argument
926 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
955 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
985 rsdAllocationLock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
990 rsdAllocationUnlock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
1077 rsdAllocationElementData1D(const Context *rsc, const Allocation *alloc, uint32_t x, const void *data, uint32_t cIdx, size_t sizeBytes) argument
1097 rsdAllocationElementData2D(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, const void *data, uint32_t cIdx, size_t sizeBytes) argument
1117 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1135 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1153 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1171 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument
1193 rsdAllocationGrallocBits(const android::renderscript::Context *rsc, android::renderscript::Allocation *alloc) argument
1199 rsdAllocationUpdateCachedObject(const Context *rsc, const Allocation *alloc, rs_allocation *obj) argument
[all...]
/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/rs/
H A DrsPath.cpp51 void Path::rasterize(const BezierSegment_t *s, uint32_t num, Allocation *alloc) { argument
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 DrsProgram.cpp152 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) { argument
153 if (alloc != NULL) {
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.h186 const android::renderscript::Allocation *alloc; member in class:android::renderscript::Allocation::NewBufferListener
H A DrsProgramVertex.cpp207 Allocation *alloc = Allocation::createAllocation(rsc, inputType.get(), local
209 pv->bindAllocation(rsc, alloc, 0);
211 mDefaultAlloc.set(alloc);
H A DrsScriptGroup.cpp237 Allocation * alloc = Allocation::createAllocation(rsc, local
239 l->mAlloc = alloc;
243 n->mOutputs[ct3]->mAlloc = alloc;
391 RsAllocation alloc) {
394 s->setInput(rsc, (ScriptKernelID *)kid, (Allocation *)alloc);
398 RsAllocation alloc) {
401 s->setOutput(rsc, (ScriptKernelID *)kid, (Allocation *)alloc);
390 rsi_ScriptGroupSetInput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
397 rsi_ScriptGroupSetOutput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
/frameworks/base/rs/java/android/renderscript/
H A DAllocationAdapter.java24 AllocationAdapter(long id, RenderScript rs, Allocation alloc) { argument
25 super(id, rs, alloc.mType, alloc.mUsage);
26 mAdaptedAllocation = alloc;
/frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java155 private synchronized void filterAlloc(Allocation alloc, Sampler sampler) { argument
157 mScript.invoke_setSampleData(alloc, mTwoByTwoAlloc, sampler);
158 mScript.forEach_root(alloc);
159 alloc.ioSend();
/frameworks/base/libs/androidfw/
H A DCursorWindow.cpp174 uint32_t fieldDirOffset = alloc(fieldDirSize, true /*aligned*/);
201 uint32_t CursorWindow::alloc(size_t size, bool aligned) { function in class:android::CursorWindow
244 chunk->nextChunkOffset = alloc(sizeof(RowSlotChunk), true /*aligned*/);
293 uint32_t offset = alloc(size);
/frameworks/base/libs/hwui/
H A DDisplayListRenderer.h175 LinearAllocator& alloc() { return mDisplayListData->allocator; } function in class:android::uirenderer::DisplayListRenderer
191 T* dstBuffer = (T*) mDisplayListData->allocator.alloc(count * sizeof(T));
H A DVertexBuffer.h55 alloc will allocate space within the first allocation (useful if you want to
60 TYPE* alloc(int vertexCount) { function in class:android::uirenderer::VertexBuffer
96 TYPE* dst = alloc<TYPE>(verticesToCopy);
H A DRenderNode.cpp799 LinearAllocator& alloc = handler.allocator(); local
800 handler(new (alloc) SaveOp(SkCanvas::kMatrix_SaveFlag | SkCanvas::kClip_SaveFlag),
817 ClipRectOp* clipOp = new (alloc) ClipRectOp(
823 SaveLayerOp* op = new (alloc) SaveLayerOp(
851 handler(new (alloc) RestoreToCountOp(restoreTo),
895 LinearAllocator& alloc = handler.allocator(); local
897 handler(new (alloc) SaveOp(SkCanvas::kMatrix_SaveFlag | SkCanvas::kClip_SaveFlag),
913 handler(new (alloc) DrawLayerOp(mLayer, 0, 0),
949 handler(new (alloc) RestoreToCountOp(restoreTo),
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicConvolve5x5.cpp42 ObjectBaseRef<Allocation> alloc; member in class:android::renderscript::RsdCpuScriptIntrinsicConvolve5x5
72 alloc.set(static_cast<Allocation *>(data));
353 if (!cp->alloc.get()) {
357 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
358 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride;
413 if (!cp->alloc.get()) {
417 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
418 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride;
462 if (!cp->alloc.get()) {
466 const uchar *pin = (const uchar *)cp->alloc
[all...]
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/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
311 Allocation_t *alloc = (Allocation_t *)a.p; local
325 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/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DSceneManager.java214 Allocation alloc = Allocation.createSized(rs, Element.U8(rs),
217 alloc.copy1DRangeFrom(0, allocArray.length, allocArray);
218 alloc.copy1DRangeFrom(allocArray.length, 1, nullChar);
219 return alloc;
233 static void cacheAlloc(String str, Allocation alloc) { argument
237 sSceneManager.mAllocationMap.put(str, alloc);
/frameworks/native/libs/binder/
H A DMemoryDealer.cpp151 ssize_t alloc(size_t size, uint32_t flags);
296 ssize_t offset = alloc(size, flags);
310 ssize_t SimpleBestFitAllocator::alloc(size_t size, uint32_t flags) function in class:android::SimpleBestFitAllocator
/frameworks/av/media/libstagefright/
H A DMPEG2TSWriter.cpp288 size_t alloc = 4096; local
289 if (buffer->range_length() + 7 > alloc) {
290 alloc = 7 + buffer->range_length();
293 mAACBuffer = new ABuffer(alloc);
/frameworks/native/cmds/installd/
H A Dutils.c539 void* alloc = _cache_malloc(cache, len); local
540 if (alloc != NULL && cur != NULL) {
541 memcpy(alloc, cur, origLen < len ? origLen : len);
543 return alloc;

Completed in 444 milliseconds

12