/frameworks/native/services/inputflinger/reader/mapper/ |
D | TouchCursorInputMapperCommon.h | 54 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()
|
D | TouchInputMapper.cpp | 269 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 …]
|
D | TouchInputMapper.h | 366 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,
|
D | CursorInputMapper.cpp | 383 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/ |
D | MouseClickAction.java | 46 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/ |
D | InputEventCompatProcessor.java | 59 final int buttonState = motion.getButtonState(); in processInputEventForCompatibility() local 60 final int compatButtonState = (buttonState & mask) >> 4; in processInputEventForCompatibility() 62 motion.setButtonState(buttonState | compatButtonState); in processInputEventForCompatibility()
|
D | InputEventConsistencyVerifier.java | 477 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()
|
D | MotionEvent.java | 1524 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/ |
D | InputListener.cpp | 93 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 ==()
|
D | InputClassifierConverter.cpp | 196 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/ |
D | InputReader_test.cpp | 93 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/ |
D | Entry.cpp | 163 int32_t buttonState, MotionClassification classification, in MotionEntry() argument 176 buttonState(buttonState), in MotionEntry() 205 actionButton, flags, metaState, buttonState, in appendDescription()
|
D | Entry.h | 126 int32_t buttonState; member 138 int32_t flags, int32_t metaState, int32_t buttonState,
|
/frameworks/base/libs/input/ |
D | PointerController.cpp | 102 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()
|
D | PointerController.h | 94 virtual void setButtonState(int32_t buttonState); 196 int32_t buttonState; member
|
/frameworks/native/services/vr/virtual_touchpad/aidl/android/dvr/ |
D | IVirtualTouchpadService.aidl | 36 void buttonState(int touchpad, int buttons) = 3; in buttonState() method
|
/frameworks/native/services/inputflinger/include/ |
D | InputListener.h | 104 int32_t buttonState; member 130 int32_t metaState, int32_t buttonState, MotionClassification classification,
|
D | PointerControllerInterface.h | 51 virtual void setButtonState(int32_t buttonState) = 0;
|
/frameworks/native/services/vr/virtual_touchpad/ |
D | VirtualTouchpadService.h | 25 binder::Status buttonState(int touchpad, int buttons) override;
|
D | VirtualTouchpadClient.cpp | 60 return service_->buttonState(touchpad, buttons).transactionError(); in ButtonState()
|
/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumer_test.cpp | 143 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()
|
D | StructLayout_test.cpp | 59 CHECK_OFFSET(InputMessage::Body::Motion, buttonState, 44); in TestInputMessageAlignment()
|
/frameworks/native/include/input/ |
D | Input.h | 446 inline void setButtonState(int32_t buttonState) { mButtonState = buttonState; } in setButtonState() argument 612 int32_t buttonState,
|
D | InputTransport.h | 107 int32_t buttonState; member 274 int32_t buttonState,
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 179 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()
|