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

12

/frameworks/rs/driver/
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 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.cpp525 Allocation *alloc = mRSProgram->mHal.state.constants[ct]; local
527 if (!alloc) {
528 ALOGE("Attempting to set constants on shader id %p, but alloc at slot %u is not set",
534 const uint8_t *data = static_cast<const uint8_t *>(alloc->mHal.drvState.lod[0].mallocPtr);
/frameworks/support/v8/renderscript/jni/
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);
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...]
/frameworks/rs/tests/cppf16/
H A Dcompute.cpp17 sp<Allocation> alloc = Allocation::createTyped(rs, t); local
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
H A DUT_fp16.java28 private Allocation alloc; field in class:UT_fp16
48 alloc = Allocation.createTyped(RS, typeBuilder.create());
53 s.set_gAlloc(alloc);
60 s.forEach_set_kernel_half(alloc);
66 s.forEach_verify_kernel_half(alloc);
73 s.forEach_set_kernel_half2(alloc);
79 s.forEach_verify_kernel_half2(alloc);
86 s.forEach_set_kernel_half3(alloc);
92 s.forEach_verify_kernel_half3(alloc);
99 s.forEach_set_kernel_half4(alloc);
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DAllocationAdapter.java26 AllocationAdapter(long id, RenderScript rs, Allocation alloc, Type t) { argument
27 super(id, rs, alloc.mType, alloc.mUsage);
28 mAdaptedAllocation = alloc;
/frameworks/native/libs/ui/
H A DGraphicBufferAllocator.cpp93 status_t GraphicBufferAllocator::alloc(uint32_t width, uint32_t height, function in class:android::GraphicBufferAllocator
111 err = mAllocDev->alloc(mAllocDev, static_cast<int>(width),
116 ALOGW_IF(err, "alloc(%u, %u, %d, %08x, ...) failed %d (%s)",
/frameworks/native/vulkan/libvulkan/
H A Ddriver.h64 InstanceData(const VkAllocationCallbacks& alloc) argument
66 allocator(alloc),
85 DeviceData(const VkAllocationCallbacks& alloc, argument
88 allocator(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/rs/
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 DrsProgramVertex.cpp207 Allocation *alloc = Allocation::createAllocation(rsc, inputType.get(), local
209 pv->bindAllocation(rsc, alloc, 0);
211 mDefaultAlloc.set(alloc);
H A DrsScriptGroup.cpp254 Allocation * alloc = Allocation::createAllocation(rsc, local
256 l->mAlloc = alloc;
260 n->mOutputs[ct3]->mAlloc = alloc;
407 RsAllocation alloc) {
410 s->setInput(rsc, (ScriptKernelID *)kid, (Allocation *)alloc);
414 RsAllocation alloc) {
417 s->setOutput(rsc, (ScriptKernelID *)kid, (Allocation *)alloc);
406 rsi_ScriptGroupSetInput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
413 rsi_ScriptGroupSetOutput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
H A DrsAllocation.h121 static Allocation * createAdapter(Context *rsc, const Allocation *alloc, const Type *type);
186 void shareBufferQueue(const Context *rsc, const Allocation *alloc);
229 const android::renderscript::Allocation **alloc; member in class:android::renderscript::Allocation::NewBufferListener
/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 DDisplayListCanvas.h238 LinearAllocator& alloc() { return mDisplayList->allocator; } function in class:android::uirenderer::DisplayListCanvas
255 T* dstBuffer = (T*) mDisplayList->allocator.alloc<T>(count * sizeof(T));
324 SkBitmap* localBitmap = alloc().create<SkBitmap>(bitmap);
H A DRecordingCanvas.h204 return mState.writableSnapshot()->mutateClipArea().serializeClip(alloc());
215 LinearAllocator& alloc() { return mDisplayList->allocator; } function in class:android::uirenderer::RecordingCanvas
223 T* dstBuffer = (T*) mDisplayList->allocator.alloc<T>(count * sizeof(T));
294 SkBitmap* localBitmap = alloc().create<SkBitmap>(bitmap);
H A DVertexBuffer.h54 alloc will allocate space within the first allocation (useful if you want to
59 TYPE* alloc(int vertexCount) { function in class:android::uirenderer::VertexBuffer
95 TYPE* dst = alloc<TYPE>(verticesToCopy);
/frameworks/base/libs/hwui/utils/
H A DLinearAllocator.h56 * Note that unlike create, for alloc the type is purely for compile-time error
60 void* alloc(size_t size) { function in class:android::uirenderer::LinearAllocator
177 return (T*)(linearAllocator.alloc<void*>(num * sizeof(T)));
/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/native/libs/binder/
H A DMemoryDealer.cpp153 ssize_t alloc(size_t size, uint32_t flags);
304 ssize_t offset = alloc(size, flags);
318 ssize_t SimpleBestFitAllocator::alloc(size_t size, uint32_t flags) function in class:android::SimpleBestFitAllocator
/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
109 Allocation_t *alloc = (Allocation_t *)a.p; local
124 Allocation_t *alloc = (Allocation_t *)a.p; local
255 Allocation_t *alloc = (Allocation_t *)a.p; local
263 Allocation_t *alloc = (Allocation_t *)a.p; local
272 Allocation_t *alloc = (Allocation_t *)a.p; local
281 Allocation_t *alloc = (Allocation_t *)a.p; local
289 Allocation_t *alloc = (Allocation_t *)a.p; local
298 Allocation_t *alloc = (Allocation_t *)a.p; local
381 Allocation_t *alloc = (Allocation_t *)a.p; local
395 Allocation_t *alloc = (Allocation_t *)a.p; local
[all...]
/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);

Completed in 2524 milliseconds

12