Home
last modified time | relevance | path

Searched refs:strategy (Results 1 – 25 of 159) sorted by relevance

1234567

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java201 BrightnessMappingStrategy strategy = BrightnessMappingStrategy.create(mContext, ddc, in testSimpleStrategyIgnoresNewConfiguration() local
209 strategy.setBrightnessConfiguration(config); in testSimpleStrategyIgnoresNewConfiguration()
210 assertNotEquals(1.0f, strategy.getBrightness(1f), 0.0001f /*tolerance*/); in testSimpleStrategyIgnoresNewConfiguration()
217 BrightnessMappingStrategy strategy = BrightnessMappingStrategy.create(mContext, ddc, in testSimpleStrategyIgnoresNullConfiguration() local
220 strategy.setBrightnessConfiguration(null); in testSimpleStrategyIgnoresNullConfiguration()
224 strategy.getBrightness(LUX_LEVELS[n - 1]), 0.0001f /*tolerance*/); in testSimpleStrategyIgnoresNullConfiguration()
270 BrightnessMappingStrategy strategy = BrightnessMappingStrategy.create(mContext, ddc, in testPhysicalStrategyUsesNewConfigurations() local
281 strategy.setBrightnessConfiguration(config); in testPhysicalStrategyUsesNewConfigurations()
282 assertEquals(1.0f, strategy.getBrightness(1f), 0.0001f /*tolerance*/); in testPhysicalStrategyUsesNewConfigurations()
285 strategy.setBrightnessConfiguration(null); in testPhysicalStrategyUsesNewConfigurations()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/
Dstrategy_for_usage.pfw5 /Policy/policy/usages/unknown/applicable_strategy/strategy = media
6 /Policy/policy/usages/media/applicable_strategy/strategy = media
7 /Policy/policy/usages/voice_communication/applicable_strategy/strategy = phone
8 /Policy/policy/usages/voice_communication_signalling/applicable_strategy/strategy = dtmf
9 /Policy/policy/usages/alarm/applicable_strategy/strategy = sonification
10 /Policy/policy/usages/notification/applicable_strategy/strategy = sonification_respectful
11 /Policy/policy/usages/notification_telephony_ringtone/applicable_strategy/strategy = sonification
12 …/Policy/policy/usages/notification_communication_request/applicable_strategy/strategy = sonificati…
13 …/Policy/policy/usages/notification_communication_instant/applicable_strategy/strategy = sonificati…
14 …/Policy/policy/usages/notification_communication_delayed/applicable_strategy/strategy = sonificati…
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DEngine.cpp228 status_t Engine::setDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role, in setDevicesRoleForStrategy() argument
233 getDisabledDevicesForProductStrategy(availableOutputDevices, strategy); in setDevicesRoleForStrategy()
234 status_t status = EngineBase::setDevicesRoleForStrategy(strategy, role, devices); in setDevicesRoleForStrategy()
239 getDisabledDevicesForProductStrategy(availableOutputDevices, strategy); in setDevicesRoleForStrategy()
248 enableDevicesForStrategy(strategy, prevDisabledDevices); in setDevicesRoleForStrategy()
253 return disableDevicesForStrategy(strategy, newDisabledDevices); in setDevicesRoleForStrategy()
256 status_t Engine::removeDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role, in removeDevicesRoleForStrategy() argument
260 if (productStrategies.find(strategy) == end(productStrategies)) { in removeDevicesRoleForStrategy()
261 ALOGE("%s invalid %d", __func__, strategy); in removeDevicesRoleForStrategy()
266 getDisabledDevicesForProductStrategy(availableOutputDevices, strategy); in removeDevicesRoleForStrategy()
[all …]
DEngine.h78 status_t setDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role,
81 status_t removeDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role,
83 status_t clearDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role) override;
101 void setDeviceAddressForProductStrategy(product_strategy_t strategy,
104 bool setDeviceTypesForProductStrategy(product_strategy_t strategy, uint64_t devices) override;
112 android::status_t disableDevicesForStrategy(product_strategy_t strategy,
114 void enableDevicesForStrategy(product_strategy_t strategy, const DeviceVector &devicesToEnable);
150 DeviceVector getDevicesForProductStrategy(product_strategy_t strategy) const override;
/frameworks/av/services/audiopolicy/enginedefault/src/
DEngine.cpp77 for (const auto &strategy : legacyStrategy) { in loadWithFallback() local
78 mLegacyStrategyMap[getProductStrategyByName(strategy.name)] = strategy.id; in loadWithFallback()
194 void Engine::filterOutputDevicesForStrategy(legacy_strategy strategy, in filterOutputDevicesForStrategy() argument
210 switch (strategy) { in filterOutputDevicesForStrategy()
288 product_strategy_t Engine::remapStrategyFromContext(product_strategy_t strategy, in remapStrategyFromContext() argument
290 auto legacyStrategy = mLegacyStrategyMap.find(strategy) != end(mLegacyStrategyMap) ? in remapStrategyFromContext()
291 mLegacyStrategyMap.at(strategy) : STRATEGY_NONE; in remapStrategyFromContext()
304 return strategy; in remapStrategyFromContext()
323 return strategy; in remapStrategyFromContext()
329 DeviceVector Engine::getDevicesForStrategyInt(legacy_strategy strategy, in getDevicesForStrategyInt() argument
[all …]
DEngine.h80 void setStrategyDevices(const sp<ProductStrategy>& strategy,
83 DeviceVector getDevicesForProductStrategy(product_strategy_t strategy) const override;
91 void filterOutputDevicesForStrategy(legacy_strategy strategy,
95 product_strategy_t remapStrategyFromContext(product_strategy_t strategy,
98 DeviceVector getDevicesForStrategyInt(legacy_strategy strategy,
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Phone/Settings/
Ddevice_for_product_strategy_dtmf.pfw19 # DTMF follows Media strategy if not in call
47 # DTMF follows Media strategy if not in call
75 # DTMF follows Media strategy if not in call
103 # DTMF follows Media strategy if not in call
131 # DTMF follows Media strategy if not in call
160 # DTMF falls through Phone strategy if in call
189 # DTMF falls through Phone strategy if in call
219 # DTMF falls through Phone strategy if in call
227 # DTMF follows Media strategy if not in call
256 # DTMF falls through Phone strategy if in call
[all …]
Ddevice_for_product_strategy_accessibility.pfw28 # Accessibility follows Media strategy if not in call
56 # Accessibility falls through media strategy if not in call (widely speaking)
84 # Accessibility falls through media strategy if not in call (widely speaking)
112 # Accessibility falls through media strategy if not in call (widely speaking)
140 # Accessibility follows Media strategy if not in call
168 # accessibility falls through Phone strategy if in call
197 # accessibility falls through Phone strategy if in call
226 # accessibility falls through Phone strategy if in call
256 # accessibility falls through Phone strategy if in call
264 # accessibility follows Media strategy if not in call
[all …]
Ddevice_for_product_strategy_sonification_respectful.pfw5 # - If in call: Strategy sonification (that follows phone strategy in call also...)
8 # - if not in call and no music stream active remotely and music stream active): strategy
35 # Follows sonification strategy if not in call and replace speaker by speaker safe
49 # Follows sonification strategy if not in call
76 # SonificationRespectful Follows Sonification that falls through Media strategy if not in call
103 # SonificationRespectful Follows Sonification that falls through Media strategy if not in call
130 # SonificationRespectful Follows Sonification that falls through Media strategy if not in call
157 # SonificationRespectful Follows Phone strategy if in call
184 # SonificationRespectful Follows Phone strategy if in call
211 # SonificationRespectful Follows Phone strategy if in call
[all …]
Ddevice_for_product_strategy_sonification.pfw13 # Sonification follows phone strategy if in call but HDMI is not reachable
36 # Sonification follows phone strategy if in call (widely speaking)
55 # Sonification falls through media strategy if not in call (widely speaking)
81 # Sonification falls through media strategy if not in call (widely speaking)
107 # Sonification falls through media strategy if not in call (widely speaking)
133 # Sonification follows phone strategy if in call (widely speaking)
160 # Sonification follows phone strategy if in call (widely speaking)
187 # Sonification follows phone strategy if in call (widely speaking)
216 # Sonification falls through media strategy if not in call (widely speaking)
223 # Sonification follows Phone strategy if in call (widely speaking)
[all …]
/frameworks/base/core/java/android/view/
DVelocityTracker.java200 private static native long nativeInitialize(int strategy); in nativeInitialize() argument
258 public static VelocityTracker obtain(String strategy) { in obtain() argument
259 if (strategy == null) { in obtain()
262 return new VelocityTracker(toStrategyId(strategy)); in obtain()
273 public static VelocityTracker obtain(int strategy) { in obtain() argument
274 if (strategy == VELOCITY_TRACKER_STRATEGY_DEFAULT) { in obtain()
277 return new VelocityTracker(strategy); in obtain()
301 private VelocityTracker(@VelocityTrackerStrategy int strategy) { in VelocityTracker() argument
303 if (strategy == VELOCITY_TRACKER_STRATEGY_DEFAULT) { in VelocityTracker()
308 mStrategy = strategy; in VelocityTracker()
[all …]
/frameworks/av/services/audiopolicy/engine/common/src/
DEngineBase.cpp208 auto addSupportedAttributesToGroup = [](auto &group, auto &volumeGroup, auto &strategy) { in processParsingResult() argument
210 strategy->addAttributes({volumeGroup->getId(), group.stream, attr}); in processParsingResult()
243 sp<ProductStrategy> strategy = new ProductStrategy(strategyConfig.name); in processParsingResult() local
272 addSupportedAttributesToGroup(group, volumeGroup, strategy); in processParsingResult()
274 product_strategy_t strategyId = strategy->getId(); in processParsingResult()
275 mProductStrategies[strategyId] = strategy; in processParsingResult()
285 [&](const auto &strategy) { in getOrderedProductStrategies() argument
286 for (const auto &attributes : strategy.second->getAudioAttributes()) { in getOrderedProductStrategies()
544 status_t EngineBase::setDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role, in setDevicesRoleForStrategy() argument
547 std::function<bool(product_strategy_t)> p = [this](product_strategy_t strategy) { in setDevicesRoleForStrategy() argument
[all …]
DProductStrategy.cpp169 const auto strategy = iter.second; in getAttributesForStreamType() local
170 if (strategy->supportStreamType(stream)) { in getAttributesForStreamType()
171 return strategy->getAttributesForStreamType(stream); in getAttributesForStreamType()
195 product_strategy_t strategy) const in getAttributesForProductStrategy()
197 if (find(strategy) == end()) { in getAttributesForProductStrategy()
198 ALOGE("Invalid %d strategy requested", strategy); in getAttributesForProductStrategy()
201 return at(strategy)->getAudioAttributes()[0]; in getAttributesForProductStrategy()
217 product_strategy_t strategy) const in getDeviceTypesForProductStrategy()
219 if (find(strategy) == end()) { in getDeviceTypesForProductStrategy()
220 ALOGE("Invalid %d strategy requested, returning device for default strategy", strategy); in getDeviceTypesForProductStrategy()
[all …]
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp39 explicit VelocityTrackerState(const VelocityTracker::Strategy strategy);
53 VelocityTrackerState::VelocityTrackerState(const VelocityTracker::Strategy strategy) in VelocityTrackerState() argument
54 : mVelocityTracker(strategy) {} in VelocityTrackerState()
77 inline static VelocityTracker::Strategy getStrategyFromInt(const int32_t strategy) { in getStrategyFromInt() argument
78 if (strategy < static_cast<int32_t>(VelocityTracker::Strategy::MIN) || in getStrategyFromInt()
79 strategy > static_cast<int32_t>(VelocityTracker::Strategy::MAX)) { in getStrategyFromInt()
82 return static_cast<VelocityTracker::Strategy>(strategy); in getStrategyFromInt()
88 jint strategy) { in android_view_VelocityTracker_nativeInitialize() argument
89 return reinterpret_cast<jlong>(new VelocityTrackerState(getStrategyFromInt(strategy))); in android_view_VelocityTracker_nativeInitialize()
Dandroid_media_AudioProductStrategies.cpp73 JNIEnv *env, jobject *jAudioStrategy, const AudioProductStrategy &strategy) in convertAudioProductStrategiesFromNative() argument
84 jName = env->NewStringUTF(strategy.getName().c_str()); in convertAudioProductStrategiesFromNative()
85 jStrategyId = static_cast<jint>(strategy.getId()); in convertAudioProductStrategiesFromNative()
90 for (const auto &attr : strategy.getVolumeGroupAttributes()) { in convertAudioProductStrategiesFromNative()
196 for (const auto &strategy : strategies) { in android_media_AudioSystem_listAudioProductStrategies() local
197 jStatus = convertAudioProductStrategiesFromNative(env, &jStrategy, strategy); in android_media_AudioSystem_listAudioProductStrategies()
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DAutopilot.kt47 "EXE: $strategy" + if (debug.isNotEmpty()) " ($debug)" else "", in <lambda>()
51 private var strategy: String = "NONE" in <lambda>() variable in com.android.egg.landroid.Autopilot
61 val currentStrategy = strategy in <lambda>()
65 strategy = "LANDED" in <lambda>()
75 strategy = "LAUNCHING" in <lambda>()
127 strategy = "LANDING" in <lambda>()
134 strategy = "CHASING" in <lambda>()
140 strategy = "APPROACHING" in <lambda>()
156 if (strategy != currentStrategy) { in <lambda>()
/frameworks/layoutlib/bridge/src/android/view/
DVelocityTracker_Delegate.java33 public static VelocityTracker obtain(String strategy) { in obtain() argument
34 return VelocityTracker.obtain_Original(strategy); in obtain()
38 public static VelocityTracker obtain(int strategy) { in obtain() argument
39 return VelocityTracker.obtain_Original(strategy); in obtain()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidAudioRoutingHelper.java57 for (AudioProductStrategy strategy : allStrategies) { in getSupportedStrategies()
59 if (strategy.supportsAudioAttributes(audioAttr)) { in getSupportedStrategies()
60 supportedStrategies.add(strategy); in getSupportedStrategies()
143 for (AudioProductStrategy strategy : strategies) { in setPreferredDeviceForStrategies()
144 status &= mAudioManager.setPreferredDeviceForStrategy(strategy, audioDevice); in setPreferredDeviceForStrategies()
153 for (AudioProductStrategy strategy : strategies) { in removePreferredDeviceForStrategies()
154 if (mAudioManager.getPreferredDeviceForStrategy(strategy) != null) { in removePreferredDeviceForStrategies()
155 status &= mAudioManager.removePreferredDeviceForStrategy(strategy); in removePreferredDeviceForStrategies()
/frameworks/base/services/core/java/com/android/server/display/brightness/
DDisplayBrightnessStrategySelector.java29 import com.android.server.display.brightness.strategy.AutoBrightnessFallbackStrategy;
30 import com.android.server.display.brightness.strategy.AutomaticBrightnessStrategy;
31 import com.android.server.display.brightness.strategy.AutomaticBrightnessStrategy2;
32 import com.android.server.display.brightness.strategy.BoostBrightnessStrategy;
33 import com.android.server.display.brightness.strategy.DisplayBrightnessStrategy;
34 import com.android.server.display.brightness.strategy.DozeBrightnessStrategy;
35 import com.android.server.display.brightness.strategy.FallbackBrightnessStrategy;
36 import com.android.server.display.brightness.strategy.FollowerBrightnessStrategy;
37 import com.android.server.display.brightness.strategy.InvalidBrightnessStrategy;
38 import com.android.server.display.brightness.strategy.OffloadBrightnessStrategy;
[all …]
/frameworks/minikin/libs/minikin/
DLineBreaker.cpp24 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy, in breakIntoLines() argument
28 if (strategy == BreakStrategy::Greedy || textBuffer.hasChar(CHAR_TAB)) { in breakIntoLines()
32 return breakLineOptimal(textBuffer, measuredText, lineWidth, strategy, frequency, justified, in breakIntoLines()
/frameworks/av/services/audiopolicy/engine/common/include/
DEngineBase.h108 status_t setDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role,
111 status_t removeDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role,
114 status_t clearDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role) override;
116 status_t getDevicesForRoleAndStrategy(product_strategy_t strategy, device_role_t role,
180 const DeviceVector& availableOutputDevices, product_strategy_t strategy) const;
182 const DeviceVector& availableOutputDevices, product_strategy_t strategy) const;
233 virtual DeviceVector getDevicesForProductStrategy(product_strategy_t strategy) const = 0;
/frameworks/base/services/core/java/com/android/server/media/
DAudioRoutingUtils.java35 for (AudioProductStrategy strategy : AudioManager.getAudioProductStrategies()) { in getMediaAudioProductStrategy()
36 if (strategy.supportsAudioAttributes(AudioRoutingUtils.ATTRIBUTES_MEDIA)) { in getMediaAudioProductStrategy()
37 return strategy; in getMediaAudioProductStrategy()
/frameworks/base/core/java/android/os/
DBundleMerger.java179 public void setDefaultMergeStrategy(@Strategy int strategy) { in setDefaultMergeStrategy() argument
180 mDefaultStrategy = strategy; in setDefaultMergeStrategy()
189 public void setMergeStrategy(@NonNull String key, @Strategy int strategy) { in setMergeStrategy() argument
190 mStrategies.put(key, strategy); in setMergeStrategy()
243 final int strategy = getMergeStrategy(key); in merge() local
247 res.putObject(key, merge(strategy, firstValue, lastValue)); in merge()
250 + lastValue + " using strategy " + strategy, e); in merge()
263 public static @Nullable Object merge(@Strategy int strategy, in merge() argument
273 switch (strategy) { in merge()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceInventory.java714 mPreferredDevices.forEach((strategy, device) -> { in dump() argument
715 pw.println(" " + prefix + "strategy:" + strategy + " device:" + device); }); in dump()
717 mNonDefaultDevices.forEach((strategy, device) -> { in dump() argument
718 pw.println(" " + prefix + "strategy:" + strategy + " device:" + device); }); in dump()
786 mPreferredDevices.forEach((strategy, devices) -> { in reapplyExternalDevicesRoles() argument
787 setPreferredDevicesForStrategy(strategy, devices); in reapplyExternalDevicesRoles()
791 mNonDefaultDevices.forEach((strategy, devices) -> { in reapplyExternalDevicesRoles() argument
792 addDevicesRoleForStrategy(strategy, AudioSystem.DEVICE_ROLE_DISABLED, in reapplyExternalDevicesRoles()
1196 /*package*/ void onSaveSetPreferredDevices(int strategy, in onSaveSetPreferredDevices() argument
1198 mPreferredDevices.put(strategy, devices); in onSaveSetPreferredDevices()
[all …]
/frameworks/minikin/include/minikin/
DAndroidLineBreakerHelper.h76 StaticLayoutNative(BreakStrategy strategy, HyphenationFrequency frequency, bool isJustified, in StaticLayoutNative() argument
78 : mStrategy(strategy), in StaticLayoutNative()
84 StaticLayoutNative(BreakStrategy strategy, HyphenationFrequency frequency, bool isJustified, in StaticLayoutNative() argument
86 : StaticLayoutNative(strategy, frequency, isJustified, std::move(indents), in StaticLayoutNative()

1234567