Lines Matching refs:idBits

211 void VelocityTracker::clearPointers(BitSet32 idBits) {  in clearPointers()  argument
212 BitSet32 remainingIdBits(mCurrentPointerIdBits.value & ~idBits.value); in clearPointers()
215 if (mActivePointerId >= 0 && idBits.hasBit(mActivePointerId)) { in clearPointers()
219 mStrategy->clearPointers(idBits); in clearPointers()
222 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement() argument
223 while (idBits.count() > MAX_POINTERS) { in addMovement()
224 idBits.clearLastMarkedBit(); in addMovement()
227 if ((mCurrentPointerIdBits.value & idBits.value) in addMovement()
239 mCurrentPointerIdBits = idBits; in addMovement()
240 if (mActivePointerId < 0 || !idBits.hasBit(mActivePointerId)) { in addMovement()
241 mActivePointerId = idBits.isEmpty() ? -1 : idBits.firstMarkedBit(); in addMovement()
244 mStrategy->addMovement(eventTime, idBits, positions); in addMovement()
248 eventTime, idBits.value, mActivePointerId); in addMovement()
249 for (BitSet32 iterBits(idBits); !iterBits.isEmpty(); ) { in addMovement()
251 uint32_t index = idBits.getIndexOfBit(id); in addMovement()
304 BitSet32 idBits; in addMovement() local
306 idBits.markBit(event->getPointerId(i)); in addMovement()
311 pointerIndex[i] = idBits.getIndexOfBit(event->getPointerId(i)); in addMovement()
325 addMovement(eventTime, idBits, positions); in addMovement()
334 addMovement(eventTime, idBits, positions); in addMovement()
370 mMovements[0].idBits.clear(); in clear()
373 void LeastSquaresVelocityTrackerStrategy::clearPointers(BitSet32 idBits) { in clearPointers() argument
374 BitSet32 remainingIdBits(mMovements[mIndex].idBits.value & ~idBits.value); in clearPointers()
375 mMovements[mIndex].idBits = remainingIdBits; in clearPointers()
378 void LeastSquaresVelocityTrackerStrategy::addMovement(nsecs_t eventTime, BitSet32 idBits, in addMovement() argument
386 movement.idBits = idBits; in addMovement()
387 uint32_t count = idBits.count(); in addMovement()
574 if (!movement.idBits.hasBit(id)) { in getEstimator()
709 void IntegratingVelocityTrackerStrategy::clearPointers(BitSet32 idBits) { in clearPointers() argument
710 mPointerIdBits.value &= ~idBits.value; in clearPointers()
713 void IntegratingVelocityTrackerStrategy::addMovement(nsecs_t eventTime, BitSet32 idBits, in addMovement() argument
716 for (BitSet32 iterIdBits(idBits); !iterIdBits.isEmpty();) { in addMovement()
727 mPointerIdBits = idBits; in addMovement()
827 mMovements[0].idBits.clear(); in clear()
830 void LegacyVelocityTrackerStrategy::clearPointers(BitSet32 idBits) { in clearPointers() argument
831 BitSet32 remainingIdBits(mMovements[mIndex].idBits.value & ~idBits.value); in clearPointers()
832 mMovements[mIndex].idBits = remainingIdBits; in clearPointers()
835 void LegacyVelocityTrackerStrategy::addMovement(nsecs_t eventTime, BitSet32 idBits, in addMovement() argument
843 movement.idBits = idBits; in addMovement()
844 uint32_t count = idBits.count(); in addMovement()
855 if (!newestMovement.idBits.hasBit(id)) { in getEstimator()
866 if (!nextOldestMovement.idBits.hasBit(id) in getEstimator()