Lines Matching refs:strategy
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
148 if (!strcmp("impulse", strategy)) { in createStrategy()
153 if (!strcmp("lsq1", strategy)) { in createStrategy()
160 if (!strcmp("lsq2", strategy)) { in createStrategy()
167 if (!strcmp("lsq3", strategy)) { in createStrategy()
173 if (!strcmp("wlsq2-delta", strategy)) { in createStrategy()
178 if (!strcmp("wlsq2-central", strategy)) { in createStrategy()
183 if (!strcmp("wlsq2-recent", strategy)) { in createStrategy()
188 if (!strcmp("int1", strategy)) { in createStrategy()
196 if (!strcmp("int2", strategy)) { in createStrategy()
202 if (!strcmp("legacy", strategy)) { in createStrategy()