/frameworks/base/cmds/input/src/com/android/commands/input/ |
H A D | Input.java | 122 KeyEvent down = new KeyEvent(now, now, KeyEvent.ACTION_DOWN, eventCode, 0); 126 .injectKeyEvent(down, true);
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | InputMethodService.java | 236 public static final int BACK_DISPOSITION_WILL_DISMISS = 2; // down 1714 * Override this to intercept key down events before they are processed by the 1851 KeyEvent down = KeyEvent.changeAction(event, KeyEvent.ACTION_DOWN); 1853 (Spannable)eet.getText(), keyCode, down)) { 1859 (Spannable)eet.getText(), keyCode, down); 1884 * current input connection is a key down + key up event pair. The sent
|
H A D | KeyboardView.java | 120 * Called when the user quickly moves the finger from up to down. 125 * Called when the user quickly moves the finger from down to up. 1177 // Convert multi-pointer up/down events to single up/down events to 1186 // Send a down event for the latest pointer 1187 MotionEvent down = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 1189 result = onModifiedTouchEvent(down, false); 1190 down.recycle(); 1208 // Don't do anything when 2 pointers are down and moving.
|
/frameworks/base/core/java/android/text/method/ |
H A D | ArrowKeyMovementMethod.java | 99 protected boolean down(TextView widget, Spannable buffer) { method in class:ArrowKeyMovementMethod
|
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 | LinkMovementMethod.java | 65 protected boolean down(TextView widget, Spannable buffer) { method in class:LinkMovementMethod 70 return super.down(widget, buffer);
|
H A D | ScrollingMovementMethod.java | 44 protected boolean down(TextView widget, Spannable buffer) { method in class:ScrollingMovementMethod
|
/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/core/java/android/webkit/ |
H A D | WebTextView.java | 92 // need to send down the DOM events. 94 // Variables for keeping track of the touch down, to send to the WebView 101 // scroll or the web page to scroll. Gets reset after a touch down. 276 boolean down = event.getAction() != KeyEvent.ACTION_UP; 290 if (down) { 307 if (down) { 319 if (!down) { 335 if (!down) { 366 // so do not pass down to javascript, and instead 368 // ahead and pass it down [all...] |
H A D | WebView.java | 309 * <li>{@code high-dpi} - Use hdpi as the target dpi. Medium and low density screens scale down 312 * low density screens scale down. This is also the default behavior.</li> 491 * to further, which slows down the refresh rate. Choose 50 to favor the 537 // for touch down. Otherwise UI will wait for the answer of the first 1289 // down two keys at a time (shift + another key) 2410 * Scroll the contents of the view down by half the page size 2423 // Page down. 4381 // Provide a touch down event to WebTextView, which will allow it 5006 * in its own thread, without slowing down the UI. 5031 // on the AutoFill item being at the top of the drop down lis 9304 letPageHandleNavKey(int keyCode, long time, boolean down, int metaState) argument [all...] |
H A D | WebViewCore.java | 569 String currentText, int keyCode, int keyValue, boolean down, 1115 // Time to take down the world. Cancel all pending 568 passToJs(int gen, String currentText, int keyCode, int keyValue, boolean down, boolean cap, boolean fn, boolean sym) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | AbsListView.java | 131 * Indicates we have waited for everything we can wait for, but the user's finger is still down 333 * The down scroll indicator 345 * The position of the view that received the down motion event 350 * The offset to the top of the mMotionPosition view when the down motion event was received 360 * The X value associated with the the down motion event 365 * The Y value associated with the the down motion event 2267 public void setScrollIndicators(View up, View down) { argument 2269 mScrollDown = down; 3781 // (e.g. finger moving down means list is moving towards the top) 4401 * began. Positive numbers mean the user's finger is moving down th 4599 fillGap(boolean down) argument [all...] |
H A D | GridView.java | 224 void fillGap(boolean down) { argument 230 if (down) { 262 * Fills the list from pos down to the end of the list view. 597 // Don't pull the top too far down 601 // Move everything down 879 * Case 1: Scrolling down. 1144 // Remember stuff we will need down below 1640 * Scrolls up or down by the number of items currently present on screen. 2040 // we are too high, slide all views down to align with bottom
|
H A D | ListView.java | 218 // we are too high, slide all views down to align with bottom 579 // need to MOVE DOWN to get it in view: move down just enough so 627 void fillGap(boolean down) { argument 629 if (down) { 651 * Fills the list from pos down to the end of the list view. 738 * down from there. This method forces mSelectedPosition to the center. 940 * Case 1: Scrolling down. 1307 * up and down from there. 1358 * everything back down. 1387 // Don't pull the top too far down [all...] |
H A D | ScrollView.java | 461 * whether the user has moved far enough from his original down touch. 466 * of the down event. 470 // If we don't have a valid id, the touch down wasn't on content. 498 * Remember location of down touch. 868 * <p>Handles scrolling in response to a "page up/down" shortcut press. This 869 * method will scroll the view by one page up or down and give the focus 876 * {@link android.view.View#FOCUS_DOWN} to go one page down 880 boolean down = direction == View.FOCUS_DOWN; 883 if (down) { 916 boolean down [all...] |
H A D | TextView.java | 3756 * into the text view, even if it is multi-line; holding down the ALT 3780 * key down/up pair to go through the normal key handling. 4342 // can hang down into the line we really want to redraw, 5278 KeyEvent down = KeyEvent.changeAction(event, KeyEvent.ACTION_DOWN); 5280 int which = doKeyDown(keyCode, down, event); 5294 // of down and up events until we have done the complete repeatCount. 5301 mInput.onKeyDown(this, (Editable)mText, keyCode, down); 5309 mMovement.onKeyDown(this, (Spannable)mText, keyCode, down); 5413 // Has to be done on key down (and not on key up) to correctly be intercepted. 5437 // implemented we need to try to dispatch as a regular down [all...] |
/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/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/include/ui/ |
H A D | KeyCharacterMap.h | 177 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time); 179 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 182 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 186 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
|
H A D | Keyboard.h | 110 extern int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState);
|
/frameworks/base/libs/ui/ |
H A D | KeyCharacterMap.cpp | 249 outEvents[i].getAction() == AKEY_EVENT_ACTION_DOWN ? "down" : "up"); 307 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) { 311 down ? AKEY_EVENT_ACTION_DOWN : AKEY_EVENT_ACTION_UP, 316 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 319 if (down) { 381 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 385 *currentMetaState = updateMetaState(keyCode, down, *currentMetaState); 386 addKey(outEvents, deviceId, keyCode, *currentMetaState, down, time); 393 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 399 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, tim 306 addKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) argument 315 addMetaKeys(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t* currentMetaState) argument 380 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 392 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...] |
H A D | Keyboard.cpp | 212 static int32_t setEphemeralMetaState(int32_t mask, bool down, int32_t oldMetaState) { argument 214 if (down) { 239 static int32_t toggleLockedMetaState(int32_t mask, bool down, int32_t oldMetaState) { argument 240 if (down) { 247 int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState) { argument 251 return setEphemeralMetaState(AMETA_ALT_LEFT_ON, down, oldMetaState); 253 return setEphemeralMetaState(AMETA_ALT_RIGHT_ON, down, oldMetaState); 255 return setEphemeralMetaState(AMETA_SHIFT_LEFT_ON, down, oldMetaState); 257 return setEphemeralMetaState(AMETA_SHIFT_RIGHT_ON, down, oldMetaState); 259 return setEphemeralMetaState(AMETA_SYM_ON, down, oldMetaStat [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | PhoneStatusBar.java | 239 boolean down = event.getAction() == KeyEvent.ACTION_DOWN; 242 if (!down) { 1479 // down by accident less, especially when pushing open a device with a keyboard
|
H A D | TrackingView.java | 45 boolean down = event.getAction() == KeyEvent.ACTION_DOWN; 48 if (down) {
|