Searched defs:alloc (Results 26 - 46 of 46) sorted by relevance

12

/frameworks/native/libs/binder/
H A DMemoryDealer.cpp153 ssize_t alloc(size_t size, uint32_t flags);
312 ssize_t offset = alloc(size, flags);
326 ssize_t SimpleBestFitAllocator::alloc(size_t size, uint32_t flags) function in class:android::SimpleBestFitAllocator
/frameworks/rs/driver/
H A DrsdShader.cpp529 Allocation *alloc = mRSProgram->mHal.state.constants[ct]; local
531 if (!alloc) {
532 ALOGE("Attempting to set constants on shader id %p, but alloc at slot %u is not set",
538 const uint8_t *data = static_cast<const uint8_t *>(alloc->mHal.drvState.lod[0].mallocPtr);
H A DrsdAllocation.cpp86 uint8_t *GetOffsetPtr(const android::renderscript::Allocation *alloc, argument
89 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
90 ptr += face * alloc->mHal.drvState.faceOffset;
91 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride;
92 ptr += yoff * alloc->mHal.drvState.lod[lod].stride;
93 ptr += xoff * alloc->mHal.state.elementSizeBytes;
98 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument
102 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
108 if (alloc
117 Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) argument
159 UploadToTexture(const Context *rsc, const Allocation *alloc) argument
197 AllocateRenderTarget(const Context *rsc, const Allocation *alloc) argument
222 UploadToBufferObject(const Context *rsc, const Allocation *alloc) argument
298 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr, size_t requiredAlignment) argument
354 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument
371 rsdAllocationInitStrided(const Context *rsc, Allocation *alloc, bool forceZero, size_t requiredAlignment) argument
494 rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument
498 rsdAllocationAdapterOffset(const Context *rsc, const Allocation *alloc) argument
521 rsdAllocationAdapterInit(const Context *rsc, Allocation *alloc) argument
534 rsdAllocationDestroy(const Context *rsc, Allocation *alloc) argument
593 rsdAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument
621 rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) argument
655 rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument
700 rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument
706 IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
733 rsdAllocationSetSurface(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
784 rsdAllocationIoSend(const Context *rsc, Allocation *alloc) argument
820 rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) argument
827 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, const void *data, size_t sizeBytes) argument
847 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
909 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
948 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, void *data, size_t sizeBytes) argument
960 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
989 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
1019 rsdAllocationLock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
1024 rsdAllocationUnlock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
1111 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
1130 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
1143 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1161 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1179 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1197 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument
1219 rsdAllocationGrallocBits(const android::renderscript::Context *rsc, android::renderscript::Allocation *alloc) argument
1225 rsdAllocationUpdateCachedObject(const Context *rsc, const Allocation *alloc, rs_allocation *obj) argument
[all...]
H A DrsdRuntimeStubs.cpp173 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); local
175 alloc->callUpdateCacheObject(rsc, &obj);
182 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); local
189 alloc->callUpdateCacheObject(rsc, &obj);
355 Allocation *alloc = (Allocation *) rsrAllocationCreateTyped(rsc, type, local
358 if (alloc == nullptr)
360 alloc->callUpdateCacheObject(rsc, &obj);
364 alloc->incSysRef();
365 alloc->decUserRef();
/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
67 Allocation_t *alloc = (Allocation_t *)a.p; local
78 Allocation_t *alloc = (Allocation_t *)a.p; local
193 Allocation_t *alloc = (Allocation_t *)a.p; local
201 Allocation_t *alloc = (Allocation_t *)a.p; local
210 Allocation_t *alloc = (Allocation_t *)a.p; local
219 Allocation_t *alloc = (Allocation_t *)a.p; local
227 Allocation_t *alloc = (Allocation_t *)a.p; local
236 Allocation_t *alloc = (Allocation_t *)a.p; local
318 Allocation_t *alloc = (Allocation_t *)a.p; local
332 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
451 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
464 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
510 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
532 const Allocation_t *alloc = (const Allocation_t *)a.p; local
584 const Allocation_t *alloc = (const Allocation_t *)a.p; local
631 const Allocation_t *alloc = (const Allocation_t *)a.p; local
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuScript.cpp52 static bool allocationLODIsNull(const android::renderscript::Allocation *alloc) { argument
53 // Even if alloc != nullptr, mallocPtr could be null if
55 return alloc && alloc->mHal.drvState.lod[0].mallocPtr == nullptr;
/frameworks/rs/
H A DrsScriptC_Lib.cpp248 const Allocation *alloc, uint32_t xoff, uint32_t yoff,
252 if (lod >= alloc->mHal.drvState.lodCount) {
255 ss << lod << " >= " << alloc->mHal.drvState.lodCount;
260 const uint32_t allocDimX = alloc->mHal.drvState.lod[lod].dimX;
272 const uint32_t allocDimY = alloc->mHal.drvState.lod[lod].dimY;
247 validateCopyArgs(Context *rsc, bool isSrc, uint32_t expectDim, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, uint32_t w, uint32_t h) argument
H A DrsAllocation.cpp42 Allocation::Allocation(Context *rsc, const Allocation *alloc, const Type *type) argument
46 mHal.state.baseAlloc = alloc;
47 mHal.state.usageFlags = alloc->mHal.state.usageFlags;
93 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
106 Allocation * Allocation::createAdapter(Context *rsc, const Allocation *alloc, const Type *type) { argument
115 Allocation *a = new (allocMem) Allocation(rsc, alloc, type);
118 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
483 Allocation *alloc = Allocation::createAllocation(rsc, type, RS_ALLOCATION_USAGE_SCRIPT); local
489 uint32_t packedSize = alloc->getPackedSize();
494 ObjectBase::checkDelete(alloc);
607 shareBufferQueue(const Context *rsc, const Allocation *alloc) argument
672 Allocation *alloc = static_cast<Allocation *>(va); local
742 Allocation * alloc = Allocation::createAllocation(rsc, static_cast<Type *>(vtype), usages, mipmaps, (void*)ptr); local
754 Allocation * alloc = Allocation::createAllocationStrided(rsc, static_cast<Type *>(vtype), usages, mipmaps, local
856 Allocation *alloc = static_cast<Allocation *>(valloc); local
861 Allocation *alloc = static_cast<Allocation *>(valloc); local
873 Allocation *alloc = static_cast<Allocation *>(valloc); local
878 Allocation *alloc = static_cast<Allocation *>(valloc); local
883 Allocation *alloc = static_cast<Allocation *>(valloc); local
891 Allocation *alloc = static_cast<Allocation *>(valloc); local
927 Allocation * alloc = Allocation::createAdapter(rsc, local
[all...]
H A DrsHidlAdaptation.cpp1005 void RsHidlAdaptation::ScriptGroupSetOutput (RsContext context, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
1009 uint64_t _alloc = (uint64_t)(uintptr_t)alloc;
1014 void RsHidlAdaptation::ScriptGroupSetInput (RsContext context, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
1018 uint64_t _alloc = (uint64_t)(uintptr_t)alloc;
1087 void RsHidlAdaptation::AllocationAdapterOffset (RsContext context, RsAllocation alloc, const uint32_t * offsets, size_t offsets_length) argument
1089 uint64_t _alloc = (uint64_t)(uintptr_t)alloc;
H A DrsApiStubs.cpp360 extern "C" RsNativeWindow rsAllocationGetSurface (RsContext ctxWrapper, RsAllocation alloc) argument
362 return RS_DISPATCH(ctxWrapper, AllocationGetSurface, alloc);
365 extern "C" void rsAllocationSetupBufferQueue (RsContext ctxWrapper, RsAllocation alloc, uint32_t numAlloc) argument
367 RS_DISPATCH(ctxWrapper, AllocationSetupBufferQueue, alloc, numAlloc);
375 extern "C" void rsAllocationSetSurface (RsContext ctxWrapper, RsAllocation alloc, RsNativeWindow sur) argument
377 RS_DISPATCH(ctxWrapper, AllocationSetSurface, alloc, sur);
380 extern "C" void rsAllocationAdapterOffset (RsContext ctxWrapper, RsAllocation alloc, argument
383 RS_DISPATCH(ctxWrapper, AllocationAdapterOffset, alloc, offsets, offsets_length);
386 extern "C" void rsAllocationCopyToBitmap (RsContext ctxWrapper, RsAllocation alloc, void * data, size_t data_length) argument
388 RS_DISPATCH(ctxWrapper, AllocationCopyToBitmap, alloc, dat
502 rsAllocationIoSend(RsContext ctxWrapper, RsAllocation alloc) argument
507 rsAllocationIoReceive(RsContext ctxWrapper, RsAllocation alloc) argument
589 rsScriptGroupSetOutput(RsContext ctxWrapper, RsScriptGroup group, RsScriptKernelID kernel, RsAllocation alloc) argument
595 rsScriptGroupSetInput(RsContext ctxWrapper, RsScriptGroup group, RsScriptKernelID kernel, RsAllocation alloc) argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DAllocation.java2823 Allocation alloc = new Allocation(id, rs, t, true, usage, mips);
2824 alloc.setBitmap(b);
2825 return alloc;
2922 * @param alloc RenderScript Allocation describing data layout.
2925 static Allocation createFromAllocation(RenderScript rs, Allocation alloc) { argument
2929 if (alloc.getID(rs) == 0) {
2933 Type type = alloc.getType();
2934 int usage = alloc.getUsage();
2935 MipmapControl mips = alloc.getMipmap();
2942 outAlloc.shareBufferQueue(alloc);
2966 shareBufferQueue(Allocation alloc) argument
[all...]
H A DRenderScript.java474 native void rsnAllocationCopyToBitmap(long con, long alloc, Bitmap bmp); argument
475 synchronized void nAllocationCopyToBitmap(long alloc, Bitmap bmp) { argument
477 rsnAllocationCopyToBitmap(mContext, alloc, bmp);
480 native void rsnAllocationSyncAll(long con, long alloc, int src); argument
481 synchronized void nAllocationSyncAll(long alloc, int src) { argument
483 rsnAllocationSyncAll(mContext, alloc, src);
486 native ByteBuffer rsnAllocationGetByteBuffer(long con, long alloc, long[] stride, int xBytesSize, int dimY, int dimZ); argument
487 synchronized ByteBuffer nAllocationGetByteBuffer(long alloc, long[] stride, int xBytesSize, int dimY, int dimZ) { argument
489 return rsnAllocationGetByteBuffer(mContext, alloc, stride, xBytesSize, dimY, dimZ);
492 native void rsnAllocationSetupBufferQueue(long con, long alloc, in argument
493 nAllocationSetupBufferQueue(long alloc, int numAlloc) argument
502 rsnAllocationGetSurface(long con, long alloc) argument
503 nAllocationGetSurface(long alloc) argument
507 rsnAllocationSetSurface(long con, long alloc, Surface sur) argument
508 nAllocationSetSurface(long alloc, Surface sur) argument
512 rsnAllocationIoSend(long con, long alloc) argument
513 nAllocationIoSend(long alloc) argument
517 rsnAllocationIoReceive(long con, long alloc) argument
518 nAllocationIoReceive(long alloc) argument
523 rsnAllocationGenerateMipmaps(long con, long alloc) argument
524 nAllocationGenerateMipmaps(long alloc) argument
528 rsnAllocationCopyFromBitmap(long con, long alloc, Bitmap bmp) argument
529 nAllocationCopyFromBitmap(long alloc, Bitmap bmp) argument
730 rsnScriptBindAllocation(long con, long script, long alloc, int slot) argument
731 nScriptBindAllocation(long script, long alloc, int slot) argument
871 rsnScriptGroupSetInput(long con, long group, long kernel, long alloc) argument
872 nScriptGroupSetInput(long group, long kernel, long alloc) argument
877 rsnScriptGroupSetOutput(long con, long group, long kernel, long alloc) argument
878 nScriptGroupSetOutput(long group, long kernel, long alloc) argument
[all...]
/frameworks/rs/rsov/driver/
H A DrsovAllocation.cpp82 size_t AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, argument
85 alloc->mHal.drvState.lod[0].dimX = type->getDimX();
86 alloc->mHal.drvState.lod[0].dimY = type->getDimY();
87 alloc->mHal.drvState.lod[0].dimZ = type->getDimZ();
88 alloc->mHal.drvState.lod[0].mallocPtr = 0;
91 alloc->mHal.drvState.lod[0].dimX * type->getElementSizeBytes();
92 alloc->mHal.drvState.lod[0].stride = rsRound(stride, requiredAlignment);
93 alloc->mHal.drvState.lodCount = type->getLODCount();
94 alloc->mHal.drvState.faceCount = type->getDimFaces();
99 size_t o = alloc
141 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument
147 GetOffsetPtr(const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face) argument
159 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
179 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
199 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
299 rsovAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument
313 rsovAllocationDestroy(const Context *rsc, Allocation *alloc) argument
319 rsovAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, const void *data, size_t sizeBytes) argument
337 rsovAllocationData2D(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
389 rsovAllocationData3D(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
417 rsovAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, void *data, size_t sizeBytes) argument
430 rsovAllocationRead2D(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
459 rsovAllocationRead3D(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
489 rsovAllocationLock1D(const Context *rsc, const Allocation *alloc) argument
493 rsovAllocationUnlock1D(const Context *rsc, const Allocation *alloc) argument
568 rsovAllocationAdapterOffset(const Context *rsc, const Allocation *alloc) argument
587 rsovAllocationAdapterInit(const Context *rsc, Allocation *alloc) argument
603 rsovAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument
608 rsovAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument
612 rsovAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument
619 rsovAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument
642 rsovAllocationGrallocBits(const Context *rsc, Allocation *alloc) argument
646 rsovAllocationUpdateCachedObject(const Context *rsc, const Allocation *alloc, rs_allocation *obj) argument
657 rsovAllocationSetSurface(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
662 rsovAllocationIoSend(const Context *rsc, Allocation *alloc) argument
666 rsovAllocationIoReceive(const Context *rsc, Allocation *alloc) argument
670 rsovAllocationElementData(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
688 rsovAllocationElementRead(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, uint32_t z, void *data, uint32_t cIdx, size_t sizeBytes) argument
[all...]
H A DrsovRuntimeStubs.cpp162 Allocation *alloc = rsovScriptGetAllocationForPointer(rsc, sc, ptr); local
164 alloc->callUpdateCacheObject(rsc, &obj);
171 Allocation *alloc = rsovScriptGetAllocationForPointer(rsc, sc, ptr); local
178 alloc->callUpdateCacheObject(rsc, &obj);
333 Allocation *alloc = (Allocation *)rsrAllocationCreateTyped( local
335 if (alloc == nullptr) return obj;
336 alloc->callUpdateCacheObject(rsc, &obj);
340 alloc->incSysRef();
341 alloc->decUserRef();
/frameworks/av/services/audioflinger/
H A DTracks.cpp76 alloc_type alloc,
134 if (buffer == NULL && alloc == ALLOC_CBLK) {
163 switch (alloc) {
208 LOG_ALWAYS_FATAL("invalid allocation type: %d", (int)alloc);
63 TrackBase( ThreadBase *thread, const sp<Client>& client, const audio_attributes_t& attr, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, size_t bufferSize, audio_session_t sessionId, uid_t clientUid, bool isOut, alloc_type alloc, track_type type, audio_port_handle_t portId) argument
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp698 SkBitmap::Allocator* alloc) {
732 if (!dst->tryAllocPixels(alloc)) {
697 bitmapCopyTo(SkBitmap* dst, SkColorType dstCT, const SkBitmap& src, SkBitmap::Allocator* alloc) argument
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp283 String8 alloc = Asset::getAssetAllocations(); local
284 if (alloc.length() <= 0) {
287 return env->NewStringUTF(alloc.string());
/frameworks/rs/support/jni/
H A Dandroid_renderscript_RenderScript.cpp1046 nAllocationSetSurface(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject sur) argument
1048 ioDispatch.sAllocationSetSurface(_env, _this, (RsContext)con, (RsAllocation)alloc, sur, dispatchTab);
1052 nAllocationIoSend(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
1054 dispatchTab.AllocationIoSend((RsContext)con, (RsAllocation)alloc);
1058 nAllocationGenerateMipmaps(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
1060 LOG_API("nAllocationGenerateMipmaps, con(%p), a(%p)", (RsContext)con, (RsAllocation)alloc);
1061 dispatchTab.AllocationGenerateMipmaps((RsContext)con, (RsAllocation)alloc);
1137 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap) argument
1147 dispatchTab.Allocation2DData((RsContext)con, (RsAllocation)alloc, 0, 0, 0,
1155 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobjec argument
1178 RsAllocation *alloc = (RsAllocation *)_alloc; local
1188 nAllocationElementData1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
1225 RsAllocation *alloc = (RsAllocation *)_alloc; local
1264 RsAllocation *alloc = (RsAllocation *)_alloc; local
1300 RsAllocation *alloc = (RsAllocation *)_alloc; local
1313 RsAllocation *alloc = (RsAllocation *)_alloc; local
1345 RsAllocation *alloc = (RsAllocation *)_alloc; local
1379 nAllocationResize1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint dimX) argument
1389 nScriptBindAllocation(JNIEnv *_env, jobject _this, jlong con, jlong script, jlong alloc, jint slot, jboolean mUseInc) argument
2053 nScriptGroupSetInput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) argument
2062 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) argument
2205 nIncAllocationCreateTyped(JNIEnv *_env, jobject _this, jlong con, jlong incCon, jlong alloc, jlong type, jint xBytesSize) argument
2241 nAllocationGetByteBuffer(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xBytesSize, jint dimY, jint dimZ) argument
2267 nAllocationGetStride(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
[all...]
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp1241 nAllocationSetupBufferQueue(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint numAlloc) argument
1244 ALOGD("nAllocationSetupBufferQueue, con(%p), alloc(%p), numAlloc(%d)", (RsContext)con,
1245 (RsAllocation)alloc, numAlloc);
1247 rsAllocationSetupBufferQueue((RsContext)con, (RsAllocation)alloc, (uint32_t)numAlloc);
1278 nAllocationSetSurface(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject sur) argument
1281 ALOGD("nAllocationSetSurface, con(%p), alloc(%p), surface(%p)", (RsContext)con,
1282 (RsAllocation)alloc, (Surface *)sur);
1292 rsAllocationSetSurface((RsContext)con, (RsAllocation)alloc, anw);
1296 nAllocationIoSend(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
1299 ALOGD("nAllocationIoSend, con(%p), alloc(
1305 nAllocationIoReceive(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
1314 nAllocationGenerateMipmaps(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
1365 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap) argument
1379 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap) argument
1395 RsAllocation *alloc = (RsAllocation *)_alloc; local
1406 nAllocationElementData(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint yoff, jint zoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
1434 RsAllocation *alloc = (RsAllocation *)_alloc; local
1479 RsAllocation *alloc = (RsAllocation *)_alloc; local
1522 RsAllocation *alloc = (RsAllocation *)_alloc; local
1537 RsAllocation *alloc = (RsAllocation *)_alloc; local
1548 nAllocationElementRead(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint yoff, jint zoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
1575 RsAllocation *alloc = (RsAllocation *)_alloc; local
1592 RsAllocation *alloc = (RsAllocation *)_alloc; local
1613 nAllocationResize1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint dimX) argument
1636 nAllocationAdapterOffset(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint x, jint y, jint z, jint face, jint lod, jint a1, jint a2, jint a3, jint a4) argument
1785 nScriptBindAllocation(JNIEnv *_env, jobject _this, jlong con, jlong script, jlong alloc, jint slot) argument
2408 nScriptGroupSetInput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) argument
2418 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) argument
2739 const jlong alloc = (jlong)(uintptr_t)allocs[i]; local
2759 const jlong alloc = (jlong)(uintptr_t)allocs[i]; local
2775 nAllocationGetByteBuffer(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jlongArray strideArr, jint xBytesSize, jint dimY, jint dimZ) argument
[all...]
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DRenderScript.java421 native void rsnAllocationCopyToBitmap(long con, long alloc, Bitmap bmp); argument
422 synchronized void nAllocationCopyToBitmap(long alloc, Bitmap bmp) { argument
424 rsnAllocationCopyToBitmap(mContext, alloc, bmp);
428 native void rsnAllocationSyncAll(long con, long alloc, int src); argument
429 synchronized void nAllocationSyncAll(long alloc, int src) { argument
431 rsnAllocationSyncAll(mContext, alloc, src);
434 native void rsnAllocationSetSurface(long con, long alloc, Surface sur); argument
435 synchronized void nAllocationSetSurface(long alloc, Surface sur) { argument
437 rsnAllocationSetSurface(mContext, alloc, sur);
440 native void rsnAllocationIoSend(long con, long alloc); argument
441 nAllocationIoSend(long alloc) argument
445 rsnAllocationIoReceive(long con, long alloc) argument
446 nAllocationIoReceive(long alloc) argument
450 rsnAllocationGetByteBuffer(long con, long alloc, int xBytesSize, int dimY, int dimZ) argument
451 nAllocationGetByteBuffer(long alloc, int xBytesSize, int dimY, int dimZ) argument
455 rsnAllocationGetStride(long con, long alloc) argument
456 nAllocationGetStride(long alloc) argument
461 rsnAllocationGenerateMipmaps(long con, long alloc) argument
462 nAllocationGenerateMipmaps(long alloc) argument
466 rsnAllocationCopyFromBitmap(long con, long alloc, Bitmap bmp) argument
467 nAllocationCopyFromBitmap(long alloc, Bitmap bmp) argument
623 rsnScriptBindAllocation(long con, long script, long alloc, int slot, boolean mUseInc) argument
624 nScriptBindAllocation(long script, long alloc, int slot, boolean mUseInc) argument
842 rsnScriptGroupSetInput(long con, long group, long kernel, long alloc) argument
843 nScriptGroupSetInput(long group, long kernel, long alloc) argument
848 rsnScriptGroupSetOutput(long con, long group, long kernel, long alloc) argument
849 nScriptGroupSetOutput(long group, long kernel, long alloc) argument
1039 rsnIncAllocationCreateTyped(long con, long incCon, long alloc, long type, int xBytesSize) argument
1040 nIncAllocationCreateTyped(long alloc, long type, int xBytesSize) argument
[all...]

Completed in 325 milliseconds

12