Home
last modified time | relevance | path

Searched refs:down (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/native/libs/input/
DKeyboard.cpp180 static int32_t setEphemeralMetaState(int32_t mask, bool down, int32_t oldMetaState) { in setEphemeralMetaState() argument
182 if (down) { in setEphemeralMetaState()
212 static int32_t toggleLockedMetaState(int32_t mask, bool down, int32_t oldMetaState) { in toggleLockedMetaState() argument
213 if (down) { in toggleLockedMetaState()
220 int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState) { in updateMetaState() argument
223 return setEphemeralMetaState(AMETA_ALT_LEFT_ON, down, oldMetaState); in updateMetaState()
225 return setEphemeralMetaState(AMETA_ALT_RIGHT_ON, down, oldMetaState); in updateMetaState()
227 return setEphemeralMetaState(AMETA_SHIFT_LEFT_ON, down, oldMetaState); in updateMetaState()
229 return setEphemeralMetaState(AMETA_SHIFT_RIGHT_ON, down, oldMetaState); in updateMetaState()
231 return setEphemeralMetaState(AMETA_SYM_ON, down, oldMetaState); in updateMetaState()
[all …]
DKeyCharacterMap.cpp487 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) { in addKey() argument
491 down ? AKEY_EVENT_ACTION_DOWN : AKEY_EVENT_ACTION_UP, in addKey()
496 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addMetaKeys() argument
499 if (down) { in addMetaKeys()
561 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addSingleEphemeralMetaKey() argument
565 *currentMetaState = updateMetaState(keyCode, down, *currentMetaState); in addSingleEphemeralMetaKey()
566 addKey(outEvents, deviceId, keyCode, *currentMetaState, down, time); in addSingleEphemeralMetaKey()
573 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addDoubleEphemeralMetaKey() argument
579 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time, in addDoubleEphemeralMetaKey()
581 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time, in addDoubleEphemeralMetaKey()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DDragAction.java72 .down;
138 .down;
173 .down;
190 uiController, coordinates, precision).down;
225 .down;
370 .down; in performLongPress()
384 .down; in performDoubleTap()
397 return MotionEvents.sendDown(uiController, coordinates, precision).down; in performDoubleTap()
DMouseClickAction.java90 if (!MotionEvents.sendUp(uiController, res.down)) { in sendSingleTap()
91 MotionEvents.sendCancel(uiController, res.down); in sendSingleTap()
95 res.down.recycle(); in sendSingleTap()
/frameworks/native/services/inputflinger/dispatcher/
DTouchState.cpp28 : down(false), split(false), deviceId(-1), source(0), displayId(ADISPLAY_ID_NONE) {} in TouchState()
33 down = false; in reset()
44 down = other.down; in copyFrom()
DTouchState.h30 bool down; member
/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.cpp252 void KeyboardInputMapper::processKey(nsecs_t when, bool down, int32_t scanCode, int32_t usageCode) { in processKey() argument
264 if (down) { in processKey()
308 if (updateMetaStateIfNeeded(keyCode, down)) { in processKey()
323 if (down && getDevice()->isExternal() && !isMediaKey(keyCode)) { in processKey()
332 policyFlags, down ? AKEY_EVENT_ACTION_DOWN : AKEY_EVENT_ACTION_UP, in processKey()
368 bool KeyboardInputMapper::updateMetaStateIfNeeded(int32_t keyCode, bool down) { in updateMetaStateIfNeeded() argument
370 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded()
DCursorInputMapper.cpp293 bool down = isPointerDown(currentButtonState); in sync() local
295 if (!wasDown && down) { in sync()
298 } else if (wasDown && !down) { in sync()
365 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, down ? 1.0f : 0.0f); in sync()
386 motionEventAction = down ? AMOTION_EVENT_ACTION_DOWN : AMOTION_EVENT_ACTION_UP; in sync()
387 } else if (down || (mSource != AINPUT_SOURCE_MOUSE)) { in sync()
DKeyboardInputMapper.h85 void processKey(nsecs_t when, bool down, int32_t scanCode, int32_t usageCode);
87 bool updateMetaStateIfNeeded(int32_t keyCode, bool down);
DTouchInputMapper.cpp1390 mCurrentVirtualKey.down = false; in reset()
1751 if (mCurrentVirtualKey.down) { in consumeRawTouches()
1754 mCurrentVirtualKey.down = false; in consumeRawTouches()
1781 mCurrentVirtualKey.down = false; in consumeRawTouches()
1804 mCurrentVirtualKey.down = true; in consumeRawTouches()
2421 bool down = mPointerGesture.currentGestureMode == PointerGesture::TAP || in dispatchPointerGestures() local
2428 if (down && !cancelPreviousGesture && !finishPreviousGesture && in dispatchPointerGestures()
2489 if (down) { in dispatchPointerGestures()
2547 if (!down) { in dispatchPointerGestures()
2921 bool down; in preparePointerGestures() local
[all …]
DTouchInputMapper.h567 bool down; member
738 bool down; member
751 down = false; in reset()
801 void dispatchPointerSimple(nsecs_t when, uint32_t policyFlags, bool down, bool hovering);
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java256 final long down = SystemClock.uptimeMillis(); in sendSwipe() local
257 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, down, down, x1, y1, 1.0f, in sendSwipe()
268 final long endTime = down + duration; in sendSwipe()
270 final long elapsedTime = now - down; in sendSwipe()
272 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, down, now, in sendSwipe()
276 injectMotionEvent(inputSource, MotionEvent.ACTION_UP, down, now, x2, y2, 0.0f, in sendSwipe()
/frameworks/native/include/input/
DKeyCharacterMap.h248 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time);
250 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
253 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
257 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
DKeyboard.h78 extern int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState);
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java1611 final boolean down = event.getAction() == KeyEvent.ACTION_DOWN; in handleHomeButton()
1621 if (!down) { in handleHomeButton()
2640 final boolean down = event.getAction() == KeyEvent.ACTION_DOWN; in interceptKeyBeforeDispatchingInner()
2645 Log.d(TAG, "interceptKeyTi keyCode=" + keyCode + " down=" + down + " repeatCount=" in interceptKeyBeforeDispatchingInner()
2663 if (!down) { in interceptKeyBeforeDispatchingInner()
2684 if (!down) { in interceptKeyBeforeDispatchingInner()
2690 if (!down) { in interceptKeyBeforeDispatchingInner()
2709 if (!down) { in interceptKeyBeforeDispatchingInner()
2741 if (down && repeatCount == 0) { in interceptKeyBeforeDispatchingInner()
2750 if (down) { in interceptKeyBeforeDispatchingInner()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListScrollListenerTest.java83 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling() local
87 inst.sendKeySync(down); in testKeyScrolling()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridScrollListenerTest.java85 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling() local
89 inst.sendKeySync(down); in testKeyScrolling()
/frameworks/base/core/tests/coretests/src/android/util/
DDayOfMonthCursorTest.java138 assertFalse(mc.down()); in testMoveDown()
144 assertTrue(mc.down()); in testMoveDown()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationGestureHandler.java643 MotionEvent down = (MotionEvent) message.obj; in handleMessage() local
644 transitionToViewportDraggingStateAndClear(down); in handleMessage()
645 down.recycle(); in handleMessage()
885 void transitionToViewportDraggingStateAndClear(MotionEvent down) { in transitionToViewportDraggingStateAndClear() argument
893 zoomOn(down.getX(), down.getY()); in transitionToViewportDraggingStateAndClear()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DREADME.txt32 is operational and controls wifi to handle bringup and shut down.
42 …odeWarden: Tracks the various states on STA and AP connectivity and handles bring up and shut down.
/frameworks/base/core/java/android/util/
DDayOfMonthCursor.java120 public boolean down() { in down() method in DayOfMonthCursor
/frameworks/base/core/java/android/text/method/
DLinkMovementMethod.java75 protected boolean down(TextView widget, Spannable buffer) { in down() method in LinkMovementMethod
80 return super.down(widget, buffer); in down()
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvUinputBridge.cpp210 static void nativeSendKey(JNIEnv* env, jclass clazz, jlong ptr, jint keyCode, jboolean down) { in nativeSendKey() argument
214 connection->sendEvent(EV_KEY, code, down ? 1 : 0); in nativeSendKey()
/frameworks/base/cmds/media/src/com/android/commands/media/
DMedia.java311 KeyEvent down = new KeyEvent(now, now, KeyEvent.ACTION_DOWN, keyCode, 0, 0, in dispatchKeyCode() local
316 mController.dispatchMediaButtonEvent(down); in dispatchKeyCode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarWindowView.java321 boolean down = event.getAction() == KeyEvent.ACTION_DOWN; in dispatchKeyEvent()
324 if (!down) { in dispatchKeyEvent()
329 if (!down) { in dispatchKeyEvent()
333 if (!down) { in dispatchKeyEvent()

123