Searched refs:usage (Results 1 - 25 of 190) sorted by last modified time

12345678

/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DAllocation.java35 * <p>An Allocation also contains a set of usage flags that denote how the
36 * Allocation could be used. For example, an Allocation may have usage flags
83 * The usage of the Allocation. These signal to RenderScript where to place
102 * consumer. This usage will cause the Allocation to be created as
182 * Get the usage flags of the Allocation.
184 * @return usage this Allocation's set of the USAGE_* flags OR'd together
221 Allocation(int id, RenderScript rs, Type t, int usage) { argument
223 if ((usage & ~(USAGE_SCRIPT |
228 throw new RSIllegalArgumentException("Unknown usage specified.");
231 if ((usage
1209 createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) argument
1236 createTyped(RenderScript rs, Type type, int usage) argument
1264 createSized(RenderScript rs, Element e, int count, int usage) argument
1335 createFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument
1412 createCubemapFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument
1483 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, MipmapControl mips, int usage) argument
1579 createFromBitmapResource(RenderScript rs, Resources res, int id, MipmapControl mips, int usage) argument
1626 createFromString(RenderScript rs, String str, int usage) argument
[all...]
H A DAllocationThunker.java75 AllocationThunker(RenderScript rs, Type t, int usage, android.renderscript.Allocation na) { argument
76 super(0, rs, t, usage);
79 mUsage = usage;
394 static public Allocation createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) { argument
402 usage);
403 return new AllocationThunker(rs, type, usage, a);
411 int usage) {
418 usage);
420 return new AllocationThunker(rs, tt, usage, a);
429 int usage) {
409 createFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument
427 createCubemapFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument
442 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, MipmapControl mips, int usage) argument
464 createFromBitmapResource(RenderScript rs, Resources res, int id, MipmapControl mips, int usage) argument
482 createFromString(RenderScript rs, String str, int usage) argument
497 createSized(RenderScript rs, Element e, int count, int usage) argument
[all...]
H A DRenderScript.java306 native int rsnAllocationCreateTyped(int con, int type, int mip, int usage, int pointer); argument
307 synchronized int nAllocationCreateTyped(int type, int mip, int usage, int pointer) { argument
309 return rsnAllocationCreateTyped(mContext, type, mip, usage, pointer);
311 native int rsnAllocationCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); argument
312 synchronized int nAllocationCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { argument
314 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage);
317 native int rsnAllocationCreateBitmapBackedAllocation(int con, int type, int mip, Bitmap bmp, int usage); argument
318 synchronized int nAllocationCreateBitmapBackedAllocation(int type, int mip, Bitmap bmp, int usage) { argument
320 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage);
324 native int rsnAllocationCubeCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); argument
325 nAllocationCubeCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) argument
334 rsnAllocationCreateFromAssetStream(int con, int mips, int assetStream, int usage) argument
335 nAllocationCreateFromAssetStream(int mips, int assetStream, int usage) argument
[all...]
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp321 nAllocationCreateTyped(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mips, jint usage, jint pointer) argument
323 LOG_API("nAllocationCreateTyped, con(%p), type(%p), mip(%i), usage(%i), ptr(%p)", con, (RsElement)type, mips, usage, (void *)pointer);
324 return (jint) rsAllocationCreateTyped(con, (RsType)type, (RsAllocationMipmapControl)mips, (uint32_t)usage, (uint32_t)pointer);
355 nAllocationCreateFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) argument
364 pixels, GetBitmapSize(_env, jbitmap), usage);
371 nAllocationCreateBitmapBackedAllocation(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) argument
380 (uint32_t)usage, (uintptr_t)pixels);
387 nAllocationCubeCreateFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) argument
396 pixels, GetBitmapSize(_env, jbitmap), usage);
[all...]
/frameworks/webview/chromium/plat_support/
H A Dgraphic_buffer_impl.cpp78 int usage = 0; local
81 usage = android::GraphicBuffer::USAGE_SW_READ_OFTEN;
84 usage = android::GraphicBuffer::USAGE_SW_WRITE_OFTEN;
87 usage = android::GraphicBuffer::USAGE_SW_READ_OFTEN |
93 return mBuffer->lock(usage, vaddr);
/frameworks/webview/chromium/tools/
H A Dmerge_from_chromium.py501 parser = optparse.OptionParser(usage='%prog [options]')
H A Dmerge_to_android.py346 parser = optparse.OptionParser(usage='%prog [options]')
/frameworks/rs/cpp/
H A DAllocation.cpp40 Allocation::Allocation(void *id, sp<RS> rs, sp<const Type> t, uint32_t usage) : argument
44 if ((usage & ~(RS_ALLOCATION_USAGE_SCRIPT |
52 ALOGE("Unknown usage specified.");
55 if ((usage & RS_ALLOCATION_USAGE_IO_INPUT) != 0) {
57 if ((usage & ~(RS_ALLOCATION_USAGE_IO_INPUT |
60 ALOGE("Invalid usage combination.");
65 mUsage = usage;
146 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Source must be exactly one usage type.");
155 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Can only send buffer if IO_OUTPUT usage specified.");
165 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Can only send buffer if IO_OUTPUT usage specifie
333 createTyped(sp<RS> rs, sp<const Type> type, RsAllocationMipmapControl mipmaps, uint32_t usage) argument
346 createTyped(sp<RS> rs, sp<const Type> type, RsAllocationMipmapControl mipmaps, uint32_t usage, void *pointer) argument
361 createTyped(sp<RS> rs, sp<const Type> type, uint32_t usage) argument
366 createSized(sp<RS> rs, sp<const Element> e, size_t count, uint32_t usage) argument
375 createSized2D(sp<RS> rs, sp<const Element> e, size_t x, size_t y, uint32_t usage) argument
[all...]
H A DrsCppStructs.h284 * An Allocation also contains a set of usage flags that denote how the
285 * Allocation could be used. For example, an Allocation may have usage flags
319 Allocation(void *id, sp<RS> rs, sp<const Type> t, uint32_t usage);
344 * Propagate changes from one usage of the Allocation to other usages of the Allocation.
510 * @param[in] usage usage for the Allocation
514 RsAllocationMipmapControl mipmaps, uint32_t usage);
522 * @param[in] usage usage for the Allocation
527 RsAllocationMipmapControl mipmaps, uint32_t usage, voi
[all...]
/frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java112 int usage = Allocation.USAGE_SCRIPT | Allocation.USAGE_IO_OUTPUT;
118 Allocation outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage);
124 outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage);
130 outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage);
136 outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage);
/frameworks/rs/
H A DrsScriptC_Lib.cpp236 void rsrAllocationSyncAll(Context *rsc, Allocation *a, RsAllocationUsageType usage) { argument
237 a->syncAll(rsc, usage);
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.c386 static void usage() { function
387 fprintf(stderr, "usage: dumpstate [-b soundfile] [-e soundfile] [-o file [-d] [-p] [-z]] [-s] [-q]\n"
458 usage();
/frameworks/native/include/gui/
H A DBufferQueueConsumer.h132 // setConsumerUsageBits will turn on additional usage bits for dequeueBuffer.
135 virtual status_t setConsumerUsageBits(uint32_t usage);
H A DBufferQueueProducer.h80 // The usage argument specifies gralloc buffer usage flags. The values
82 // will be merged with the usage flags specified by setConsumerUsageBits.
97 uint32_t width, uint32_t height, uint32_t format, uint32_t usage);
174 uint32_t format, uint32_t usage);
H A DGLConsumer.h43 * A typical usage pattern is to set up the GLConsumer with the
201 status_t setConsumerUsageBits(uint32_t usage);
357 // The default consumer usage flags that GLConsumer always sets on its
455 // be replaced if the requested buffer usage or geometry differs from that
H A DGraphicBufferAlloc.h37 PixelFormat format, uint32_t usage, status_t* error);
H A DIGraphicBufferAlloc.h40 PixelFormat format, uint32_t usage, status_t* error) = 0;
H A DIGraphicBufferConsumer.h289 // setConsumerUsageBits will turn on additional usage bits for dequeueBuffer.
294 virtual status_t setConsumerUsageBits(uint32_t usage) = 0;
H A DIGraphicBufferProducer.h141 // The usage argument specifies gralloc buffer usage flags. The values
143 // will be merged with the usage flags specified by
170 uint32_t w, uint32_t h, uint32_t format, uint32_t usage) = 0;
191 // 1) It is unnecessary to know the dimensions, format, or usage of the
444 // given format, dimensions, and usage bits, which are interpreted in the
451 uint32_t format, uint32_t usage) = 0;
/frameworks/native/include/ui/
H A DGraphicBuffer.h75 GraphicBuffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage);
78 GraphicBuffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage,
90 uint32_t getUsage() const { return usage; }
95 status_t reallocate(uint32_t w, uint32_t h, PixelFormat f, uint32_t usage);
97 status_t lock(uint32_t usage, void** vaddr);
98 status_t lock(uint32_t usage, const Rect& rect, void** vaddr);
100 status_t lockYCbCr(uint32_t usage, android_ycbcr *ycbcr);
101 status_t lockYCbCr(uint32_t usage, const Rect& rect, android_ycbcr *ycbcr);
103 status_t lockAsync(uint32_t usage, void** vaddr, int fenceFd);
104 status_t lockAsync(uint32_t usage, cons
[all...]
H A DGraphicBufferAllocator.h65 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 DGraphicBufferMapper.h46 int usage, const Rect& bounds, void** vaddr);
49 int usage, const Rect& bounds, android_ycbcr *ycbcr);
54 int usage, const Rect& bounds, void** vaddr, int fenceFd);
57 int usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd);
/frameworks/native/libs/gui/
H A DBufferQueueConsumer.cpp499 status_t BufferQueueConsumer::setConsumerUsageBits(uint32_t usage) { argument
501 BQ_LOGV("setConsumerUsageBits: %#x", usage);
503 mCore->mConsumerUsageBits = usage;
H A DBufferQueueProducer.cpp253 uint32_t width, uint32_t height, uint32_t format, uint32_t usage) {
260 BQ_LOGV("dequeueBuffer: async=%s w=%u h=%u format=%#x, usage=%#x",
261 async ? "true" : "false", width, height, format, usage);
281 // Enable the usage bits the consumer requested
282 usage |= mCore->mConsumerUsageBits;
315 ((static_cast<uint32_t>(buffer->usage) & usage) != usage))
344 width, height, format, usage, &error));
907 uint32_t height, uint32_t format, uint32_t usage) {
251 dequeueBuffer(int *outSlot, sp<android::Fence> *outFence, bool async, uint32_t width, uint32_t height, uint32_t format, uint32_t usage) argument
906 allocateBuffers(bool async, uint32_t width, uint32_t height, uint32_t format, uint32_t usage) argument
[all...]
H A DGLConsumer.cpp1012 status_t GLConsumer::setConsumerUsageBits(uint32_t usage) { argument
1014 usage |= DEFAULT_USAGE_FLAGS;
1015 return mConsumer->setConsumerUsageBits(usage);
1100 ALOGE("Failed to create image. size=%ux%u st=%u usage=0x%x fmt=%d",

Completed in 109 milliseconds

12345678