/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 explicit 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; 109 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, 126 nsecs_t eventTime; 133 NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags, 147 nsecs_t eventTime; 152 NotifyDeviceResetArgs(nsecs_t eventTime, int32_t deviceId) [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...] |
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
TouchUtils.java | 42 long eventTime = SystemClock.uptimeMillis(); 44 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 49 eventTime = SystemClock.uptimeMillis(); 51 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 56 eventTime = SystemClock.uptimeMillis(); 57 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); 73 long eventTime = SystemClock.uptimeMillis(); 75 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 80 eventTime = SystemClock.uptimeMillis(); 82 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
GestureLauncherServiceTest.java | 175 long eventTime = INITIAL_EVENT_TIME_MILLIS + 177 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, 186 verify(mMetricsLogger).histogram("power_double_tap_interval", (int) eventTime); 195 long eventTime = INITIAL_EVENT_TIME_MILLIS; 196 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, 206 eventTime += interval; 207 keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, 239 long eventTime = INITIAL_EVENT_TIME_MILLIS; 240 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, 250 eventTime += interval [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,
|
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/ |
ScrollManagerTest.java | 126 long eventTime = SystemClock.uptimeMillis(); 134 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 140 eventTime = SystemClock.uptimeMillis(); 141 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 0); 145 eventTime = SystemClock.uptimeMillis(); 146 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); 153 long eventTime = SystemClock.uptimeMillis(); 164 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 171 eventTime = SystemClock.uptimeMillis(); 172 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 0) [all...] |
/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...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
SeekBarTest.java | 87 long eventTime = SystemClock.uptimeMillis(); 90 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, 101 eventTime = SystemClock.uptimeMillis(); 102 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 111 eventTime = SystemClock.uptimeMillis(); 112 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/base/cmds/statsd/src/metrics/duration_helper/ |
MaxDurationTracker.h | 41 unique_ptr<DurationTracker> clone(const int64_t eventTime) override; 43 void noteStart(const HashableDimensionKey& key, bool condition, const int64_t eventTime, 45 void noteStop(const HashableDimensionKey& key, const int64_t eventTime, 47 void noteStopAll(const int64_t eventTime) override;
|
OringDurationTracker.h | 40 unique_ptr<DurationTracker> clone(const int64_t eventTime) override; 42 void noteStart(const HashableDimensionKey& key, bool condition, const int64_t eventTime, 44 void noteStop(const HashableDimensionKey& key, const int64_t eventTime, 46 void noteStopAll(const int64_t eventTime) override;
|
MaxDurationTracker.cpp | 44 unique_ptr<DurationTracker> MaxDurationTracker::clone(const int64_t eventTime) { 48 it->second.lastStartTime = eventTime; 83 const int64_t eventTime, const ConditionKey& conditionKey) { 108 duration.lastStartTime = eventTime; 109 startAnomalyAlarm(eventTime); 117 void MaxDurationTracker::noteStop(const HashableDimensionKey& key, const int64_t eventTime, 133 stopAnomalyAlarm(eventTime); 135 int64_t durationTime = eventTime - duration.lastStartTime; 137 (long long)duration.lastStartTime, (long long)eventTime, 143 startAnomalyAlarm(eventTime); [all...] |
/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; 274 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits [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;
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowMotionEvent.java | 20 private long eventTime; 26 public static MotionEvent obtain(long downTime, long eventTime, int action, float x, float y, int metaState) { 36 shadowMotionEvent.eventTime = eventTime; 95 return eventTime;
|
/frameworks/native/libs/input/ |
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);
|
VelocityTracker.cpp | 228 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { 234 && eventTime >= mLastEventTime + ASSUME_POINTER_STOPPED_TIME) { 237 (eventTime - mLastEventTime) * 0.000001f); 243 mLastEventTime = eventTime; 250 mStrategy->addMovement(eventTime, idBits, positions); 253 ALOGD("VelocityTracker: addMovement eventTime=%" PRId64 ", idBits=0x%08x, activePointerId=%d", 254 eventTime, idBits.value, mActivePointerId); 320 nsecs_t eventTime; 325 eventTime = event->getHistoricalEventTime(h); 331 addMovement(eventTime, idBits, positions) [all...] |
/packages/services/Car/service/src/com/android/car/hal/ |
InputHalService.java | 129 long eventTime = SystemClock.uptimeMillis(); 132 mKeyDownTimes.put(code, eventTime); 136 ? mKeyDownTimes.get(code, eventTime) : eventTime; 140 eventTime,
|
/frameworks/base/core/tests/coretests/src/android/view/ |
PinchZoomAction.java | 83 long eventTime = startTime; 87 eventTime, MotionEvent.ACTION_DOWN, 1, pointerProperties, pointerCoords, 90 eventTime = SystemClock.uptimeMillis(); 91 final MotionEvent secondFingerEvent = MotionEvent.obtain(startTime, eventTime, 124 eventTime = SystemClock.uptimeMillis(); 131 final MotionEvent event = MotionEvent.obtain(startTime, eventTime, 148 eventTime = SystemClock.uptimeMillis(); 151 final MotionEvent secondFingerUpEvent = MotionEvent.obtain(startTime, eventTime, 164 eventTime = SystemClock.uptimeMillis(); 166 final MotionEvent firstFingerUpEvent = MotionEvent.obtain(startTime, eventTime, [all...] |
/frameworks/base/services/core/jni/ |
com_android_server_power_PowerManagerService.h | 27 extern void android_server_PowerManagerService_userActivity(nsecs_t eventTime, int32_t eventType);
|