Home
last modified time | relevance | path

Searched refs:eventTime (Results 1 – 25 of 40) 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()
570 return currentTime - entry->eventTime >= STALE_EVENT_TIMEOUT; in isStaleEventLocked()
645 entry->eventTime = currentTime; in synthesizeKeyRepeatLocked()
672 ALOGD("dispatchConfigurationChanged - eventTime=%lld", entry->eventTime); in dispatchConfigurationChangedLocked()
681 commandEntry->eventTime = entry->eventTime; in dispatchConfigurationChangedLocked()
688 ALOGD("dispatchDeviceReset - eventTime=%lld, deviceId=%d", entry->eventTime, entry->deviceId); in dispatchDeviceResetLocked()
718 mKeyRepeatState.nextRepeatTime = entry->eventTime + mConfig.keyRepeatTimeout; in dispatchKeyLocked()
802 entry->eventTime, entry->deviceId, entry->source, entry->policyFlags, in logOutboundKeyDetailsLocked()
872 entry->eventTime, entry->deviceId, entry->source, entry->policyFlags, in logOutboundMotionDetailsLocked()
979 entry->eventTime, mInputTargetWaitStartTime, reason); in handleTargetsNotReadyLocked()
[all …]
DInputDispatcher.h256 virtual void pokeUserActivity(nsecs_t eventTime, int32_t eventType) = 0;
435 nsecs_t eventTime; member
448 EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags);
454 ConfigurationChangedEntry(nsecs_t eventTime);
464 DeviceResetEntry(nsecs_t eventTime, int32_t deviceId);
493 KeyEntry(nsecs_t eventTime,
505 nsecs_t eventTime; member
521 MotionEntry(nsecs_t eventTime,
595 nsecs_t eventTime; member
1080 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.cpp248 nsecs_t eventTime) { in publishKeyEvent() argument
255 downTime, eventTime); in publishKeyEvent()
275 msg.body.key.eventTime = eventTime; in publishKeyEvent()
293 nsecs_t eventTime, in publishMotionEvent() argument
305 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent()
334 msg.body.motion.eventTime = eventTime; in publishMotionEvent()
578 nsecs_t eventTime = msg->body.motion.eventTime; in updateTouchState() local
601 if (eventTime < touchState.lastResample.eventTime) { in updateTouchState()
717 nsecs_t delta = future.eventTime - current->eventTime; in resampleTouchState()
724 alpha = float(sampleTime - current->eventTime) / delta; in resampleTouchState()
[all …]
DInput.cpp135 nsecs_t eventTime) { in initialize() argument
144 mEventTime = eventTime; in initialize()
299 nsecs_t eventTime, in initialize() argument
318 addSample(eventTime, pointerCoords); in initialize()
350 int64_t eventTime, in addSample() argument
352 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
212 nsecs_t eventTime);
236 nsecs_t eventTime,
355 nsecs_t eventTime; member
361 eventTime = msg->body.motion.eventTime; in initializeFrom()
388 lastResample.eventTime = 0; in initialize()
DVelocityControl.h91 void move(nsecs_t eventTime, float* deltaX, float* deltaY);
DInput.h307 nsecs_t eventTime);
517 nsecs_t eventTime,
525 nsecs_t eventTime,
/frameworks/base/services/java/com/android/server/power/
DPowerManagerService.java829 public void userActivity(long eventTime, int event, int flags) { in userActivity() argument
849 if (eventTime > SystemClock.uptimeMillis()) { in userActivity()
856 userActivityInternal(eventTime, event, flags, uid); in userActivity()
863 private void userActivityFromNative(long eventTime, int event, int flags) { in userActivityFromNative() argument
864 userActivityInternal(eventTime, event, flags, Process.SYSTEM_UID); in userActivityFromNative()
867 private void userActivityInternal(long eventTime, int event, int flags, int uid) { in userActivityInternal() argument
869 if (userActivityNoUpdateLocked(eventTime, event, flags, uid)) { in userActivityInternal()
875 private boolean userActivityNoUpdateLocked(long eventTime, int event, int flags, int uid) { in userActivityNoUpdateLocked() argument
877 Slog.d(TAG, "userActivityNoUpdateLocked: eventTime=" + eventTime in userActivityNoUpdateLocked()
882 if (eventTime < mLastSleepTime || eventTime < mLastWakeTime in userActivityNoUpdateLocked()
[all …]
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java191 final long eventTime = SystemClock.uptimeMillis(); in sendKeyAndWaitForEvent()
192 KeyEvent downEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, in sendKeyAndWaitForEvent()
196 KeyEvent upEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_UP, in sendKeyAndWaitForEvent()
319 final long eventTime = SystemClock.uptimeMillis();
321 mDownTime, eventTime, MotionEvent.ACTION_UP, x, y, 1);
331 final long eventTime = SystemClock.uptimeMillis();
333 mDownTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 1);
548 final long eventTime = SystemClock.uptimeMillis();
549 KeyEvent downEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN,
553 KeyEvent upEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_UP,
/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/android/view/
DKeyEvent.java1387 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1390 mEventTime = eventTime; in KeyEvent()
1411 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1414 mEventTime = eventTime; in KeyEvent()
1438 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1442 mEventTime = eventTime; in KeyEvent()
1468 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1472 mEventTime = eventTime; in KeyEvent()
1500 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1504 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/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/policy/src/com/android/internal/policy/impl/keyguard/
DKeyguardUpdateMonitorCallback.java132 public void onMusicPlaybackStateChanged(int playbackState, long eventTime) { } in onMusicPlaybackStateChanged() argument
/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.java401 long eventTime = SystemClock.uptimeMillis(); in performEditorAction() local
402 sendKeyEvent(new KeyEvent(eventTime, eventTime, in performEditorAction()
407 sendKeyEvent(new KeyEvent(SystemClock.uptimeMillis(), eventTime, in performEditorAction()

12