Searched defs:buttonState (Results 1 - 14 of 14) sorted by relevance

/frameworks/native/libs/input/tests/
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/base/services/input/
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 DPointerController.h57 virtual void setButtonState(int32_t buttonState) = 0;
161 virtual void setButtonState(int32_t buttonState);
235 int32_t buttonState; member in struct:android::PointerController::Locked
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 DInputDispatcher.h512 int32_t buttonState; member in struct:android::InputDispatcher::MotionEntry
525 int32_t metaState, int32_t buttonState, int32_t edgeFlags,
H A DInputDispatcher.cpp881 "metaState=0x%x, buttonState=0x%x, "
886 entry->metaState, entry->buttonState,
1995 motionEntry->edgeFlags, motionEntry->metaState, motionEntry->buttonState,
2313 originalMotionEntry->buttonState,
2432 "action=0x%x, flags=0x%x, metaState=0x%x, buttonState=0x%x, edgeFlags=0x%x, "
2435 args->action, args->flags, args->metaState, args->buttonState,
2472 args->edgeFlags, args->metaState, args->buttonState, 0, 0,
2488 args->action, args->flags, args->metaState, args->buttonState,
3898 int32_t metaState, int32_t buttonState,
3905 metaState(metaState), buttonState(buttonStat
3896 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) argument
[all...]
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))) {
3957 int32_t buttonState = mCurrentButtonState; local
3964 AMOTION_EVENT_ACTION_MOVE, 0, metaState, buttonState,
3990 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
4430 int32_t buttonState = mCurrentButtonState; local
4582 int32_t buttonState = mCurrentButtonState; local
5582 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
6436 int32_t buttonState = 0; local
[all...]
/frameworks/native/include/input/
H A DInputTransport.h82 int32_t buttonState; member in struct:android::InputMessage::Body::Motion
230 int32_t buttonState,
/frameworks/native/libs/input/
H A DInput.cpp291 int32_t buttonState,
306 mButtonState = buttonState;
284 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
H A DInputTransport.cpp288 int32_t buttonState,
300 "action=0x%x, flags=0x%x, edgeFlags=0x%x, metaState=0x%x, buttonState=0x%x, "
305 deviceId, source, action, flags, edgeFlags, metaState, buttonState,
329 msg.body.motion.buttonState = buttonState;
912 msg->body.motion.buttonState,
280 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, size_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords) argument
/frameworks/base/core/jni/
H A Dandroid_view_MotionEvent.cpp340 jint metaState, jint buttonState,
376 event->initialize(deviceId, source, action, flags, edgeFlags, metaState, buttonState,
337 android_view_MotionEvent_nativeInitialize(JNIEnv* env, jclass clazz, jint 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
/frameworks/base/core/java/android/view/
H A DMotionEvent.java1320 int metaState, int buttonState,
1419 * @param buttonState The state of buttons that are pressed.
1432 PointerCoords[] pointerCoords, int metaState, int buttonState,
1437 deviceId, source, action, flags, edgeFlags, metaState, buttonState,
2991 msg.append(", buttonState=").append(MotionEvent.buttonStateToString(getButtonState()));
3091 * @param buttonState The button state.
3095 public static String buttonStateToString(int buttonState) { argument
3096 if (buttonState == 0) {
3101 while (buttonState != 0) {
3102 final boolean isSet = (buttonState
1318 nativeInitialize(int 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
1430 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/base/services/input/tests/
H A DInputReader_test.cpp76 virtual void setButtonState(int32_t buttonState) { argument
77 mButtonState = buttonState;
2052 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState);
2074 ASSERT_EQ(0, args.buttonState);
2257 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState);
2265 ASSERT_EQ(0, motionArgs.buttonState);
2272 ASSERT_EQ(0, motionArgs.buttonState);
2285 motionArgs.buttonState);
2294 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState);
2303 ASSERT_EQ(0, motionArgs.buttonState);
[all...]

Completed in 1087 milliseconds