Home
last modified time | relevance | path

Searched refs:buttonState (Results 1 – 25 of 36) 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.cpp264 dump += StringPrintf(INDENT3 "Last Raw Button State: 0x%08x\n", mLastRawState.buttonState); in dump()
280 mLastCookedState.buttonState); in dump()
1424 next.buttonState = in sync()
1518 bool buttonsPressed = mCurrentRawState.buttonState & ~mLastRawState.buttonState; in cookAndDispatch()
1546 mViewport.displayId, policyFlags, mLastCookedState.buttonState, in cookAndDispatch()
1547 mCurrentCookedState.buttonState); in cookAndDispatch()
1585 isPointerDown(mCurrentRawState.buttonState)) { in cookAndDispatch()
1596 mPointerController->setButtonState(mCurrentRawState.buttonState); in cookAndDispatch()
1618 mViewport.displayId, policyFlags, mLastCookedState.buttonState, in cookAndDispatch()
1619 mCurrentCookedState.buttonState); in cookAndDispatch()
[all …]
DTouchInputMapper.h303 int32_t buttonState; member
312 buttonState = other.buttonState; in copyFrom()
320 buttonState = 0; in clear()
335 int32_t buttonState; member
342 buttonState = other.buttonState; in copyFrom()
350 buttonState = 0; in clear()
746 int32_t actionButton, int32_t flags, int32_t metaState, int32_t buttonState,
DCursorInputMapper.cpp362 int32_t buttonState = lastButtonState; in sync() local
376 buttonState &= ~actionButton; in sync()
380 metaState, buttonState, MotionClassification::NONE, in sync()
401 buttonState |= actionButton; in sync()
405 metaState, buttonState, MotionClassification::NONE, in sync()
414 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()
DVerifiedMotionEvent.java180 int buttonState) { argument
193 this.mButtonState = buttonState;
349 int buttonState = in.readInt(); in VerifiedMotionEvent() local
362 this.mButtonState = buttonState; in VerifiedMotionEvent()
DMotionEvent.java1526 int metaState, int buttonState, @Classification int classification, in nativeInitialize() argument
1598 private static native void nativeSetButtonState(long nativePtr, int buttonState); in nativeSetButtonState() argument
1700 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1705 metaState, buttonState, CLASSIFICATION_NONE, 0, 0, xPrecision, yPrecision, in obtain()
1746 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1750 metaState, buttonState, xPrecision, yPrecision, deviceId, edgeFlags, source, in obtain()
1987 int edgeFlags, int metaState, int buttonState, @Classification int classification, in initialize() argument
1992 edgeFlags, metaState, buttonState, classification, xOffset, yOffset, in initialize()
2616 public final void setButtonState(int buttonState) { in setButtonState() argument
2617 nativeSetButtonState(mNativePtr, buttonState); in setButtonState()
[all …]
/frameworks/native/services/inputflinger/
DInputListener.cpp99 int32_t buttonState, MotionClassification classification, in NotifyMotionArgs() argument
115 buttonState(buttonState), in NotifyMotionArgs()
141 buttonState(other.buttonState), in NotifyMotionArgs()
165 metaState == rhs.metaState && buttonState == rhs.buttonState && in operator ==()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp101 virtual void setButtonState(int32_t buttonState) { in setButtonState() argument
102 mButtonState = buttonState; in setButtonState()
3144 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState); in TEST_F()
3163 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState); in TEST_F()
3185 ASSERT_EQ(0, args.buttonState); in TEST_F()
3204 ASSERT_EQ(0, args.buttonState); in TEST_F()
3396 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
3403 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
3412 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3419 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DEntry.cpp55 entry.buttonState}; in verifiedMotionEventFromMotionEntry()
180 int32_t buttonState, MotionClassification classification, in MotionEntry() argument
194 buttonState(buttonState), in MotionEntry()
225 actionButton, flags, metaState, buttonState, in appendDescription()
DEntry.h165 int32_t buttonState; member
179 int32_t metaState, int32_t buttonState, MotionClassification classification,
/frameworks/base/core/tests/coretests/src/android/view/
DVerifiedMotionEventTest.kt53 assertEquals(BUTTON_STATE, event.buttonState) in testConstructor()
182 assertEquals(event1.buttonState, event2.buttonState) in compareVerifiedMotionEvents()
/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.h96 virtual void setButtonState(int32_t buttonState);
181 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/libs/input/tests/
DStructLayout_test.cpp63 CHECK_OFFSET(InputMessage::Body::Motion, buttonState, 76); in TestInputMessageAlignment()
130 sizeof(VerifiedMotionEvent::buttonState); in TestVerifiedEventSize()
DInputPublisherAndConsumer_test.cpp156 constexpr int32_t buttonState = AMOTION_EVENT_BUTTON_PRIMARY; in PublishAndConsumeMotionEvent() local
189 actionButton, flags, edgeFlags, metaState, buttonState, in PublishAndConsumeMotionEvent()
219 EXPECT_EQ(buttonState, motionEvent->getButtonState()); in PublishAndConsumeMotionEvent()
/frameworks/base/core/jni/
Dandroid_view_VerifiedMotionEvent.cpp38 event.metaState, event.buttonState); in android_view_VerifiedMotionEvent()
/frameworks/native/services/inputflinger/include/
DInputListener.h102 int32_t buttonState; member
128 int32_t flags, int32_t metaState, int32_t buttonState,
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/include/input/
DInput.h512 inline void setButtonState(int32_t buttonState) { mButtonState = buttonState; } in setButtonState() argument
687 int32_t flags, int32_t edgeFlags, int32_t metaState, int32_t buttonState,
819 int32_t buttonState; member

12