Home
last modified time | relevance | path

Searched refs:buttonState (Results 1 – 21 of 21) sorted by relevance

/frameworks/native/services/inputflinger/
DInputListener.cpp72 int32_t buttonState, int32_t edgeFlags, int32_t displayId, uint32_t pointerCount, in NotifyMotionArgs() argument
77 flags(flags), metaState(metaState), buttonState(buttonState), in NotifyMotionArgs()
90 metaState(other.metaState), buttonState(other.buttonState), in NotifyMotionArgs()
DInputReader.cpp174 static bool isPointerDown(int32_t buttonState) { in isPointerDown() argument
175 return buttonState & in isPointerDown()
193 int32_t buttonState, int32_t keyCode) { in synthesizeButtonKey() argument
196 && !(lastButtonState & buttonState) in synthesizeButtonKey()
197 && (currentButtonState & buttonState)) in synthesizeButtonKey()
199 && (lastButtonState & buttonState) in synthesizeButtonKey()
200 && !(currentButtonState & buttonState))) { in synthesizeButtonKey()
2677 int32_t buttonState = lastButtonState; in sync() local
2691 buttonState &= ~actionButton; in sync()
2694 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE, in sync()
[all …]
DInputListener.h90 int32_t buttonState; member
104 int32_t metaState, int32_t buttonState,
DPointerControllerInterface.h50 virtual void setButtonState(int32_t buttonState) = 0;
DInputReader.h1433 int32_t buttonState; member
1442 buttonState = other.buttonState; in copyFrom()
1450 buttonState = 0; in clear()
1465 int32_t buttonState; member
1472 buttonState = other.buttonState; in copyFrom()
1480 buttonState = 0; in clear()
1869 int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags,
DInputDispatcher.cpp897 entry->metaState, entry->buttonState, in logOutboundMotionDetailsLocked()
2031 motionEntry->metaState, motionEntry->buttonState, in startDispatchCycleLocked()
2356 originalMotionEntry->buttonState, in splitMotionEvent()
2491 args->action, args->actionButton, args->flags, args->metaState, args->buttonState, in notifyMotion()
2529 args->flags, args->edgeFlags, args->metaState, args->buttonState, in notifyMotion()
2546 args->metaState, args->buttonState, in notifyMotion()
3968 int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, in MotionEntry() argument
3976 flags(flags), metaState(metaState), buttonState(buttonState), in MotionEntry()
3995 deviceId, source, action, actionButton, flags, metaState, buttonState, edgeFlags, in appendDescription()
DInputDispatcher.h516 int32_t buttonState; member
529 int32_t metaState, int32_t buttonState, int32_t edgeFlags,
/frameworks/base/core/java/android/view/
DInputEventConsistencyVerifier.java473 final int buttonState = event.getButtonState(); in onGenericMotionEvent() local
509 (buttonState & MotionEvent.BUTTON_SECONDARY) != 0) { in onGenericMotionEvent()
512 (buttonState & MotionEvent.BUTTON_TERTIARY) != 0) { in onGenericMotionEvent()
516 if (mButtonsPressed != buttonState) { in onGenericMotionEvent()
520 buttonState, mButtonsPressed)); in onGenericMotionEvent()
537 (buttonState & MotionEvent.BUTTON_SECONDARY) == 0) { in onGenericMotionEvent()
540 (buttonState & MotionEvent.BUTTON_TERTIARY) == 0) { in onGenericMotionEvent()
544 if (mButtonsPressed != buttonState) { in onGenericMotionEvent()
548 buttonState, mButtonsPressed)); in onGenericMotionEvent()
DMotionEvent.java1443 int metaState, int buttonState, in nativeInitialize() argument
1465 private static native void nativeSetButtonState(long nativePtr, int buttonState); in nativeSetButtonState() argument
1561 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1566 deviceId, source, action, flags, edgeFlags, metaState, buttonState, in obtain()
2336 public final void setButtonState(int buttonState) { in setButtonState() argument
2337 nativeSetButtonState(mNativePtr, buttonState); in setButtonState()
3273 public static String buttonStateToString(int buttonState) { in buttonStateToString() argument
3274 if (buttonState == 0) { in buttonStateToString()
3279 while (buttonState != 0) { in buttonStateToString()
3280 final boolean isSet = (buttonState & 1) != 0; in buttonStateToString()
[all …]
DViewRootImpl.java6235 final int buttonState = motion.getButtonState(); in adjustInputEventForCompatibility() local
6236 final int compatButtonState = (buttonState & mask) >> 4; in adjustInputEventForCompatibility()
6238 motion.setButtonState(buttonState | compatButtonState); in adjustInputEventForCompatibility()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp76 virtual void setButtonState(int32_t buttonState) { in setButtonState() argument
77 mButtonState = buttonState; in setButtonState()
2070 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState); in TEST_F()
2092 ASSERT_EQ(0, args.buttonState); in TEST_F()
2275 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
2283 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2290 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2303 motionArgs.buttonState); in TEST_F()
2312 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
2321 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
[all …]
/frameworks/base/libs/input/
DPointerController.cpp92 mLocked.buttonState = 0; in PointerController()
160 void PointerController::setButtonState(int32_t buttonState) { in setButtonState() argument
162 ALOGD("Set button state 0x%08x", buttonState); in setButtonState()
166 if (mLocked.buttonState != buttonState) { in setButtonState()
167 mLocked.buttonState = buttonState; in setButtonState()
174 return mLocked.buttonState; in getButtonState()
DPointerController.h96 virtual void setButtonState(int32_t buttonState);
181 int32_t buttonState; member
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp140 const int32_t buttonState = AMOTION_EVENT_BUTTON_PRIMARY; in PublishAndConsumeMotionEvent() local
168 flags, edgeFlags, metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision, in PublishAndConsumeMotionEvent()
193 EXPECT_EQ(buttonState, motionEvent->getButtonState()); in PublishAndConsumeMotionEvent()
DStructLayout_test.cpp57 CHECK_OFFSET(InputMessage::Body::Motion, buttonState, 40); in TestInputMessageAlignment()
/frameworks/native/include/input/
DInput.h401 inline int32_t setButtonState(int32_t buttonState) { mButtonState = buttonState; } in setButtonState() argument
564 int32_t buttonState,
DInputTransport.h90 int32_t buttonState; member
240 int32_t buttonState,
/frameworks/native/libs/input/
DInputTransport.cpp294 int32_t buttonState, in publishMotionEvent() argument
311 deviceId, source, action, actionButton, flags, edgeFlags, metaState, buttonState, in publishMotionEvent()
336 msg.body.motion.buttonState = buttonState; in publishMotionEvent()
931 msg->body.motion.buttonState, in initializeMotionEvent()
DInput.cpp223 int32_t buttonState, in initialize() argument
239 mButtonState = buttonState; in initialize()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp337 jint metaState, jint buttonState, in android_view_MotionEvent_nativeInitialize() argument
373 event->initialize(deviceId, source, action, 0, flags, edgeFlags, metaState, buttonState, in android_view_MotionEvent_nativeInitialize()
514 jlong nativePtr, jint buttonState) { in android_view_MotionEvent_nativeSetButtonState() argument
516 event->setButtonState(buttonState); in android_view_MotionEvent_nativeSetButtonState()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java444 final int buttonState = event.getButtonState(); in logCoords() local
521 .append(" ButtonState=").append(MotionEvent.buttonStateToString(buttonState)) in logCoords()