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

/frameworks/native/services/vr/virtual_touchpad/
H A DVirtualTouchpadService.cpp80 binder::Status VirtualTouchpadService::buttonState(int touchpad, int buttons) { function in class:android::dvr::VirtualTouchpadService
/frameworks/base/libs/input/
H A DPointerController.h96 virtual void setButtonState(int32_t buttonState);
182 int32_t buttonState; member in struct:android::PointerController::Locked
H A DPointerController.cpp116 mLocked.buttonState = 0;
184 void PointerController::setButtonState(int32_t buttonState) { argument
186 ALOGD("Set button state 0x%08x", buttonState);
190 if (mLocked.buttonState != buttonState) {
191 mLocked.buttonState = buttonState;
198 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,
2032 motionEntry->metaState, motionEntry->buttonState,
2357 originalMotionEntry->buttonState,
2489 "action=0x%x, actionButton=0x%x, flags=0x%x, metaState=0x%x, buttonState=0x%x,"
2492 args->action, args->actionButton, args->flags, args->metaState, args->buttonState,
2530 args->flags, args->edgeFlags, args->metaState, args->buttonState,
2547 args->metaState, args->buttonState,
3969 int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags,
3977 flags(flags), metaState(metaState), buttonState(buttonStat
3967 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.cpp183 static bool isPointerDown(int32_t buttonState) { argument
184 return buttonState &
202 int32_t buttonState, int32_t keyCode) {
205 && !(lastButtonState & buttonState)
206 && (currentButtonState & buttonState))
208 && (lastButtonState & buttonState)
209 && !(currentButtonState & buttonState))) {
2765 int32_t buttonState = lastButtonState; local
2779 buttonState &= ~actionButton;
2782 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NON
199 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
4601 int32_t buttonState = mCurrentCookedState.buttonState; local
4617 int32_t buttonState = mCurrentCookedState.buttonState; local
4746 int32_t buttonState = mLastCookedState.buttonState; local
4764 int32_t buttonState = mLastCookedState.buttonState; local
5148 int32_t buttonState = mCurrentCookedState.buttonState; local
5301 int32_t buttonState = mCurrentRawState.buttonState; local
6308 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
7239 int32_t buttonState = 0; local
[all...]
H A DInputReader.h1385 int32_t buttonState; member in struct:android::TouchInputMapper::RawState
1394 buttonState = other.buttonState;
1402 buttonState = 0;
1417 int32_t buttonState; member in struct:android::TouchInputMapper::CookedState
1424 buttonState = other.buttonState;
1432 buttonState = 0;
1821 int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags,
/frameworks/support/v13/tests/java/android/support/v13/view/
H A DDragStartHelperTest.java111 int action, int buttonState, View anchor, int offsetX, int offsetY) {
129 buttonState, 0, 0, -1, 0, InputDevice.SOURCE_MOUSE, 0);
133 int action, int buttonState, View anchor, int offsetX, int offsetY) {
135 action, buttonState, anchor, offsetX, offsetY));
110 obtainMouseEvent( int action, int buttonState, View anchor, int offsetX, int offsetY) argument
132 sendMouseEvent( int action, int buttonState, View anchor, int offsetX, int offsetY) argument
/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 void 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.cpp293 int32_t buttonState,
306 "metaState=0x%x, buttonState=0x%x, xOffset=%f, yOffset=%f, "
310 deviceId, source, action, actionButton, flags, edgeFlags, metaState, buttonState,
335 msg.body.motion.buttonState = buttonState;
930 msg->body.motion.buttonState,
284 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,
654 static void android_view_MotionEvent_nativeSetButtonState(jlong nativePtr, jint buttonState) { argument
656 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
/frameworks/base/core/java/android/view/
H A DMotionEvent.java1470 int metaState, int buttonState,
1533 private static native void nativeSetButtonState(long nativePtr, int buttonState); argument
1613 * @param buttonState The state of buttons that are pressed.
1626 PointerCoords[] pointerCoords, int metaState, int buttonState,
1631 deviceId, source, action, flags, edgeFlags, metaState, buttonState,
2416 public final void setButtonState(int buttonState) { argument
2417 nativeSetButtonState(mNativePtr, buttonState);
3250 msg.append(", buttonState=").append(MotionEvent.buttonStateToString(getButtonState()));
3350 * @param buttonState The button state.
3354 public static String buttonStateToString(int buttonState) { argument
1468 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
1624 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.cpp80 virtual void setButtonState(int32_t buttonState) { argument
81 mButtonState = buttonState;
2106 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState);
2125 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState);
2147 ASSERT_EQ(0, args.buttonState);
2166 ASSERT_EQ(0, args.buttonState);
2370 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState);
2377 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState);
2386 ASSERT_EQ(0, motionArgs.buttonState);
2393 ASSERT_EQ(0, motionArgs.buttonState);
[all...]

Completed in 2327 milliseconds