Home
last modified time | relevance | path

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

/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.h401 BitSet32 idBits; member
407 idBits.clear(); in initializeFrom()
410 idBits.markBit(id); in initializeFrom()
418 idBits = other.idBits; // temporary copy in initializeFrom()
419 for (size_t i = 0; i < other.idBits.count(); i++) { in initializeFrom()
420 uint32_t id = idBits.clearFirstMarkedBit(); in initializeFrom()
425 idBits = other.idBits; // final copy in initializeFrom()
433 return idBits.hasBit(id); in hasPointerId()
450 lastResample.idBits.clear(); in initialize()
/frameworks/native/libs/input/
DVelocityTracker.cpp219 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()
[all …]
DInputTransport.cpp813 touchState.lastResample.idBits.clearBit(msg.body.motion.getActionId()); in updateTouchState()
824 touchState.lastResample.idBits.clearBit(msg.body.motion.getActionId()); in updateTouchState()
866 if (state.lastResample.idBits.hasBit(id)) { in rewriteMessage()
879 state.lastResample.idBits.clearBit(id); in rewriteMessage()
914 if (!current->idBits.hasBit(id)) { in resampleTouchState()
976 touchState.lastResample.idBits.clear(); in resampleTouchState()
980 touchState.lastResample.idBits.markBit(id); in resampleTouchState()
996 if (other->idBits.hasBit(id) in resampleTouchState()
/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.cpp281 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty(); ) { in setSpots() local
282 uint32_t id = idBits.firstMarkedBit(); in setSpots()
283 idBits.clearBit(id); in setSpots()
305 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty(); ) { in setSpots() local
306 uint32_t id = idBits.clearFirstMarkedBit(); in setSpots()
/frameworks/native/services/inputflinger/
DInputReader.cpp1636 for (BitSet32 idBits(touchingIdBits); !idBits.isEmpty(); ) { in getCentroidOfTouchingPointers() local
1637 uint32_t id = idBits.clearFirstMarkedBit(); in getCentroidOfTouchingPointers()
4472 for (BitSet32 idBits(mCurrentRawState.rawPointerData.touchingIdBits); in cookAndDispatch() local
4473 !idBits.isEmpty(); ) { in cookAndDispatch()
4474 uint32_t id = idBits.clearFirstMarkedBit(); in cookAndDispatch()
4487 for (BitSet32 idBits(mCurrentRawState.rawPointerData.hoveringIdBits); in cookAndDispatch() local
4488 !idBits.isEmpty(); ) { in cookAndDispatch()
4489 uint32_t id = idBits.clearFirstMarkedBit(); in cookAndDispatch()
4918 const BitSet32& idBits = findActiveIdBits(mLastCookedState.cookedPointerData); in dispatchButtonRelease() local
4930 mCurrentCookedState.cookedPointerData.idToIndex, idBits, -1, in dispatchButtonRelease()
[all …]
DInputReader.h1639 const uint32_t* idToIndex, BitSet32 idBits,
1647 const uint32_t* outIdToIndex, BitSet32 idBits) const;
/frameworks/base/core/java/android/view/
DMotionEvent.java3360 int idBits = 0; in getPointerIdBits() local
3363 idBits |= 1 << nativeGetPointerId(mNativePtr, i); in getPointerIdBits()
3365 return idBits; in getPointerIdBits()
3373 public final MotionEvent split(int idBits) { in split() argument
3391 if ((idBit & idBits) != 0) { in split()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp141 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty(); ) { in setSpots() local
142 uint32_t id = idBits.clearFirstMarkedBit(); in setSpots()