/frameworks/rs/cpp/ |
H A D | Allocation.cpp | 50 Allocation::Allocation(void *id, RenderScript *rs, sp<const Type> t, uint32_t usage) : argument 53 if ((usage & ~(RS_ALLOCATION_USAGE_SCRIPT | 60 ALOGE("Unknown usage specified."); 63 if ((usage & RS_ALLOCATION_USAGE_IO_INPUT) != 0) { 65 if ((usage & ~(RS_ALLOCATION_USAGE_IO_INPUT | 68 ALOGE("Invalid usage combination."); 73 mUsage = usage; 150 ALOGE("Source must be exactly one usage type."); 157 ALOGE("Can only send buffer if IO_OUTPUT usage specified."); 164 ALOGE("Can only send buffer if IO_OUTPUT usage specifie 381 createTyped(RenderScript *rs, sp<const Type> type, RsAllocationMipmapControl mips, uint32_t usage) argument 391 createTyped(RenderScript *rs, sp<const Type> type, RsAllocationMipmapControl mips, uint32_t usage, void *pointer) argument 400 createTyped(RenderScript *rs, sp<const Type> type, uint32_t usage) argument 405 createSized(RenderScript *rs, sp<const Element> e, size_t count, uint32_t usage) argument [all...] |
/frameworks/rs/ |
H A D | rsScriptC_Lib.cpp | 164 void rsrAllocationSyncAll(Context *rsc, Script *sc, Allocation *a, RsAllocationUsageType usage) { argument 165 a->syncAll(rsc, usage);
|
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/ |
H A D | Allocation.java | 95 * The usage of the allocation. These signal to renderscript 163 * Get the usage flags of the Allocation. 165 * @return usage flags associated with the allocation. e.g. 196 Allocation(int id, RenderScript rs, Type t, int usage) { argument 198 if ((usage & ~(USAGE_SCRIPT | USAGE_GRAPHICS_TEXTURE)) != 0) { 199 throw new RSIllegalArgumentException("Unknown usage specified."); 203 mUsage = usage; 268 * Propagate changes from one usage of the allocation to the 278 throw new RSIllegalArgumentException("Source must be exactly one usage type."); 902 * @param usage bi 905 createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) argument 928 createTyped(RenderScript rs, Type type, int usage) argument 958 createSized(RenderScript rs, Element e, int count, int usage) argument 1026 createFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument 1068 createCubemapFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument 1139 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, MipmapControl mips, int usage) argument [all...] |
H A D | RenderScript.java | 185 native int rsnAllocationCreateTyped(int con, int type, int mip, int usage, int pointer); argument 186 synchronized int nAllocationCreateTyped(int type, int mip, int usage, int pointer) { argument 188 return rsnAllocationCreateTyped(mContext, type, mip, usage, pointer); 190 native int rsnAllocationCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); argument 191 synchronized int nAllocationCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { argument 193 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage); 195 native int rsnAllocationCubeCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); argument 196 synchronized int nAllocationCubeCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { argument 198 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage); 205 native int rsnAllocationCreateFromAssetStream(int con, int mips, int assetStream, int usage); argument 206 nAllocationCreateFromAssetStream(int mips, int assetStream, int usage) argument [all...] |
/frameworks/support/renderscript/v8/jni/ |
H A D | android_renderscript_RenderScript.cpp | 318 nAllocationCreateTyped(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mips, jint usage, jint pointer) argument 320 LOG_API("nAllocationCreateTyped, con(%p), type(%p), mip(%i), usage(%i), ptr(%p)", con, (RsElement)type, mips, usage, (void *)pointer); 321 return (jint) rsAllocationCreateTyped(con, (RsType)type, (RsAllocationMipmapControl)mips, (uint32_t)usage, (uint32_t)pointer); 352 nAllocationCreateFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) argument 361 GetBitmapSize(_env, jbitmap), usage); 368 nAllocationCubeCreateFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) argument 377 pixels, GetBitmapSize(_env, jbitmap), usage);
|
/frameworks/support/renderscript/v8/rs_support/ |
H A D | rsScriptC_Lib.cpp | 164 void rsrAllocationSyncAll(Context *rsc, Script *sc, Allocation *a, RsAllocationUsageType usage) { argument 165 a->syncAll(rsc, usage);
|
/frameworks/native/cmds/dumpstate/ |
H A D | dumpstate.c | 304 static void usage() { function 305 fprintf(stderr, "usage: dumpstate [-b soundfile] [-e soundfile] [-o file [-d] [-p] [-z]] [-s] [-q]\n" 364 usage();
|
/frameworks/native/include/gui/ |
H A D | Surface.h | 116 uint32_t usage; member in struct:android::Surface::SurfaceInfo
|
/frameworks/native/include/ui/ |
H A D | GraphicBufferAllocator.h | 65 status_t alloc(uint32_t w, uint32_t h, PixelFormat format, int usage, 79 uint32_t usage; member in struct:android::GraphicBufferAllocator::alloc_rec_t
|
/frameworks/native/libs/gui/ |
H A D | BufferQueue.cpp | 129 status_t BufferQueue::setConsumerUsageBits(uint32_t usage) { argument 131 mConsumerUsageBits = usage; 259 uint32_t w, uint32_t h, uint32_t format, uint32_t usage) { 261 ST_LOGV("dequeueBuffer: w=%d h=%d fmt=%#x usage=%#x", w, h, format, usage); 278 // turn on usage bits the consumer requested 279 usage |= mConsumerUsageBits; 385 ((uint32_t(buffer->usage) & usage) != usage)) 258 dequeueBuffer(int *outBuf, sp<Fence>& outFence, uint32_t w, uint32_t h, uint32_t format, uint32_t usage) argument [all...] |
H A D | IGraphicBufferAlloc.cpp | 46 PixelFormat format, uint32_t usage, status_t* error) { 52 data.writeInt32(usage); 94 uint32_t usage = data.readInt32(); local 97 createGraphicBuffer(w, h, format, usage, &error); 45 createGraphicBuffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage, status_t* error) argument
|
H A D | ISurfaceTexture.cpp | 85 uint32_t w, uint32_t h, uint32_t format, uint32_t usage) { 91 data.writeInt32(usage); 217 uint32_t usage = data.readInt32(); local 220 int result = dequeueBuffer(&buf, fence, w, h, format, usage); 84 dequeueBuffer(int *buf, sp<Fence>& fence, uint32_t w, uint32_t h, uint32_t format, uint32_t usage) argument
|
H A D | SurfaceTexture.cpp | 853 status_t SurfaceTexture::setConsumerUsageBits(uint32_t usage) { argument 855 usage |= DEFAULT_USAGE_FLAGS; 856 return mBufferQueue->setConsumerUsageBits(usage);
|
H A D | SurfaceTextureClient.cpp | 436 int usage = va_arg(args, int); local 437 return setUsage(usage);
|
/frameworks/native/libs/ui/ |
H A D | FramebufferNativeWindow.cpp | 55 ANativeWindowBuffer::usage = u; member in class:android::NativeBuffer::ANativeWindowBuffer
|
H A D | GraphicBuffer.cpp | 45 usage = 0; 58 usage = 0; 74 usage = inUsage; 87 usage = buffer->usage; 132 if (handle && w==width && h==height && f==format && reqUsage==usage) 152 this->usage = reqUsage; 157 status_t GraphicBuffer::lock(uint32_t usage, void** vaddr) argument 160 status_t res = lock(usage, lockBounds, vaddr); 164 status_t GraphicBuffer::lock(uint32_t usage, cons argument [all...] |
H A D | GraphicBufferAllocator.cpp | 69 rec.w, rec.s, rec.h, rec.format, rec.usage); 73 rec.w, rec.s, rec.h, rec.format, rec.usage); 193 int usage, buffer_handle_t* handle, int32_t* stride) 209 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride); 214 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride); 218 w, h, format, usage, err, strerror(-err)); 234 rec.usage = usage; 192 alloc(uint32_t w, uint32_t h, PixelFormat format, int usage, buffer_handle_t* handle, int32_t* stride) argument
|
H A D | GraphicBufferMapper.cpp | 74 int usage, const Rect& bounds, void** vaddr) 79 err = mAllocMod->lock(mAllocMod, handle, usage, 73 lock(buffer_handle_t handle, int usage, const Rect& bounds, void** vaddr) argument
|
/frameworks/native/opengl/libagl/ |
H A D | BufferObjectManager.cpp | 62 bo->usage = GL_STATIC_DRAW; 70 GLsizeiptr size, GLenum usage) 81 bo->usage = usage; 69 allocateStore(buffer_t* bo, GLsizeiptr size, GLenum usage) argument
|
H A D | BufferObjectManager.h | 44 GLenum usage; member in struct:android::gl::buffer_t 63 int allocateStore(gl::buffer_t* bo, GLsizeiptr size, GLenum usage);
|
H A D | array.cpp | 1470 void glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) argument 1481 if ((usage!=GL_STATIC_DRAW) && (usage!=GL_DYNAMIC_DRAW)) { 1495 if (c->bufferObjectManager->allocateStore(edit_bo, size, usage) != 0) {
|
H A D | egl.cpp | 239 status_t lock(ANativeWindowBuffer* buf, int usage, void** vaddr); 435 ANativeWindowBuffer* buf, int usage, void** vaddr) 440 usage, 0, 0, buf->width, buf->height, vaddr); 434 lock( ANativeWindowBuffer* buf, int usage, void** vaddr) argument
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_api.cpp | 460 void GLTrace_glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) { argument 484 // copy argument usage 488 arg_usage->add_intvalue((int)usage); 493 glContext->hooks->gl.glBufferData(target, size, data, usage);
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | GraphicBufferAlloc.cpp | 35 PixelFormat format, uint32_t usage, status_t* error) { 36 sp<GraphicBuffer> graphicBuffer(new GraphicBuffer(w, h, format, usage)); 34 createGraphicBuffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage, status_t* error) argument
|
/frameworks/base/tools/obbtool/ |
H A D | Main.cpp | 68 * Print usage info. 70 void usage(void) function 296 usage();
|