Lines Matching refs:strategy
110 VelocityTracker::VelocityTracker(const char* strategy) : in VelocityTracker() argument
115 if (!strategy) { in VelocityTracker()
118 strategy = value; in VelocityTracker()
120 strategy = DEFAULT_STRATEGY; in VelocityTracker()
125 if (!configureStrategy(strategy)) { in VelocityTracker()
126 ALOGD("Unrecognized velocity tracker strategy name '%s'.", strategy); in VelocityTracker()
129 strategy); in VelocityTracker()
138 bool VelocityTracker::configureStrategy(const char* strategy) { in configureStrategy() argument
139 mStrategy = createStrategy(strategy); in configureStrategy()
143 VelocityTrackerStrategy* VelocityTracker::createStrategy(const char* strategy) { in createStrategy() argument
144 if (!strcmp("lsq1", strategy)) { in createStrategy()
151 if (!strcmp("lsq2", strategy)) { in createStrategy()
158 if (!strcmp("lsq3", strategy)) { in createStrategy()
164 if (!strcmp("wlsq2-delta", strategy)) { in createStrategy()
169 if (!strcmp("wlsq2-central", strategy)) { in createStrategy()
174 if (!strcmp("wlsq2-recent", strategy)) { in createStrategy()
179 if (!strcmp("int1", strategy)) { in createStrategy()
187 if (!strcmp("int2", strategy)) { in createStrategy()
193 if (!strcmp("legacy", strategy)) { in createStrategy()