/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessMappingStrategyTest.java | 191 BrightnessMappingStrategy strategy = BrightnessMappingStrategy.create(res, ddc, mMockDwbc); in testSimpleStrategyIgnoresNewConfiguration() local 198 strategy.setBrightnessConfiguration(config); in testSimpleStrategyIgnoresNewConfiguration() 199 assertNotEquals(1.0f, strategy.getBrightness(1f), 0.0001f /*tolerance*/); in testSimpleStrategyIgnoresNewConfiguration() 206 BrightnessMappingStrategy strategy = BrightnessMappingStrategy.create(res, ddc, mMockDwbc); in testSimpleStrategyIgnoresNullConfiguration() local 208 strategy.setBrightnessConfiguration(null); in testSimpleStrategyIgnoresNullConfiguration() 213 strategy.getBrightness(LUX_LEVELS[N - 1]), 0.0001f /*tolerance*/); in testSimpleStrategyIgnoresNullConfiguration() 258 BrightnessMappingStrategy strategy = BrightnessMappingStrategy.create(res, ddc, mMockDwbc); in testPhysicalStrategyUsesNewConfigurations() local 268 strategy.setBrightnessConfiguration(config); in testPhysicalStrategyUsesNewConfigurations() 269 assertEquals(1.0f, strategy.getBrightness(1f), 0.0001f /*tolerance*/); in testPhysicalStrategyUsesNewConfigurations() 272 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 | 70 for (const auto &strategy : legacyStrategy) { in Engine() local 71 mLegacyStrategyMap[getProductStrategyByName(strategy.name)] = strategy.id; in Engine() 145 void Engine::filterOutputDevicesForStrategy(legacy_strategy strategy, in filterOutputDevicesForStrategy() argument 151 switch (strategy) { in filterOutputDevicesForStrategy() 222 product_strategy_t Engine::remapStrategyFromContext(product_strategy_t strategy, in remapStrategyFromContext() argument 224 auto legacyStrategy = mLegacyStrategyMap.find(strategy) != end(mLegacyStrategyMap) ? in remapStrategyFromContext() 225 mLegacyStrategyMap.at(strategy) : STRATEGY_NONE; in remapStrategyFromContext() 238 return strategy; in remapStrategyFromContext() 257 return strategy; in remapStrategyFromContext() 263 DeviceVector Engine::getDevicesForStrategyInt(legacy_strategy strategy, in getDevicesForStrategyInt() argument [all …]
|
D | Engine.h | 79 void filterOutputDevicesForStrategy(legacy_strategy strategy, 83 product_strategy_t remapStrategyFromContext(product_strategy_t strategy, 86 DeviceVector getDevicesForStrategyInt(legacy_strategy strategy, 90 DeviceVector getDevicesForProductStrategy(product_strategy_t strategy) const; 98 const DeviceVector& availableOutputDevices, 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/base/core/java/android/view/ |
D | VelocityTracker.java | 178 private static native long nativeInitialize(int strategy); in nativeInitialize() argument 237 public static VelocityTracker obtain(String strategy) { in obtain() argument 238 if (strategy == null) { in obtain() 241 return new VelocityTracker(toStrategyId(strategy)); in obtain() 253 public static VelocityTracker obtain(int strategy) { in obtain() argument 254 return new VelocityTracker(strategy); in obtain() 278 private VelocityTracker(@VelocityTrackerStrategy int strategy) { in VelocityTracker() argument 280 if (strategy == VELOCITY_TRACKER_STRATEGY_DEFAULT) { in VelocityTracker() 284 mStrategy = strategy; in VelocityTracker() 290 mStrategy = strategy; in VelocityTracker()
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | EngineBase.cpp | 146 auto addSupportedAttributesToGroup = [](auto &group, auto &volumeGroup, auto &strategy) { in loadAudioPolicyEngineConfig() argument 148 strategy->addAttributes({group.stream, volumeGroup->getId(), attr}); in loadAudioPolicyEngineConfig() 201 sp<ProductStrategy> strategy = new ProductStrategy(strategyConfig.name); in loadAudioPolicyEngineConfig() local 230 addSupportedAttributesToGroup(group, volumeGroup, strategy); in loadAudioPolicyEngineConfig() 232 product_strategy_t strategyId = strategy->getId(); in loadAudioPolicyEngineConfig() 233 mProductStrategies[strategyId] = strategy; in loadAudioPolicyEngineConfig() 243 [&](const auto &strategy) { in getOrderedProductStrategies() argument 244 for (const auto &attributes : strategy.second->getAudioAttributes()) { in getOrderedProductStrategies() 455 status_t EngineBase::setDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role, in setDevicesRoleForStrategy() argument 458 std::function<bool(product_strategy_t)> p = [this](product_strategy_t strategy) { in setDevicesRoleForStrategy() argument [all …]
|
D | ProductStrategy.cpp | 183 const auto strategy = iter.second; in getAttributesForStreamType() local 184 if (strategy->supportStreamType(stream)) { in getAttributesForStreamType() 185 return strategy->getAttributesForStreamType(stream); in getAttributesForStreamType() 223 product_strategy_t strategy) const in getAttributesForProductStrategy() 225 if (find(strategy) == end()) { in getAttributesForProductStrategy() 226 ALOGE("Invalid %d strategy requested", strategy); in getAttributesForProductStrategy() 229 return at(strategy)->getAudioAttributes()[0]; in getAttributesForProductStrategy() 245 product_strategy_t strategy) const in getDeviceTypesForProductStrategy() 247 if (find(strategy) == end()) { in getDeviceTypesForProductStrategy() 248 ALOGE("Invalid %d strategy requested, returning device for default strategy", strategy); in getDeviceTypesForProductStrategy() [all …]
|
/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
D | Engine.cpp | 288 product_strategy_t strategy = getProductStrategyForAttributes(attributes); in getOutputDevicesForAttributes() local 297 sp<DeviceDescriptor> device = findPreferredDevice(outputs, strategy, availableOutputDevices); in getOutputDevicesForAttributes() 301 return fromCache? getCachedDevices(strategy) : getDevicesForProductStrategy(strategy); in getOutputDevicesForAttributes() 360 const auto &strategy = iter.second; in updateDeviceSelectionCache() local 361 mDevicesForStrategies[strategy->getId()] = getDevicesForProductStrategy(strategy->getId()); in updateDeviceSelectionCache() 365 void Engine::setDeviceAddressForProductStrategy(product_strategy_t strategy, in setDeviceAddressForProductStrategy() argument 368 if (getProductStrategies().find(strategy) == getProductStrategies().end()) { in setDeviceAddressForProductStrategy() 370 strategy); in setDeviceAddressForProductStrategy() 373 getProductStrategies().at(strategy)->setDeviceAddress(address); in setDeviceAddressForProductStrategy() 376 bool Engine::setDeviceTypesForProductStrategy(product_strategy_t strategy, uint64_t devices) in setDeviceTypesForProductStrategy() argument [all …]
|
D | Engine.h | 87 void setDeviceAddressForProductStrategy(product_strategy_t strategy, 90 bool setDeviceTypesForProductStrategy(product_strategy_t strategy, uint64_t devices) override; 125 DeviceVector getDevicesForProductStrategy(product_strategy_t strategy) const;
|
/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 46 explicit VelocityTrackerState(const VelocityTracker::Strategy strategy); 65 VelocityTrackerState::VelocityTrackerState(const VelocityTracker::Strategy strategy) in VelocityTrackerState() argument 66 : mVelocityTracker(strategy), mActivePointerId(-1) {} in VelocityTrackerState() 137 inline static VelocityTracker::Strategy getStrategyFromInt(const int32_t strategy) { in getStrategyFromInt() argument 138 if (strategy < static_cast<int32_t>(VelocityTracker::Strategy::MIN) || in getStrategyFromInt() 139 strategy > static_cast<int32_t>(VelocityTracker::Strategy::MAX)) { in getStrategyFromInt() 142 return static_cast<VelocityTracker::Strategy>(strategy); in getStrategyFromInt() 148 jint strategy) { in android_view_VelocityTracker_nativeInitialize() argument 149 return reinterpret_cast<jlong>(new VelocityTrackerState(getStrategyFromInt(strategy))); in android_view_VelocityTracker_nativeInitialize()
|
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()
|
/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/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/av/services/audiopolicy/engine/common/include/ |
D | ProductStrategy.h | 151 audio_attributes_t getAttributesForProductStrategy(product_strategy_t strategy) const; 153 DeviceTypeSet getDeviceTypesForProductStrategy(product_strategy_t strategy) const; 155 std::string getDeviceAddressForProductStrategy(product_strategy_t strategy) const;
|
D | EngineBase.h | 105 status_t setDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role, 108 status_t removeDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role) override; 110 status_t getDevicesForRoleAndStrategy(product_strategy_t strategy, device_role_t role,
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SharedUidMigration.java | 94 public static boolean applyStrategy(@Strategy int strategy) { in applyStrategy() argument 95 return !isDisabled() && getCurrentStrategy() >= strategy; in applyStrategy()
|
/frameworks/av/services/audiopolicy/engine/interface/ |
D | EngineInterface.h | 320 virtual status_t setDevicesRoleForStrategy(product_strategy_t strategy, device_role_t role, 331 virtual status_t removeDevicesRoleForStrategy(product_strategy_t strategy, 345 virtual status_t getDevicesForRoleAndStrategy(product_strategy_t strategy, device_role_t role,
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | ClientDescriptor.h | 107 product_strategy_t strategy, VolumeSource volumeSource, in TrackClientDescriptor() argument 114 mStream(stream), mStrategy(strategy), mVolumeSource(volumeSource), mFlags(flags), in TrackClientDescriptor() 124 product_strategy_t strategy() const { return mStrategy; } in strategy() function 224 audio_stream_type_t stream, product_strategy_t strategy, 290 product_strategy_t strategy, VolumeSource volumeSource) : in InternalSourceClientDescriptor() argument 292 portId, uid, attributes, config, srcDevice, AUDIO_STREAM_PATCH, strategy, in InternalSourceClientDescriptor()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioDeviceInventory.java | 253 mPreferredDevices.forEach((strategy, device) -> { in dump() argument 254 pw.println(" " + prefix + "strategy:" + strategy + " device:" + device); }); in dump() 288 mPreferredDevices.forEach((strategy, devices) -> { in onRestoreDevices() argument 290 strategy, AudioSystem.DEVICE_ROLE_PREFERRED, devices); }); in onRestoreDevices() 595 /*package*/ void onSaveSetPreferredDevices(int strategy, in onSaveSetPreferredDevices() argument 597 mPreferredDevices.put(strategy, devices); in onSaveSetPreferredDevices() 598 dispatchPreferredDevice(strategy, devices); in onSaveSetPreferredDevices() 601 /*package*/ void onSaveRemovePreferredDevices(int strategy) { in onSaveRemovePreferredDevices() argument 602 mPreferredDevices.remove(strategy); in onSaveRemovePreferredDevices() 603 dispatchPreferredDevice(strategy, new ArrayList<AudioDeviceAttributes>()); in onSaveRemovePreferredDevices() [all …]
|
/frameworks/base/core/java/android/text/ |
D | PrecomputedText.java | 154 public Builder setBreakStrategy(@Layout.BreakStrategy int strategy) { in setBreakStrategy() argument 155 mBreakStrategy = strategy; in setBreakStrategy() 217 @Layout.BreakStrategy int strategy, in Params() argument 221 mBreakStrategy = strategy; in Params() 300 @NonNull TextDirectionHeuristic textDir, @Layout.BreakStrategy int strategy, in checkResultUsable() argument 302 if (mBreakStrategy == strategy && mHyphenationFrequency == frequency in checkResultUsable() 594 @NonNull TextPaint paint, @Layout.BreakStrategy int strategy, in checkResultUsable() argument 599 return mParams.checkResultUsable(paint, textDir, strategy, frequency, lbConfig); in checkResultUsable()
|