Home
last modified time | relevance | path

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

/frameworks/native/include/input/
DVelocityTracker.h92 void clearPointers(BitSet32 idBits);
99 void addMovement(nsecs_t eventTime, BitSet32 idBits, const std::vector<Position>& positions);
150 virtual void clearPointers(BitSet32 idBits) = 0;
151 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits,
182 virtual void clearPointers(BitSet32 idBits);
183 void addMovement(nsecs_t eventTime, BitSet32 idBits,
198 BitSet32 idBits; member
202 return positions[idBits.getIndexOfBit(id)]; in getPosition()
225 virtual void clearPointers(BitSet32 idBits);
226 void addMovement(nsecs_t eventTime, BitSet32 idBits,
[all …]
DInputTransport.h541 BitSet32 idBits; member
547 idBits.clear(); in initializeFrom()
550 idBits.markBit(id); in initializeFrom()
558 idBits = other.idBits; // temporary copy in initializeFrom()
559 for (size_t i = 0; i < other.idBits.count(); i++) { in initializeFrom()
560 uint32_t id = idBits.clearFirstMarkedBit(); in initializeFrom()
565 idBits = other.idBits; // final copy in initializeFrom()
573 return idBits.hasBit(id); in hasPointerId()
590 lastResample.idBits.clear(); in initialize()
/frameworks/native/libs/input/
DVelocityTracker.cpp204 void VelocityTracker::clearPointers(BitSet32 idBits) { in clearPointers() argument
205 BitSet32 remainingIdBits(mCurrentPointerIdBits.value & ~idBits.value); in clearPointers()
208 if (mActivePointerId >= 0 && idBits.hasBit(mActivePointerId)) { in clearPointers()
212 mStrategy->clearPointers(idBits); in clearPointers()
215 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, in addMovement() argument
217 LOG_ALWAYS_FATAL_IF(idBits.count() != positions.size(), in addMovement()
219 idBits.count(), positions.size()); in addMovement()
220 while (idBits.count() > MAX_POINTERS) { in addMovement()
221 idBits.clearLastMarkedBit(); in addMovement()
224 if ((mCurrentPointerIdBits.value & idBits.value) in addMovement()
[all …]
DInputTransport.cpp1010 touchState.lastResample.idBits.clearBit(msg.body.motion.getActionId()); in updateTouchState()
1021 touchState.lastResample.idBits.clearBit(msg.body.motion.getActionId()); in updateTouchState()
1063 if (state.lastResample.idBits.hasBit(id)) { in rewriteMessage()
1076 state.lastResample.idBits.clearBit(id); in rewriteMessage()
1111 if (!current->idBits.hasBit(id)) { in resampleTouchState()
1173 touchState.lastResample.idBits.clear(); in resampleTouchState()
1177 touchState.lastResample.idBits.markBit(id); in resampleTouchState()
1193 if (other->idBits.hasBit(id) in resampleTouchState()
/frameworks/base/libs/input/
DTouchSpotController.cpp83 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty();) { in setSpots() local
84 uint32_t id = idBits.firstMarkedBit(); in setSpots()
85 idBits.clearBit(id); in setSpots()
98 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty();) { in setSpots() local
99 uint32_t id = idBits.clearFirstMarkedBit(); in setSpots()
DPointerController.cpp202 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty();) { in setSpots() local
203 const uint32_t index = spotIdToIndex[idBits.clearFirstMarkedBit()]; in setSpots()
/frameworks/native/services/inputflinger/reader/mapper/
DMultiTouchInputMapper.cpp247 for (BitSet32 idBits(mPointerIdBits); !idBits.isEmpty();) { in getActiveBitId() local
248 int32_t n = idBits.clearFirstMarkedBit(); in getActiveBitId()
326 for (BitSet32 idBits(mPointerIdBits); !idBits.isEmpty();) { in syncTouch() local
327 uint32_t n = idBits.clearFirstMarkedBit(); in syncTouch()
DTouchInputMapper.cpp125 for (BitSet32 idBits(touchingIdBits); !idBits.isEmpty();) { in getCentroidOfTouchingPointers() local
126 uint32_t id = idBits.clearFirstMarkedBit(); in getCentroidOfTouchingPointers()
1622 for (BitSet32 idBits(mCurrentRawState.rawPointerData.touchingIdBits); !idBits.isEmpty();) { in cookAndDispatch() local
1623 uint32_t id = idBits.clearFirstMarkedBit(); in cookAndDispatch()
1636 for (BitSet32 idBits(mCurrentRawState.rawPointerData.hoveringIdBits); !idBits.isEmpty();) { in cookAndDispatch() local
1637 uint32_t id = idBits.clearFirstMarkedBit(); in cookAndDispatch()
2081 const BitSet32& idBits = findActiveIdBits(mLastCookedState.cookedPointerData); in dispatchButtonRelease() local
2091 mCurrentCookedState.cookedPointerData.idToIndex, idBits, -1, in dispatchButtonRelease()
2098 const BitSet32& idBits = findActiveIdBits(mCurrentCookedState.cookedPointerData); in dispatchButtonPress() local
2108 mCurrentCookedState.cookedPointerData.idToIndex, idBits, -1, in dispatchButtonPress()
[all …]
DTouchInputMapper.h800 const PointerCoords* coords, const uint32_t* idToIndex, BitSet32 idBits,
808 BitSet32 idBits) const;
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp79 BitSet32 idBits(mVelocityTracker.getCurrentPointerIdBits()); in computeCurrentVelocity() local
80 mCalculatedIdBits = idBits; in computeCurrentVelocity()
82 for (uint32_t index = 0; !idBits.isEmpty(); index++) { in computeCurrentVelocity()
83 uint32_t id = idBits.clearFirstMarkedBit(); in computeCurrentVelocity()
/frameworks/base/core/java/android/view/
DMotionEvent.java3560 int idBits = 0; in getPointerIdBits() local
3563 idBits |= 1 << nativeGetPointerId(mNativePtr, i); in getPointerIdBits()
3565 return idBits; in getPointerIdBits()
3573 public final MotionEvent split(int idBits) { in split() argument
3591 if ((idBit & idBits) != 0) { in split()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp241 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty(); ) { in setSpots() local
242 uint32_t id = idBits.clearFirstMarkedBit(); in setSpots()