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

/frameworks/base/libs/input/
H A DPointerController.h84 virtual void setButtonState(int32_t buttonState);
158 int32_t buttonState; member in struct:android::PointerController::Locked
H A DPointerController.cpp82 mLocked.buttonState = 0;
143 void PointerController::setButtonState(int32_t buttonState) { argument
145 ALOGD("Set button state 0x%08x", buttonState);
149 if (mLocked.buttonState != buttonState) {
150 mLocked.buttonState = buttonState;
157 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.h510 int32_t buttonState; member in struct:android::InputDispatcher::MotionEntry
523 int32_t metaState, int32_t buttonState, int32_t edgeFlags,
H A DInputDispatcher.cpp892 "metaState=0x%x, buttonState=0x%x,"
897 entry->metaState, entry->buttonState,
2000 motionEntry->metaState, motionEntry->buttonState,
2325 originalMotionEntry->buttonState,
2457 "action=0x%x, actionButton=0x%x, flags=0x%x, metaState=0x%x, buttonState=0x%x,"
2460 args->action, args->actionButton, args->flags, args->metaState, args->buttonState,
2498 args->flags, args->edgeFlags, args->metaState, args->buttonState,
2515 args->metaState, args->buttonState,
3937 int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags,
3945 flags(flags), metaState(metaState), buttonState(buttonStat
3935 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))) {
2637 int32_t buttonState = lastButtonState; local
2651 buttonState &= ~actionButton;
2654 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
4342 int32_t buttonState = mCurrentCookedState.buttonState; local
4358 int32_t buttonState = mCurrentCookedState.buttonState; local
4487 int32_t buttonState = mLastCookedState.buttonState; local
4505 int32_t buttonState = mLastCookedState.buttonState; local
4887 int32_t buttonState = mCurrentCookedState.buttonState; local
5040 int32_t buttonState = mCurrentRawState.buttonState; local
6046 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
6976 int32_t buttonState = 0; local
[all...]
H A DInputReader.h1402 int32_t buttonState; member in struct:android::TouchInputMapper::RawState
1411 buttonState = other.buttonState;
1419 buttonState = 0;
1434 int32_t buttonState; member in struct:android::TouchInputMapper::CookedState
1441 buttonState = other.buttonState;
1449 buttonState = 0;
1838 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.h388 inline int32_t setButtonState(int32_t buttonState) { mButtonState = buttonState; } argument
551 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;
925 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.java1378 int metaState, int buttonState,
1400 private static native void nativeSetButtonState(long nativePtr, int buttonState); argument
1483 * @param buttonState The state of buttons that are pressed.
1496 PointerCoords[] pointerCoords, int metaState, int buttonState,
1501 deviceId, source, action, flags, edgeFlags, metaState, buttonState,
2271 public final void setButtonState(int buttonState) { argument
2272 nativeSetButtonState(mNativePtr, buttonState);
3104 msg.append(", buttonState=").append(MotionEvent.buttonStateToString(getButtonState()));
3204 * @param buttonState The button state.
3208 public static String buttonStateToString(int buttonState) { argument
1376 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
1494 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 251 milliseconds