/frameworks/rs/driver/ |
H A D | rsdSampler.cpp | 45 const Sampler *alloc, 48 obj->p = alloc; 44 rsdSamplerUpdateCachedObject(const Context *rsc, const Sampler *alloc, rs_sampler *obj) argument
|
H A D | rsdMeshObj.cpp | 140 const Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[ct]; local 141 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; 143 rsdAllocationSyncAll(rsc, alloc, RS_ALLOCATION_USAGE_SCRIPT); 150 Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[allocIndex]; local 151 DrvAllocation *drvAlloc = (DrvAllocation *)alloc->mHal.drv; 158 mAttribs[ct].ptr = (const uint8_t*)alloc->mHal.drvState.lod[0].mallocPtr;
|
/frameworks/rs/rsov/driver/ |
H A D | rsovSampler.cpp | 29 void rsovSamplerUpdateCachedObject(const Context *rsc, const Sampler *alloc, argument 31 obj->p = alloc;
|
/frameworks/rs/support/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/rs/tests/cpp_api/cppf16/ |
H A D | compute.cpp | 20 sp<Allocation> alloc = Allocation::createTyped(rs, t); local
|
/frameworks/ml/nn/driver/cache/nnCache/ |
H A D | nnCache.h | 70 void** value, std::function<void*(size_t)> alloc); 73 T** value, std::function<void*(size_t)> alloc) { 75 const ssize_t size = getBlob(key, keySize, &valueVoid, alloc); 72 getBlob(const void* key, size_t keySize, T** value, std::function<void*(size_t)> alloc) argument
|
H A D | nnCache.cpp | 120 void** value, std::function<void*(size_t)> alloc) { 130 return bc->get(key, keySize, value, alloc); 119 getBlob(const void* key, ssize_t keySize, void** value, std::function<void*(size_t)> alloc) argument
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | UT_fp16.java | 30 private Allocation alloc; field in class:UT_fp16 50 alloc = Allocation.createTyped(RS, type); 55 s.set_gAlloc(alloc); 62 s.forEach_set_kernel_half(alloc); 66 alloc.destroy(); 72 s.forEach_verify_kernel_half(alloc); 75 alloc.destroy(); 83 s.forEach_set_kernel_half2(alloc); 87 alloc.destroy(); 93 s.forEach_verify_kernel_half2(alloc); [all...] |
/frameworks/rs/tests/lldb/java/Reduction/src/com/android/rs/lldbreductiontest/ |
H A D | MainActivity.java | 66 RenderScript rs, ScriptC_reduce_auto_comb s, Allocation alloc) { 71 return s.reduce_find_min_user_type_auto_comb(alloc).get(); 74 private float findMinUserType(RenderScript rs, ScriptC_reduce s, Allocation alloc) { argument 79 return s.reduce_find_min_user_type(alloc).get(); 91 Allocation alloc = minUserType.getAllocation(); 93 return findMinUserTypeAutoComb(rs, s, alloc); 105 Allocation alloc = minUserType.getAllocation(); 107 return findMinUserType(rs, s, alloc); 65 findMinUserTypeAutoComb( RenderScript rs, ScriptC_reduce_auto_comb s, Allocation alloc) argument
|
/frameworks/base/libs/hwui/ |
H A D | RecordingCanvas.h | 201 return mState.writableSnapshot()->mutateClipArea().serializeClip(alloc()); 211 LinearAllocator& alloc() { return mDisplayList->allocator; } function in class:android::uirenderer::RecordingCanvas 219 T* dstBuffer = (T*)mDisplayList->allocator.alloc<T>(count * sizeof(T));
|
H A D | VertexBuffer.h | 53 alloc will allocate space within the first allocation (useful if you want to 58 TYPE* alloc(int vertexCount) { function in class:android::uirenderer::VertexBuffer 94 TYPE* dst = alloc<TYPE>(verticesToCopy);
|
/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/vulkan/libvulkan/ |
H A D | driver.h | 66 explicit InstanceData(const VkAllocationCallbacks& alloc) argument 68 allocator(alloc), 87 DeviceData(const VkAllocationCallbacks& alloc, argument 90 allocator(alloc),
|
/frameworks/rs/ |
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 | 206 Allocation *alloc = Allocation::createAllocation(rsc, inputType.get(), local 208 pv->bindAllocation(rsc, alloc, 0); 210 mDefaultAlloc.set(alloc);
|
H A D | rsScriptGroup.cpp | 234 Allocation * alloc = Allocation::createAllocation(rsc, local 236 l->mAlloc = alloc; 240 n->mOutputs[ct3]->mAlloc = alloc; 384 RsAllocation alloc) { 387 s->setInput(rsc, (ScriptKernelID *)kid, (Allocation *)alloc); 391 RsAllocation alloc) { 394 s->setOutput(rsc, (ScriptKernelID *)kid, (Allocation *)alloc); 383 rsi_ScriptGroupSetInput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument 390 rsi_ScriptGroupSetOutput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
|
/frameworks/rs/tests/java_api/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/base/libs/androidfw/ |
H A D | CursorWindow.cpp | 179 uint32_t fieldDirOffset = alloc(fieldDirSize, true /*aligned*/); 206 uint32_t CursorWindow::alloc(size_t size, bool aligned) { function in class:android::CursorWindow 249 chunk->nextChunkOffset = alloc(sizeof(RowSlotChunk), true /*aligned*/); 298 uint32_t offset = alloc(size);
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Bitmap.cpp | 52 static sk_sp<Bitmap> allocateBitmap(SkBitmap* bitmap, AllocPixelRef alloc) { argument 68 auto wrapper = alloc(size, info, rowBytes);
|
/frameworks/base/libs/hwui/utils/ |
H A D | LinearAllocator.h | 56 * 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 175 return (T*)(linearAllocator.alloc<void*>(num * sizeof(T)));
|
/frameworks/ml/nn/driver/cache/BlobCache/ |
H A D | BlobCache.cpp | 185 std::function<void*(size_t)> alloc) { 204 void *buf = alloc(valueBlobSize); 184 get(const void* key, size_t keySize, void** value, std::function<void*(size_t)> alloc) argument
|
H A D | BlobCache.h | 98 // and one takes an allocator (value, alloc). 115 // void* buf = alloc(cached_value_size); 131 size_t get(const void* key, size_t keySize, void** value, std::function<void*(size_t)> alloc); 133 size_t get(const void* key, size_t keySize, T** value, std::function<void*(size_t)> alloc) { argument 135 const size_t size = get(key, keySize, &valueVoid, alloc);
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicConvolve5x5.cpp | 39 ObjectBaseRef<Allocation> alloc; member in class:android::renderscript::RsdCpuScriptIntrinsicConvolve5x5 66 alloc.set(static_cast<Allocation *>(data)); 347 if (!cp->alloc.get()) { 351 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; 352 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; 407 if (!cp->alloc.get()) { 411 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; 412 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; 456 if (!cp->alloc.get()) { 460 const uchar *pin = (const uchar *)cp->alloc [all...] |
H A D | rsCpuIntrinsicYuvToRGB.cpp | 44 ObjectBaseRef<Allocation> alloc; member in class:android::renderscript::RsdCpuScriptIntrinsicYuvToRGB 54 alloc.set(static_cast<Allocation *>(data)); 102 if (!cp->alloc.get()) { 106 const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; 112 size_t strideY = cp->alloc->mHal.drvState.lod[0].stride; 115 if (cp->alloc->mHal.drvState.lod[0].dimY == 0) { 124 size_t cstep = cp->alloc->mHal.drvState.yuv.step; 126 const uchar *pinU = (const uchar *)cp->alloc->mHal.drvState.lod[1].mallocPtr; 127 const size_t strideU = cp->alloc->mHal.drvState.lod[1].stride; 130 const uchar *pinV = (const uchar *)cp->alloc [all...] |