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

/frameworks/base/libs/input/
H A DPointerController.h96 virtual void setButtonState(int32_t buttonState);
181 int32_t buttonState; member in struct:android::PointerController::Locked
H A DPointerController.cpp92 mLocked.buttonState = 0;
160 void PointerController::setButtonState(int32_t buttonState) { argument
162 ALOGD("Set button state 0x%08x", buttonState);
166 if (mLocked.buttonState != buttonState) {
167 mLocked.buttonState = buttonState;
174 return mLocked.buttonState;
/frameworks/native/libs/input/tests/
H A DInputPublisherAndConsumer_test.cpp140 const int32_t buttonState = AMOTION_EVENT_BUTTON_PRIMARY; local
168 flags, edgeFlags, metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision,
193 EXPECT_EQ(buttonState, motionEvent->getButtonState());
/frameworks/native/services/inputflinger/
H A DInputListener.cpp72 int32_t buttonState, int32_t edgeFlags, int32_t displayId, uint32_t pointerCount,
77 flags(flags), metaState(metaState), buttonState(buttonState),
90 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 actionButton, 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.h90 int32_t buttonState; member in struct:android::NotifyMotionArgs
104 int32_t metaState, int32_t buttonState,
H A DInputDispatcher.h516 int32_t buttonState; member in struct:android::InputDispatcher::MotionEntry
529 int32_t metaState, int32_t buttonState, int32_t edgeFlags,
H A DInputDispatcher.cpp892 "metaState=0x%x, buttonState=0x%x,"
897 entry->metaState, entry->buttonState,
2031 motionEntry->metaState, motionEntry->buttonState,
2356 originalMotionEntry->buttonState,
2488 "action=0x%x, actionButton=0x%x, flags=0x%x, metaState=0x%x, buttonState=0x%x,"
2491 args->action, args->actionButton, args->flags, args->metaState, args->buttonState,
2529 args->flags, args->edgeFlags, args->metaState, args->buttonState,
2546 args->metaState, args->buttonState,
3968 int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags,
3976 flags(flags), metaState(metaState), buttonState(buttonStat
3966 MotionEntry(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t actionButton, 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 DInputReader.cpp174 static bool isPointerDown(int32_t buttonState) { argument
175 return buttonState &
193 int32_t buttonState, int32_t keyCode) {
196 && !(lastButtonState & buttonState)
197 && (currentButtonState & buttonState))
199 && (lastButtonState & buttonState)
200 && !(currentButtonState & buttonState))) {
2677 int32_t buttonState = lastButtonState; local
2691 buttonState &= ~actionButton;
2694 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NON
190 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
4479 int32_t buttonState = mCurrentCookedState.buttonState; local
4495 int32_t buttonState = mCurrentCookedState.buttonState; local
4624 int32_t buttonState = mLastCookedState.buttonState; local
4642 int32_t buttonState = mLastCookedState.buttonState; local
5026 int32_t buttonState = mCurrentCookedState.buttonState; local
5179 int32_t buttonState = mCurrentRawState.buttonState; local
6202 dispatchMotion(nsecs_t when, uint32_t policyFlags, uint32_t source, int32_t action, int32_t actionButton, 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
7132 int32_t buttonState = 0; local
[all...]
H A DInputReader.h1433 int32_t buttonState; member in struct:android::TouchInputMapper::RawState
1442 buttonState = other.buttonState;
1450 buttonState = 0;
1465 int32_t buttonState; member in struct:android::TouchInputMapper::CookedState
1472 buttonState = other.buttonState;
1480 buttonState = 0;
1869 int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags,
/frameworks/native/include/input/
H A DInputTransport.h90 int32_t buttonState; member in struct:android::InputMessage::Body::Motion
240 int32_t buttonState,
H A DInput.h401 inline int32_t setButtonState(int32_t buttonState) { mButtonState = buttonState; } argument
564 int32_t buttonState,
/frameworks/native/libs/input/
H A DInput.cpp223 int32_t buttonState,
239 mButtonState = buttonState;
215 initialize( int32_t deviceId, int32_t source, int32_t action, int32_t actionButton, 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.cpp294 int32_t buttonState,
307 "metaState=0x%x, buttonState=0x%x, xOffset=%f, yOffset=%f, "
311 deviceId, source, action, actionButton, flags, edgeFlags, metaState, buttonState,
336 msg.body.motion.buttonState = buttonState;
931 msg->body.motion.buttonState,
285 publishMotionEvent( uint32_t seq, int32_t deviceId, int32_t source, int32_t action, int32_t actionButton, 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
/frameworks/base/core/jni/
H A Dandroid_view_MotionEvent.cpp337 jint metaState, jint buttonState,
373 event->initialize(deviceId, source, action, 0, flags, edgeFlags, metaState, buttonState,
514 jlong nativePtr, jint buttonState) {
516 event->setButtonState(buttonState);
334 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
513 android_view_MotionEvent_nativeSetButtonState(JNIEnv* env, jclass clazz, jlong nativePtr, jint buttonState) argument
/frameworks/base/core/java/android/view/
H A DMotionEvent.java1443 int metaState, int buttonState,
1465 private static native void nativeSetButtonState(long nativePtr, int buttonState); argument
1548 * @param buttonState The state of buttons that are pressed.
1561 PointerCoords[] pointerCoords, int metaState, int buttonState,
1566 deviceId, source, action, flags, edgeFlags, metaState, buttonState,
2336 public final void setButtonState(int buttonState) { argument
2337 nativeSetButtonState(mNativePtr, buttonState);
3169 msg.append(", buttonState=").append(MotionEvent.buttonStateToString(getButtonState()));
3269 * @param buttonState The button state.
3273 public static String buttonStateToString(int buttonState) { argument
1441 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
1559 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/services/inputflinger/tests/
H A DInputReader_test.cpp76 virtual void setButtonState(int32_t buttonState) { argument
77 mButtonState = buttonState;
2070 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState);
2092 ASSERT_EQ(0, args.buttonState);
2275 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState);
2283 ASSERT_EQ(0, motionArgs.buttonState);
2290 ASSERT_EQ(0, motionArgs.buttonState);
2303 motionArgs.buttonState);
2312 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState);
2321 ASSERT_EQ(0, motionArgs.buttonState);
[all...]

Completed in 198 milliseconds