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

/frameworks/base/libs/androidfw/tests/
H A DInputPublisherAndConsumer_test.cpp138 const int32_t buttonState = AMOTION_EVENT_BUTTON_PRIMARY; local
166 metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision,
191 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.h509 int32_t buttonState; member in struct:android::InputDispatcher::MotionEntry
522 int32_t metaState, int32_t buttonState, int32_t edgeFlags,
H A DInputDispatcher.cpp867 "metaState=0x%x, buttonState=0x%x, "
872 entry->metaState, entry->buttonState,
1994 motionEntry->edgeFlags, motionEntry->metaState, motionEntry->buttonState,
2312 originalMotionEntry->buttonState,
2431 "action=0x%x, flags=0x%x, metaState=0x%x, buttonState=0x%x, edgeFlags=0x%x, "
2434 args->action, args->flags, args->metaState, args->buttonState,
2471 args->edgeFlags, args->metaState, args->buttonState, 0, 0,
2487 args->action, args->flags, args->metaState, args->buttonState,
3865 int32_t metaState, int32_t buttonState,
3872 metaState(metaState), buttonState(buttonStat
3863 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))) {
3890 int32_t buttonState = mCurrentButtonState; local
3897 AMOTION_EVENT_ACTION_MOVE, 0, metaState, buttonState,
3923 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
4322 int32_t buttonState = mCurrentButtonState; local
4474 int32_t buttonState = mCurrentButtonState; local
5462 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
6286 int32_t buttonState = 0; local
[all...]
/frameworks/base/include/androidfw/
H A DInputTransport.h82 int32_t buttonState; member in struct:android::InputMessage::Body::Motion
227 int32_t buttonState,
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java416 MotionEvent.PointerCoords coords, int id, int toolType, int buttonState) {
487 .append(" ButtonState=").append(MotionEvent.buttonStateToString(buttonState))
415 logCoords(String type, int action, int index, MotionEvent.PointerCoords coords, int id, int toolType, int buttonState) argument
/frameworks/base/libs/androidfw/
H A DInput.cpp289 int32_t buttonState,
304 mButtonState = buttonState;
282 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.cpp282 int32_t buttonState,
294 "action=0x%x, flags=0x%x, edgeFlags=0x%x, metaState=0x%x, buttonState=0x%x, "
299 deviceId, source, action, flags, edgeFlags, metaState, buttonState,
323 msg.body.motion.buttonState = buttonState;
903 msg->body.motion.buttonState,
274 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.cpp341 jint metaState, jint buttonState,
377 event->initialize(deviceId, source, action, flags, edgeFlags, metaState, buttonState,
338 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,
2993 msg.append(", buttonState=").append(MotionEvent.buttonStateToString(getButtonState()));
3093 * @param buttonState The button state.
3097 public static String buttonStateToString(int buttonState) { argument
3098 if (buttonState == 0) {
3103 while (buttonState != 0) {
3104 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;
2042 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, args.buttonState);
2064 ASSERT_EQ(0, args.buttonState);
2247 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState);
2255 ASSERT_EQ(0, motionArgs.buttonState);
2262 ASSERT_EQ(0, motionArgs.buttonState);
2275 motionArgs.buttonState);
2284 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState);
2293 ASSERT_EQ(0, motionArgs.buttonState);
[all...]

Completed in 434 milliseconds