/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/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...] |
H A D | Allocation.h | 56 Allocation(void *id, RenderScript *rs, sp<const Type> t, uint32_t usage); 116 RsAllocationMipmapControl mips, uint32_t usage); 118 RsAllocationMipmapControl mips, uint32_t usage, void * pointer); 121 uint32_t usage = RS_ALLOCATION_USAGE_SCRIPT); 123 uint32_t usage = RS_ALLOCATION_USAGE_SCRIPT);
|
/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/native/cmds/dumpstate/ |
H A D | dumpstate.c | 297 static void usage() { function 298 fprintf(stderr, "usage: dumpstate [-b soundfile] [-e soundfile] [-o file [-d] [-p] [-z]] [-s] [-q]\n" 357 usage();
|
/frameworks/native/include/gui/ |
H A D | BufferQueue.h | 132 uint32_t width, uint32_t height, uint32_t format, uint32_t usage); 279 // setConsumerUsageBits will turn on additional usage bits for dequeueBuffer 280 status_t setConsumerUsageBits(uint32_t usage);
|
H A D | IGraphicBufferAlloc.h | 40 PixelFormat format, uint32_t usage, status_t* error) = 0;
|
H A D | ISurfaceTexture.h | 74 uint32_t w, uint32_t h, uint32_t format, uint32_t usage) = 0;
|
H A D | Surface.h | 116 uint32_t usage; member in struct:android::Surface::SurfaceInfo
|
H A D | SurfaceTexture.h | 177 status_t setConsumerUsageBits(uint32_t usage); 281 // The default consumer usage flags that SurfaceTexture always sets on its 378 // be replaced if the requested buffer usage or geometry differs from that
|
/frameworks/native/include/ui/ |
H A D | GraphicBuffer.h | 73 GraphicBuffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage); 76 GraphicBuffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage, 88 uint32_t getUsage() const { return usage; } 92 status_t reallocate(uint32_t w, uint32_t h, PixelFormat f, uint32_t usage); 94 status_t lock(uint32_t usage, void** vaddr); 95 status_t lock(uint32_t usage, const Rect& rect, void** vaddr); 134 uint32_t usage);
|
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
|
H A D | GraphicBufferMapper.h | 46 int usage, const Rect& bounds, void** vaddr);
|
/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; 386 ((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 | Surface.cpp | 368 other->usage = GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_SW_WRITE_OFTEN;
|
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); 94 int usage, buffer_handle_t* handle, int32_t* stride) 105 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride); 108 w, h, format, usage, err, strerror(-err)); 124 rec.usage = usage; 93 alloc(uint32_t w, uint32_t h, PixelFormat format, int usage, buffer_handle_t* handle, int32_t* stride) argument
|