/frameworks/rs/driver/ |
H A D | rsdSampler.cpp | 45 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 D | rsdMeshObj.cpp | 136 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 D | rsdShader.cpp | 525 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 D | android_rscompat_usage_io.cpp | 9 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 D | android_rscompat_usage_io_driver.cpp | 15 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/base/libs/hwui/utils/ |
H A D | LinearAllocator.h | 54 void* alloc(size_t size); 61 T* alloc() { function in class:android::uirenderer::LinearAllocator
|
H A D | LinearAllocator.cpp | 85 return la.alloc(size); 173 void* LinearAllocator::alloc(size_t size) { function in class:android::uirenderer::LinearAllocator
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | AllocationAdapter.java | 26 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 D | GraphicBufferAllocator.cpp | 93 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/rs/java/tests/SampleTest/src/com/android/rs/sample/ |
H A D | SampleRSActivity.java | 155 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 D | rsAdapter.cpp | 62 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 D | rsProgram.cpp | 152 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 D | rsProgramVertex.cpp | 207 Allocation *alloc = Allocation::createAllocation(rsc, inputType.get(), local 209 pv->bindAllocation(rsc, alloc, 0); 211 mDefaultAlloc.set(alloc);
|
H A D | rsScriptGroup.cpp | 254 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 D | rsAllocation.h | 114 static Allocation * createAdapter(Context *rsc, const Allocation *alloc, const Type *type); 217 const android::renderscript::Allocation *alloc; member in class:android::renderscript::Allocation::NewBufferListener
|
/frameworks/base/libs/androidfw/ |
H A D | CursorWindow.cpp | 174 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 D | DisplayListCanvas.h | 256 LinearAllocator& alloc() { return mDisplayListData->allocator; } function in class:android::uirenderer::DisplayListCanvas 273 T* dstBuffer = (T*) mDisplayListData->allocator.alloc(count * sizeof(T)); 356 SkBitmap* localBitmap = new (alloc()) SkBitmap(bitmap); 357 alloc().autoDestroy(localBitmap);
|
H A D | VertexBuffer.h | 54 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/rs/cpu_ref/ |
H A D | rsCpuIntrinsicConvolve5x5.cpp | 42 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 D | rsCpuIntrinsicYuvToRGB.cpp | 47 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 D | rs_allocation.c | 7 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 D | rs_sample.c | 268 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 D | SceneManager.java | 214 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 D | MemoryDealer.cpp | 151 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 D | MPEG2TSWriter.cpp | 288 size_t alloc = 4096; local 289 if (buffer->range_length() + 7 > alloc) { 290 alloc = 7 + buffer->range_length(); 293 mAACBuffer = new ABuffer(alloc);
|