Home
last modified time | relevance | path

Searched refs:down (Results 1 – 25 of 66) 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/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/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/base/tests/touchlag/
Dtouchlag.cpp151 down = event.value == -1 ? 0 : 1; in threadLoop()
152 first_down = down; in threadLoop()
166 int x, y, down; member in TouchEvents::EventThread
168 x(0), y(0), down(0) in EventThread()
184 return thread->down; in getMostRecentPosition()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java1608 final boolean down = event.getAction() == KeyEvent.ACTION_DOWN; in handleHomeButton()
1618 if (!down) { in handleHomeButton()
2625 final boolean down = event.getAction() == KeyEvent.ACTION_DOWN; in interceptKeyBeforeDispatchingInner()
2630 Log.d(TAG, "interceptKeyTi keyCode=" + keyCode + " down=" + down + " repeatCount=" in interceptKeyBeforeDispatchingInner()
2648 if (!down) { in interceptKeyBeforeDispatchingInner()
2669 if (!down) { in interceptKeyBeforeDispatchingInner()
2675 if (!down) { in interceptKeyBeforeDispatchingInner()
2694 if (!down) { in interceptKeyBeforeDispatchingInner()
2726 if (down && repeatCount == 0) { in interceptKeyBeforeDispatchingInner()
2735 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/base/core/java/android/util/
DDayOfMonthCursor.java120 public boolean down() { in down() method in DayOfMonthCursor
/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/native/services/inputflinger/
DInputReader.cpp2358 void KeyboardInputMapper::processKey(nsecs_t when, bool down, int32_t scanCode, in processKey() argument
2371 if (down) { in processKey()
2416 if (updateMetaStateIfNeeded(keyCode, down)) { in processKey()
2431 if (down && getDevice()->isExternal() && !isMediaKey(keyCode)) { in processKey()
2440 getDisplayId(), policyFlags, down ? AKEY_EVENT_ACTION_DOWN : AKEY_EVENT_ACTION_UP, in processKey()
2476 bool KeyboardInputMapper::updateMetaStateIfNeeded(int32_t keyCode, bool down) { in updateMetaStateIfNeeded() argument
2478 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded()
2741 bool down = isPointerDown(currentButtonState); in sync() local
2743 if (!wasDown && down) { in sync()
2746 } else if (wasDown && !down) { in sync()
[all …]
/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()
DScrollingMovementMethod.java45 protected boolean down(TextView widget, Spannable buffer) { in down() method in ScrollingMovementMethod
/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/services/core/java/com/android/server/tv/
DUinputBridge.java39 private static native void nativeSendKey(long ptr, int keyCode, boolean down); in nativeSendKey() argument
/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.java313 boolean down = event.getAction() == KeyEvent.ACTION_DOWN; in dispatchKeyEvent()
316 if (!down) { in dispatchKeyEvent()
321 if (!down) { in dispatchKeyEvent()
325 if (!down) { in dispatchKeyEvent()
/frameworks/native/libs/android_runtime_lazy/
DAndroid.bp26 // This library can be used to cut down the dependency between them.
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DEventLogTags.logtags31 ## 2: SWIPE_DOWN_FULL_SHADE Swiped down to enter full shade.
/frameworks/rs/script_api/
Drs_time.spec51 Data structure for broken-down time components.

123