Home
last modified time | relevance | path

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

/frameworks/base/services/input/
DInputListener.cpp71 int32_t action, int32_t flags, int32_t metaState, int32_t buttonState, in NotifyMotionArgs() argument
76 action(action), flags(flags), metaState(metaState), buttonState(buttonState), in NotifyMotionArgs()
89 metaState(other.metaState), buttonState(other.buttonState), in NotifyMotionArgs()
DPointerController.cpp79 mLocked.buttonState = 0; in PointerController()
140 void PointerController::setButtonState(int32_t buttonState) { in setButtonState() argument
142 ALOGD("Set button state 0x%08x", buttonState); in setButtonState()
146 if (mLocked.buttonState != buttonState) { in setButtonState()
147 mLocked.buttonState = buttonState; in setButtonState()
154 return mLocked.buttonState; in getButtonState()
DPointerController.h57 virtual void setButtonState(int32_t buttonState) = 0;
161 virtual void setButtonState(int32_t buttonState);
235 int32_t buttonState; member
DInputListener.h89 int32_t buttonState; member
102 int32_t action, int32_t flags, int32_t metaState, int32_t buttonState,
DInputReader.cpp159 static bool isPointerDown(int32_t buttonState) { in isPointerDown() argument
160 return buttonState & in isPointerDown()
178 int32_t buttonState, int32_t keyCode) { in synthesizeButtonKey() argument
181 && !(lastButtonState & buttonState) in synthesizeButtonKey()
182 && (currentButtonState & buttonState)) in synthesizeButtonKey()
184 && (lastButtonState & buttonState) in synthesizeButtonKey()
185 && !(currentButtonState & buttonState))) { in synthesizeButtonKey()
3954 int32_t buttonState = mCurrentButtonState; in dispatchTouches() local
3961 AMOTION_EVENT_ACTION_MOVE, 0, metaState, buttonState, in dispatchTouches()
3987 if (buttonState != mLastButtonState) { in dispatchTouches()
[all …]
DInputDispatcher.h511 int32_t buttonState; member
524 int32_t metaState, int32_t buttonState, int32_t edgeFlags,
DInputDispatcher.cpp874 entry->metaState, entry->buttonState, in logOutboundMotionDetailsLocked()
1996 motionEntry->edgeFlags, motionEntry->metaState, motionEntry->buttonState, in startDispatchCycleLocked()
2314 originalMotionEntry->buttonState, in splitMotionEvent()
2436 args->action, args->flags, args->metaState, args->buttonState, in notifyMotion()
2473 args->edgeFlags, args->metaState, args->buttonState, 0, 0, in notifyMotion()
2489 args->action, args->flags, args->metaState, args->buttonState, in notifyMotion()
3867 int32_t metaState, int32_t buttonState, in MotionEntry() argument
3874 metaState(metaState), buttonState(buttonState), edgeFlags(edgeFlags), in MotionEntry()
DInputReader.h1662 int32_t action, int32_t flags, int32_t metaState, int32_t buttonState,
/frameworks/base/services/input/tests/
DInputReader_test.cpp76 virtual void setButtonState(int32_t buttonState) { in setButtonState() argument
77 mButtonState = buttonState; in setButtonState()
2042 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState); in TEST_F()
2064 ASSERT_EQ(0, args.buttonState); in TEST_F()
2247 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
2255 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2262 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2275 motionArgs.buttonState); in TEST_F()
2284 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
2293 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
[all …]
/frameworks/base/core/java/android/view/
DMotionEvent.java1320 int metaState, int buttonState, in nativeInitialize() argument
1432 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1437 deviceId, source, action, flags, edgeFlags, metaState, buttonState, in obtain()
3095 public static String buttonStateToString(int buttonState) { in buttonStateToString() argument
3096 if (buttonState == 0) { in buttonStateToString()
3101 while (buttonState != 0) { in buttonStateToString()
3102 final boolean isSet = (buttonState & 1) != 0; in buttonStateToString()
3103 buttonState >>>= 1; // unsigned shift! in buttonStateToString()
3107 if (buttonState == 0) { in buttonStateToString()
/frameworks/base/libs/androidfw/tests/
DInputPublisherAndConsumer_test.cpp138 const int32_t buttonState = AMOTION_EVENT_BUTTON_PRIMARY; in PublishAndConsumeMotionEvent() local
166 metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision, in PublishAndConsumeMotionEvent()
191 EXPECT_EQ(buttonState, motionEvent->getButtonState()); in PublishAndConsumeMotionEvent()
/frameworks/base/include/androidfw/
DInputTransport.h82 int32_t buttonState; member
230 int32_t buttonState,
DInput.h511 int32_t buttonState,
/frameworks/base/libs/androidfw/
DInputTransport.cpp287 int32_t buttonState, in publishMotionEvent() argument
304 deviceId, source, action, flags, edgeFlags, metaState, buttonState, in publishMotionEvent()
328 msg.body.motion.buttonState = buttonState; in publishMotionEvent()
908 msg->body.motion.buttonState, in initializeMotionEvent()
DInput.cpp293 int32_t buttonState, in initialize() argument
308 mButtonState = buttonState; in initialize()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java429 final int buttonState = event.getButtonState(); in logCoords() local
506 .append(" ButtonState=").append(MotionEvent.buttonStateToString(buttonState)) in logCoords()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp341 jint metaState, jint buttonState, in android_view_MotionEvent_nativeInitialize() argument
377 event->initialize(deviceId, source, action, flags, edgeFlags, metaState, buttonState, in android_view_MotionEvent_nativeInitialize()