Home
last modified time | relevance | path

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

12

/frameworks/native/services/inputflinger/reader/mapper/
DTouchCursorInputMapperCommon.h54 static bool isPointerDown(int32_t buttonState) { in isPointerDown() argument
55 return buttonState & in isPointerDown()
63 int32_t currentButtonState, int32_t buttonState, int32_t keyCode) { in synthesizeButtonKey() argument
64 if ((action == AKEY_EVENT_ACTION_DOWN && !(lastButtonState & buttonState) && in synthesizeButtonKey()
65 (currentButtonState & buttonState)) || in synthesizeButtonKey()
66 (action == AKEY_EVENT_ACTION_UP && (lastButtonState & buttonState) && in synthesizeButtonKey()
67 !(currentButtonState & buttonState))) { in synthesizeButtonKey()
DTouchInputMapper.cpp269 dump += StringPrintf(INDENT3 "Last Raw Button State: 0x%08x\n", mLastRawState.buttonState); in dump()
285 mLastCookedState.buttonState); in dump()
1452 next->buttonState = in sync()
1542 bool buttonsPressed = mCurrentRawState.buttonState & ~mLastRawState.buttonState; in cookAndDispatch()
1570 mViewport.displayId, policyFlags, mLastCookedState.buttonState, in cookAndDispatch()
1571 mCurrentCookedState.buttonState); in cookAndDispatch()
1609 isPointerDown(mCurrentRawState.buttonState)) { in cookAndDispatch()
1620 mPointerController->setButtonState(mCurrentRawState.buttonState); in cookAndDispatch()
1642 mViewport.displayId, policyFlags, mLastCookedState.buttonState, in cookAndDispatch()
1643 mCurrentCookedState.buttonState); in cookAndDispatch()
[all …]
DTouchInputMapper.h366 int32_t buttonState; member
376 buttonState = other.buttonState; in copyFrom()
385 buttonState = 0; in clear()
401 int32_t buttonState; member
409 buttonState = other.buttonState; in copyFrom()
418 buttonState = 0; in clear()
813 int32_t actionButton, int32_t flags, int32_t metaState, int32_t buttonState,
DCursorInputMapper.cpp383 int32_t buttonState = lastButtonState; in sync() local
397 buttonState &= ~actionButton; in sync()
401 metaState, buttonState, MotionClassification::NONE, in sync()
422 buttonState |= actionButton; in sync()
426 metaState, buttonState, MotionClassification::NONE, in sync()
435 ALOG_ASSERT(buttonState == currentButtonState); in sync()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DMouseClickAction.java46 float[] precision, int inputDevice, int buttonState) { in sendTap() argument
48 inputDevice, buttonState); in sendTap()
62 buttonState); in sendTap()
86 float[] coordinates, float[] precision, int inputDevice, int buttonState) { in sendSingleTap() argument
88 inputDevice, buttonState); in sendSingleTap()
/frameworks/base/core/java/android/view/
DInputEventCompatProcessor.java59 final int buttonState = motion.getButtonState(); in processInputEventForCompatibility() local
60 final int compatButtonState = (buttonState & mask) >> 4; in processInputEventForCompatibility()
62 motion.setButtonState(buttonState | compatButtonState); in processInputEventForCompatibility()
DInputEventConsistencyVerifier.java477 final int buttonState = event.getButtonState(); in onGenericMotionEvent() local
513 (buttonState & MotionEvent.BUTTON_SECONDARY) != 0) { in onGenericMotionEvent()
516 (buttonState & MotionEvent.BUTTON_TERTIARY) != 0) { in onGenericMotionEvent()
520 if (mButtonsPressed != buttonState) { in onGenericMotionEvent()
524 buttonState, mButtonsPressed)); in onGenericMotionEvent()
541 (buttonState & MotionEvent.BUTTON_SECONDARY) == 0) { in onGenericMotionEvent()
544 (buttonState & MotionEvent.BUTTON_TERTIARY) == 0) { in onGenericMotionEvent()
548 if (mButtonsPressed != buttonState) { in onGenericMotionEvent()
552 buttonState, mButtonsPressed)); in onGenericMotionEvent()
DMotionEvent.java1524 int metaState, int buttonState, @Classification int classification, in nativeInitialize() argument
1592 private static native void nativeSetButtonState(long nativePtr, int buttonState); in nativeSetButtonState() argument
1690 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1695 deviceId, source, displayId, action, flags, edgeFlags, metaState, buttonState, in obtain()
1737 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1741 metaState, buttonState, xPrecision, yPrecision, deviceId, edgeFlags, source, in obtain()
2582 public final void setButtonState(int buttonState) { in setButtonState() argument
2583 nativeSetButtonState(mNativePtr, buttonState); in setButtonState()
3585 public static String buttonStateToString(int buttonState) { in buttonStateToString() argument
3586 if (buttonState == 0) { in buttonStateToString()
[all …]
/frameworks/native/services/inputflinger/
DInputListener.cpp93 int32_t buttonState, MotionClassification classification, in NotifyMotionArgs() argument
101 flags(flags), metaState(metaState), buttonState(buttonState), in NotifyMotionArgs()
116 metaState(other.metaState), buttonState(other.buttonState), in NotifyMotionArgs()
139 && buttonState == rhs.buttonState in operator ==()
DInputClassifierConverter.cpp196 static hidl_bitfield<common::V1_0::Button> getButtonState(int32_t buttonState) { in getButtonState() argument
199 return static_cast<hidl_bitfield<common::V1_0::Button>>(buttonState); in getButtonState()
368 event.buttonState = getButtonState(args.buttonState); in notifyMotionArgsToHalMotionEvent()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp93 virtual void setButtonState(int32_t buttonState) { in setButtonState() argument
94 mButtonState = buttonState; in setButtonState()
2522 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState); in TEST_F()
2541 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState); in TEST_F()
2563 ASSERT_EQ(0, args.buttonState); in TEST_F()
2582 ASSERT_EQ(0, args.buttonState); in TEST_F()
2780 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
2787 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
2796 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2803 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DEntry.cpp163 int32_t buttonState, MotionClassification classification, in MotionEntry() argument
176 buttonState(buttonState), in MotionEntry()
205 actionButton, flags, metaState, buttonState, in appendDescription()
DEntry.h126 int32_t buttonState; member
138 int32_t flags, int32_t metaState, int32_t buttonState,
/frameworks/base/libs/input/
DPointerController.cpp102 mLocked.buttonState = 0; in PointerController()
157 void PointerController::setButtonState(int32_t buttonState) { in setButtonState() argument
159 ALOGD("Set button state 0x%08x", buttonState); in setButtonState()
163 if (mLocked.buttonState != buttonState) { in setButtonState()
164 mLocked.buttonState = buttonState; in setButtonState()
171 return mLocked.buttonState; in getButtonState()
DPointerController.h94 virtual void setButtonState(int32_t buttonState);
196 int32_t buttonState; member
/frameworks/native/services/vr/virtual_touchpad/aidl/android/dvr/
DIVirtualTouchpadService.aidl36 void buttonState(int touchpad, int buttons) = 3; in buttonState() method
/frameworks/native/services/inputflinger/include/
DInputListener.h104 int32_t buttonState; member
130 int32_t metaState, int32_t buttonState, MotionClassification classification,
DPointerControllerInterface.h51 virtual void setButtonState(int32_t buttonState) = 0;
/frameworks/native/services/vr/virtual_touchpad/
DVirtualTouchpadService.h25 binder::Status buttonState(int touchpad, int buttons) override;
DVirtualTouchpadClient.cpp60 return service_->buttonState(touchpad, buttons).transactionError(); in ButtonState()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp143 constexpr int32_t buttonState = AMOTION_EVENT_BUTTON_PRIMARY; in PublishAndConsumeMotionEvent() local
172 flags, edgeFlags, metaState, buttonState, classification, in PublishAndConsumeMotionEvent()
198 EXPECT_EQ(buttonState, motionEvent->getButtonState()); in PublishAndConsumeMotionEvent()
DStructLayout_test.cpp59 CHECK_OFFSET(InputMessage::Body::Motion, buttonState, 44); in TestInputMessageAlignment()
/frameworks/native/include/input/
DInput.h446 inline void setButtonState(int32_t buttonState) { mButtonState = buttonState; } in setButtonState() argument
612 int32_t buttonState,
DInputTransport.h107 int32_t buttonState; member
274 int32_t buttonState,
/frameworks/native/libs/input/
DInputTransport.cpp179 msg->body.motion.buttonState = body.motion.buttonState; in getSanitizedCopy()
477 int32_t buttonState, in publishMotionEvent() argument
503 buttonState, motionClassificationToString(classification), in publishMotionEvent()
529 msg.body.motion.buttonState = buttonState; in publishMotionEvent()
1147 msg->body.motion.buttonState, in initializeMotionEvent()

12