Home
last modified time | relevance | path

Searched refs:usage (Results 1 – 25 of 196) sorted by relevance

12345678

/frameworks/base/tools/aidl/
Doptions.cpp9 usage() in usage() function
41 return usage(); in parse_options()
67 return usage(); in parse_options()
75 return usage(); in parse_options()
86 return usage(); in parse_options()
94 return usage(); in parse_options()
103 return usage(); in parse_options()
108 return usage(); in parse_options()
123 return usage(); in parse_options()
138 return usage(); in parse_options()
[all …]
/frameworks/native/libs/ui/
DGraphicBuffer.cpp45 usage = 0; in GraphicBuffer()
58 usage = 0; in GraphicBuffer()
74 usage = inUsage; in GraphicBuffer()
87 usage = buffer->usage; in GraphicBuffer()
132 if (handle && w==width && h==height && f==format && reqUsage==usage) in reallocate()
152 this->usage = reqUsage; in initSize()
157 status_t GraphicBuffer::lock(uint32_t usage, void** vaddr) in lock() argument
160 status_t res = lock(usage, lockBounds, vaddr); in lock()
164 status_t GraphicBuffer::lock(uint32_t usage, const Rect& rect, void** vaddr) in lock() argument
173 status_t res = getBufferMapper().lock(handle, usage, rect, vaddr); in lock()
[all …]
DGraphicBufferAllocator.cpp69 rec.w, rec.s, rec.h, rec.format, rec.usage); in dump()
73 rec.w, rec.s, rec.h, rec.format, rec.usage); in dump()
193 int usage, buffer_handle_t* handle, int32_t* stride) in alloc() argument
209 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride); in alloc()
214 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride); in alloc()
218 w, h, format, usage, err, strerror(-err)); in alloc()
234 rec.usage = usage; in alloc()
/frameworks/rs/cpp/
DAllocation.cpp50 Allocation::Allocation(void *id, RenderScript *rs, sp<const Type> t, uint32_t usage) : in Allocation() argument
53 if ((usage & ~(RS_ALLOCATION_USAGE_SCRIPT | in Allocation()
63 if ((usage & RS_ALLOCATION_USAGE_IO_INPUT) != 0) { in Allocation()
65 if ((usage & ~(RS_ALLOCATION_USAGE_IO_INPUT | in Allocation()
73 mUsage = usage; in Allocation()
382 RsAllocationMipmapControl mips, uint32_t usage) { in createTyped() argument
383 void *id = rsAllocationCreateTyped(rs->mContext, type->getID(), mips, usage, 0); in createTyped()
388 return new Allocation(id, rs, type, usage); in createTyped()
392 RsAllocationMipmapControl mips, uint32_t usage, void *pointer) { in createTyped() argument
393 void *id = rsAllocationCreateTyped(rs->mContext, type->getID(), mips, usage, (uint32_t)pointer); in createTyped()
[all …]
DAllocation.h56 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/native/include/ui/
DGraphicBuffer.h73 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; } in getUsage()
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);
DGraphicBufferAllocator.h65 status_t alloc(uint32_t w, uint32_t h, PixelFormat format, int usage,
79 uint32_t usage; member
/frameworks/base/graphics/java/android/renderscript/
DAllocation.java236 Allocation(int id, RenderScript rs, Type t, int usage) { in Allocation() argument
238 if ((usage & ~(USAGE_SCRIPT | in Allocation()
248 if ((usage & USAGE_IO_INPUT) != 0) { in Allocation()
251 if ((usage & ~(USAGE_IO_INPUT | in Allocation()
259 mUsage = usage; in Allocation()
1013 … static public Allocation createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) { in createTyped() argument
1018 int id = rs.nAllocationCreateTyped(type.getID(rs), mips.mID, usage, 0); in createTyped()
1022 return new Allocation(id, rs, type, usage); in createTyped()
1036 static public Allocation createTyped(RenderScript rs, Type type, int usage) { in createTyped() argument
1037 return createTyped(rs, type, MipmapControl.MIPMAP_NONE, usage); in createTyped()
[all …]
/frameworks/native/opengl/libagl/
DBufferObjectManager.cpp62 bo->usage = GL_STATIC_DRAW; in bind()
70 GLsizeiptr size, GLenum usage) in allocateStore() argument
81 bo->usage = usage; in allocateStore()
DBufferObjectManager.h44 GLenum usage; member
63 int allocateStore(gl::buffer_t* bo, GLsizeiptr size, GLenum usage);
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
DAllocation.java196 Allocation(int id, RenderScript rs, Type t, int usage) { in Allocation() argument
198 if ((usage & ~(USAGE_SCRIPT | USAGE_GRAPHICS_TEXTURE)) != 0) { in Allocation()
203 mUsage = usage; in Allocation()
905 … static public Allocation createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) { in createTyped() argument
910 int id = rs.nAllocationCreateTyped(type.getID(rs), mips.mID, usage, 0); in createTyped()
914 return new Allocation(id, rs, type, usage); in createTyped()
928 static public Allocation createTyped(RenderScript rs, Type type, int usage) { in createTyped() argument
929 return createTyped(rs, type, MipmapControl.MIPMAP_NONE, usage); in createTyped()
959 int count, int usage) { in createSized() argument
965 int id = rs.nAllocationCreateTyped(t.getID(rs), MipmapControl.MIPMAP_NONE.mID, usage, 0); in createSized()
[all …]
DRenderScript.java185 native int rsnAllocationCreateTyped(int con, int type, int mip, int usage, int pointer); in rsnAllocationCreateTyped() argument
186 synchronized int nAllocationCreateTyped(int type, int mip, int usage, int pointer) { in nAllocationCreateTyped() argument
188 return rsnAllocationCreateTyped(mContext, type, mip, usage, pointer); in nAllocationCreateTyped()
190 native int rsnAllocationCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); in rsnAllocationCreateFromBitmap() argument
191 synchronized int nAllocationCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { in nAllocationCreateFromBitmap() argument
193 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage); in nAllocationCreateFromBitmap()
195 … native int rsnAllocationCubeCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); in rsnAllocationCubeCreateFromBitmap() argument
196 synchronized int nAllocationCubeCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { in nAllocationCubeCreateFromBitmap() argument
198 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage); in nAllocationCubeCreateFromBitmap()
205 native int rsnAllocationCreateFromAssetStream(int con, int mips, int assetStream, int usage); in rsnAllocationCreateFromAssetStream() argument
[all …]
/frameworks/native/libs/gui/
DIGraphicBufferAlloc.cpp46 PixelFormat format, uint32_t usage, status_t* error) { in createGraphicBuffer() argument
52 data.writeInt32(usage); in createGraphicBuffer()
94 uint32_t usage = data.readInt32(); in onTransact() local
97 createGraphicBuffer(w, h, format, usage, &error); in onTransact()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DFullscreenBlur.java62 int usage = Allocation.USAGE_GRAPHICS_TEXTURE | Allocation.USAGE_GRAPHICS_RENDER_TARGET; in createRenderTargets() local
63 … sRenderTargetBlur0Color = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage)); in createRenderTargets()
64 … sRenderTargetBlur1Color = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage)); in createRenderTargets()
65 … sRenderTargetBlur2Color = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage)); in createRenderTargets()
70 usage = Allocation.USAGE_GRAPHICS_RENDER_TARGET; in createRenderTargets()
71 … sRenderTargetBlur0Depth = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage)); in createRenderTargets()
72 … sRenderTargetBlur1Depth = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage)); in createRenderTargets()
73 … sRenderTargetBlur2Depth = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage)); in createRenderTargets()
/frameworks/base/tools/obbtool/
Dmkobb.sh148 usage() { function
170 -h) usage; exit 1;;
183 usage
190 usage
/frameworks/av/media/libstagefright/codecs/amrwbenc/SampleCode/
DAMRWB_E_SAMPLE.c35 void usage (void) { in usage() function
285 usage(); in main()
313 usage(); in main()
328 usage(); in main()
348 usage (); in main()
/frameworks/base/tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/
DSampleRSActivity.java108 int usage = Allocation.USAGE_SCRIPT | Allocation.USAGE_IO_OUTPUT; in onCreate() local
114 Allocation outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage); in onCreate()
120 outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage); in onCreate()
126 outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage); in onCreate()
132 outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage); in onCreate()
/frameworks/av/tools/resampler_tools/
Dfir.cpp58 static void usage(char* name) { in usage() function
159 usage(argv[0]); in main()
178 else usage(argv[0]); in main()
188 usage(argv[0]); in main()
/frameworks/native/include/cpustats/
DREADME.txt1 This is a static library of CPU usage statistics, originally written
5 * should be related to CPU usage statistics
/frameworks/native/services/surfaceflinger/DisplayHardware/
DGraphicBufferAlloc.cpp35 PixelFormat format, uint32_t usage, status_t* error) { in createGraphicBuffer() argument
36 sp<GraphicBuffer> graphicBuffer(new GraphicBuffer(w, h, format, usage)); in createGraphicBuffer()
/frameworks/av/cmds/stagefright/
Drecordvideo.cpp33 static void usage(const char *me) { in usage() function
182 usage(argv[0]); in main()
233 usage(argv[0]); in main()
247 usage(argv[0]); in main()
/frameworks/base/core/java/android/webkit/
DWebStorage.java71 protected Origin(String origin, long quota, long usage) { in Origin() argument
74 mUsage = usage; in Origin()
/frameworks/base/cmds/backup/
Dbackup.cpp29 usage(int argc, const char** argv) in usage() function
116 return usage(argc, argv); in main()
/frameworks/base/cmds/screenshot/
Dscreenshot.c98 void usage() { in usage() function
121 usage(); exit(1); in main()
128 usage(); exit(1); in main()
/frameworks/base/cmds/screencap/
Dscreencap.cpp39 static void usage(const char* pname) in usage() function
106 usage(pname); in main()
130 usage(pname); in main()

12345678