Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/res/raw/
Da11y_three_finger_swipe_down_gesture.log2 …tton=0, id[0]=0, x[0]=500.0, y[0]=696.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classificati…
3 …FINGER, id[1]=1, x[1]=764.0, y[1]=801.0, toolType[1]=TOOL_TYPE_FINGER, buttonState=0, classificati…
4 …FINGER, id[1]=1, x[1]=764.0, y[1]=801.0, toolType[1]=TOOL_TYPE_FINGER, buttonState=0, classificati…
5 …FINGER, id[2]=2, x[2]=294.0, y[2]=849.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classificati…
6 …FINGER, id[2]=2, x[2]=294.0, y[2]=849.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classificati…
7 …FINGER, id[2]=2, x[2]=294.0, y[2]=849.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classificati…
8 …FINGER, id[2]=2, x[2]=305.0, y[2]=876.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classificati…
9 …FINGER, id[2]=2, x[2]=313.0, y[2]=911.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classificati…
10 …FINGER, id[2]=2, x[2]=323.0, y[2]=941.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classificati…
11 …FINGER, id[2]=2, x[2]=333.0, y[2]=976.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classificati…
[all …]
Da11y_touch_explore_gesture.log2 …ton=0, id[0]=0, x[0]=825.0, y[0]=2028.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classificati…
3 …ton=0, id[0]=0, x[0]=825.0, y[0]=2028.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classificati…
4 …ton=0, id[0]=0, x[0]=825.0, y[0]=2028.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classificati…
/frameworks/native/services/inputflinger/reader/mapper/
DTouchCursorInputMapperCommon.cpp32 int32_t lastButtonState, int32_t currentButtonState, int32_t buttonState, int32_t keyCode) { in synthesizeButtonKey() argument
34 if ((action == AKEY_EVENT_ACTION_DOWN && !(lastButtonState & buttonState) && in synthesizeButtonKey()
35 (currentButtonState & buttonState)) || in synthesizeButtonKey()
36 (action == AKEY_EVENT_ACTION_UP && (lastButtonState & buttonState) && in synthesizeButtonKey()
37 !(currentButtonState & buttonState))) { in synthesizeButtonKey()
83 bool isPointerDown(int32_t buttonState) { in isPointerDown() argument
84 return buttonState & in isPointerDown()
DTouchInputMapper.cpp95 static int32_t filterButtonState(InputReaderConfiguration& config, int32_t buttonState) { in filterButtonState() argument
97 buttonState &= in filterButtonState()
100 return buttonState; in filterButtonState()
226 dump += StringPrintf(INDENT3 "Last Raw Button State: 0x%08x\n", mLastRawState.buttonState); in dump()
243 mLastCookedState.buttonState); in dump()
1455 next.buttonState = filterButtonState(mConfig, in sync()
1564 bool buttonsPressed = mCurrentRawState.buttonState & ~mLastRawState.buttonState; in cookAndDispatch()
1595 mLastCookedState.buttonState, mCurrentCookedState.buttonState); in cookAndDispatch()
1631 isPointerDown(mCurrentRawState.buttonState)) { in cookAndDispatch()
1654 mLastCookedState.buttonState, mCurrentCookedState.buttonState); in cookAndDispatch()
[all …]
DCursorInputMapper.cpp328 int32_t buttonState = lastButtonState; in sync() local
342 buttonState &= ~actionButton; in sync()
346 metaState, buttonState, MotionClassification::NONE, in sync()
366 buttonState |= actionButton; in sync()
370 metaState, buttonState, MotionClassification::NONE, in sync()
378 ALOG_ASSERT(buttonState == currentButtonState); in sync()
DTouchCursorInputMapperCommon.h35 bool isPointerDown(int32_t buttonState);
/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.java184 int buttonState) { argument
194 this.mButtonState = buttonState;
346 int buttonState = in.readInt(); in VerifiedMotionEvent() local
356 this.mButtonState = buttonState; in VerifiedMotionEvent()
DMotionEvent.java1689 int metaState, int buttonState, @Classification int classification, in nativeInitialize() argument
1763 private static native void nativeSetButtonState(long nativePtr, int buttonState); in nativeSetButtonState() argument
1870 int buttonState, float xPrecision, float yPrecision, int deviceId, int edgeFlags, in obtain() argument
1874 metaState, buttonState, classification, 0, 0, xPrecision, yPrecision, in obtain()
1917 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1921 metaState, buttonState, xPrecision, yPrecision, deviceId, edgeFlags, source, in obtain()
1955 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1959 metaState, buttonState, xPrecision, yPrecision, deviceId, edgeFlags, source, in obtain()
2196 int edgeFlags, int metaState, int buttonState, @Classification int classification, in initialize() argument
2201 edgeFlags, metaState, buttonState, classification, xOffset, yOffset, in initialize()
[all …]
/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/native/services/inputflinger/
DNotifyArgs.cpp68 int32_t flags, int32_t metaState, int32_t buttonState, MotionClassification classification, in NotifyMotionArgs() argument
83 buttonState(buttonState), in NotifyMotionArgs()
108 buttonState == rhs.buttonState && classification == rhs.classification && in operator ==()
/frameworks/native/include/input/
DInputEventBuilders.h96 MotionEventBuilder& buttonState(int32_t buttonState) { in buttonState() function
97 mButtonState = buttonState; in buttonState()
/frameworks/native/services/inputflinger/include/
DNotifyArgsBuilders.h70 MotionArgsBuilder& buttonState(int32_t buttonState) { in buttonState() argument
71 mButtonState = buttonState; in buttonState()
DNotifyArgs.h100 int32_t buttonState; member
127 int32_t actionButton, int32_t flags, int32_t metaState, int32_t buttonState,
/frameworks/native/services/inputflinger/tests/
DNotifyArgs_test.cpp45 uint32_t buttonState = AMOTION_EVENT_BUTTON_PRIMARY | AMOTION_EVENT_BUTTON_SECONDARY; in TEST() local
74 action, actionButton, flags, metaState, buttonState, classification, in TEST()
DInputReader_test.cpp4069 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState); in TEST_F()
4087 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState); in TEST_F()
4108 ASSERT_EQ(0, args.buttonState); in TEST_F()
4126 ASSERT_EQ(0, args.buttonState); in TEST_F()
4321 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
4327 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
4335 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4341 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4347 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4358 motionArgs.buttonState); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DEntry.cpp57 entry.buttonState}; in verifiedMotionEventFromMotionEntry()
215 int32_t buttonState, MotionClassification classification, in MotionEntry() argument
228 buttonState(buttonState), in MotionEntry()
258 buttonState, motionClassificationToString(classification), edgeFlags, in getDescription()
DEntry.h169 int32_t buttonState; member
183 int32_t metaState, int32_t buttonState, MotionClassification classification,
/frameworks/base/core/tests/coretests/src/android/view/
DVerifiedMotionEventTest.kt57 assertEquals(BUTTON_STATE, event.buttonState) in testConstructor()
188 assertEquals(event1.buttonState, event2.buttonState) in compareVerifiedMotionEvents()
/frameworks/native/services/vr/virtual_touchpad/aidl/android/dvr/
DIVirtualTouchpadService.aidl36 void buttonState(int touchpad, int buttons) = 3; in buttonState() method
/frameworks/base/core/jni/
Dandroid_view_VerifiedMotionEvent.cpp38 event.metaState, event.buttonState); in android_view_VerifiedMotionEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DGestureLogParser.java38 final int buttonState = 0; in getMotionEventFromLogLine() local
69 pointerCount, properties, pointerCoords, metaState, buttonState, in getMotionEventFromLogLine()
/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()

12