/frameworks/base/libs/androidfw/ |
H A D | Keyboard.cpp | 207 static int32_t setEphemeralMetaState(int32_t mask, bool down, int32_t oldMetaState) { argument 209 if (down) { 234 static int32_t toggleLockedMetaState(int32_t mask, bool down, int32_t oldMetaState) { argument 235 if (down) { 242 int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState) { argument 246 return setEphemeralMetaState(AMETA_ALT_LEFT_ON, down, oldMetaState); 248 return setEphemeralMetaState(AMETA_ALT_RIGHT_ON, down, oldMetaState); 250 return setEphemeralMetaState(AMETA_SHIFT_LEFT_ON, down, oldMetaState); 252 return setEphemeralMetaState(AMETA_SHIFT_RIGHT_ON, down, oldMetaState); 254 return setEphemeralMetaState(AMETA_SYM_ON, down, oldMetaStat [all...] |
H A D | KeyCharacterMap.cpp | 323 outEvents[i].getAction() == AKEY_EVENT_ACTION_DOWN ? "down" : "up"); 443 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) { 447 down ? AKEY_EVENT_ACTION_DOWN : AKEY_EVENT_ACTION_UP, 452 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 455 if (down) { 517 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 521 *currentMetaState = updateMetaState(keyCode, down, *currentMetaState); 522 addKey(outEvents, deviceId, keyCode, *currentMetaState, down, time); 529 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 535 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, tim 442 addKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) argument 451 addMetaKeys(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t* currentMetaState) argument 516 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 528 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/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 | 307 // time and down time to prevent subsequent transformations being confused 308 // by stale events. After the cached events, which always have a down, are 309 // injected we need to also update the down time of all subsequent non cached 484 throw new IllegalStateException("Should have one pointer down."); 737 private void onActionTapAndHold(MotionEvent down, int policyFlags) { argument 744 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/include/androidfw/ |
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 | 111 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarWindowView.java | 70 boolean down = event.getAction() == KeyEvent.ACTION_DOWN; 73 if (!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 | 65 protected boolean down(TextView widget, Spannable buffer) { method in class:LinkMovementMethod 70 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 | 99 protected boolean down(TextView widget, Spannable buffer) { method in class:ArrowKeyMovementMethod
|
/frameworks/base/services/input/ |
H A D | InputReader.cpp | 157 // Returns true if the pointer should be reported as being down given the specified 1992 dump.appendFormat(INDENT3 "KeyDowns: %d keys currently down\n", mKeyDowns.size()); 2090 void KeyboardInputMapper::processKey(nsecs_t when, bool down, int32_t keyCode, argument 2093 if (down) { 2099 // Add key down. 2105 // key down 2120 // Remove key down. 2127 // key was not actually down 2128 ALOGI("Dropping key up from device %s because the key was not down. " 2137 int32_t newMetaState = updateMetaState(keyCode, down, oldMetaStat 2412 bool down = isPointerDown(currentButtonState); local 4326 bool down = mPointerGesture.currentGestureMode == PointerGesture::TAP local 4824 bool down; local 5250 bool down, hovering; local 5284 bool down, hovering; local 5335 dispatchPointerSimple(nsecs_t when, uint32_t policyFlags, bool down, bool hovering) argument [all...] |
H A D | InputReader.h | 169 // to noise from a finger resting on the touch pad (perhaps just pressing it down). 173 // The time between down and up must be less than this to be considered a tap. 177 // The time between the previous tap's up and the next down must be less than 181 // Note that the previous tap will be held down for this entire duration so this 185 // The distance in pixels that the pointer is allowed to move from initial down 189 // Time after the first touch points go down to settle on an initial centroid. 190 // This is intended to be enough time to handle cases where the user puts down two 1032 Vector<KeyDown> mKeyDowns; // keys that are down 1034 nsecs_t mDownTime; // time of most recent key down 1057 void processKey(nsecs_t when, bool down, int32_ 1416 bool down; member in struct:android::TouchInputMapper::CurrentVirtualKeyState 1589 bool down; member in struct:android::TouchInputMapper::PointerSimple [all...] |
H A D | InputDispatcher.cpp | 240 // Wait for callback or timeout or wake. (make sure we round up, not down) 714 // Not a repeat. Save key down state in case we do see a repeat later. 1163 bool down = maskedAction == AMOTION_EVENT_ACTION_DOWN; local 1164 if (switchedDevice && mTouchState.down && !down) { 1166 ALOGD("Dropping event because a pointer for a different device is already down."); 1175 mTempTouchState.down = down; 1185 /* Case 1: New splittable pointer going down, or need target for hover or scroll. */ 1265 // There is no touched window. If this is an initial down even [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | PhoneWindowManager.java | 1792 final boolean down = event.getAction() == KeyEvent.ACTION_DOWN; 1796 Log.d(TAG, "interceptKeyTi keyCode=" + keyCode + " down=" + down + " repeatCount=" 1801 // If we think we might have a volume down & power key chord on the way 1814 if (!down) { 1829 if (!down) { 1892 if (down) { 1918 if (down && repeatCount == 0) { 1942 if (down) { 1956 if (down [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ScrollView.java | 477 * whether the user has moved far enough from his original down touch. 482 * of the down event. 486 // If we don't have a valid id, the touch down wasn't on content. 524 * Remember location of down touch. 922 * <p>Handles scrolling in response to a "page up/down" shortcut press. This 923 * method will scroll the view by one page up or down and give the focus 930 * {@link android.view.View#FOCUS_DOWN} to go one page down 934 boolean down = direction == View.FOCUS_DOWN; 937 if (down) { 970 boolean down [all...] |
H A D | ListView.java | 220 // we are too high, slide all views down to align with bottom 581 // need to MOVE DOWN to get it in view: move down just enough so 629 void fillGap(boolean down) { argument 631 if (down) { 653 * Fills the list from pos down to the end of the list view. 741 * down from there. This method forces mSelectedPosition to the center. 943 * Case 1: Scrolling down. 1309 * up and down from there. 1360 * everything back down. 1389 // Don't pull the top too far down [all...] |
H A D | AbsListView.java | 139 * Indicates we have waited for everything we can wait for, but the user's finger is still down 346 * The down scroll indicator 358 * The position of the view that received the down motion event 363 * The offset to the top of the mMotionPosition view when the down motion event was received 373 * The X value associated with the the down motion event 378 * The Y value associated with the the down motion event 2502 public void setScrollIndicators(View up, View down) { argument 2504 mScrollDown = down; 4055 // (e.g. finger moving down means list is moving towards the top) 4791 * began. Positive numbers mean the user's finger is moving down th 4982 fillGap(boolean down) argument [all...] |
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | InputMethodService.java | 237 public static final int BACK_DISPOSITION_WILL_DISMISS = 2; // down 1743 * Override this to intercept key down events before they are processed by the 1901 KeyEvent down = KeyEvent.changeAction(event, KeyEvent.ACTION_DOWN); 1903 (Spannable)eet.getText(), keyCode, down)) { 1909 (Spannable)eet.getText(), keyCode, down); 1934 * 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. 1182 // Convert multi-pointer up/down events to single up/down events to 1191 // Send a down event for the latest pointer 1192 MotionEvent down = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 1194 result = onModifiedTouchEvent(down, false); 1195 down.recycle(); 1213 // Don't do anything when 2 pointers are down and moving.
|