Lines Matching defs:idBits
209 void VelocityTracker::clearPointers(BitSet32 idBits) {
210 BitSet32 remainingIdBits(mCurrentPointerIdBits.value & ~idBits.value);
213 if (mActivePointerId >= 0 && idBits.hasBit(mActivePointerId)) {
217 mStrategy->clearPointers(idBits);
220 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) {
221 while (idBits.count() > MAX_POINTERS) {
222 idBits.clearLastMarkedBit();
225 if ((mCurrentPointerIdBits.value & idBits.value)
237 mCurrentPointerIdBits = idBits;
238 if (mActivePointerId < 0 || !idBits.hasBit(mActivePointerId)) {
239 mActivePointerId = idBits.isEmpty() ? -1 : idBits.firstMarkedBit();
242 mStrategy->addMovement(eventTime, idBits, positions);
245 ALOGD("VelocityTracker: addMovement eventTime=%lld, idBits=0x%08x, activePointerId=%d",
246 eventTime, idBits.value, mActivePointerId);
247 for (BitSet32 iterBits(idBits); !iterBits.isEmpty(); ) {
249 uint32_t index = idBits.getIndexOfBit(id);
302 BitSet32 idBits;
304 idBits.markBit(event->getPointerId(i));
309 pointerIndex[i] = idBits.getIndexOfBit(event->getPointerId(i));
323 addMovement(eventTime, idBits, positions);
332 addMovement(eventTime, idBits, positions);
368 mMovements[0].idBits.clear();
371 void LeastSquaresVelocityTrackerStrategy::clearPointers(BitSet32 idBits) {
372 BitSet32 remainingIdBits(mMovements[mIndex].idBits.value & ~idBits.value);
373 mMovements[mIndex].idBits = remainingIdBits;
376 void LeastSquaresVelocityTrackerStrategy::addMovement(nsecs_t eventTime, BitSet32 idBits,
384 movement.idBits = idBits;
385 uint32_t count = idBits.count();
571 if (!movement.idBits.hasBit(id)) {
706 void IntegratingVelocityTrackerStrategy::clearPointers(BitSet32 idBits) {
707 mPointerIdBits.value &= ~idBits.value;
710 void IntegratingVelocityTrackerStrategy::addMovement(nsecs_t eventTime, BitSet32 idBits,
713 for (BitSet32 iterIdBits(idBits); !iterIdBits.isEmpty();) {
724 mPointerIdBits = idBits;
824 mMovements[0].idBits.clear();
827 void LegacyVelocityTrackerStrategy::clearPointers(BitSet32 idBits) {
828 BitSet32 remainingIdBits(mMovements[mIndex].idBits.value & ~idBits.value);
829 mMovements[mIndex].idBits = remainingIdBits;
832 void LegacyVelocityTrackerStrategy::addMovement(nsecs_t eventTime, BitSet32 idBits,
840 movement.idBits = idBits;
841 uint32_t count = idBits.count();
852 if (!newestMovement.idBits.hasBit(id)) {
863 if (!nextOldestMovement.idBits.hasBit(id)