Searched defs:usage (Results 1 - 25 of 116) sorted by last modified time

12345

/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/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...]
/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/ui/
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
/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",
H A DGraphicBufferAlloc.cpp35 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
H A DIGraphicBufferAlloc.cpp46 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 DIGraphicBufferConsumer.cpp372 virtual status_t setConsumerUsageBits(uint32_t usage) { argument
375 data.writeInt32(usage);
529 uint32_t usage = data.readInt32(); local
530 status_t result = setConsumerUsageBits(usage);
H A DIGraphicBufferProducer.cpp94 uint32_t w, uint32_t h, uint32_t format, uint32_t usage) {
101 data.writeInt32(usage);
258 uint32_t format, uint32_t usage) {
265 data.writeInt32(static_cast<int32_t>(usage));
306 uint32_t usage = data.readInt32(); local
309 int result = dequeueBuffer(&buf, &fence, async, w, h, format, usage);
419 uint32_t usage = static_cast<uint32_t>(data.readInt32()); local
420 allocateBuffers(async, width, height, format, usage);
93 dequeueBuffer(int *buf, sp<Fence>* fence, bool async, uint32_t w, uint32_t h, uint32_t format, uint32_t usage) argument
257 allocateBuffers(bool async, uint32_t width, uint32_t height, uint32_t format, uint32_t usage) argument
H A DSurface.cpp469 int usage = va_arg(args, int); local
470 return setUsage(usage);
/frameworks/native/libs/gui/tests/
H A DIGraphicBufferProducer_test.cpp198 status_t dequeueBuffer(bool async, uint32_t w, uint32_t h, uint32_t format, uint32_t usage, DequeueBufferResult* result) { argument
199 return mProducer->dequeueBuffer(&result->slot, &result->fence, async, w, h, format, usage);
H A DStreamSplitter_test.cpp64 PixelFormat format, uint32_t usage, status_t* error) {
67 usage, error);
63 createGraphicBuffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage, status_t* error) argument
/frameworks/native/libs/ui/
H A DFramebufferNativeWindow.cpp55 ANativeWindowBuffer::usage = u; member in class:android::NativeBuffer::ANativeWindowBuffer
H A DGraphicBuffer.cpp52 usage = 0;
65 usage = 0;
81 usage = inUsage;
94 usage = buffer->usage;
140 if (handle && w==width && h==height && f==format && reqUsage==usage)
160 this->usage = reqUsage;
165 status_t GraphicBuffer::lock(uint32_t usage, void** vaddr) argument
168 status_t res = lock(usage, lockBounds, vaddr);
172 status_t GraphicBuffer::lock(uint32_t usage, cons argument
185 lockYCbCr(uint32_t usage, android_ycbcr *ycbcr) argument
192 lockYCbCr(uint32_t usage, const Rect& rect, android_ycbcr *ycbcr) argument
212 lockAsync(uint32_t usage, void** vaddr, int fenceFd) argument
219 lockAsync(uint32_t usage, const Rect& rect, void** vaddr, int fenceFd) argument
232 lockAsyncYCbCr(uint32_t usage, android_ycbcr *ycbcr, int fenceFd) argument
239 lockAsyncYCbCr(uint32_t usage, const Rect& rect, android_ycbcr *ycbcr, int fenceFd) argument
[all...]
H A DGraphicBufferAllocator.cpp69 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
H A DGraphicBufferMapper.cpp76 int usage, const Rect& bounds, void** vaddr)
81 err = mAllocMod->lock(mAllocMod, handle, usage,
90 int usage, const Rect& bounds, android_ycbcr *ycbcr)
99 err = mAllocMod->lock_ycbcr(mAllocMod, handle, usage,
119 int usage, const Rect& bounds, void** vaddr, int fenceFd)
125 err = mAllocMod->lockAsync(mAllocMod, handle, usage,
131 err = mAllocMod->lock(mAllocMod, handle, usage,
141 int usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd)
148 err = mAllocMod->lockAsync_ycbcr(mAllocMod, handle, usage,
154 err = mAllocMod->lock_ycbcr(mAllocMod, handle, usage,
75 lock(buffer_handle_t handle, int usage, const Rect& bounds, void** vaddr) argument
89 lockYCbCr(buffer_handle_t handle, int usage, const Rect& bounds, android_ycbcr *ycbcr) argument
118 lockAsync(buffer_handle_t handle, int usage, const Rect& bounds, void** vaddr, int fenceFd) argument
140 lockAsyncYCbCr(buffer_handle_t handle, int usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) argument
[all...]
/frameworks/native/opengl/libagl/
H A DBufferObjectManager.cpp62 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 DBufferObjectManager.h44 GLenum usage; member in struct:android::gl::buffer_t
63 int allocateStore(gl::buffer_t* bo, GLsizeiptr size, GLenum usage);

Completed in 1034 milliseconds

12345