/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessMappingStrategyTest.java | 149 BrightnessMappingStrategy strategy = BrightnessMappingStrategy.create(res); in testSimpleStrategyIgnoresNewConfiguration() local 157 strategy.setBrightnessConfiguration(config); in testSimpleStrategyIgnoresNewConfiguration() 158 assertNotEquals(1.0f, strategy.getBrightness(1f), 0.01 /*tolerance*/); in testSimpleStrategyIgnoresNewConfiguration() 164 BrightnessMappingStrategy strategy = BrightnessMappingStrategy.create(res); in testSimpleStrategyIgnoresNullConfiguration() local 166 strategy.setBrightnessConfiguration(null); in testSimpleStrategyIgnoresNullConfiguration() 171 strategy.getBrightness(LUX_LEVELS[N - 1]), 0.01 /*tolerance*/); in testSimpleStrategyIgnoresNullConfiguration() 208 BrightnessMappingStrategy strategy = BrightnessMappingStrategy.create(res); in testPhysicalStrategyUsesNewConfigurations() local 218 strategy.setBrightnessConfiguration(config); in testPhysicalStrategyUsesNewConfigurations() 219 assertEquals(1.0f, strategy.getBrightness(1f), 0.01 /*tolerance*/); in testPhysicalStrategyUsesNewConfigurations() 222 strategy.setBrightnessConfiguration(null); in testPhysicalStrategyUsesNewConfigurations() [all …]
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/ |
D | strategy_for_usage.pfw | 5 /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/enginedefault/src/ |
D | Engine.cpp | 69 for (const auto &strategy : legacyStrategy) { in Engine() local 70 mLegacyStrategyMap[getProductStrategyByName(strategy.name)] = strategy.id; in Engine() 144 DeviceVector Engine::getDevicesForStrategyInt(legacy_strategy strategy, in getDevicesForStrategyInt() argument 151 switch (strategy) { in getDevicesForStrategyInt() 228 if (!isInCall() || strategy != STRATEGY_DTMF) { in getDevicesForStrategyInt() 304 if ((strategy == STRATEGY_SONIFICATION) || in getDevicesForStrategyInt() 318 && (strategy == STRATEGY_ENFORCED_AUDIBLE))) { in getDevicesForStrategyInt() 329 if (strategy == STRATEGY_SONIFICATION) { in getDevicesForStrategyInt() 345 if (strategy == STRATEGY_ACCESSIBILITY) { in getDevicesForStrategyInt() 373 if (strategy != STRATEGY_SONIFICATION) { in getDevicesForStrategyInt() [all …]
|
D | Engine.h | 76 DeviceVector getDevicesForStrategyInt(legacy_strategy strategy, 81 DeviceVector getDevicesForProductStrategy(product_strategy_t strategy) const;
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Phone/Settings/ |
D | device_for_product_strategy_dtmf.pfw | 19 # 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 …]
|
D | device_for_product_strategy_accessibility.pfw | 28 # 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 …]
|
D | device_for_product_strategy_sonification_respectful.pfw | 5 # - 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 …]
|
D | device_for_product_strategy_sonification.pfw | 13 # 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/av/services/audiopolicy/engine/common/src/ |
D | EngineBase.cpp | 136 auto addSupportedAttributesToGroup = [](auto &group, auto &volumeGroup, auto &strategy) { in loadAudioPolicyEngineConfig() argument 138 strategy->addAttributes({group.stream, volumeGroup->getId(), attr}); in loadAudioPolicyEngineConfig() 186 sp<ProductStrategy> strategy = new ProductStrategy(strategyConfig.name); in loadAudioPolicyEngineConfig() local 215 addSupportedAttributesToGroup(group, volumeGroup, strategy); in loadAudioPolicyEngineConfig() 217 product_strategy_t strategyId = strategy->getId(); in loadAudioPolicyEngineConfig() 218 mProductStrategies[strategyId] = strategy; in loadAudioPolicyEngineConfig() 228 [&](const auto &strategy) { in getOrderedProductStrategies() argument 229 for (const auto &attributes : strategy.second->getAudioAttributes()) { in getOrderedProductStrategies() 343 status_t EngineBase::setPreferredDeviceForStrategy(product_strategy_t strategy, in setPreferredDeviceForStrategy() argument 347 if (mProductStrategies.find(strategy) == mProductStrategies.end()) { in setPreferredDeviceForStrategy() [all …]
|
D | ProductStrategy.cpp | 187 const auto strategy = iter.second; in getAttributesForStreamType() local 188 if (strategy->supportStreamType(stream)) { in getAttributesForStreamType() 189 return strategy->getAttributesForStreamType(stream); in getAttributesForStreamType() 227 product_strategy_t strategy) const in getAttributesForProductStrategy() 229 if (find(strategy) == end()) { in getAttributesForProductStrategy() 230 ALOGE("Invalid %d strategy requested", strategy); in getAttributesForProductStrategy() 233 return at(strategy)->getAudioAttributes()[0]; in getAttributesForProductStrategy() 249 product_strategy_t strategy) const in getDeviceTypesForProductStrategy() 251 if (find(strategy) == end()) { in getDeviceTypesForProductStrategy() 252 ALOGE("Invalid %d strategy requested, returning device for default strategy", strategy); in getDeviceTypesForProductStrategy() [all …]
|
/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
D | Engine.cpp | 289 product_strategy_t strategy = getProductStrategyForAttributes(attributes); in getOutputDevicesForAttributes() local 298 sp<DeviceDescriptor> device = findPreferredDevice(outputs, strategy, availableOutputDevices); in getOutputDevicesForAttributes() 303 return fromCache? mDevicesForStrategies.at(strategy) : getDevicesForProductStrategy(strategy); in getOutputDevicesForAttributes() 352 const auto &strategy = iter.second; in updateDeviceSelectionCache() local 353 mDevicesForStrategies[strategy->getId()] = getDevicesForProductStrategy(strategy->getId()); in updateDeviceSelectionCache() 357 void Engine::setDeviceAddressForProductStrategy(product_strategy_t strategy, in setDeviceAddressForProductStrategy() argument 360 if (getProductStrategies().find(strategy) == getProductStrategies().end()) { in setDeviceAddressForProductStrategy() 362 strategy); in setDeviceAddressForProductStrategy() 365 getProductStrategies().at(strategy)->setDeviceAddress(address); in setDeviceAddressForProductStrategy() 368 bool Engine::setDeviceTypesForProductStrategy(product_strategy_t strategy, audio_devices_t devices) in setDeviceTypesForProductStrategy() argument [all …]
|
D | Engine.h | 87 void setDeviceAddressForProductStrategy(product_strategy_t strategy, 90 bool setDeviceTypesForProductStrategy(product_strategy_t strategy, 126 DeviceVector getDevicesForProductStrategy(product_strategy_t strategy) const;
|
/frameworks/base/core/java/android/view/ |
D | VelocityTracker.java | 41 private static native long nativeInitialize(String strategy); in nativeInitialize() argument 73 public static VelocityTracker obtain(String strategy) { in obtain() argument 74 if (strategy == null) { in obtain() 77 return new VelocityTracker(strategy); in obtain() 91 private VelocityTracker(String strategy) { in VelocityTracker() argument 92 mPtr = nativeInitialize(strategy); in VelocityTracker() 93 mStrategy = strategy; in VelocityTracker()
|
/frameworks/minikin/libs/minikin/ |
D | LineBreaker.cpp | 24 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, in breakIntoLines()
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioManagerTest.java | 128 for (final AudioProductStrategy strategy : audioProductStrategies) { in testGetAndValidateVolumeGroups() 129 int groupId = strategy.getVolumeGroupIdForAudioAttributes(aa); in testGetAndValidateVolumeGroups() 134 + strategy.toString() + ") both supporting attributes " in testGetAndValidateVolumeGroups() 157 for (final AudioProductStrategy strategy : audioProductStrategies) { in testGetAndValidateVolumeGroups() 158 Log.i(TAG, "strategy:" + strategy.toString()); in testGetAndValidateVolumeGroups() 159 int groupId = strategy.getVolumeGroupIdForLegacyStreamType(avgStreamType); in testGetAndValidateVolumeGroups() 164 + strategy.toString() + ") both supporting stream " in testGetAndValidateVolumeGroups()
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 114 VelocityTracker::VelocityTracker(const char* strategy) : in VelocityTracker() argument 119 if (!strategy) { in VelocityTracker() 122 strategy = value; in VelocityTracker() 124 strategy = DEFAULT_STRATEGY; in VelocityTracker() 129 if (!configureStrategy(strategy)) { in VelocityTracker() 130 ALOGD("Unrecognized velocity tracker strategy name '%s'.", strategy); in VelocityTracker() 133 strategy); in VelocityTracker() 142 bool VelocityTracker::configureStrategy(const char* strategy) { in configureStrategy() argument 143 mStrategy = createStrategy(strategy); in configureStrategy() 147 VelocityTrackerStrategy* VelocityTracker::createStrategy(const char* strategy) { in createStrategy() argument [all …]
|
/frameworks/base/core/jni/ |
D | android_media_AudioProductStrategies.cpp | 73 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.getAudioAttributes()) { 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()
|
D | android_view_VelocityTracker.cpp | 48 explicit VelocityTrackerState(const char* strategy); 67 VelocityTrackerState::VelocityTrackerState(const char* strategy) : in VelocityTrackerState() argument 68 mVelocityTracker(strategy), mActivePointerId(-1) { in VelocityTrackerState() 145 ScopedUtfChars strategy(env, strategyStr); in android_view_VelocityTracker_nativeInitialize() local 146 return reinterpret_cast<jlong>(new VelocityTrackerState(strategy.c_str())); in android_view_VelocityTracker_nativeInitialize()
|
/frameworks/av/services/audiopolicy/engine/common/include/ |
D | ProductStrategy.h | 147 audio_attributes_t getAttributesForProductStrategy(product_strategy_t strategy) const; 149 DeviceTypeSet getDeviceTypesForProductStrategy(product_strategy_t strategy) const; 151 std::string getDeviceAddressForProductStrategy(product_strategy_t strategy) const;
|
D | EngineBase.h | 96 status_t setPreferredDeviceForStrategy(product_strategy_t strategy, 99 status_t removePreferredDeviceForStrategy(product_strategy_t strategy) override; 101 status_t getPreferredDeviceForStrategy(product_strategy_t strategy,
|
/frameworks/av/services/audiopolicy/engine/interface/ |
D | EngineInterface.h | 303 virtual status_t setPreferredDeviceForStrategy(product_strategy_t strategy, 313 virtual status_t removePreferredDeviceForStrategy(product_strategy_t strategy) = 0; 324 virtual status_t getPreferredDeviceForStrategy(product_strategy_t strategy,
|
/frameworks/av/services/audiopolicy/engineconfigurable/interface/ |
D | AudioPolicyPluginInterface.h | 87 virtual void setDeviceAddressForProductStrategy(product_strategy_t strategy, 98 virtual bool setDeviceTypesForProductStrategy(product_strategy_t strategy,
|
/frameworks/base/core/java/android/text/ |
D | PrecomputedText.java | 144 public Builder setBreakStrategy(@Layout.BreakStrategy int strategy) { in setBreakStrategy() argument 145 mBreakStrategy = strategy; in setBreakStrategy() 192 @Layout.BreakStrategy int strategy, @Layout.HyphenationFrequency int frequency) { in Params() argument 195 mBreakStrategy = strategy; in Params() 263 @NonNull TextDirectionHeuristic textDir, @Layout.BreakStrategy int strategy, in checkResultUsable() argument 265 if (mBreakStrategy == strategy && mHyphenationFrequency == frequency in checkResultUsable() 525 @NonNull TextPaint paint, @Layout.BreakStrategy int strategy, in checkResultUsable() argument 530 return mParams.checkResultUsable(paint, textDir, strategy, frequency); in checkResultUsable()
|
/frameworks/av/media/libaudioclient/include/media/ |
D | IAudioPolicyService.h | 115 uint32_t strategy, 228 virtual status_t setPreferredDeviceForStrategy(product_strategy_t strategy, 231 virtual status_t removePreferredDeviceForStrategy(product_strategy_t strategy) = 0; 233 virtual status_t getPreferredDeviceForStrategy(product_strategy_t strategy,
|
/frameworks/minikin/include/minikin/ |
D | AndroidLineBreakerHelper.h | 76 StaticLayoutNative(BreakStrategy strategy, HyphenationFrequency frequency, bool isJustified, in StaticLayoutNative() argument 78 : mStrategy(strategy), in StaticLayoutNative()
|