Home
last modified time | relevance | path

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

/frameworks/native/libs/input/
DVelocityTracker.cpp653 float ageMillis = (mMovements[mIndex].eventTime - mMovements[index].eventTime) in chooseWeight() local
655 if (ageMillis < 0) { in chooseWeight()
658 if (ageMillis < 10) { in chooseWeight()
659 return 0.5f + ageMillis * 0.05; in chooseWeight()
661 if (ageMillis < 50) { in chooseWeight()
664 if (ageMillis < 60) { in chooseWeight()
665 return 0.5f + (60 - ageMillis) * 0.05; in chooseWeight()
675 float ageMillis = (mMovements[mIndex].eventTime - mMovements[index].eventTime) in chooseWeight() local
677 if (ageMillis < 50) { in chooseWeight()
680 if (ageMillis < 100) { in chooseWeight()
[all …]