/frameworks/base/services/jni/ |
com_android_server_power_PowerManagerService.h | 29 extern void android_server_PowerManagerService_userActivity(nsecs_t eventTime, int32_t eventType); 30 extern void android_server_PowerManagerService_wakeUp(nsecs_t eventTime); 31 extern void android_server_PowerManagerService_goToSleep(nsecs_t eventTime);
|
com_android_server_power_PowerManagerService.cpp | 86 void android_server_PowerManagerService_userActivity(nsecs_t eventTime, int32_t eventType) { 98 if (eventTime > now) { 99 eventTime = now; 102 if (gLastEventTime[eventType] + MIN_TIME_BETWEEN_USERACTIVITIES > eventTime) { 105 gLastEventTime[eventType] = eventTime; 112 nanoseconds_to_milliseconds(eventTime), eventType, 0); 117 void android_server_PowerManagerService_wakeUp(nsecs_t eventTime) { 123 nanoseconds_to_milliseconds(eventTime)); 128 void android_server_PowerManagerService_goToSleep(nsecs_t eventTime) { 134 nanoseconds_to_milliseconds(eventTime), 0) [all...] |
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
LongPressDetectorTest.java | 28 private MotionEvent motionEvent(int action, long downTime, long eventTime) { 29 return MotionEvent.obtain(downTime, eventTime, action, FAKE_COORD_X, FAKE_COORD_Y, 0); 46 final long eventTime = SystemClock.uptimeMillis(); 48 MotionEvent event = motionEvent(MotionEvent.ACTION_DOWN, downTime, eventTime); 56 final long eventTime = SystemClock.uptimeMillis(); 58 MotionEvent event = motionEvent(MotionEvent.ACTION_DOWN, downTime, eventTime); 63 event = motionEvent(cancelActionType, downTime, eventTime + 10); 101 final long eventTime = SystemClock.uptimeMillis(); 103 MotionEvent event = motionEvent(MotionEvent.ACTION_DOWN, downTime, eventTime); 109 event = motionEvent(MotionEvent.ACTION_UP, downTime, eventTime + 1000) [all...] |
ContentViewGestureHandlerTest.java | 179 private static MotionEvent motionEvent(int action, long downTime, long eventTime) { 180 return MotionEvent.obtain(downTime, eventTime, action, FAKE_COORD_X, FAKE_COORD_Y, 0); 209 final long eventTime = SystemClock.uptimeMillis(); 217 event = motionEvent(MotionEvent.ACTION_UP, downTime, eventTime + 10); 234 final long eventTime = SystemClock.uptimeMillis(); 246 downTime, eventTime + 5, MotionEvent.ACTION_MOVE, 252 downTime, eventTime + 10, MotionEvent.ACTION_MOVE, 259 downTime, eventTime + 15, MotionEvent.ACTION_UP, 295 final long eventTime = SystemClock.uptimeMillis(); 307 downTime, eventTime + 5, MotionEvent.ACTION_MOVE [all...] |
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/ |
TouchCommon.java | 62 long eventTime = SystemClock.uptimeMillis(); 63 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 79 long eventTime = SystemClock.uptimeMillis(); 80 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 95 long eventTime = SystemClock.uptimeMillis(); 97 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 101 eventTime = SystemClock.uptimeMillis(); 102 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, 139 long eventTime = SystemClock.uptimeMillis(); 141 MotionEvent event = MotionEvent.obtain(downTime, eventTime, [all...] |
/frameworks/base/services/input/ |
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; 101 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, 117 nsecs_t eventTime; 124 NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags, 138 nsecs_t eventTime; 143 NotifyDeviceResetArgs(nsecs_t eventTime, int32_t deviceId) [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/ |
MoreKeysPanel.java | 79 * @param eventTime timestamp of touch point 81 public void onMoveEvent(final int x, final int y, final int pointerId, final long eventTime); 89 * @param eventTime timestamp of touch point 91 public void onDownEvent(final int x, final int y, final int pointerId, final long eventTime); 99 * @param eventTime timestamp of touch point 101 public void onUpEvent(final int x, final int y, final int pointerId, final long eventTime);
|
PointerTracker.java | 276 public boolean isInFastTyping(final long eventTime) { 277 final long elapsedTimeSinceLastLetterTyping = eventTime - mLastLetterTypingTime; 285 public void onCodeInput(final int code, final long eventTime) { 293 || eventTime - mLastTypingTime < mStaticTimeThresholdAfterFastTyping) { 294 mLastLetterTypingTime = eventTime; 297 if (eventTime - mLastLetterTypingTime < mStaticTimeThresholdAfterFastTyping) { 299 mLastLetterTypingTime = eventTime; 302 mLastTypingTime = eventTime; 305 public void onEndBatchInput(final long eventTime) { 306 mLastBatchInputTime = eventTime; [all...] |
MoreKeysKeyboardView.java | 108 public void onDownEvent(final int x, final int y, final int pointerId, final long eventTime) { 114 public void onMoveEvent(int x, int y, final int pointerId, long eventTime) { 127 public void onUpEvent(final int x, final int y, final int pointerId, final long eventTime) { 196 final long eventTime = me.getEventTime(); 204 onDownEvent(x, y, pointerId, eventTime); 208 onUpEvent(x, y, pointerId, eventTime); 211 onMoveEvent(x, y, pointerId, eventTime);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
NonDistinctMultitouchHelper.java | 48 final long eventTime = me.getEventTime(); 58 injectMotionEvent(action, me.getX(index), me.getY(index), downTime, eventTime, 72 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime, 87 injectMotionEvent(MotionEvent.ACTION_DOWN, x, y, downTime, eventTime, 91 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime, 103 final long downTime, final long eventTime, final PointerTracker tracker, 106 downTime, eventTime, action, x, y, 0 /* metaState */);
|
PointerTrackerQueue.java | 32 public void onPhantomUpEvent(long eventTime); 97 public void releaseAllPointersOlderThan(final Element pointer, final long eventTime) { 111 element.onPhantomUpEvent(eventTime); 141 public void releaseAllPointers(final long eventTime) { 142 releaseAllPointersExcept(null, eventTime); 145 public void releaseAllPointersExcept(final Element pointer, final long eventTime) { 166 element.onPhantomUpEvent(eventTime);
|
/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/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 | 220 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { 226 && eventTime >= mLastEventTime + ASSUME_POINTER_STOPPED_TIME) { 229 (eventTime - mLastEventTime) * 0.000001f); 235 mLastEventTime = eventTime; 242 mStrategy->addMovement(eventTime, idBits, positions); 245 ALOGD("VelocityTracker: addMovement eventTime=%lld, idBits=0x%08x, activePointerId=%d", 246 eventTime, idBits.value, mActivePointerId); 312 nsecs_t eventTime; 317 eventTime = event->getHistoricalEventTime(h); 323 addMovement(eventTime, idBits, positions) [all...] |
InputTransport.cpp | 249 nsecs_t eventTime) { 253 "downTime=%lld, eventTime=%lld", 256 downTime, eventTime); 276 msg.body.key.eventTime = eventTime; 294 nsecs_t eventTime, 302 "xPrecision=%f, yPrecision=%f, downTime=%lld, eventTime=%lld, " 306 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); 335 msg.body.motion.eventTime = 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;
|
InputTransport.h | 58 nsecs_t eventTime; 76 nsecs_t eventTime; 212 nsecs_t eventTime); 236 nsecs_t eventTime, 355 nsecs_t eventTime; 361 eventTime = msg->body.motion.eventTime; 388 lastResample.eventTime = 0;
|
/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/robolectric/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/base/test-runner/src/android/test/ |
TouchUtils.java | 265 long eventTime = SystemClock.uptimeMillis(); 267 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 272 eventTime = SystemClock.uptimeMillis(); 274 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 279 eventTime = SystemClock.uptimeMillis(); 280 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); 305 long eventTime = SystemClock.uptimeMillis(); 307 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 312 eventTime = SystemClock.uptimeMillis(); 314 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL [all...] |
/external/droiddriver/src/com/google/android/droiddriver/util/ |
Events.java | 45 long eventTime = SystemClock.uptimeMillis(); 46 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 1); 55 long eventTime = SystemClock.uptimeMillis(); 56 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 1);
|
/frameworks/base/services/java/com/android/server/power/ |
PowerManagerService.java | [all...] |
/external/chromium_org/third_party/WebKit/Source/core/page/ |
AutoscrollController.h | 66 void updateDragAndDrop(Node* targetNode, const IntPoint& eventPosition, double eventTime);
|