Lines Matching refs:idBits

219 void VelocityTracker::clearPointers(BitSet32 idBits) {  in clearPointers()  argument
220 BitSet32 remainingIdBits(mCurrentPointerIdBits.value & ~idBits.value); in clearPointers()
223 if (mActivePointerId >= 0 && idBits.hasBit(mActivePointerId)) { in clearPointers()
227 mStrategy->clearPointers(idBits); in clearPointers()
230 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement() argument
231 while (idBits.count() > MAX_POINTERS) { in addMovement()
232 idBits.clearLastMarkedBit(); in addMovement()
235 if ((mCurrentPointerIdBits.value & idBits.value) in addMovement()
247 mCurrentPointerIdBits = idBits; in addMovement()
248 if (mActivePointerId < 0 || !idBits.hasBit(mActivePointerId)) { in addMovement()
249 mActivePointerId = idBits.isEmpty() ? -1 : idBits.firstMarkedBit(); in addMovement()
252 mStrategy->addMovement(eventTime, idBits, positions); in addMovement()
256 eventTime, idBits.value, mActivePointerId); in addMovement()
257 for (BitSet32 iterBits(idBits); !iterBits.isEmpty(); ) { in addMovement()
259 uint32_t index = idBits.getIndexOfBit(id); in addMovement()
312 BitSet32 idBits; in addMovement() local
314 idBits.markBit(event->getPointerId(i)); in addMovement()
319 pointerIndex[i] = idBits.getIndexOfBit(event->getPointerId(i)); in addMovement()
333 addMovement(eventTime, idBits, positions); in addMovement()
342 addMovement(eventTime, idBits, positions); in addMovement()
375 mMovements[0].idBits.clear(); in clear()
378 void LeastSquaresVelocityTrackerStrategy::clearPointers(BitSet32 idBits) { in clearPointers() argument
379 BitSet32 remainingIdBits(mMovements[mIndex].idBits.value & ~idBits.value); in clearPointers()
380 mMovements[mIndex].idBits = remainingIdBits; in clearPointers()
383 void LeastSquaresVelocityTrackerStrategy::addMovement(nsecs_t eventTime, BitSet32 idBits, in addMovement() argument
400 movement.idBits = idBits; in addMovement()
401 uint32_t count = idBits.count(); in addMovement()
640 if (!movement.idBits.hasBit(id)) { in getEstimator()
791 void IntegratingVelocityTrackerStrategy::clearPointers(BitSet32 idBits) { in clearPointers() argument
792 mPointerIdBits.value &= ~idBits.value; in clearPointers()
795 void IntegratingVelocityTrackerStrategy::addMovement(nsecs_t eventTime, BitSet32 idBits, in addMovement() argument
798 for (BitSet32 iterIdBits(idBits); !iterIdBits.isEmpty();) { in addMovement()
809 mPointerIdBits = idBits; in addMovement()
905 mMovements[0].idBits.clear(); in clear()
908 void LegacyVelocityTrackerStrategy::clearPointers(BitSet32 idBits) { in clearPointers() argument
909 BitSet32 remainingIdBits(mMovements[mIndex].idBits.value & ~idBits.value); in clearPointers()
910 mMovements[mIndex].idBits = remainingIdBits; in clearPointers()
913 void LegacyVelocityTrackerStrategy::addMovement(nsecs_t eventTime, BitSet32 idBits, in addMovement() argument
921 movement.idBits = idBits; in addMovement()
922 uint32_t count = idBits.count(); in addMovement()
933 if (!newestMovement.idBits.hasBit(id)) { in getEstimator()
944 if (!nextOldestMovement.idBits.hasBit(id) in getEstimator()
1019 mMovements[0].idBits.clear(); in clear()
1022 void ImpulseVelocityTrackerStrategy::clearPointers(BitSet32 idBits) { in clearPointers() argument
1023 BitSet32 remainingIdBits(mMovements[mIndex].idBits.value & ~idBits.value); in clearPointers()
1024 mMovements[mIndex].idBits = remainingIdBits; in clearPointers()
1027 void ImpulseVelocityTrackerStrategy::addMovement(nsecs_t eventTime, BitSet32 idBits, in addMovement() argument
1044 movement.idBits = idBits; in addMovement()
1045 uint32_t count = idBits.count(); in addMovement()
1173 if (!movement.idBits.hasBit(id)) { in getEstimator()