Home
last modified time | relevance | path

Searched refs:eventTime (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/services/input/
DInputListener.cpp29 NotifyConfigurationChangedArgs::NotifyConfigurationChangedArgs(nsecs_t eventTime) : in NotifyConfigurationChangedArgs() argument
30 eventTime(eventTime) { in NotifyConfigurationChangedArgs()
35 eventTime(other.eventTime) { in NotifyConfigurationChangedArgs()
45 NotifyKeyArgs::NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, in NotifyKeyArgs() argument
49 eventTime(eventTime), deviceId(deviceId), source(source), policyFlags(policyFlags), in NotifyKeyArgs()
55 eventTime(other.eventTime), deviceId(other.deviceId), source(other.source), in NotifyKeyArgs()
69 NotifyMotionArgs::NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, in NotifyMotionArgs() argument
75 eventTime(eventTime), deviceId(deviceId), source(source), policyFlags(policyFlags), in NotifyMotionArgs()
86 eventTime(other.eventTime), deviceId(other.deviceId), source(other.source), in NotifyMotionArgs()
106 NotifySwitchArgs::NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags, in NotifySwitchArgs() argument
[all …]
DInputListener.h39 nsecs_t eventTime; member
43 NotifyConfigurationChangedArgs(nsecs_t eventTime);
55 nsecs_t eventTime; member
68 NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags,
82 nsecs_t eventTime; member
101 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags,
117 nsecs_t eventTime; member
124 NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags,
138 nsecs_t eventTime; member
143 NotifyDeviceResetArgs(nsecs_t eventTime, int32_t deviceId);
DInputDispatcher.cpp417 mAppSwitchDueTime = keyEntry->eventTime + APP_SWITCH_TIMEOUT; in enqueueInboundEventLocked()
568 return currentTime - entry->eventTime >= STALE_EVENT_TIMEOUT; in isStaleEventLocked()
643 entry->eventTime = currentTime; in synthesizeKeyRepeatLocked()
670 ALOGD("dispatchConfigurationChanged - eventTime=%lld", entry->eventTime); in dispatchConfigurationChangedLocked()
679 commandEntry->eventTime = entry->eventTime; in dispatchConfigurationChangedLocked()
686 ALOGD("dispatchDeviceReset - eventTime=%lld, deviceId=%d", entry->eventTime, entry->deviceId); in dispatchDeviceResetLocked()
716 mKeyRepeatState.nextRepeatTime = entry->eventTime + mConfig.keyRepeatTimeout; in dispatchKeyLocked()
800 entry->eventTime, entry->deviceId, entry->source, entry->policyFlags, in logOutboundKeyDetailsLocked()
870 entry->eventTime, entry->deviceId, entry->source, entry->policyFlags, in logOutboundMotionDetailsLocked()
977 entry->eventTime, mInputTargetWaitStartTime, reason); in handleTargetsNotReadyLocked()
[all …]
DInputDispatcher.h254 virtual void pokeUserActivity(nsecs_t eventTime, int32_t eventType) = 0;
433 nsecs_t eventTime; member
446 EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags);
452 ConfigurationChangedEntry(nsecs_t eventTime);
462 DeviceResetEntry(nsecs_t eventTime, int32_t deviceId);
491 KeyEntry(nsecs_t eventTime,
503 nsecs_t eventTime; member
519 MotionEntry(nsecs_t eventTime,
593 nsecs_t eventTime; member
1078 nsecs_t eventTime, nsecs_t waitStartTime, const char* reason);
/frameworks/base/libs/androidfw/
DVelocityTracker.cpp221 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement() argument
227 && eventTime >= mLastEventTime + ASSUME_POINTER_STOPPED_TIME) { in addMovement()
230 (eventTime - mLastEventTime) * 0.000001f); in addMovement()
236 mLastEventTime = eventTime; in addMovement()
243 mStrategy->addMovement(eventTime, idBits, positions); in addMovement()
247 eventTime, idBits.value, mActivePointerId); in addMovement()
313 nsecs_t eventTime; in addMovement() local
318 eventTime = event->getHistoricalEventTime(h); in addMovement()
324 addMovement(eventTime, idBits, positions); in addMovement()
327 eventTime = event->getEventTime(); in addMovement()
[all …]
DVelocityControl.cpp52 void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) { in move() argument
54 if (eventTime >= mLastMovementTime + STOP_TIME) { in move()
57 (eventTime - mLastMovementTime) * 0.000001f); in move()
62 mLastMovementTime = eventTime; in move()
69 mVelocityTracker.addMovement(eventTime, BitSet32(BitSet32::valueForBit(0)), &mRawPosition); in move()
DInputTransport.cpp243 nsecs_t eventTime) { in publishKeyEvent() argument
250 downTime, eventTime); in publishKeyEvent()
270 msg.body.key.eventTime = eventTime; in publishKeyEvent()
288 nsecs_t eventTime, in publishMotionEvent() argument
300 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent()
329 msg.body.motion.eventTime = eventTime; in publishMotionEvent()
573 nsecs_t eventTime = msg->body.motion.eventTime; in updateTouchState() local
596 if (eventTime < touchState.lastResample.eventTime) { in updateTouchState()
712 nsecs_t delta = future.eventTime - current->eventTime; in resampleTouchState()
719 alpha = float(sampleTime - current->eventTime) / delta; in resampleTouchState()
[all …]
DInput.cpp131 nsecs_t eventTime) { in initialize() argument
140 mEventTime = eventTime; in initialize()
295 nsecs_t eventTime, in initialize() argument
314 addSample(eventTime, pointerCoords); in initialize()
346 int64_t eventTime, in addSample() argument
348 mSampleEventTimes.push(eventTime); in addSample()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java265 long eventTime = SystemClock.uptimeMillis(); in tapView() local
267 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in tapView()
272 eventTime = SystemClock.uptimeMillis(); in tapView()
274 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in tapView()
279 eventTime = SystemClock.uptimeMillis(); in tapView()
280 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in tapView()
305 long eventTime = SystemClock.uptimeMillis(); in touchAndCancelView() local
307 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in touchAndCancelView()
312 eventTime = SystemClock.uptimeMillis(); in touchAndCancelView()
314 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, in touchAndCancelView()
[all …]
/frameworks/base/services/jni/
Dcom_android_server_power_PowerManagerService.cpp86 void android_server_PowerManagerService_userActivity(nsecs_t eventTime, int32_t eventType) { in android_server_PowerManagerService_userActivity() argument
98 if (eventTime > now) { in android_server_PowerManagerService_userActivity()
99 eventTime = now; in android_server_PowerManagerService_userActivity()
102 if (gLastEventTime[eventType] + MIN_TIME_BETWEEN_USERACTIVITIES > eventTime) { in android_server_PowerManagerService_userActivity()
105 gLastEventTime[eventType] = eventTime; in android_server_PowerManagerService_userActivity()
112 nanoseconds_to_milliseconds(eventTime), eventType, 0); in android_server_PowerManagerService_userActivity()
117 void android_server_PowerManagerService_wakeUp(nsecs_t eventTime) { in android_server_PowerManagerService_wakeUp() argument
123 nanoseconds_to_milliseconds(eventTime)); in android_server_PowerManagerService_wakeUp()
128 void android_server_PowerManagerService_goToSleep(nsecs_t eventTime) { in android_server_PowerManagerService_goToSleep() argument
134 nanoseconds_to_milliseconds(eventTime), 0); in android_server_PowerManagerService_goToSleep()
Dcom_android_server_power_PowerManagerService.h29 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);
/frameworks/base/include/androidfw/
DVelocityTracker.h83 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; member
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; member
DInputTransport.h58 nsecs_t eventTime; member
76 nsecs_t eventTime; member
209 nsecs_t eventTime);
233 nsecs_t eventTime,
352 nsecs_t eventTime; member
358 eventTime = msg->body.motion.eventTime; in initializeFrom()
385 lastResample.eventTime = 0; in initialize()
DVelocityControl.h91 void move(nsecs_t eventTime, float* deltaX, float* deltaY);
DInput.h304 nsecs_t eventTime);
514 nsecs_t eventTime,
522 nsecs_t eventTime,
/frameworks/base/services/java/com/android/server/power/
DPowerManagerService.java804 public void userActivity(long eventTime, int event, int flags) { in userActivity() argument
824 if (eventTime > SystemClock.uptimeMillis()) { in userActivity()
831 userActivityInternal(eventTime, event, flags, uid); in userActivity()
838 private void userActivityFromNative(long eventTime, int event, int flags) { in userActivityFromNative() argument
839 userActivityInternal(eventTime, event, flags, Process.SYSTEM_UID); in userActivityFromNative()
842 private void userActivityInternal(long eventTime, int event, int flags, int uid) { in userActivityInternal() argument
844 if (userActivityNoUpdateLocked(eventTime, event, flags, uid)) { in userActivityInternal()
850 private boolean userActivityNoUpdateLocked(long eventTime, int event, int flags, int uid) { in userActivityNoUpdateLocked() argument
852 Slog.d(TAG, "userActivityNoUpdateLocked: eventTime=" + eventTime in userActivityNoUpdateLocked()
857 if (eventTime < mLastSleepTime || eventTime < mLastWakeTime in userActivityNoUpdateLocked()
[all …]
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
DInteractionController.java273 final long eventTime = SystemClock.uptimeMillis(); in sendKeyAndWaitForEvent()
274 KeyEvent downEvent = KeyEvent.obtain(eventTime, eventTime, KeyEvent.ACTION_DOWN, in sendKeyAndWaitForEvent()
278 KeyEvent upEvent = KeyEvent.obtain(eventTime, eventTime, KeyEvent.ACTION_UP, in sendKeyAndWaitForEvent()
353 final long eventTime = SystemClock.uptimeMillis(); in touchUp() local
355 mDownTime, eventTime, MotionEvent.ACTION_UP, x, y, 1); in touchUp()
365 final long eventTime = SystemClock.uptimeMillis(); in touchMove() local
367 mDownTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 1); in touchMove()
538 final long eventTime = SystemClock.uptimeMillis(); in sendKey() local
539 KeyEvent downEvent = KeyEvent.obtain(eventTime, eventTime, KeyEvent.ACTION_DOWN, in sendKey()
543 KeyEvent upEvent = KeyEvent.obtain(eventTime, eventTime, KeyEvent.ACTION_UP, in sendKey()
/frameworks/base/core/java/android/view/
DKeyEvent.java1373 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1376 mEventTime = eventTime; in KeyEvent()
1397 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1400 mEventTime = eventTime; in KeyEvent()
1424 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1428 mEventTime = eventTime; in KeyEvent()
1454 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1458 mEventTime = eventTime; in KeyEvent()
1486 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1490 mEventTime = eventTime; in KeyEvent()
[all …]
DMotionEvent.java1430 static public MotionEvent obtain(long downTime, long eventTime, in obtain() argument
1439 downTime * NS_PER_MS, eventTime * NS_PER_MS, in obtain()
1474 static public MotionEvent obtain(long downTime, long eventTime, in obtain() argument
1485 return obtain(downTime, eventTime, action, pointerCount, pp, in obtain()
1520 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument
1540 downTime * NS_PER_MS, eventTime * NS_PER_MS, in obtain()
1580 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument
1583 return obtain(downTime, eventTime, action, x, y, pressure, size, in obtain()
1602 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument
1604 return obtain(downTime, eventTime, action, x, y, 1.0f, 1.0f, in obtain()
[all …]
/frameworks/base/libs/androidfw/tests/
DInputPublisherAndConsumer_test.cpp82 const nsecs_t eventTime = 4; in PublishAndConsumeKeyEvent() local
85 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); in PublishAndConsumeKeyEvent()
111 EXPECT_EQ(eventTime, keyEvent->getEventTime()); in PublishAndConsumeKeyEvent()
145 const nsecs_t eventTime = 4; in PublishAndConsumeMotionEvent() local
167 downTime, eventTime, pointerCount, in PublishAndConsumeMotionEvent()
195 EXPECT_EQ(eventTime, motionEvent->getEventTime()); in PublishAndConsumeMotionEvent()
/frameworks/base/core/java/com/android/internal/widget/
DPasswordEntryKeyboardHelper.java193 long eventTime = SystemClock.uptimeMillis(); in sendDownUpKeyEvents() local
196 new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, keyEventCode, 0, 0, in sendDownUpKeyEvents()
200 new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_UP, keyEventCode, 0, 0, in sendDownUpKeyEvents()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java803 private void detectAndSendKey(int index, int x, int y, long eventTime) { in detectAndSendKey() argument
828 mLastTapTime = eventTime; in detectAndSendKey()
1228 final long eventTime = me.getEventTime(); local
1269 checkMultiTap(eventTime, keyIndex);
1295 mCurrentKeyTime = eventTime - mDownTime;
1298 mCurrentKeyTime += eventTime - mLastMoveTime;
1306 mCurrentKeyTime + eventTime - mLastMoveTime;
1322 mLastMoveTime = eventTime;
1328 mCurrentKeyTime += eventTime - mLastMoveTime;
1332 mLastKeyTime = mCurrentKeyTime + eventTime - mLastMoveTime;
[all …]
/frameworks/base/core/jni/
Dandroid_view_KeyEvent.cpp85 jlong eventTime = env->GetLongField(eventObj, gKeyEventClassInfo.mEventTime); in android_view_KeyEvent_toNative() local
89 milliseconds_to_nanoseconds(eventTime)); in android_view_KeyEvent_toNative()
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java400 long eventTime = SystemClock.uptimeMillis(); in performEditorAction() local
401 sendKeyEvent(new KeyEvent(eventTime, eventTime, in performEditorAction()
406 sendKeyEvent(new KeyEvent(SystemClock.uptimeMillis(), eventTime, in performEditorAction()
/frameworks/base/services/input/tests/
DInputReader_test.cpp1151 ASSERT_EQ(ARBITRARY_TIME, args.eventTime); in TEST_F()
1234 ASSERT_EQ(ARBITRARY_TIME, resetArgs.eventTime); in TEST_F()
1304 ASSERT_EQ(ARBITRARY_TIME, resetArgs.eventTime); in TEST_F()
1502 ASSERT_EQ(ARBITRARY_TIME, args.eventTime); in TEST_F()
1561 ASSERT_EQ(ARBITRARY_TIME, args.eventTime); in TEST_F()
1576 ASSERT_EQ(ARBITRARY_TIME + 1, args.eventTime); in TEST_F()
1593 ASSERT_EQ(ARBITRARY_TIME, args.eventTime); in TEST_F()
1610 ASSERT_EQ(ARBITRARY_TIME + 1, args.eventTime); in TEST_F()
1627 ASSERT_EQ(ARBITRARY_TIME, args.eventTime); in TEST_F()
1644 ASSERT_EQ(ARBITRARY_TIME + 1, args.eventTime); in TEST_F()
[all …]

12