Home
last modified time | relevance | path

Searched refs:getButtonState (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/support/compat/java/android/support/v4/view/
DMotionEventCompat.java599 public static int getButtonState(MotionEvent event) { in getButtonState() method in MotionEventCompat
600 return event.getButtonState(); in getButtonState()
/frameworks/native/services/inputflinger/
DPointerControllerInterface.h53 virtual int32_t getButtonState() const = 0;
DInputReader.h636 uint32_t getButtonState() const;
714 uint32_t getButtonState() const;
DInputReader.cpp1333 uint32_t CursorButtonAccumulator::getButtonState() const { in getButtonState() function in android::CursorButtonAccumulator
1528 uint32_t TouchButtonAccumulator::getButtonState() const { in getButtonState() function in android::TouchButtonAccumulator
2670 int32_t currentButtonState = mCursorButtonAccumulator.getButtonState(); in sync()
4184 next->buttonState = mTouchButtonAccumulator.getButtonState() in sync()
4185 | mCursorButtonAccumulator.getButtonState(); in sync()
6938 mStylusState.buttons = mTouchButtonAccumulator.getButtonState(); in sync()
DInputDispatcher.cpp2664 motionEvent->getMetaState(), motionEvent->getButtonState(), in injectInputEvent()
2677 motionEvent->getMetaState(), motionEvent->getButtonState(), in injectInputEvent()
/frameworks/support/v13/java/android/support/v13/view/
DDragStartHelper.java141 || (event.getButtonState() in onTouch()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp84 virtual int32_t getButtonState() const { in getButtonState() function in android::FakePointerController
2371 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, mFakePointerController->getButtonState()); in TEST_F()
2378 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, mFakePointerController->getButtonState()); in TEST_F()
2387 ASSERT_EQ(0, mFakePointerController->getButtonState()); in TEST_F()
2394 ASSERT_EQ(0, mFakePointerController->getButtonState()); in TEST_F()
2401 ASSERT_EQ(0, mFakePointerController->getButtonState()); in TEST_F()
2414 mFakePointerController->getButtonState()); in TEST_F()
2422 mFakePointerController->getButtonState()); in TEST_F()
2431 mFakePointerController->getButtonState()); in TEST_F()
2440 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, mFakePointerController->getButtonState()); in TEST_F()
[all …]
/frameworks/base/libs/input/
DPointerController.h97 virtual int32_t getButtonState() const;
DPointerController.cpp195 int32_t PointerController::getButtonState() const { in getButtonState() function in android::PointerController
/frameworks/base/core/java/android/view/
DScaleGestureDetector.java243 (event.getButtonState() & MotionEvent.BUTTON_STYLUS_PRIMARY) != 0; in onTouchEvent()
DMotionEvent.java2405 public final int getButtonState() { in getButtonState() method in MotionEvent
3250 msg.append(", buttonState=").append(MotionEvent.buttonStateToString(getButtonState())); in toString()
3410 return (getButtonState() & button) == button; in isButtonPressed()
DInputEventConsistencyVerifier.java473 final int buttonState = event.getButtonState(); in onGenericMotionEvent()
DViewRootImpl.java6667 final int buttonState = motion.getButtonState(); in adjustInputEventForCompatibility()
DView.java6395 (event.getButtonState() & MotionEvent.BUTTON_SECONDARY) != 0) {
/frameworks/base/core/jni/
Dandroid_view_InputEventSender.cpp140 event->getEdgeFlags(), event->getMetaState(), event->getButtonState(), in sendMotionEvent()
Dandroid_view_MotionEvent.cpp651 return event->getButtonState(); in android_view_MotionEvent_nativeGetButtonState()
/frameworks/base/native/android/
Dinput.cpp98 return static_cast<const MotionEvent*>(motion_event)->getButtonState(); in AMotionEvent_getButtonState()
/frameworks/base/core/java/com/android/internal/widget/
DDecorCaptionView.java188 final boolean primaryButton = (e.getButtonState() & MotionEvent.BUTTON_PRIMARY) != 0; in onTouch()
DPointerLocationView.java444 final int buttonState = event.getButtonState(); in logCoords()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp193 EXPECT_EQ(buttonState, motionEvent->getButtonState()); in PublishAndConsumeMotionEvent()
DInputEvent_test.cpp308 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, event->getButtonState()); in assertEqualsEventWithHistory()
/frameworks/native/include/input/
DInput.h399 inline int32_t getButtonState() const { return mButtonState; } in getButtonState() function
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DTouchExplorer.java1014 props, coords, event.getMetaState(), event.getButtonState(), in offsetEvent()
/frameworks/base/core/java/android/widget/
DEditor.java1336 ((mLastButtonState ^ event.getButtonState()) & MotionEvent.BUTTON_PRIMARY) != 0; in shouldFilterOutTouchEvent()
1351 mLastButtonState = event.getButtonState(); in onTouchEvent()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java778 (motionEvent.getButtonState() & MotionEvent.BUTTON_STYLUS_PRIMARY) != 0; in onInputEvent()

12