Searched defs:alloc (Results 1 - 25 of 34) 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.cpp76 alloc_type alloc,
117 if (buffer == NULL && alloc == ALLOC_CBLK) {
139 switch (alloc) {
64 TrackBase( ThreadBase *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, int 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.cpp63 void* alloc(size_t size) { function in class:android::MallocHelper
119 pTransformed = (float*) mallocHelper.alloc(transformedIndexCount * 4 * sizeof(float));
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp1972 String8 alloc = Asset::getAssetAllocations(); local
1973 if (alloc.length() <= 0) {
1977 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 DDisplayListRenderer.h175 LinearAllocator& alloc() { return mDisplayListData->allocator; } function in class:android::uirenderer::DisplayListRenderer
191 T* dstBuffer = (T*) mDisplayListData->allocator.alloc(count * sizeof(T));
H A DRenderNode.cpp799 LinearAllocator& alloc = handler.allocator(); local
800 handler(new (alloc) SaveOp(SkCanvas::kMatrix_SaveFlag | SkCanvas::kClip_SaveFlag),
817 ClipRectOp* clipOp = new (alloc) ClipRectOp(
823 SaveLayerOp* op = new (alloc) SaveLayerOp(
851 handler(new (alloc) RestoreToCountOp(restoreTo),
895 LinearAllocator& alloc = handler.allocator(); local
897 handler(new (alloc) SaveOp(SkCanvas::kMatrix_SaveFlag | SkCanvas::kClip_SaveFlag),
913 handler(new (alloc) DrawLayerOp(mLayer, 0, 0),
949 handler(new (alloc) RestoreToCountOp(restoreTo),
H A DVertexBuffer.h55 alloc will allocate space within the first allocation (useful if you want to
60 TYPE* alloc(int vertexCount) { function in class:android::uirenderer::VertexBuffer
96 TYPE* dst = alloc<TYPE>(verticesToCopy);
/frameworks/base/rs/java/android/renderscript/
H A DAllocationAdapter.java24 AllocationAdapter(long id, RenderScript rs, Allocation alloc) { argument
25 super(id, rs, alloc.mType, alloc.mUsage);
26 mAdaptedAllocation = alloc;
H A DRenderScript.java393 native void rsnAllocationCopyToBitmap(long con, long alloc, Bitmap bmp); argument
394 synchronized void nAllocationCopyToBitmap(long alloc, Bitmap bmp) { argument
396 rsnAllocationCopyToBitmap(mContext, alloc, bmp);
400 native void rsnAllocationSyncAll(long con, long alloc, int src); argument
401 synchronized void nAllocationSyncAll(long alloc, int src) { argument
403 rsnAllocationSyncAll(mContext, alloc, src);
405 native Surface rsnAllocationGetSurface(long con, long alloc); argument
406 synchronized Surface nAllocationGetSurface(long alloc) { argument
408 return rsnAllocationGetSurface(mContext, alloc);
410 native void rsnAllocationSetSurface(long con, long alloc, Surfac argument
411 nAllocationSetSurface(long alloc, Surface sur) argument
415 rsnAllocationIoSend(long con, long alloc) argument
416 nAllocationIoSend(long alloc) argument
420 rsnAllocationIoReceive(long con, long alloc) argument
421 nAllocationIoReceive(long alloc) argument
427 rsnAllocationGenerateMipmaps(long con, long alloc) argument
428 nAllocationGenerateMipmaps(long alloc) argument
432 rsnAllocationCopyFromBitmap(long con, long alloc, Bitmap bmp) argument
433 nAllocationCopyFromBitmap(long alloc, Bitmap bmp) argument
593 rsnScriptBindAllocation(long con, long script, long alloc, int slot) argument
594 nScriptBindAllocation(long script, long alloc, int slot) argument
758 rsnScriptGroupSetInput(long con, long group, long kernel, long alloc) argument
759 nScriptGroupSetInput(long group, long kernel, long alloc) argument
764 rsnScriptGroupSetOutput(long con, long group, long kernel, long alloc) argument
765 nScriptGroupSetOutput(long group, long kernel, long alloc) argument
[all...]
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp559 nAllocationSetSurface(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject sur) argument
561 LOG_API("nAllocationSetSurface, con(%p), alloc(%p), surface(%p)",
562 (RsContext)con, (RsAllocation)alloc, (Surface *)sur);
569 rsAllocationSetSurface((RsContext)con, (RsAllocation)alloc, static_cast<ANativeWindow *>(s.get()));
573 nAllocationIoSend(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
575 LOG_API("nAllocationIoSend, con(%p), alloc(%p)", (RsContext)con, alloc);
576 rsAllocationIoSend((RsContext)con, (RsAllocation)alloc);
580 nAllocationIoReceive(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
582 LOG_API("nAllocationIoReceive, con(%p), alloc(
588 nAllocationGenerateMipmaps(JNIEnv *_env, jobject _this, jlong con, jlong alloc) argument
643 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap) argument
660 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap) argument
685 RsAllocation *alloc = (RsAllocation *)_alloc; local
694 nAllocationElementData1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint offset, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
708 RsAllocation *alloc = (RsAllocation *)_alloc; local
746 RsAllocation *alloc = (RsAllocation *)_alloc; local
781 RsAllocation *alloc = (RsAllocation *)_alloc; local
791 RsAllocation *alloc = (RsAllocation *)_alloc; local
802 RsAllocation *alloc = (RsAllocation *)_alloc; local
817 nAllocationResize1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint dimX) argument
948 nScriptBindAllocation(JNIEnv *_env, jobject _this, jlong con, jlong script, jlong alloc, jint slot) argument
1383 nScriptGroupSetInput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) argument
1391 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) argument
1643 const jlong alloc = (jlong)(uintptr_t)allocs[i]; local
1661 const jlong alloc = (jlong)(uintptr_t)allocs[i]; local
[all...]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DSceneManager.java214 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/cmds/installd/
H A Dutils.c539 void* alloc = _cache_malloc(cache, len); local
540 if (alloc != NULL && cur != NULL) {
541 memcpy(alloc, cur, origLen < len ? origLen : len);
543 return alloc;
/frameworks/native/libs/binder/
H A DMemoryDealer.cpp151 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/native/libs/ui/
H A DGraphicBufferAllocator.cpp93 status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format, function in class:android::GraphicBufferAllocator
105 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
107 ALOGW_IF(err, "alloc(%u, %u, %d, %08x, ...) failed %d (%s)",
/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...]
/frameworks/rs/driver/
H A DrsdAllocation.cpp92 uint8_t *GetOffsetPtr(const android::renderscript::Allocation *alloc, argument
95 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
96 ptr += face * alloc->mHal.drvState.faceOffset;
97 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride;
98 ptr += yoff * alloc->mHal.drvState.lod[lod].stride;
99 ptr += xoff * alloc->mHal.state.elementSizeBytes;
104 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument
108 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
114 if (alloc
123 Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) argument
165 UploadToTexture(const Context *rsc, const Allocation *alloc) argument
203 AllocateRenderTarget(const Context *rsc, const Allocation *alloc) argument
228 UploadToBufferObject(const Context *rsc, const Allocation *alloc) argument
303 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument
371 rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument
476 rsdAllocationDestroy(const Context *rsc, Allocation *alloc) argument
533 rsdAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument
561 rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) argument
595 rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument
640 rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument
646 IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
671 rsdAllocationSetSurface(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
757 rsdAllocationIoSend(const Context *rsc, Allocation *alloc) argument
785 rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) argument
795 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, const void *data, size_t sizeBytes) argument
815 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
875 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
914 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, void *data, size_t sizeBytes) argument
926 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
955 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
985 rsdAllocationLock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
990 rsdAllocationUnlock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
1077 rsdAllocationElementData1D(const Context *rsc, const Allocation *alloc, uint32_t x, const void *data, uint32_t cIdx, size_t sizeBytes) argument
1097 rsdAllocationElementData2D(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, const void *data, uint32_t cIdx, size_t sizeBytes) argument
1117 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1135 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1153 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1171 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument
1193 rsdAllocationGrallocBits(const android::renderscript::Context *rsc, android::renderscript::Allocation *alloc) argument
1199 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.cpp147 static void SC_AllocationIoSend(android::renderscript::rs_allocation alloc) { argument
149 rsrAllocationIoSend(rsc, (Allocation*)alloc.p);
153 static void SC_AllocationIoReceive(android::renderscript::rs_allocation alloc) { argument
155 rsrAllocationIoReceive(rsc, (Allocation*)alloc.p);
186 static void SC_AllocationIoSend(Allocation* alloc) { argument
188 rsrAllocationIoSend(rsc, alloc);
192 static void SC_AllocationIoReceive(Allocation* alloc) { argument
194 rsrAllocationIoReceive(rsc, alloc);
530 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); local
532 alloc
540 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); local
551 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); local
[all...]
H A DrsdSampler.cpp45 const Sampler *alloc,
48 obj->p = alloc;
51 if (alloc != NULL) {
52 obj->v1 = alloc->mHal.drv;
44 rsdSamplerUpdateCachedObject(const Context *rsc, const Sampler *alloc, rs_sampler *obj) argument
H A DrsdShader.cpp523 Allocation *alloc = mRSProgram->mHal.state.constants[ct]; local
525 if (!alloc) {
526 ALOGE("Attempting to set constants on shader id %p, but alloc at slot %u is not set",
532 const uint8_t *data = static_cast<const uint8_t *>(alloc->mHal.drvState.lod[0].mallocPtr);
/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
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
311 Allocation_t *alloc = (Allocation_t *)a.p; local
325 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
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/rs/java/tests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java155 private synchronized void filterAlloc(Allocation alloc, Sampler sampler) { argument
157 mScript.invoke_setSampleData(alloc, mTwoByTwoAlloc, sampler);
158 mScript.forEach_root(alloc);
159 alloc.ioSend();

Completed in 2735 milliseconds

12