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

12

/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);
/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/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/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/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 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),
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/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 DAllocationAdapter.java26 AllocationAdapter(long id, RenderScript rs, Allocation alloc, Type t) { argument
27 super(id, rs, alloc.mType, alloc.mUsage);
28 mAdaptedAllocation = alloc;
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/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/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/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/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/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...]
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/
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 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 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();
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

Completed in 874 milliseconds

12