/frameworks/native/libs/input/ |
H A D | Keyboard.cpp | 170 static int32_t setEphemeralMetaState(int32_t mask, bool down, int32_t oldMetaState) { argument 172 if (down) { 197 static int32_t toggleLockedMetaState(int32_t mask, bool down, int32_t oldMetaState) { argument 198 if (down) { 205 int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState) { argument 209 return setEphemeralMetaState(AMETA_ALT_LEFT_ON, down, oldMetaState); 211 return setEphemeralMetaState(AMETA_ALT_RIGHT_ON, down, oldMetaState); 213 return setEphemeralMetaState(AMETA_SHIFT_LEFT_ON, down, oldMetaState); 215 return setEphemeralMetaState(AMETA_SHIFT_RIGHT_ON, down, oldMetaState); 217 return setEphemeralMetaState(AMETA_SYM_ON, down, oldMetaStat [all...] |
H A D | KeyCharacterMap.cpp | 325 outEvents[i].getAction() == AKEY_EVENT_ACTION_DOWN ? "down" : "up"); 445 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) { 449 down ? AKEY_EVENT_ACTION_DOWN : AKEY_EVENT_ACTION_UP, 454 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 457 if (down) { 519 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 523 *currentMetaState = updateMetaState(keyCode, down, *currentMetaState); 524 addKey(outEvents, deviceId, keyCode, *currentMetaState, down, time); 531 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 537 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, tim 444 addKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) argument 453 addMetaKeys(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t* currentMetaState) argument 518 addSingleEphemeralMetaKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t keyCode, int32_t keyMetaState, int32_t* currentMetaState) argument 530 addDoubleEphemeralMetaKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t leftKeyCode, int32_t leftKeyMetaState, int32_t rightKeyCode, int32_t rightKeyMetaState, int32_t eitherKeyMetaState, int32_t* currentMetaState) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
H A D | GridScrollListenerTest.java | 78 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, 82 inst.sendKeySync(down);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListScrollListenerTest.java | 75 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, 79 inst.sendKeySync(down);
|
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 151 down = event.value == -1 ? 0 : 1; 152 first_down = down; 166 int x, y, down; member in class:TouchEvents::EventThread 168 x(0), y(0), down(0) 184 return thread->down; 254 int x=0, y=0, down=0; local
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | GestureUtils.java | 15 public static boolean isTap(MotionEvent down, MotionEvent up, int tapTimeSlop, argument 17 return eventsWithinTimeAndDistanceSlop(down, up, tapTimeSlop, tapDistanceSlop, actionIndex);
|
H A D | ScreenMagnifier.java | 416 // time and down time to prevent subsequent transformations being confused 417 // by stale events. After the cached events, which always have a down, are 418 // injected we need to also update the down time of all subsequent non cached 589 throw new IllegalStateException("Should have one pointer down."); 839 private void onActionTapAndHold(MotionEvent down, int policyFlags) { argument 846 down.getX(), down.getY(), true);
|
/frameworks/base/core/java/android/util/ |
H A D | DayOfMonthCursor.java | 26 * <li>Provides methods to move the cursor up / down / left / right.</li> 116 * Move down one box, potentially flipping to the next month. 120 public boolean down() { method in class:DayOfMonthCursor 122 // within current month, just move down
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarWindowView.java | 122 boolean down = event.getAction() == KeyEvent.ACTION_DOWN; 125 if (!down) { 130 if (!down) { 134 if (!down) { 174 // wake up on a touch down event, if dozing
|
/frameworks/native/include/input/ |
H A D | KeyCharacterMap.h | 235 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time); 237 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 240 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 244 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
|
H A D | Keyboard.h | 88 extern int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | DayOfMonthCursorTest.java | 136 // down, same month 137 assertFalse(mc.down()); 142 // down, next month 143 assertTrue(mc.down());
|
/frameworks/base/core/java/android/text/method/ |
H A D | ScrollingMovementMethod.java | 44 protected boolean down(TextView widget, Spannable buffer) { method in class:ScrollingMovementMethod
|
H A D | LinkMovementMethod.java | 70 protected boolean down(TextView widget, Spannable buffer) { method in class:LinkMovementMethod 75 return super.down(widget, buffer);
|
H A D | BaseMovementMethod.java | 145 * The default implementation decodes the key down and invokes movement actions 146 * such as {@link #down} and {@link #up}. 198 return down(widget, buffer); 281 * Performs a down movement action. 282 * Moves the cursor or scrolls down by one line. 288 protected boolean down(TextView widget, Spannable buffer) { method in class:BaseMovementMethod 305 * Performs a page-down movement action. 306 * Moves the cursor or scrolls down by one page. 526 * Performs a scroll down action. 527 * Scrolls down b [all...] |
H A D | ArrowKeyMovementMethod.java | 100 protected boolean down(TextView widget, Spannable buffer) { method in class:ArrowKeyMovementMethod 245 // Capture the mouse pointer down location to ensure selection starts
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
H A D | DataConnection.java | 950 int down = 14; 952 case ServiceState.RIL_RADIO_TECHNOLOGY_GPRS: up = 80; down = 80; break; 953 case ServiceState.RIL_RADIO_TECHNOLOGY_EDGE: up = 59; down = 236; break; 954 case ServiceState.RIL_RADIO_TECHNOLOGY_UMTS: up = 384; down = 384; break; 956 case ServiceState.RIL_RADIO_TECHNOLOGY_IS95B: up = 14; down = 14; break; 957 case ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0: up = 153; down = 2457; break; 958 case ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A: up = 1843; down = 3174; break; 959 case ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT: up = 100; down = 100; break; 960 case ServiceState.RIL_RADIO_TECHNOLOGY_HSDPA: up = 2048; down = 14336; break; 961 case ServiceState.RIL_RADIO_TECHNOLOGY_HSUPA: up = 5898; down [all...] |
/frameworks/native/services/inputflinger/ |
H A D | InputReader.cpp | 157 // Returns true if the pointer should be reported as being down given the specified 2012 dump.appendFormat(INDENT3 "KeyDowns: %zu keys currently down\n", mKeyDowns.size()); 2116 void KeyboardInputMapper::processKey(nsecs_t when, bool down, int32_t keyCode, argument 2119 if (down) { 2125 // Add key down. 2131 // key down 2146 // Remove key down. 2153 // key was not actually down 2154 ALOGI("Dropping key up from device %s because the key was not down. " 2162 int32_t newMetaState = updateMetaState(keyCode, down, oldMetaStat 2440 bool down = isPointerDown(currentButtonState); local 4494 bool down = mPointerGesture.currentGestureMode == PointerGesture::TAP local 5004 bool down; local 5430 bool down, hovering; local 5464 bool down, hovering; local 5515 dispatchPointerSimple(nsecs_t when, uint32_t policyFlags, bool down, bool hovering) argument [all...] |
H A D | InputDispatcher.cpp | 245 // Wait for callback or timeout or wake. (make sure we round up, not down) 725 // Not a repeat. Save key down state in case we do see a repeat later. 1160 bool down = maskedAction == AMOTION_EVENT_ACTION_DOWN; local 1161 if (switchedDevice && mTempTouchState.down && !down) { 1163 ALOGD("Dropping event because a pointer for a different device is already down."); 1171 mTempTouchState.down = down; 1179 /* Case 1: New splittable pointer going down, or need target for hover or scroll. */ 1268 /* Case 2: Pointer move, up, cancel or non-splittable pointer down [all...] |
H A D | InputReader.h | 173 // to noise from a finger resting on the touch pad (perhaps just pressing it down). 177 // The time between down and up must be less than this to be considered a tap. 181 // The time between the previous tap's up and the next down must be less than 185 // Note that the previous tap will be held down for this entire duration so this 189 // The distance in pixels that the pointer is allowed to move from initial down 193 // Time after the first touch points go down to settle on an initial centroid. 194 // This is intended to be enough time to handle cases where the user puts down two 1072 Vector<KeyDown> mKeyDowns; // keys that are down 1074 nsecs_t mDownTime; // time of most recent key down 1098 void processKey(nsecs_t when, bool down, int32_ 1478 bool down; member in struct:android::TouchInputMapper::CurrentVirtualKeyState 1651 bool down; member in struct:android::TouchInputMapper::PointerSimple [all...] |
/frameworks/base/media/java/android/media/session/ |
H A D | MediaSessionLegacyHelper.java | 187 boolean down = keyEvent.getAction() == KeyEvent.ACTION_DOWN; 202 if (down || up) { 224 if (down) { 225 // We need to send two volume events on down, one to mute 231 0 /* direction, causes UI to show on down */, flags); 386 Log.e(TAG, "Error sending media key down event:", e); 387 // Don't bother sending up if down failed
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | PhoneWindowManager.java | 2403 final boolean down = event.getAction() == KeyEvent.ACTION_DOWN; 2407 Log.d(TAG, "interceptKeyTi keyCode=" + keyCode + " down=" + down + " repeatCount=" 2412 // If we think we might have a volume down & power key chord on the way 2426 if (!down) { 2433 // Cancel any pending meta actions if we see any other keys being pressed between the down 2447 if (!down) { 2524 if (down && repeatCount == 0) { 2548 if (down) { 2563 if (down [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ListView.java | 228 // we are too high, slide all views down to align with bottom 605 // need to MOVE DOWN to get it in view: move down just enough so 653 void fillGap(boolean down) { argument 655 if (down) { 677 * Fills the list from pos down to the end of the list view. 765 * down from there. This method forces mSelectedPosition to the center. 967 * Case 1: Scrolling down. 1333 * up and down from there. 1384 * everything back down. 1413 // Don't pull the top too far down [all...] |
H A D | ScrollView.java | 493 * whether the user has moved far enough from his original down touch. 498 * of the down event. 502 // If we don't have a valid id, the touch down wasn't on content. 541 * Remember location of down touch. 965 * <p>Handles scrolling in response to a "page up/down" shortcut press. This 966 * method will scroll the view by one page up or down and give the focus 973 * {@link android.view.View#FOCUS_DOWN} to go one page down 977 boolean down = direction == View.FOCUS_DOWN; 980 if (down) { 1013 boolean down [all...] |
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | InputMethodService.java | 240 public static final int BACK_DISPOSITION_WILL_DISMISS = 2; // down 1787 * Override this to intercept key down events before they are processed by the 1945 KeyEvent down = KeyEvent.changeAction(event, KeyEvent.ACTION_DOWN); 1947 (Spannable)eet.getText(), keyCode, down)) { 1953 (Spannable)eet.getText(), keyCode, down); 1978 * current input connection is a key down + key up event pair. The sent
|