Searched refs:strategy (Results 1 - 25 of 53) sorted by relevance

123

/frameworks/av/services/audiopolicy/engineconfigurable/src/
H A DUsage.cpp37 status_t Element<audio_usage_t>::set<routing_strategy>(routing_strategy strategy) argument
39 if (strategy >= NUM_STRATEGIES) {
42 ALOGD("%s: %d for Usage %s", __FUNCTION__, strategy, getName().c_str());
43 mApplicableStrategy = strategy;
H A DStream.cpp40 * Set the strategy to follow for this stream.
41 * It checks if the strategy is valid.
43 * @param[in] strategy to be followed.
45 * @return NO_ERROR if the strategy is set correctly, error code otherwise.
48 status_t Element<audio_stream_type_t>::set<routing_strategy>(routing_strategy strategy) argument
50 if (strategy >= NUM_STRATEGIES) {
53 mApplicableStrategy = strategy;
54 ALOGD("%s: 0x%X for Stream %s", __FUNCTION__, strategy, getName().c_str());
H A DEngine.h102 virtual status_t addStrategy(const std::string &name, routing_strategy strategy) argument
104 return mPolicyEngine->add<routing_strategy>(name, strategy);
118 virtual bool setDeviceForStrategy(const routing_strategy &strategy, audio_devices_t devices) argument
121 strategy);
124 routing_strategy strategy)
126 return mPolicyEngine->setPropertyForKey<routing_strategy, audio_stream_type_t>(strategy,
132 virtual bool setStrategyForUsage(const audio_usage_t &usage, routing_strategy strategy) argument
134 return mPolicyEngine->setPropertyForKey<routing_strategy, audio_usage_t>(strategy,
123 setStrategyForStream(const audio_stream_type_t &stream, routing_strategy strategy) argument
H A DEngine.cpp146 audio_devices_t Engine::ManagerInterfaceImpl::getDeviceForStrategy(routing_strategy strategy) const
160 if (strategy == STRATEGY_SONIFICATION_RESPECTFUL &&
167 if (strategy == STRATEGY_ACCESSIBILITY &&
175 return mPolicyEngine->getPropertyForKey<audio_devices_t, routing_strategy>(strategy);
/frameworks/base/core/java/android/view/
H A DVelocityTracker.java40 private static native long nativeInitialize(String strategy); argument
63 * Obtains a velocity tracker with the specified strategy.
66 * @param strategy The strategy, or null to use the default.
71 public static VelocityTracker obtain(String strategy) { argument
72 if (strategy == null) {
75 return new VelocityTracker(strategy);
89 private VelocityTracker(String strategy) { argument
90 mPtr = nativeInitialize(strategy);
91 mStrategy = strategy;
[all...]
/frameworks/av/services/audiopolicy/engineconfigurable/interface/
H A DAudioPolicyPluginInterface.h33 * strategy, strategy to be followed by a usage or a stream, ...)
39 * Add a strategy to the engine
41 * @param[in] name of the strategy to add
46 * @return NO_ERROR if the strategy has been added successfully, error code otherwise.
91 * Set the device to be used by a strategy.
93 * @param[in] strategy: name of the strategy for which the device to use has to be set
94 * @param[in] devices; mask of devices to be used for the given strategy.
96 * @return true if the devices were set correclty for this strategy, fals
[all...]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/plugin/
H A DStream.cpp34 // Declares the strategy to audio policy engine
44 static_cast<routing_strategy>(params.strategy));
H A DStream.h32 uint32_t strategy; /**< applicable strategy for this stream. */ member in struct:Stream::Applicable
33 uint32_t volumeProfile; /**< applicable strategy for this stream. */
/frameworks/av/services/audiopolicy/enginedefault/src/
H A DEngine.h61 virtual audio_devices_t getDeviceForStrategy(routing_strategy strategy) const
63 return mPolicyEngine->getDeviceForStrategy(strategy);
127 audio_devices_t getDeviceForStrategy(routing_strategy strategy) const;
128 audio_devices_t getDeviceForStrategyInt(routing_strategy strategy,
H A DEngine.cpp79 // store previous phone state for management of sonification strategy below
166 // stream to strategy mapping
181 // NOTE: SYSTEM stream uses MEDIA strategy because muting music and switching outputs
198 // usage to strategy mapping
233 audio_devices_t Engine::getDeviceForStrategy(routing_strategy strategy) const
240 return getDeviceForStrategyInt(strategy, availableOutputDevices,
246 audio_devices_t Engine::getDeviceForStrategyInt(routing_strategy strategy, argument
254 switch (strategy) {
300 // when off call, DTMF strategy follows the same rules as MEDIA strategy
[all...]
/frameworks/rs/tests/lldb/java/SingleSource/src/rs/
H A Drs_single_source.rs65 .strategy=RS_FOR_EACH_STRATEGY_DONT_CARE,
/frameworks/base/core/jni/
H A Dandroid_view_VelocityTracker.cpp48 explicit VelocityTrackerState(const char* strategy);
67 VelocityTrackerState::VelocityTrackerState(const char* strategy) : argument
68 mVelocityTracker(strategy), mActivePointerId(-1) {
145 ScopedUtfChars strategy(env, strategyStr);
146 return reinterpret_cast<jlong>(new VelocityTrackerState(strategy.c_str()));
H A Dandroid_text_StaticLayout.cpp53 // set text and set a number of parameters for creating a layout (width, tabstops, strategy,
57 jintArray variableTabStops, jint defaultTabStop, jint strategy, jint hyphenFrequency,
70 b->setStrategy(static_cast<minikin::BreakStrategy>(strategy));
55 nSetupParagraph(JNIEnv* env, jclass, jlong nativePtr, jcharArray text, jint length, jfloat firstWidth, jint firstWidthLineLimit, jfloat restWidth, jintArray variableTabStops, jint defaultTabStop, jint strategy, jint hyphenFrequency, jboolean isJustified) argument
/frameworks/native/libs/input/
H A DVelocityTracker.cpp104 // The default velocity tracker strategy.
106 // this is the strategy that applications will actually use. Be very careful
107 // when adjusting the default strategy because it can dramatically affect
111 VelocityTracker::VelocityTracker(const char* strategy) : argument
115 // Allow the default strategy to be overridden using a system property for debugging.
116 if (!strategy) {
117 int length = property_get("debug.velocitytracker.strategy", value, NULL);
119 strategy = value;
121 strategy = DEFAULT_STRATEGY;
125 // Configure the strategy
139 configureStrategy(const char* strategy) argument
144 createStrategy(const char* strategy) argument
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DEffectDescriptor.h34 routing_strategy mStrategy; // routing strategy the effect is associated to
46 uint32_t strategy, int session, int id);
/frameworks/support/compat/java/android/support/v4/content/res/
H A DFontResourcesParserCompat.java78 public ProviderResourceEntry(@NonNull FontRequest request, @FetchStrategy int strategy, argument
81 mStrategy = strategy;
177 int strategy = array.getInteger(R.styleable.FontFamily_fontProviderFetchStrategy,
188 new FontRequest(authority, providerPackage, query, certs), strategy, timeoutMs);
/frameworks/minikin/include/minikin/
H A DLineBreaker.h148 void setStrategy(BreakStrategy strategy) { mStrategy = strategy; } argument
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DEffectDescriptor.cpp56 uint32_t strategy,
69 ALOGV("registerEffect() effect %s, io %d, strategy %d session %d id %d",
70 desc->name, io, strategy, session, id);
76 effectDesc->mStrategy = static_cast<routing_strategy>(strategy);
54 registerEffect(const effect_descriptor_t *desc, audio_io_handle_t io, uint32_t strategy, int session, int id) argument
/frameworks/native/include/input/
H A DVelocityTracker.h64 // Creates a velocity tracker using the specified strategy.
65 // If strategy is NULL, uses the default strategy for the platform.
66 VelocityTracker(const char* strategy = NULL);
112 bool configureStrategy(const char* strategy);
114 static VelocityTrackerStrategy* createStrategy(const char* strategy);
230 * Velocity tracker strategy used prior to ICS.
/frameworks/av/services/audiopolicy/managerdefault/
H A DAudioPolicyManager.h161 // return the strategy corresponding to a given stream type
163 // return the strategy corresponding to the given audio attributes
172 uint32_t strategy,
238 // return the strategy corresponding to a given stream type
281 // return appropriate device for streams handled by the specified strategy according to current
292 virtual audio_devices_t getDeviceForStrategy(routing_strategy strategy,
295 bool isStrategyActive(const sp<AudioOutputDescriptor>& outputDesc, routing_strategy strategy,
335 // Mute or unmute all streams handled by the specified strategy on the specified output
336 void setStrategyMute(routing_strategy strategy,
349 // handle special cases for sonification strategy whil
[all...]
H A DAudioPolicyManager.cpp528 // store previous phone state for management of sonification strategy below
537 // pertaining to sonification strategy see handleIncallSonification()
566 // latency of any output where either strategy is active.
613 // pertaining to sonification strategy see handleIncallSonification()
755 routing_strategy strategy = getStrategy(stream); local
756 audio_devices_t device = getDeviceForStrategy(strategy, false /*fromCache*/);
829 routing_strategy strategy = (routing_strategy) getStrategyForAttr(&attributes); local
830 audio_devices_t device = getDeviceForStrategy(strategy, false /*fromCache*/);
1267 routing_strategy strategy = getStrategy(stream); local
1268 bool shouldWait = (strategy
2206 routing_strategy strategy = getStrategy(AUDIO_STREAM_MUSIC); local
2265 registerEffect(const effect_descriptor_t *desc, audio_io_handle_t io, uint32_t strategy, int session, int id) argument
3107 checkStrategyRoute(routing_strategy strategy, audio_io_handle_t ouptutToSkip) argument
3246 routing_strategy strategy = (routing_strategy) getStrategyForAttr(&sourceDesc->mAttributes); local
3397 getSourceForStrategyOnOutput( audio_io_handle_t output, routing_strategy strategy) argument
4458 checkOutputForStrategy(routing_strategy strategy) argument
4795 getDeviceForStrategy(routing_strategy strategy, bool fromCache) argument
5357 setStrategyMute(routing_strategy strategy, bool on, const sp<AudioOutputDescriptor>& outputDesc, int delayMs, audio_devices_t device) argument
5540 isStrategyActive(const sp<AudioOutputDescriptor>& outputDesc, routing_strategy strategy, uint32_t inPastMs, nsecs_t sysTime) const argument
[all...]
/frameworks/av/services/audioflinger/
H A DEffects.h332 uint32_t strategy() const { return mStrategy; } function in class:EffectChain
333 void setStrategy(uint32_t strategy) argument
334 { mStrategy = strategy; }
416 uint32_t mStrategy; // strategy for this effect chain
/frameworks/base/services/usage/java/com/android/server/usage/
H A DStorageStatsService.java492 CacheQuotaStrategy strategy = getInitializedStrategy();
495 mPreviousBytes = strategy.setupQuotasFromFile();
505 recalculateQuotas(strategy);
518 private void recalculateQuotas(CacheQuotaStrategy strategy) { argument
523 strategy.recalculateQuotas();
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DGraphRunner.java32 * The scheduling strategy determines how the filter nodes are selected
34 * strategy determines which node of this set to select for execution. For instance, an LFU
588 /** Schedule strategy: From set of candidates, pick a random one. */
590 /** Schedule strategy: From set of candidates, pick node executed least recently executed. */
592 /** Schedule strategy: From set of candidates, pick node executed least number of times. */
594 /** Schedule strategy: Schedules no node more than once. */
747 * Sets the filter scheduling strategy. This method can not be called when the GraphRunner is
750 * @param strategy a constant specifying which scheduler strategy to use.
752 * @throws IllegalArgumentException if invalid strategy i
755 setSchedulerStrategy(int strategy) argument
984 createScheduler(int strategy) argument
[all...]
/frameworks/rs/script_api/include/
H A Drs_for_each.rsh76 rs_for_each_strategy_t strategy; // Currently ignored. In the future, will be suggested cell iteration strategy.
138 * sc: Extra control information used to select a sub-region of the allocation to be processed or suggest a walking strategy. May be NULL.

Completed in 2016 milliseconds

123