Home
last modified time | relevance | path

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

/frameworks/native/libs/input/
DVelocityTracker.cpp211 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()
[all …]
DInputTransport.cpp615 touchState.lastResample.idBits.clear(); in updateTouchState()
625 touchState.lastResample.idBits.clearBit(msg->body.motion.getActionId()); in updateTouchState()
636 touchState.lastResample.idBits.clearBit(msg->body.motion.getActionId()); in updateTouchState()
666 if (state.lastResample.idBits.hasBit(id)) { in rewriteMessage()
711 if (!current->idBits.hasBit(id)) { in resampleTouchState()
771 touchState.lastResample.idBits.clear(); in resampleTouchState()
775 touchState.lastResample.idBits.markBit(id); in resampleTouchState()
778 if (other->idBits.hasBit(id) in resampleTouchState()
/frameworks/native/include/input/
DVelocityTracker.h76 void clearPointers(BitSet32 idBits);
83 void addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions);
129 virtual void clearPointers(BitSet32 idBits) = 0;
130 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits,
161 virtual void clearPointers(BitSet32 idBits);
162 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits,
177 BitSet32 idBits; member
181 return positions[idBits.getIndexOfBit(id)]; in getPosition()
204 virtual void clearPointers(BitSet32 idBits);
205 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits,
[all …]
DInputTransport.h366 BitSet32 idBits; member
372 idBits.clear(); in initializeFrom()
375 idBits.markBit(id); in initializeFrom()
399 lastResample.idBits.clear(); in initialize()
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp82 BitSet32 idBits(mVelocityTracker.getCurrentPointerIdBits()); in computeCurrentVelocity() local
83 mCalculatedIdBits = idBits; in computeCurrentVelocity()
85 for (uint32_t index = 0; !idBits.isEmpty(); index++) { in computeCurrentVelocity()
86 uint32_t id = idBits.clearFirstMarkedBit(); in computeCurrentVelocity()
/frameworks/base/libs/input/
DPointerController.cpp296 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty(); ) { in setSpots() local
297 uint32_t id = idBits.firstMarkedBit(); in setSpots()
298 idBits.clearBit(id); in setSpots()
312 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty(); ) { in setSpots() local
313 uint32_t id = idBits.clearFirstMarkedBit(); in setSpots()
/frameworks/native/services/inputflinger/
DInputReader.cpp1622 for (BitSet32 idBits(touchingIdBits); !idBits.isEmpty(); ) { in getCentroidOfTouchingPointers() local
1623 uint32_t id = idBits.clearFirstMarkedBit(); in getCentroidOfTouchingPointers()
4309 for (BitSet32 idBits(mCurrentRawState.rawPointerData.touchingIdBits); in cookAndDispatch() local
4310 !idBits.isEmpty(); ) { in cookAndDispatch()
4311 uint32_t id = idBits.clearFirstMarkedBit(); in cookAndDispatch()
4324 for (BitSet32 idBits(mCurrentRawState.rawPointerData.hoveringIdBits); in cookAndDispatch() local
4325 !idBits.isEmpty(); ) { in cookAndDispatch()
4326 uint32_t id = idBits.clearFirstMarkedBit(); in cookAndDispatch()
4744 const BitSet32& idBits = findActiveIdBits(mLastCookedState.cookedPointerData); in dispatchButtonRelease() local
4755 mCurrentCookedState.cookedPointerData.idToIndex, idBits, -1, in dispatchButtonRelease()
[all …]
DInputReader.h1823 const uint32_t* idToIndex, BitSet32 idBits,
1831 const uint32_t* outIdToIndex, BitSet32 idBits) const;
/frameworks/base/core/java/android/view/
DMotionEvent.java3144 int idBits = 0; in getPointerIdBits() local
3147 idBits |= 1 << nativeGetPointerId(mNativePtr, i); in getPointerIdBits()
3149 return idBits; in getPointerIdBits()
3156 public final MotionEvent split(int idBits) { in split() argument
3175 if ((idBit & idBits) != 0) { in split()