Searched defs:alloc (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/include/utils/
H A DPool.h51 inline T* alloc() { function in class:android::Pool
/frameworks/base/libs/utils/
H A DSharedBuffer.cpp27 SharedBuffer* SharedBuffer::alloc(size_t size) function in class:android::SharedBuffer
50 SharedBuffer* sb = alloc(mSize);
69 SharedBuffer* sb = alloc(newSize);
89 SharedBuffer* sb = alloc(new_size);
/frameworks/base/libs/ui/
H A DGraphicBufferAllocator.cpp83 status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format, function in class:android::GraphicBufferAllocator
95 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
97 err = sw_gralloc_handle_t::alloc(w, h, format, usage, handle, stride);
100 LOGW_IF(err, "alloc(%u, %u, %d, %08x, ...) failed %d (%s)",
H A DGraphicBufferMapper.cpp114 status_t sw_gralloc_handle_t::alloc(uint32_t w, uint32_t h, int format, function in class:android::sw_gralloc_handle_t
161 LOGE("alloc mmap(fd=%d, size=%d, prot=%x) failed (%s)",
/frameworks/base/libs/rs/
H A DrsAdapter.cpp86 Allocation * alloc = static_cast<Allocation *>(valloc); local
87 a->setAllocation(alloc);
203 Allocation * alloc = static_cast<Allocation *>(valloc); local
204 a->setAllocation(alloc);
H A DrsFileA3D.cpp355 Allocation * alloc = static_cast<Allocation *>(a); local
357 float * data = (float *)alloc->getPtr();
363 ie->mRsObj = alloc;
H A DrsProgram.cpp112 void Program::bindAllocation(Allocation *alloc, uint32_t slot) argument
114 if (mConstants[slot].get() == alloc) {
120 mConstants[slot].set(alloc);
121 if (alloc) {
122 alloc->addProgramToDirty(this);
H A DrsProgramVertex.cpp227 Allocation *alloc = mConstants[ct+1].get(); local
228 if (!alloc) {
232 const uint8_t *data = static_cast<const uint8_t *>(alloc->getPtr());
374 Allocation *alloc = (Allocation *)rsi_AllocationCreateTyped(rsc, mAllocType.get()); local
375 mDefaultAlloc.set(alloc);
378 pv->bindAllocation(alloc, 0);
H A DrsAllocation.cpp32 LOGE("Allocation::Allocation, alloc failure");
337 Allocation * alloc = new Allocation(rsc, type); local
338 alloc->incUserRef();
339 return alloc;
353 Allocation *alloc = static_cast<Allocation *>(va); local
354 alloc->deferedUploadToTexture(rsc, genmip, baseMipLevel);
359 Allocation *alloc = static_cast<Allocation *>(va); local
360 alloc->deferedUploadToBufferObject(rsc);
519 Allocation * alloc = new Allocation(rsc, type, bmp, callbackData, callback); local
520 alloc
[all...]
/frameworks/base/core/jni/
H A DCursorWindow.cpp120 uint32_t fieldDirOffset = alloc(fieldDirSize);
135 uint32_t CursorWindow::alloc(size_t requestedSize, bool aligned) function in class:android::CursorWindow
202 nextChunkOffset = alloc(ROW_SLOT_CHUNK_SIZE, true);
317 int offset = alloc(sizeof(int64_t));
341 int offset = alloc(sizeof(int64_t));
H A Dandroid_util_AssetManager.cpp1639 String8 alloc = Asset::getAssetAllocations(); local
1640 if (alloc.length() <= 0) {
1644 jstring str = env->NewStringUTF(alloc.string());
/frameworks/base/libs/binder/
H A DMemoryDealer.cpp151 ssize_t alloc(size_t size, uint32_t flags);
292 ssize_t offset = alloc(size, flags);
306 ssize_t SimpleBestFitAllocator::alloc(size_t size, uint32_t flags) function in class:android::SimpleBestFitAllocator
/frameworks/base/media/libstagefright/
H A DMPEG2TSWriter.cpp271 size_t alloc = 4096; local
272 if (buffer->range_length() + 7 > alloc) {
273 alloc = 7 + buffer->range_length();
276 mAACBuffer = new ABuffer(alloc);
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp65 void* alloc(size_t size) { function in class:android::MallocHelper
121 pTransformed = (float*) mallocHelper.alloc(transformedIndexCount * 4 * sizeof(float));
/frameworks/base/graphics/java/android/renderscript/
H A DRenderScript.java105 native void nAllocationUploadToTexture(int alloc, boolean genMips, int baseMioLevel); argument
106 native void nAllocationUploadToBufferObject(int alloc); argument
120 native void nAdapter1DBindAllocation(int ad, int alloc); argument
128 native void nAdapter2DBindAllocation(int ad, int alloc); argument
136 native void nScriptBindAllocation(int script, int alloc, int slot); argument
186 native void nSimpleMeshBindVertex(int id, int alloc, int slot); argument
187 native void nSimpleMeshBindIndex(int id, int alloc); argument
/frameworks/base/graphics/jni/
H A Dandroid_renderscript_RenderScript.cpp575 nAllocationSubData1D_i(JNIEnv *_env, jobject _this, jint alloc, jint offset, jint count, jintArray data, int sizeBytes) argument
579 LOG_API("nAllocation1DSubData_i, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
581 rsAllocation1DSubData(con, (RsAllocation)alloc, offset, count, ptr, sizeBytes);
586 nAllocationSubData1D_s(JNIEnv *_env, jobject _this, jint alloc, jint offset, jint count, jshortArray data, int sizeBytes) argument
590 LOG_API("nAllocation1DSubData_s, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
592 rsAllocation1DSubData(con, (RsAllocation)alloc, offset, count, ptr, sizeBytes);
597 nAllocationSubData1D_b(JNIEnv *_env, jobject _this, jint alloc, jint offset, jint count, jbyteArray data, int sizeBytes) argument
601 LOG_API("nAllocation1DSubData_b, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
603 rsAllocation1DSubData(con, (RsAllocation)alloc, offset, count, ptr, sizeBytes);
608 nAllocationSubData1D_f(JNIEnv *_env, jobject _this, jint alloc, jin argument
619 nAllocationSubData2D_i(JNIEnv *_env, jobject _this, jint alloc, jint xoff, jint yoff, jint w, jint h, jintArray data, int sizeBytes) argument
630 nAllocationSubData2D_f(JNIEnv *_env, jobject _this, jint alloc, jint xoff, jint yoff, jint w, jint h, jfloatArray data, int sizeBytes) argument
641 nAllocationRead_i(JNIEnv *_env, jobject _this, jint alloc, jintArray data) argument
652 nAllocationRead_f(JNIEnv *_env, jobject _this, jint alloc, jfloatArray data) argument
665 nAllocationSubDataFromObject(JNIEnv *_env, jobject _this, jint alloc, jobject _type, jint offset, jobject _o) argument
683 nAllocationSubReadFromObject(JNIEnv *_env, jobject _this, jint alloc, jobject _type, jint offset, jobject _o) argument
707 nAdapter1DBindAllocation(JNIEnv *_env, jobject _this, jint adapter, jint alloc) argument
777 nAdapter2DBindAllocation(JNIEnv *_env, jobject _this, jint adapter, jint alloc) argument
849 nScriptBindAllocation(JNIEnv *_env, jobject _this, jint script, jint alloc, jint slot) argument
1335 nSimpleMeshBindVertex(JNIEnv *_env, jobject _this, jint s, jint alloc, jint slot) argument
1343 nSimpleMeshBindIndex(JNIEnv *_env, jobject _this, jint s, jint alloc) argument
[all...]

Completed in 265 milliseconds