Searched refs:usage (Results 51 - 75 of 210) sorted by relevance

123456789

/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/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioPolicyMix.cpp111 mix->mCriteria[j].mAttr.mUsage == attributes.usage) ||
113 mix->mCriteria[j].mAttr.mUsage != attributes.usage)) {
126 if (attributes.usage == AUDIO_USAGE_VIRTUAL_SOURCE &&
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiConnectionStatistics.java30 * and WiFi usage.
63 public void incrementOrAddUntrusted(String SSID, int connection, int usage) { argument
71 stats.numUsage = usage + stats.numUsage;
74 stats = new WifiNetworkConnectionStatistics(connection, usage);
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DVirtualDisplaySurface.h103 uint32_t w, uint32_t h, PixelFormat format, uint32_t usage);
117 PixelFormat format, uint32_t usage);
126 status_t dequeueBuffer(Source source, PixelFormat format, uint32_t usage,
154 // To avoid buffer reallocations, we track the buffer usage and format
157 // different usage/format, we'll get a new buffer.
H A DVirtualDisplaySurface.cpp79 // on usage bits.
145 // composition. Stop using the format and usage requested by the GLES
152 // format/usage and get a new buffer when the GLES driver calls
290 PixelFormat format, uint32_t usage, int* sslot, sp<Fence>* fence) {
296 mSinkBufferWidth, mSinkBufferHeight, format, usage);
325 VDS_LOGV("dequeueBuffer(%s): buffers[%d]=%p fmt=%d usage=%#x",
335 uint32_t w, uint32_t h, PixelFormat format, uint32_t usage) {
337 return mSource[SOURCE_SINK]->dequeueBuffer(pslot, fence, async, w, h, format, usage);
344 VDS_LOGV("dequeueBuffer %dx%d fmt=%d usage=%#x", w, h, format, usage);
289 dequeueBuffer(Source source, PixelFormat format, uint32_t usage, int* sslot, sp<Fence>* fence) argument
334 dequeueBuffer(int* pslot, sp<Fence>* fence, bool async, uint32_t w, uint32_t h, PixelFormat format, uint32_t usage) argument
[all...]
/frameworks/av/media/libmedia/
H A DAudioPolicy.cpp27 AttributeMatchCriterion::AttributeMatchCriterion(audio_usage_t usage, argument
34 mAttr.mUsage = usage;
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/include/
H A DParameterManagerWrapper.h92 * Set Force Use config for a given usage.
95 * @param[in] usage for which a configuration shall be forced.
99 * allowed a given usage...)
101 status_t setForceUse(audio_policy_force_use_t usage, audio_policy_forced_cfg_t config);
103 audio_policy_forced_cfg_t getForceUse(audio_policy_force_use_t usage) const;
/frameworks/base/cmds/idmap/
H A Didmap.cpp9 const char *usage = "NAME\n\ member in namespace:__anon810
221 printf("%s\n", usage);
241 fprintf(stderr, "Usage: don't use this (cf dexopt usage).\n");
/frameworks/base/core/java/android/app/usage/
H A DNetworkStatsManager.java17 package android.app.usage;
19 import android.app.usage.NetworkStats.Bucket;
28 * Provides access to network usage history and statistics. Usage data is collected in
33 * {@link #querySummaryForDevice}) collect only network usage of apps belonging to the same user
34 * as the client. In addition tethering usage, usage by removed users and apps, and usage by system
42 * These queries aggregate network usage across the whole interval. Therefore there will be only one
44 * summaries a single bucket containing the totalised network usage is returned.
60 * access to usage dat
[all...]
/frameworks/native/include/gui/
H A DBufferQueueProducer.h78 // The usage argument specifies gralloc buffer usage flags. The values
80 // will be merged with the usage flags specified by setConsumerUsageBits.
96 uint32_t usage);
173 PixelFormat format, uint32_t usage);
/frameworks/native/opengl/tests/EGLTest/
H A DAndroid.mk26 # gold in binutils 2.22 will warn about the usage of mktemp
/frameworks/base/rs/java/android/renderscript/
H A DAllocation.java33 * <p>An Allocation also contains a set of usage flags that denote how the
34 * Allocation could be used. For example, an Allocation may have usage flags
142 * The usage of the Allocation. These signal to RenderScript where to place
187 * consumer. This usage will cause the Allocation to be created
267 * Get the usage flags of the Allocation.
269 * @return usage this Allocation's set of the USAGE_* flags OR'd together
317 Allocation(long id, RenderScript rs, Type t, int usage) { argument
319 if ((usage & ~(USAGE_SCRIPT |
327 throw new RSIllegalArgumentException("Unknown usage specified.");
330 if ((usage
1878 createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) argument
1906 createTyped(RenderScript rs, Type type, int usage) argument
1934 createSized(RenderScript rs, Element e, int count, int usage) argument
2006 createFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument
2125 createCubemapFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument
2196 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, MipmapControl mips, int usage) argument
2289 createFromBitmapResource(RenderScript rs, Resources res, int id, MipmapControl mips, int usage) argument
2343 createFromString(RenderScript rs, String str, int usage) argument
[all...]
/frameworks/av/services/audiopolicy/enginedefault/src/
H A DEngine.cpp152 status_t Engine::setForceUse(audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) argument
154 switch(usage) {
161 mForceUse[usage] = config;
172 mForceUse[usage] = config;
180 mForceUse[usage] = config;
190 mForceUse[usage] = config;
197 mForceUse[usage] = config;
204 mForceUse[usage] = config;
207 ALOGW("setForceUse() invalid usage %d", usage);
245 getStrategyForUsage(audio_usage_t usage) argument
[all...]
/frameworks/rs/cpp/
H A DAllocation.cpp41 Allocation::Allocation(void *id, sp<RS> rs, sp<const Type> t, uint32_t usage) : argument
45 if ((usage & ~(RS_ALLOCATION_USAGE_SCRIPT |
54 ALOGE("Unknown usage specified.");
57 if ((usage & RS_ALLOCATION_USAGE_IO_INPUT) != 0) {
59 if ((usage & ~(RS_ALLOCATION_USAGE_IO_INPUT |
62 ALOGE("Invalid usage combination.");
67 mUsage = usage;
163 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Source must be exactly one usage type.");
426 RsAllocationMipmapControl mipmaps, uint32_t usage) {
429 id = RS::dispatch->AllocationCreateTyped(rs->getContext(), type->getID(), mipmaps, usage,
425 createTyped(sp<RS> rs, sp<const Type> type, RsAllocationMipmapControl mipmaps, uint32_t usage) argument
438 createTyped(sp<RS> rs, sp<const Type> type, RsAllocationMipmapControl mipmaps, uint32_t usage, void *pointer) argument
453 createTyped(sp<RS> rs, sp<const Type> type, uint32_t usage) argument
458 createSized(sp<RS> rs, sp<const Element> e, size_t count, uint32_t usage) argument
467 createSized2D(sp<RS> rs, sp<const Element> e, size_t x, size_t y, uint32_t usage) argument
[all...]
/frameworks/av/cmds/stagefright/
H A Drecordvideo.cpp37 // Print usage showing how to use this utility to record videos
38 static void usage(const char *me) { function
39 fprintf(stderr, "usage: %s\n", me);
191 usage(argv[0]);
242 usage(argv[0]);
262 usage(argv[0]);
H A Daudioloop.cpp37 static void usage(const char* name) function
69 usage(argv[0]);
/frameworks/av/include/media/
H A DAudioPolicy.h59 AttributeMatchCriterion(audio_usage_t usage, audio_source_t source, uint32_t rule);
/frameworks/av/services/audiopolicy/engineconfigurable/interface/
H A DAudioPolicyPluginInterface.h33 * strategy, strategy to be followed by a usage or a stream, ...)
65 * Add a usage to the engine
67 * @param[in] name of the usage to add
72 * @return NO_ERROR if the usage has been added successfully, error code otherwise.
123 * Set the strategy to be followed by a usage.
125 * @param[in] usage: name of the usage for which the strategy to use has to be set
126 * @param[in] strategy to follow for the given usage.
128 * @return true if the strategy were set correclty for this usage, false otherwise.
130 virtual bool setStrategyForUsage(const audio_usage_t &usage, routing_strateg
[all...]
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3IOStreamBase.h87 virtual status_t getEndpointUsage(uint32_t *usage) const = 0;
H A DCamera3InputStream.h78 virtual status_t getEndpointUsage(uint32_t *usage) const;
H A DCamera3OutputStream.h105 virtual status_t getEndpointUsage(uint32_t *usage) const;
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsXmlV1.java16 package com.android.server.usage;
24 import android.app.usage.ConfigurationStats;
25 import android.app.usage.TimeSparseArray;
26 import android.app.usage.UsageEvents;
27 import android.app.usage.UsageStats;
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/
H A DParameterManagerWrapper.cpp354 status_t ParameterManagerWrapper::setForceUse(audio_policy_force_use_t usage, argument
358 if (usage > AUDIO_POLICY_FORCE_USE_CNT) {
362 ISelectionCriterionInterface *criterion = mPolicyCriteria[gForceUseCriterionTag[usage]];
371 audio_policy_forced_cfg_t ParameterManagerWrapper::getForceUse(audio_policy_force_use_t usage) const
374 if (usage > AUDIO_POLICY_FORCE_USE_CNT) {
378 getElement<ISelectionCriterionInterface>(gForceUseCriterionTag[usage], mPolicyCriteria);
/frameworks/base/media/java/android/media/
H A DAudioAttributes.java42 * <li>usage: "why" you are playing a sound, what is this sound used for. This is achieved with
43 * the "usage" information. Examples of usage are {@link #USAGE_MEDIA} and {@link #USAGE_ALARM}.
95 * Usage value to use when the usage is unknown.
99 * Usage value to use when the usage is media, such as music, or movie
104 * Usage value to use when the usage is voice communications, such as telephony
109 * Usage value to use when the usage is in-call signalling, such as with
114 * Usage value to use when the usage is an alarm (e.g. wake-up alarm).
118 * Usage value to use when the usage is notification. See other
123 * Usage value to use when the usage i
382 setUsage(@ttributeUsage int usage) argument
665 usageToString(int usage) argument
[all...]
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyInterfaceImpl.cpp94 status_t AudioPolicyService::setForceUse(audio_policy_force_use_t usage, argument
103 if (usage < 0 || usage >= AUDIO_POLICY_FORCE_USE_CNT) {
111 mAudioPolicyManager->setForceUse(usage, config);
115 audio_policy_forced_cfg_t AudioPolicyService::getForceUse(audio_policy_force_use_t usage) argument
120 if (usage < 0 || usage >= AUDIO_POLICY_FORCE_USE_CNT) {
123 return mAudioPolicyManager->getForceUse(usage);

Completed in 2811 milliseconds

123456789