Home
last modified time | relevance | path

Searched refs:Strategy (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp231 static std::optional<float> computeVelocity(const VelocityTracker::Strategy strategy, in computeVelocity()
244 const VelocityTracker::Strategy strategy, in computePlanarVelocity()
250 static void computeAndCheckVelocity(const VelocityTracker::Strategy strategy, in computeAndCheckVelocity()
258 const VelocityTracker::Strategy strategy, in computeAndCheckAxisScrollVelocity()
265 checkVelocity(computeVelocity(VelocityTracker::Strategy::LSQ2, events, in computeAndCheckAxisScrollVelocity()
273 computePlanarVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_X, in computeAndCheckQuadraticVelocity()
276 computePlanarVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_Y, in computeAndCheckQuadraticVelocity()
314 EXPECT_EQ(computePlanarVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_X, in TEST_F()
316 computePlanarVelocity(VelocityTracker::Strategy::DEFAULT, motions, in TEST_F()
318 EXPECT_EQ(computePlanarVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_Y, in TEST_F()
[all …]
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp39 explicit VelocityTrackerState(const VelocityTracker::Strategy strategy);
53 VelocityTrackerState::VelocityTrackerState(const VelocityTracker::Strategy strategy) in VelocityTrackerState()
77 inline static VelocityTracker::Strategy getStrategyFromInt(const int32_t strategy) { in getStrategyFromInt()
78 if (strategy < static_cast<int32_t>(VelocityTracker::Strategy::MIN) || in getStrategyFromInt()
79 strategy > static_cast<int32_t>(VelocityTracker::Strategy::MAX)) { in getStrategyFromInt()
80 return VelocityTracker::Strategy::DEFAULT; in getStrategyFromInt()
82 return static_cast<VelocityTracker::Strategy>(strategy); in getStrategyFromInt()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DSchemePrefixPerfTest.java42 enum Strategy { enum in SchemePrefixPerfTest
91 return Arrays.asList(new Object[][] {{Strategy.REGEX}, {Strategy.JAVA}}); in getData()
96 public void timeSchemePrefix(Strategy strategy) { in timeSchemePrefix()
/frameworks/base/services/core/java/com/android/server/pm/
DSharedUidMigration.java61 public @interface Strategy {} annotation in SharedUidMigration
63 @Strategy
94 public static boolean applyStrategy(@Strategy int strategy) { in applyStrategy()
/frameworks/native/libs/input/
DVelocityTracker.cpp68 static const std::map<int32_t, VelocityTracker::Strategy> DEFAULT_STRATEGY_BY_AXIS =
69 {{AMOTION_EVENT_AXIS_X, VelocityTracker::Strategy::LSQ2},
70 {AMOTION_EVENT_AXIS_Y, VelocityTracker::Strategy::LSQ2},
71 {AMOTION_EVENT_AXIS_SCROLL, VelocityTracker::Strategy::IMPULSE}};
149 VelocityTracker::VelocityTracker(const Strategy strategy) in VelocityTracker()
158 if (isDifferentialAxis || mOverrideStrategy == VelocityTracker::Strategy::DEFAULT) { in configureStrategy()
168 VelocityTracker::Strategy strategy, bool deltaValues) { in createStrategy()
170 case VelocityTracker::Strategy::IMPULSE: in createStrategy()
174 case VelocityTracker::Strategy::LSQ1: in createStrategy()
177 case VelocityTracker::Strategy::LSQ2: in createStrategy()
[all …]
/frameworks/native/include/input/
DVelocityTracker.h38 enum class Strategy : int32_t { enum
84 VelocityTracker(const Strategy strategy = Strategy::DEFAULT);
125 const Strategy mOverrideStrategy;
136 static std::unique_ptr<VelocityTrackerStrategy> createStrategy(const Strategy strategy,
/frameworks/base/core/java/android/os/
DBundleMerger.java55 private @Strategy int mDefaultStrategy = STRATEGY_REJECT;
142 public @interface Strategy {} annotation in BundleMerger
179 public void setDefaultMergeStrategy(@Strategy int strategy) { in setDefaultMergeStrategy()
189 public void setMergeStrategy(@NonNull String key, @Strategy int strategy) { in setMergeStrategy()
200 public @Strategy int getMergeStrategy(@NonNull String key) { in getMergeStrategy()
263 public static @Nullable Object merge(@Strategy int strategy, in merge()
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Phone/Settings/
Ddevice_for_product_strategy_sonification.pfw298 # Sonification Follows Phone Strategy if in call (widely speaking)
335 # Sonification Follows Phone Strategy if in call (widely speaking)
364 # Sonification Follows Phone Strategy if in call (widely speaking)
393 # Sonification Follows Phone Strategy if in call (widely speaking)
422 # Sonification Follows Phone Strategy if in call (widely speaking)
449 # Sonification Follows Phone Strategy if in call
Ddevice_for_product_strategy_sonification_respectful.pfw5 # - If in call: Strategy sonification (that follows phone strategy in call also...)
6 # - If not in call AND a music stream is active remotely: Strategy sonification (that
56 # Follows Phone Strategy if call
/frameworks/proto_logging/stats/
Datoms.proto13631 // Strategy of scoring and ranking.