Home
last modified time | relevance | path

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

/frameworks/native/include/input/
DInputConsumer.h135 BitSet32 idBits; member
141 idBits.clear(); in initializeFrom()
144 idBits.markBit(id); in initializeFrom()
152 idBits = other.idBits; // temporary copy in initializeFrom()
153 for (size_t i = 0; i < other.idBits.count(); i++) { in initializeFrom()
154 uint32_t id = idBits.clearFirstMarkedBit(); in initializeFrom()
159 idBits = other.idBits; // final copy in initializeFrom()
164 bool hasPointerId(uint32_t id) const { return idBits.hasBit(id); } in hasPointerId()
180 lastResample.idBits.clear(); in initialize()
/frameworks/native/services/inputflinger/reader/mapper/
DMultiTouchInputMapper.cpp54 for (BitSet32 idBits(mPointerIdBits); !idBits.isEmpty();) { in getActiveBitId() local
55 int32_t n = idBits.clearFirstMarkedBit(); in getActiveBitId()
144 for (BitSet32 idBits(mPointerIdBits); !idBits.isEmpty();) { in syncTouch() local
145 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()
1572 for (BitSet32 idBits(mCurrentRawState.rawPointerData.touchingIdBits); !idBits.isEmpty();) { in cookAndDispatch() local
1573 uint32_t id = idBits.clearFirstMarkedBit(); in cookAndDispatch()
1585 for (BitSet32 idBits(mCurrentRawState.rawPointerData.hoveringIdBits); !idBits.isEmpty();) { in cookAndDispatch() local
1586 uint32_t id = idBits.clearFirstMarkedBit(); in cookAndDispatch()
1947 BitSet32 idBits) { in updateMovedPointers() argument
1949 while (!idBits.isEmpty()) { in updateMovedPointers()
1950 uint32_t id = idBits.clearFirstMarkedBit(); in updateMovedPointers()
2130 const BitSet32& idBits = findActiveIdBits(mLastCookedState.cookedPointerData); in dispatchButtonRelease() local
[all …]
DTouchInputMapper.h763 BitSet32 idBits,
767 BitSet32 idBits,
831 const IdToIndexArray& idToIndex, BitSet32 idBits, int32_t changedId, float xPrecision,
/frameworks/base/libs/input/
DTouchSpotController.cpp92 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty();) { in setSpots() local
93 uint32_t id = idBits.firstMarkedBit(); in setSpots()
94 idBits.clearBit(id); in setSpots()
107 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty();) { in setSpots() local
108 uint32_t id = idBits.clearFirstMarkedBit(); in setSpots()
DPointerController.cpp210 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty();) { in setSpots() local
211 const uint32_t index = spotIdToIndex[idBits.clearFirstMarkedBit()]; in setSpots()
/frameworks/native/services/inputflinger/tests/
DFakePointerController.cpp185 for (BitSet32 idBits(spotIdBits); !idBits.isEmpty();) { in setSpots() local
186 uint32_t id = idBits.clearFirstMarkedBit(); in setSpots()
/frameworks/base/core/tests/coretests/src/android/view/
DMotionEventTest.java249 final int idBits = ~0b1 & event.getPointerIdBits(); in testSplit() local
250 final MotionEvent splitEvent = event.split(idBits); in testSplit()
290 final int idBits = 0b100; in testSplitFailsWhenIdBitsDoNotMatch() local
291 final MotionEvent splitEvent = event.split(idBits); in testSplitFailsWhenIdBitsDoNotMatch()
/frameworks/native/libs/input/
DInputConsumer.cpp497 touchState.lastResample.idBits.clearBit(msg.body.motion.getActionId()); in updateTouchState()
508 touchState.lastResample.idBits.clearBit(msg.body.motion.getActionId()); in updateTouchState()
550 if (state.lastResample.idBits.hasBit(id)) { in rewriteMessage()
562 state.lastResample.idBits.clearBit(id); in rewriteMessage()
592 if (!current->idBits.hasBit(id)) { in resampleTouchState()
654 if (!other->idBits.hasBit(id)) { in resampleTouchState()
664 touchState.lastResample.idBits.clear(); in resampleTouchState()
668 touchState.lastResample.idBits.markBit(id); in resampleTouchState()
/frameworks/base/core/java/android/view/
DMotionEvent.java1852 private static native long nativeSplit(long destNativePtr, long sourceNativePtr, int idBits); in nativeSplit() argument
3849 int idBits = 0; in getPointerIdBits() local
3852 idBits |= 1 << nativeGetPointerId(mNativePtr, i); in getPointerIdBits()
3854 return idBits; in getPointerIdBits()
3867 public final MotionEvent split(int idBits) { in split() argument
3868 if (idBits == 0) { in split()
3873 if ((currentBits & idBits) != idBits) { in split()
3877 + String.format("0x%x", idBits) + " for " + this); in split()
3880 event.mNativePtr = nativeSplit(event.mNativePtr, this.mNativePtr, idBits); in split()
/frameworks/native/services/inputflinger/
DPointerChoreographer.cpp369 BitSet32 idBits; in processTouchscreenAndStylusEventLocked() local
377 idBits.markBit(id); in processTouchscreenAndStylusEventLocked()
382 pc.setSpots(coords, idToIndex.cbegin(), idBits, args.displayId); in processTouchscreenAndStylusEventLocked()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp625 jlong sourceNativePtr, jint idBits) { in android_view_MotionEvent_nativeSplit() argument
631 destEvent->splitFrom(*sourceEvent, static_cast<std::bitset<MAX_POINTER_ID + 1>>(idBits), in android_view_MotionEvent_nativeSplit()