Searched defs:usage (Results 26 - 50 of 71) sorted by relevance

123

/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DRsBenchRS.java96 int usage) {
104 allocArrayZero.length, usage);
94 createZeroTerminatedAlloc(RenderScript rs, String str, int usage) argument
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp215 void usage(const char* name) { function
242 usage(argv[0]);
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.c297 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/libs/gui/
H A DISurfaceTexture.cpp85 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 DBufferQueue.cpp129 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...]
/frameworks/native/libs/ui/
H A DFramebufferNativeWindow.cpp55 ANativeWindowBuffer::usage = u; member in class:android::NativeBuffer::ANativeWindowBuffer
H A DGraphicBuffer.cpp45 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...]
/frameworks/rs/cpp/
H A DAllocation.cpp50 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 DrsScriptC_Lib.cpp164 void rsrAllocationSyncAll(Context *rsc, Script *sc, Allocation *a, RsAllocationUsageType usage) { argument
165 a->syncAll(rsc, usage);
/frameworks/support/renderscript/v8/rs_support/
H A DrsScriptC_Lib.cpp164 void rsrAllocationSyncAll(Context *rsc, Script *sc, Allocation *a, RsAllocationUsageType usage) { argument
165 a->syncAll(rsc, usage);
/frameworks/av/media/libmedia/
H A DIOMX.cpp226 node_id node, OMX_U32 port_index, OMX_U32* usage) {
234 *usage = reply.readInt32();
575 OMX_U32 usage = 0; local
576 status_t err = getGraphicBufferUsage(node, port_index, &usage);
578 reply->writeInt32(usage);
225 getGraphicBufferUsage( node_id node, OMX_U32 port_index, OMX_U32* usage) argument
H A DIAudioPolicyService.cpp104 virtual status_t setForceUse(audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) argument
108 data.writeInt32(static_cast <uint32_t>(usage));
114 virtual audio_policy_forced_cfg_t getForceUse(audio_policy_force_use_t usage) argument
118 data.writeInt32(static_cast <uint32_t>(usage));
408 audio_policy_force_use_t usage = static_cast <audio_policy_force_use_t>(data.readInt32()); local
411 reply->writeInt32(static_cast <uint32_t>(setForceUse(usage, config)));
417 audio_policy_force_use_t usage = static_cast <audio_policy_force_use_t>(data.readInt32()); local
418 reply->writeInt32(static_cast <uint32_t>(getForceUse(usage)));
H A DAudioSystem.cpp573 status_t AudioSystem::setForceUse(audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) argument
577 return aps->setForceUse(usage, config);
580 audio_policy_forced_cfg_t AudioSystem::getForceUse(audio_policy_force_use_t usage) argument
584 return aps->getForceUse(usage);
/frameworks/av/media/libstagefright/
H A DOMXClient.cpp76 node_id node, OMX_U32 port_index, OMX_U32* usage);
260 node_id node, OMX_U32 port_index, OMX_U32* usage) {
261 return getOMX(node)->getGraphicBufferUsage(node, port_index, usage);
259 getGraphicBufferUsage( node_id node, OMX_U32 port_index, OMX_U32* usage) argument
/frameworks/av/cmds/stagefright/
H A Dsf2.cpp550 static void usage(const char *me) { function
551 fprintf(stderr, "usage: %s\n", me);
586 usage(argv[0]);
596 usage(argv[-optind]);
H A Dstagefright.cpp591 static void usage(const char *me) { function
592 fprintf(stderr, "usage: %s\n", me);
800 usage(argv[0]);
/frameworks/av/media/libstagefright/omx/
H A DOMX.cpp325 node_id node, OMX_U32 port_index, OMX_U32* usage) {
326 return findInstance(node)->getGraphicBufferUsage(port_index, usage);
324 getGraphicBufferUsage( node_id node, OMX_U32 port_index, OMX_U32* usage) argument
H A DOMXNodeInstance.cpp315 OMX_U32 portIndex, OMX_U32* usage) {
348 *usage = params.nUsage;
314 getGraphicBufferUsage( OMX_U32 portIndex, OMX_U32* usage) argument
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp784 static void usage(const char *me) { function
785 fprintf(stderr, "usage: %s\n"
833 usage(me);
/frameworks/base/drm/java/android/drm/
H A DDrmManagerClient.java359 throw new IllegalArgumentException("Given usage or path is invalid/null");
860 private native ContentValues _getConstraints(int uniqueId, String path, int usage); argument
/frameworks/base/graphics/java/android/renderscript/
H A DAllocation.java97 * The usage of the allocation. These signal to renderscript
136 * consumer. This usage will cause the allocation to be created
203 * Get the usage flags of the Allocation.
205 * @return usage flags associated with the allocation. e.g.
236 Allocation(int id, RenderScript rs, Type t, int usage) { argument
238 if ((usage & ~(USAGE_SCRIPT |
245 throw new RSIllegalArgumentException("Unknown usage specified.");
248 if ((usage & USAGE_IO_INPUT) != 0) {
251 if ((usage & ~(USAGE_IO_INPUT |
254 throw new RSIllegalArgumentException("Invalid usage combinatio
1013 createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) argument
1036 createTyped(RenderScript rs, Type type, int usage) argument
1066 createSized(RenderScript rs, Element e, int count, int usage) argument
1134 createFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument
1233 createCubemapFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument
1304 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, MipmapControl mips, int usage) argument
1397 createFromBitmapResource(RenderScript rs, Resources res, int id, MipmapControl mips, int usage) argument
1439 createFromString(RenderScript rs, String str, int usage) argument
[all...]
H A DMesh.java199 int usage; field in class:Mesh.Builder.Entry
210 * @param usage specifies how the mesh allocations are to be
214 public Builder(RenderScript rs, int usage) { argument
216 mUsage = usage;
802 int usage = Allocation.USAGE_SCRIPT;
804 usage |= Allocation.USAGE_GRAPHICS_VERTEX;
807 Builder smb = new Builder(mRS, usage);
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DAllocation.java95 * 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...]
/frameworks/av/services/camera/libcameraservice/
H A DCameraHardwareInterface.h641 static int __set_usage(struct preview_stream_ops* w, int usage) argument
644 return native_window_set_usage(a, usage);
/frameworks/av/services/camera/tests/CameraServiceTest/
H A DCameraServiceTest.cpp312 virtual sp<GraphicBuffer> requestBuffer(int bufferIdx, int usage);
350 sp<GraphicBuffer> MSurface::requestBuffer(int bufferIdx, int usage) { argument

Completed in 1073 milliseconds

123