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

12

/frameworks/rs/cpu_ref/
H A DrsCpuScript.cpp53 static bool allocationLODIsNull(const android::renderscript::Allocation *alloc) { argument
54 // Even if alloc != nullptr, mallocPtr could be null if
56 return alloc && alloc->mHal.drvState.lod[0].mallocPtr == nullptr;
/frameworks/rs/driver/runtime/
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/av/services/audioflinger/
H A DTracks.cpp78 alloc_type alloc,
117 if (buffer == NULL && alloc == ALLOC_CBLK) {
139 switch (alloc) {
66 TrackBase( ThreadBase *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, audio_session_t sessionId, int clientUid, IAudioFlinger::track_flags_t flags, bool isOut, alloc_type alloc, track_type type) argument
/frameworks/base/libs/hwui/
H A DRenderNode.cpp985 LinearAllocator& alloc = handler.allocator(); local
986 handler(new (alloc) SaveOp(SaveFlags::MatrixClip),
1004 renderer.setProjectionPathMask(alloc, projectionReceiverOutline);
1019 handler(new (alloc) RestoreToCountOp(restoreTo),
1070 LinearAllocator& alloc = handler.allocator(); local
1072 handler(new (alloc) SaveOp(SaveFlags::MatrixClip),
1092 handler(new (alloc) DrawLayerOp(mLayer),
1127 handler(new (alloc) RestoreToCountOp(restoreTo),
/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;
2921 * @param alloc RenderScript Allocation describing data layout.
2924 static Allocation createFromAllocation(RenderScript rs, Allocation alloc) { argument
2928 if (alloc.getID(rs) == 0) {
2932 Type type = alloc.getType();
2933 int usage = alloc.getUsage();
2934 MipmapControl mips = alloc.getMipmap();
2941 outAlloc.shareBufferQueue(alloc);
2965 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/driver/
H A DrsdAllocation.cpp91 uint8_t *GetOffsetPtr(const android::renderscript::Allocation *alloc, argument
94 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
95 ptr += face * alloc->mHal.drvState.faceOffset;
96 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride;
97 ptr += yoff * alloc->mHal.drvState.lod[lod].stride;
98 ptr += xoff * alloc->mHal.state.elementSizeBytes;
103 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument
107 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
113 if (alloc
122 Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) argument
164 UploadToTexture(const Context *rsc, const Allocation *alloc) argument
202 AllocateRenderTarget(const Context *rsc, const Allocation *alloc) argument
227 UploadToBufferObject(const Context *rsc, const Allocation *alloc) argument
305 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr, size_t requiredAlignment) argument
361 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument
378 rsdAllocationInitStrided(const Context *rsc, Allocation *alloc, bool forceZero, size_t requiredAlignment) argument
502 rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument
506 rsdAllocationAdapterOffset(const Context *rsc, const Allocation *alloc) argument
529 rsdAllocationAdapterInit(const Context *rsc, Allocation *alloc) argument
542 rsdAllocationDestroy(const Context *rsc, Allocation *alloc) argument
601 rsdAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument
629 rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) argument
663 rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument
708 rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument
714 IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
739 rsdAllocationSetSurface(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
829 rsdAllocationIoSend(const Context *rsc, Allocation *alloc) argument
857 rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) argument
870 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, const void *data, size_t sizeBytes) argument
890 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
952 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
991 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, void *data, size_t sizeBytes) argument
1003 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
1032 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
1062 rsdAllocationLock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
1067 rsdAllocationUnlock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
1154 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
1173 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
1186 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1204 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1222 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1240 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument
1262 rsdAllocationGrallocBits(const android::renderscript::Context *rsc, android::renderscript::Allocation *alloc) argument
1268 rsdAllocationUpdateCachedObject(const Context *rsc, const Allocation *alloc, rs_allocation *obj) argument
[all...]
H A DrsdRuntimeStubs.cpp157 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); local
159 alloc->callUpdateCacheObject(rsc, &obj);
166 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); local
173 alloc->callUpdateCacheObject(rsc, &obj);
339 Allocation *alloc = (Allocation *) rsrAllocationCreateTyped(rsc, type, local
342 if (alloc == nullptr)
344 alloc->callUpdateCacheObject(rsc, &obj);
348 alloc->incSysRef();
349 alloc->decUserRef();
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp64 void* alloc(size_t size) { function in class:android::MallocHelper
120 pTransformed = (float*) mallocHelper.alloc(transformedIndexCount * 4 * sizeof(float));
/frameworks/native/cmds/installd/
H A Dutils.cpp588 void* alloc = _cache_malloc(cache, len); local
589 if (alloc != NULL && cur != NULL) {
590 memcpy(alloc, cur, origLen < len ? origLen : len);
592 return alloc;
/frameworks/rs/
H A DrsAllocation.cpp43 Allocation::Allocation(Context *rsc, const Allocation *alloc, const Type *type) argument
47 mHal.state.baseAlloc = alloc;
48 mHal.state.usageFlags = alloc->mHal.state.usageFlags;
94 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
107 Allocation * Allocation::createAdapter(Context *rsc, const Allocation *alloc, const Type *type) { argument
116 Allocation *a = new (allocMem) Allocation(rsc, alloc, type);
119 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);
640 shareBufferQueue(const Context *rsc, const Allocation *alloc) argument
712 Allocation *alloc = static_cast<Allocation *>(va); local
782 Allocation * alloc = Allocation::createAllocation(rsc, static_cast<Type *>(vtype), usages, mipmaps, (void*)ptr); local
794 Allocation * alloc = Allocation::createAllocationStrided(rsc, static_cast<Type *>(vtype), usages, mipmaps, local
896 Allocation *alloc = static_cast<Allocation *>(valloc); local
901 Allocation *alloc = static_cast<Allocation *>(valloc); local
913 Allocation *alloc = static_cast<Allocation *>(valloc); local
918 Allocation *alloc = static_cast<Allocation *>(valloc); local
923 Allocation *alloc = static_cast<Allocation *>(valloc); local
931 Allocation *alloc = static_cast<Allocation *>(valloc); local
967 Allocation * alloc = Allocation::createAdapter(rsc, local
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp2112 String8 alloc = Asset::getAssetAllocations(); local
2113 if (alloc.length() <= 0) {
2117 jstring str = env->NewStringUTF(alloc.string());
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp1031 nAllocationSetSurface(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject sur) argument
1033 ioDispatch.sAllocationSetSurface(_env, _this, (RsContext)con, (RsAllocation)alloc, sur, dispatchTab);
1037 nAllocationIoSend(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
1039 dispatchTab.AllocationIoSend((RsContext)con, (RsAllocation)alloc);
1043 nAllocationGenerateMipmaps(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
1045 LOG_API("nAllocationGenerateMipmaps, con(%p), a(%p)", (RsContext)con, (RsAllocation)alloc);
1046 dispatchTab.AllocationGenerateMipmaps((RsContext)con, (RsAllocation)alloc);
1122 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap) argument
1132 dispatchTab.Allocation2DData((RsContext)con, (RsAllocation)alloc, 0, 0, 0,
1140 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobjec argument
1163 RsAllocation *alloc = (RsAllocation *)_alloc; local
1173 nAllocationElementData1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
1210 RsAllocation *alloc = (RsAllocation *)_alloc; local
1249 RsAllocation *alloc = (RsAllocation *)_alloc; local
1285 RsAllocation *alloc = (RsAllocation *)_alloc; local
1298 RsAllocation *alloc = (RsAllocation *)_alloc; local
1330 RsAllocation *alloc = (RsAllocation *)_alloc; local
1364 nAllocationResize1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint dimX) argument
1374 nScriptBindAllocation(JNIEnv *_env, jobject _this, jlong con, jlong script, jlong alloc, jint slot, jboolean mUseInc) argument
2038 nScriptGroupSetInput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) argument
2047 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) argument
2190 nIncAllocationCreateTyped(JNIEnv *_env, jobject _this, jlong con, jlong incCon, jlong alloc, jlong type, jint xBytesSize) argument
2226 nAllocationGetByteBuffer(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xBytesSize, jint dimY, jint dimZ) argument
2252 nAllocationGetStride(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
[all...]
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp1228 nAllocationSetupBufferQueue(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint numAlloc) argument
1231 ALOGD("nAllocationSetupBufferQueue, con(%p), alloc(%p), numAlloc(%d)", (RsContext)con,
1232 (RsAllocation)alloc, numAlloc);
1234 rsAllocationSetupBufferQueue((RsContext)con, (RsAllocation)alloc, (uint32_t)numAlloc);
1265 nAllocationSetSurface(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject sur) argument
1268 ALOGD("nAllocationSetSurface, con(%p), alloc(%p), surface(%p)", (RsContext)con,
1269 (RsAllocation)alloc, (Surface *)sur);
1277 rsAllocationSetSurface((RsContext)con, (RsAllocation)alloc,
1282 nAllocationIoSend(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
1285 ALOGD("nAllocationIoSend, con(%p), alloc(
1291 nAllocationIoReceive(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
1300 nAllocationGenerateMipmaps(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
1357 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap) argument
1373 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap) argument
1391 RsAllocation *alloc = (RsAllocation *)_alloc; local
1402 nAllocationElementData(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint yoff, jint zoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
1430 RsAllocation *alloc = (RsAllocation *)_alloc; local
1475 RsAllocation *alloc = (RsAllocation *)_alloc; local
1518 RsAllocation *alloc = (RsAllocation *)_alloc; local
1533 RsAllocation *alloc = (RsAllocation *)_alloc; local
1544 nAllocationElementRead(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint yoff, jint zoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
1571 RsAllocation *alloc = (RsAllocation *)_alloc; local
1588 RsAllocation *alloc = (RsAllocation *)_alloc; local
1609 nAllocationResize1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint dimX) argument
1632 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
1774 nScriptBindAllocation(JNIEnv *_env, jobject _this, jlong con, jlong script, jlong alloc, jint slot) argument
2397 nScriptGroupSetInput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) argument
2407 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) argument
2728 const jlong alloc = (jlong)(uintptr_t)allocs[i]; local
2748 const jlong alloc = (jlong)(uintptr_t)allocs[i]; local
2764 nAllocationGetByteBuffer(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jlongArray strideArr, jint xBytesSize, jint dimY, jint dimZ) argument
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DRenderScript.java409 native void rsnAllocationCopyToBitmap(long con, long alloc, Bitmap bmp); argument
410 synchronized void nAllocationCopyToBitmap(long alloc, Bitmap bmp) { argument
412 rsnAllocationCopyToBitmap(mContext, alloc, bmp);
416 native void rsnAllocationSyncAll(long con, long alloc, int src); argument
417 synchronized void nAllocationSyncAll(long alloc, int src) { argument
419 rsnAllocationSyncAll(mContext, alloc, src);
422 native void rsnAllocationSetSurface(long con, long alloc, Surface sur); argument
423 synchronized void nAllocationSetSurface(long alloc, Surface sur) { argument
425 rsnAllocationSetSurface(mContext, alloc, sur);
428 native void rsnAllocationIoSend(long con, long alloc); argument
429 nAllocationIoSend(long alloc) argument
433 rsnAllocationIoReceive(long con, long alloc) argument
434 nAllocationIoReceive(long alloc) argument
438 rsnAllocationGetByteBuffer(long con, long alloc, int xBytesSize, int dimY, int dimZ) argument
439 nAllocationGetByteBuffer(long alloc, int xBytesSize, int dimY, int dimZ) argument
443 rsnAllocationGetStride(long con, long alloc) argument
444 nAllocationGetStride(long alloc) argument
449 rsnAllocationGenerateMipmaps(long con, long alloc) argument
450 nAllocationGenerateMipmaps(long alloc) argument
454 rsnAllocationCopyFromBitmap(long con, long alloc, Bitmap bmp) argument
455 nAllocationCopyFromBitmap(long alloc, Bitmap bmp) argument
611 rsnScriptBindAllocation(long con, long script, long alloc, int slot, boolean mUseInc) argument
612 nScriptBindAllocation(long script, long alloc, int slot, boolean mUseInc) argument
830 rsnScriptGroupSetInput(long con, long group, long kernel, long alloc) argument
831 nScriptGroupSetInput(long group, long kernel, long alloc) argument
836 rsnScriptGroupSetOutput(long con, long group, long kernel, long alloc) argument
837 nScriptGroupSetOutput(long group, long kernel, long alloc) argument
1027 rsnIncAllocationCreateTyped(long con, long incCon, long alloc, long type, int xBytesSize) argument
1028 nIncAllocationCreateTyped(long alloc, long type, int xBytesSize) argument
[all...]

Completed in 444 milliseconds

12