/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
TypingTimeRecorder.java | 32 public boolean isInFastTyping(final long eventTime) { 33 final long elapsedTimeSinceLastLetterTyping = eventTime - mLastLetterTypingTime; 41 public void onCodeInput(final int code, final long eventTime) { 48 || eventTime - mLastTypingTime < mStaticTimeThresholdAfterFastTyping) { 49 mLastLetterTypingTime = eventTime; 52 if (eventTime - mLastLetterTypingTime < mStaticTimeThresholdAfterFastTyping) { 54 mLastLetterTypingTime = eventTime; 57 mLastTypingTime = eventTime; 60 public void onEndBatchInput(final long eventTime) { 61 mLastBatchInputTime = eventTime; [all...] |
NonDistinctMultitouchHelper.java | 50 final long eventTime = me.getEventTime(); 60 injectMotionEvent(action, me.getX(index), me.getY(index), downTime, eventTime, 74 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime, 89 injectMotionEvent(MotionEvent.ACTION_DOWN, x, y, downTime, eventTime, 93 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime, 105 final long downTime, final long eventTime, final PointerTracker tracker, 108 downTime, eventTime, action, x, y, 0 /* metaState */);
|
PointerTrackerQueue.java | 30 public void onPhantomUpEvent(long eventTime); 95 public void releaseAllPointersOlderThan(final Element pointer, final long eventTime) { 109 element.onPhantomUpEvent(eventTime); 139 public void releaseAllPointers(final long eventTime) { 140 releaseAllPointersExcept(null, eventTime); 143 public void releaseAllPointersExcept(final Element pointer, final long eventTime) { 164 element.onPhantomUpEvent(eventTime);
|
/frameworks/native/services/inputflinger/ |
InputListener.cpp | 29 NotifyConfigurationChangedArgs::NotifyConfigurationChangedArgs(nsecs_t eventTime) : 30 eventTime(eventTime) { 35 eventTime(other.eventTime) { 45 NotifyKeyArgs::NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, 49 eventTime(eventTime), deviceId(deviceId), source(source), policyFlags(policyFlags), 55 eventTime(other.eventTime), deviceId(other.deviceId), source(other.source) [all...] |
InputListener.h | 39 nsecs_t eventTime; 43 NotifyConfigurationChangedArgs(nsecs_t eventTime); 55 nsecs_t eventTime; 68 NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, 82 nsecs_t eventTime; 102 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, 119 nsecs_t eventTime; 126 NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags, 140 nsecs_t eventTime; 145 NotifyDeviceResetArgs(nsecs_t eventTime, int32_t deviceId) [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
TouchUtils.java | 44 long eventTime = SystemClock.uptimeMillis(); 46 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 51 eventTime = SystemClock.uptimeMillis(); 53 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 58 eventTime = SystemClock.uptimeMillis(); 59 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); 75 long eventTime = SystemClock.uptimeMillis(); 77 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 82 eventTime = SystemClock.uptimeMillis(); 84 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
PointerTrackerQueueTests.java | 48 public void onPhantomUpEvent(long eventTime) { 50 mPhantomUpEventTime = eventTime + sPhantomUpCount; 168 final long eventTime = 123; 170 mQueue.releaseAllPointers(eventTime); 174 assertEquals(eventTime + 1, mElement1.mPhantomUpEventTime); 175 assertEquals(eventTime + 2, mElement2.mPhantomUpEventTime); 176 assertEquals(eventTime + 3, mElement3.mPhantomUpEventTime); 177 assertEquals(eventTime + 4, mElement4.mPhantomUpEventTime); 186 final long eventTime = 123; 188 mQueue.releaseAllPointersOlderThan(mElement1, eventTime); [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyKeyEvent.java | 45 public MonkeyKeyEvent(long downTime, long eventTime, int action, 50 mEventTime = eventTime; 87 public void setEventTime(long eventTime) { 91 mEventTime = eventTime; 121 long eventTime = mEventTime; 122 if (eventTime <= 0) { 123 eventTime = SystemClock.uptimeMillis(); 127 downTime = eventTime; 129 keyEvent = new KeyEvent(downTime, eventTime, mAction, mKeyCode,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
PointerTracker.java | 277 final int y, final long eventTime, final boolean isKeyRepeat) { 293 sTypingTimeRecorder.onCodeInput(code, eventTime); 414 private static boolean needsToSuppressKeyPreviewPopup(final long eventTime) { 416 return sTypingTimeRecorder.needsToSuppressKeyPreviewPopup(eventTime); 419 private void setPressedKeyGraphics(@Nullable final Key key, final long eventTime) { 431 final boolean noKeyPreview = sInGesture || needsToSuppressKeyPreviewPopup(eventTime); 472 private Key onDownKey(final int x, final int y, final long eventTime) { 473 mDownTime = eventTime; 535 public void onUpdateBatchInput(final InputPointers aggregatedPointers, final long eventTime) { 551 public void onEndBatchInput(final InputPointers aggregatedPointers, final long eventTime) { [all...] |
MoreKeysPanel.java | 78 * @param eventTime timestamp of touch point 80 public void onMoveEvent(final int x, final int y, final int pointerId, final long eventTime); 88 * @param eventTime timestamp of touch point 90 public void onDownEvent(final int x, final int y, final int pointerId, final long eventTime); 98 * @param eventTime timestamp of touch point 100 public void onUpEvent(final int x, final int y, final int pointerId, final long eventTime);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
SeekBarTest.java | 66 long eventTime = SystemClock.uptimeMillis(); 69 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, 79 eventTime = SystemClock.uptimeMillis(); 80 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 88 eventTime = SystemClock.uptimeMillis(); 89 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP,
|
/external/droiddriver/src/io/appium/droiddriver/util/ |
Events.java | 54 long eventTime = SystemClock.uptimeMillis(); 55 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 1); 67 long eventTime = SystemClock.uptimeMillis(); 68 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 1); 76 private static KeyEvent newKeyEvent(long downTime, long eventTime, int action, int keyCode, 78 KeyEvent event = new KeyEvent(downTime, eventTime, action, keyCode, 0 /* repeat */, metaState);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
MoreKeysKeyboardAccessibilityDelegate.java | 72 final long eventTime = event.getEventTime(); 73 mKeyboardView.onDownEvent(x, y, pointerId, eventTime); 83 final long eventTime = event.getEventTime(); 84 mKeyboardView.onMoveEvent(x, y, pointerId, eventTime); 101 final long eventTime = event.getEventTime(); 109 mKeyboardView.onUpEvent(x, y, pointerId, eventTime);
|
/frameworks/native/libs/input/ |
VelocityTracker.cpp | 222 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { 228 && eventTime >= mLastEventTime + ASSUME_POINTER_STOPPED_TIME) { 231 (eventTime - mLastEventTime) * 0.000001f); 237 mLastEventTime = eventTime; 244 mStrategy->addMovement(eventTime, idBits, positions); 247 ALOGD("VelocityTracker: addMovement eventTime=%lld, idBits=0x%08x, activePointerId=%d", 248 eventTime, idBits.value, mActivePointerId); 314 nsecs_t eventTime; 319 eventTime = event->getHistoricalEventTime(h); 325 addMovement(eventTime, idBits, positions) [all...] |
VelocityControl.cpp | 52 void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) { 54 if (eventTime >= mLastMovementTime + STOP_TIME) { 57 (eventTime - mLastMovementTime) * 0.000001f); 62 mLastMovementTime = eventTime; 69 mVelocityTracker.addMovement(eventTime, BitSet32(BitSet32::valueForBit(0)), &mRawPosition);
|
InputTransport.cpp | 254 nsecs_t eventTime) { 258 "downTime=%lld, eventTime=%lld", 261 downTime, eventTime); 281 msg.body.key.eventTime = eventTime; 300 nsecs_t eventTime, 308 "xPrecision=%f, yPrecision=%f, downTime=%lld, eventTime=%lld, " 312 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); 342 msg.body.motion.eventTime = eventTime; [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowMotionEvent.java | 25 private long eventTime; 30 public static MotionEvent obtain(long downTime, long eventTime, int action, float x, float y, int metaState) { 40 shadowMotionEvent.eventTime = eventTime; 94 return eventTime;
|
/frameworks/native/include/input/ |
VelocityTracker.h | 83 void addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions); 130 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits, 162 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits, 176 nsecs_t eventTime; 205 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits, 223 void initState(State& state, nsecs_t eventTime, float xpos, float ypos) const; 224 void updateState(State& state, nsecs_t eventTime, float xpos, float ypos) const; 239 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits, 254 nsecs_t eventTime;
|
/frameworks/base/services/core/jni/ |
com_android_server_power_PowerManagerService.h | 27 extern void android_server_PowerManagerService_userActivity(nsecs_t eventTime, int32_t eventType);
|
com_android_server_power_PowerManagerService.cpp | 70 void android_server_PowerManagerService_userActivity(nsecs_t eventTime, int32_t eventType) { 82 if (eventTime > now) { 83 eventTime = now; 86 if (gLastEventTime[eventType] + MIN_TIME_BETWEEN_USERACTIVITIES > eventTime) { 89 gLastEventTime[eventType] = eventTime; 96 nanoseconds_to_milliseconds(eventTime), eventType, 0);
|
/packages/apps/Music/src/com/android/music/ |
MediaButtonIntentReceiver.java | 76 long eventtime = event.getEventTime(); local 111 && eventtime - mLastClickTime > LONG_PRESS_DELAY) { 126 eventtime - mLastClickTime < 300) { 133 mLastClickTime = eventtime;
|
/frameworks/base/test-runner/src/android/test/ |
TouchUtils.java | 259 long eventTime = SystemClock.uptimeMillis(); 261 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 266 eventTime = SystemClock.uptimeMillis(); 268 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 273 eventTime = SystemClock.uptimeMillis(); 274 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); 299 long eventTime = SystemClock.uptimeMillis(); 301 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 306 eventTime = SystemClock.uptimeMillis(); 308 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL [all...] |
/cts/libs/deviceutil/src/android/cts/util/ |
KeyEventUtil.java | 164 long eventTime = event.getEventTime(); 176 if (eventTime == 0) { 177 eventTime = SystemClock.uptimeMillis(); 180 downTime = eventTime; 183 final KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount,
|
/frameworks/native/libs/input/tests/ |
InputPublisherAndConsumer_test.cpp | 83 const nsecs_t eventTime = 4; 86 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); 112 EXPECT_EQ(eventTime, keyEvent->getEventTime()); 147 const nsecs_t eventTime = 4; 169 downTime, eventTime, pointerCount, 197 EXPECT_EQ(eventTime, motionEvent->getEventTime());
|
StructLayout_test.cpp | 38 CHECK_OFFSET(InputMessage::Body::Key, eventTime, 8); 50 CHECK_OFFSET(InputMessage::Body::Motion, eventTime, 8);
|