Home
last modified time | relevance | path

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

123

/frameworks/native/libs/input/
DKeyboard.cpp170 static int32_t setEphemeralMetaState(int32_t mask, bool down, int32_t oldMetaState) { in setEphemeralMetaState() argument
172 if (down) { in setEphemeralMetaState()
202 static int32_t toggleLockedMetaState(int32_t mask, bool down, int32_t oldMetaState) { in toggleLockedMetaState() argument
203 if (down) { in toggleLockedMetaState()
210 int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState) { in updateMetaState() argument
213 return setEphemeralMetaState(AMETA_ALT_LEFT_ON, down, oldMetaState); in updateMetaState()
215 return setEphemeralMetaState(AMETA_ALT_RIGHT_ON, down, oldMetaState); in updateMetaState()
217 return setEphemeralMetaState(AMETA_SHIFT_LEFT_ON, down, oldMetaState); in updateMetaState()
219 return setEphemeralMetaState(AMETA_SHIFT_RIGHT_ON, down, oldMetaState); in updateMetaState()
221 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.java69 .down;
135 .down;
170 .down;
187 uiController, coordinates, precision).down;
222 .down;
367 .down; in performLongPress()
381 .down; in performDoubleTap()
394 return MotionEvents.sendDown(uiController, coordinates, precision).down; in performDoubleTap()
DMouseClickAction.java78 if (!MotionEvents.sendUp(uiController, res.down)) { in sendSingleTap()
79 MotionEvents.sendCancel(uiController, res.down); in sendSingleTap()
83 res.down.recycle(); in sendSingleTap()
/frameworks/native/include/input/
DKeyCharacterMap.h246 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time);
248 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
251 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
255 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
DKeyboard.h88 extern int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState);
/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/core/tests/coretests/src/android/widget/gridview/
DGridScrollListenerTest.java78 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling() local
82 inst.sendKeySync(down); in testKeyScrolling()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListScrollListenerTest.java75 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling() local
79 inst.sendKeySync(down); in testKeyScrolling()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DGestureUtils.java15 public static boolean isTap(MotionEvent down, MotionEvent up, int tapTimeSlop, in isTap() argument
17 return eventsWithinTimeAndDistanceSlop(down, up, tapTimeSlop, tapDistanceSlop, actionIndex); in isTap()
DMagnificationGestureHandler.java822 private void onActionTapAndHold(MotionEvent down, int policyFlags) { in onActionTapAndHold() argument
832 mMagnificationController.setScaleAndCenter(scale, down.getX(), down.getY(), true, in onActionTapAndHold()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java955 int down = 14; in getNetworkCapabilities() local
957 case ServiceState.RIL_RADIO_TECHNOLOGY_GPRS: up = 80; down = 80; break; in getNetworkCapabilities()
958 case ServiceState.RIL_RADIO_TECHNOLOGY_EDGE: up = 59; down = 236; break; in getNetworkCapabilities()
959 case ServiceState.RIL_RADIO_TECHNOLOGY_UMTS: up = 384; down = 384; break; in getNetworkCapabilities()
961 case ServiceState.RIL_RADIO_TECHNOLOGY_IS95B: up = 14; down = 14; break; in getNetworkCapabilities()
962 case ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0: up = 153; down = 2457; break; in getNetworkCapabilities()
963 case ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A: up = 1843; down = 3174; break; in getNetworkCapabilities()
964 case ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT: up = 100; down = 100; break; in getNetworkCapabilities()
965 case ServiceState.RIL_RADIO_TECHNOLOGY_HSDPA: up = 2048; down = 14336; break; in getNetworkCapabilities()
966 case ServiceState.RIL_RADIO_TECHNOLOGY_HSUPA: up = 5898; down = 14336; break; in getNetworkCapabilities()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DDayOfMonthCursorTest.java137 assertFalse(mc.down()); in testMoveDown()
143 assertTrue(mc.down()); in testMoveDown()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DREADME.txt29 …er STA or AP mode is operational and controls the WifiStateMachine to handle bringup and shut down.
39 …teMachine: Tracks the various states on STA and AP connectivity and handles bring up and shut down.
/frameworks/native/services/inputflinger/
DInputReader.cpp2294 void KeyboardInputMapper::processKey(nsecs_t when, bool down, int32_t scanCode, in processKey() argument
2307 if (down) { in processKey()
2352 if (updateMetaStateIfNeeded(keyCode, down)) { in processKey()
2367 if (down && getDevice()->isExternal()) { in processKey()
2376 down ? AKEY_EVENT_ACTION_DOWN : AKEY_EVENT_ACTION_UP, in processKey()
2412 bool KeyboardInputMapper::updateMetaStateIfNeeded(int32_t keyCode, bool down) { in updateMetaStateIfNeeded() argument
2414 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded()
2674 bool down = isPointerDown(currentButtonState); in sync() local
2676 if (!wasDown && down) { in sync()
2679 } else if (wasDown && !down) { in sync()
[all …]
/frameworks/base/core/java/android/util/
DDayOfMonthCursor.java120 public boolean down() { in down() method in DayOfMonthCursor
/frameworks/base/core/java/android/text/method/
DLinkMovementMethod.java70 protected boolean down(TextView widget, Spannable buffer) { in down() method in LinkMovementMethod
75 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/java/com/android/server/policy/
DPhoneWindowManager.java3308 final boolean down = event.getAction() == KeyEvent.ACTION_DOWN; in interceptKeyBeforeDispatching()
3312 Log.d(TAG, "interceptKeyTi keyCode=" + keyCode + " down=" + down + " repeatCount=" in interceptKeyBeforeDispatching()
3331 if (!down) { in interceptKeyBeforeDispatching()
3352 if (!down) { in interceptKeyBeforeDispatching()
3358 if (!down) { in interceptKeyBeforeDispatching()
3383 if (!down) { in interceptKeyBeforeDispatching()
3388 mAccessibilityTvKey2Pressed = down; in interceptKeyBeforeDispatching()
3446 mAccessibilityTvKey2Pressed = down; in interceptKeyBeforeDispatching()
3461 if (down && repeatCount == 0) { in interceptKeyBeforeDispatching()
3470 if (down) { in interceptKeyBeforeDispatching()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarWindowView.java221 boolean down = event.getAction() == KeyEvent.ACTION_DOWN; in dispatchKeyEvent()
224 if (!down) { in dispatchKeyEvent()
229 if (!down) { in dispatchKeyEvent()
233 if (!down) { in dispatchKeyEvent()
/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/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.
/frameworks/support/wear/tests/src/android/support/wear/widget/util/
DArcSwipe.java126 precision).down; in sendArcSwipe()

123