Searched refs:buttonState (Results 1 - 19 of 19) sorted by relevance

/frameworks/native/services/inputflinger/
H A DPointerControllerInterface.h50 virtual void setButtonState(int32_t buttonState) = 0;
H A DInputListener.cpp71 int32_t action, int32_t flags, int32_t metaState, int32_t buttonState,
76 action(action), flags(flags), metaState(metaState), buttonState(buttonState),
89 metaState(other.metaState), buttonState(other.buttonState),
69 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, int32_t displayId, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xPrecision, float yPrecision, nsecs_t downTime) argument
H A DInputListener.h89 int32_t buttonState; member in struct:android::NotifyMotionArgs
102 int32_t action, int32_t flags, int32_t metaState, int32_t buttonState,
H A DInputReader.cpp159 static bool isPointerDown(int32_t buttonState) { argument
160 return buttonState &
178 int32_t buttonState, int32_t keyCode) {
181 && !(lastButtonState & buttonState)
182 && (currentButtonState & buttonState))
184 && (lastButtonState & buttonState)
185 && !(currentButtonState & buttonState))) {
4011 int32_t buttonState = mCurrentButtonState; local
4018 AMOTION_EVENT_ACTION_MOVE, 0, metaState, buttonState,
4044 if (buttonState !
175 synthesizeButtonKey(InputReaderContext* context, int32_t action, nsecs_t when, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState, int32_t buttonState, int32_t keyCode) argument
4490 int32_t buttonState = mCurrentButtonState; local
4642 int32_t buttonState = mCurrentButtonState; local
5642 dispatchMotion(nsecs_t when, uint32_t policyFlags, uint32_t source, int32_t action, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, const PointerProperties* properties, const PointerCoords* coords, const uint32_t* idToIndex, BitSet32 idBits, int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime) argument
6496 int32_t buttonState = 0; local
[all...]
H A DInputDispatcher.cpp878 "metaState=0x%x, buttonState=0x%x, "
883 entry->metaState, entry->buttonState,
1985 motionEntry->edgeFlags, motionEntry->metaState, motionEntry->buttonState,
2303 originalMotionEntry->buttonState,
2435 "action=0x%x, flags=0x%x, metaState=0x%x, buttonState=0x%x, edgeFlags=0x%x, "
2438 args->action, args->flags, args->metaState, args->buttonState,
2475 args->edgeFlags, args->metaState, args->buttonState, 0, 0,
2491 args->action, args->flags, args->metaState, args->buttonState,
3924 int32_t metaState, int32_t buttonState,
3932 metaState(metaState), buttonState(buttonStat
3922 MotionEntry(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, float xPrecision, float yPrecision, nsecs_t downTime, int32_t displayId, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xOffset, float yOffset) argument
[all...]
H A DInputDispatcher.h509 int32_t buttonState; member in struct:android::InputDispatcher::MotionEntry
522 int32_t metaState, int32_t buttonState, int32_t edgeFlags,
H A DInputReader.h1710 int32_t action, int32_t flags, int32_t metaState, int32_t buttonState,
/frameworks/base/libs/input/
H A DPointerController.cpp79 mLocked.buttonState = 0;
140 void PointerController::setButtonState(int32_t buttonState) { argument
142 ALOGD("Set button state 0x%08x", buttonState);
146 if (mLocked.buttonState != buttonState) {
147 mLocked.buttonState = buttonState;
154 return mLocked.buttonState;
H A DPointerController.h84 virtual void setButtonState(int32_t buttonState);
158 int32_t buttonState; member in struct:android::PointerController::Locked
/frameworks/native/libs/input/tests/
H A DStructLayout_test.cpp56 CHECK_OFFSET(InputMessage::Body::Motion, buttonState, 36);
H A DInputPublisherAndConsumer_test.cpp139 const int32_t buttonState = AMOTION_EVENT_BUTTON_PRIMARY; local
167 metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision,
192 EXPECT_EQ(buttonState, motionEvent->getButtonState());
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp76 virtual void setButtonState(int32_t buttonState) { argument
77 mButtonState = buttonState;
2062 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState);
2084 ASSERT_EQ(0, args.buttonState);
2267 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState);
2275 ASSERT_EQ(0, motionArgs.buttonState);
2282 ASSERT_EQ(0, motionArgs.buttonState);
2295 motionArgs.buttonState);
2304 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState);
2313 ASSERT_EQ(0, motionArgs.buttonState);
[all...]
/frameworks/native/include/input/
H A DInputTransport.h89 int32_t buttonState; member in struct:android::InputMessage::Body::Motion
238 int32_t buttonState,
H A DInput.h526 int32_t buttonState,
/frameworks/base/core/java/android/view/
H A DMotionEvent.java1338 int metaState, int buttonState,
1440 * @param buttonState The state of buttons that are pressed.
1453 PointerCoords[] pointerCoords, int metaState, int buttonState,
1458 deviceId, source, action, flags, edgeFlags, metaState, buttonState,
3026 msg.append(", buttonState=").append(MotionEvent.buttonStateToString(getButtonState()));
3122 * @param buttonState The button state.
3126 public static String buttonStateToString(int buttonState) { argument
3127 if (buttonState == 0) {
3132 while (buttonState != 0) {
3133 final boolean isSet = (buttonState
1336 nativeInitialize(long nativePtr, int deviceId, int source, int action, int flags, int edgeFlags, int metaState, int buttonState, float xOffset, float yOffset, float xPrecision, float yPrecision, long downTimeNanos, long eventTimeNanos, int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords) argument
1451 obtain(long downTime, long eventTime, int action, int pointerCount, PointerProperties[] pointerProperties, PointerCoords[] pointerCoords, int metaState, int buttonState, float xPrecision, float yPrecision, int deviceId, int edgeFlags, int source, int flags) argument
[all...]
/frameworks/native/libs/input/
H A DInputTransport.cpp289 int32_t buttonState,
301 "action=0x%x, flags=0x%x, edgeFlags=0x%x, metaState=0x%x, buttonState=0x%x, "
306 deviceId, source, action, flags, edgeFlags, metaState, buttonState,
330 msg.body.motion.buttonState = buttonState;
913 msg->body.motion.buttonState,
281 publishMotionEvent( uint32_t seq, int32_t deviceId, int32_t source, int32_t action, int32_t flags, int32_t edgeFlags, int32_t metaState, int32_t buttonState, float xOffset, float yOffset, float xPrecision, float yPrecision, nsecs_t downTime, nsecs_t eventTime, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords) argument
H A DInput.cpp222 int32_t buttonState,
237 mButtonState = buttonState;
215 initialize( int32_t deviceId, int32_t source, int32_t action, int32_t flags, int32_t edgeFlags, int32_t metaState, int32_t buttonState, float xOffset, float yOffset, float xPrecision, float yPrecision, nsecs_t downTime, nsecs_t eventTime, size_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords) argument
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java444 final int buttonState = event.getButtonState();
521 .append(" ButtonState=").append(MotionEvent.buttonStateToString(buttonState))
/frameworks/base/core/jni/
H A Dandroid_view_MotionEvent.cpp336 jint metaState, jint buttonState,
372 event->initialize(deviceId, source, action, flags, edgeFlags, metaState, buttonState,
333 android_view_MotionEvent_nativeInitialize(JNIEnv* env, jclass clazz, jlong nativePtr, jint deviceId, jint source, jint action, jint flags, jint edgeFlags, jint metaState, jint buttonState, jfloat xOffset, jfloat yOffset, jfloat xPrecision, jfloat yPrecision, jlong downTimeNanos, jlong eventTimeNanos, jint pointerCount, jobjectArray pointerPropertiesObjArray, jobjectArray pointerCoordsObjArray) argument

Completed in 1128 milliseconds