/frameworks/native/services/inputflinger/ |
D | InputListener.cpp | 36 NotifyConfigurationChangedArgs::NotifyConfigurationChangedArgs(int32_t id, nsecs_t eventTime) in NotifyConfigurationChangedArgs() argument 37 : NotifyArgs(id, eventTime) {} in NotifyConfigurationChangedArgs() 41 : NotifyArgs(other.id, other.eventTime) {} in NotifyConfigurationChangedArgs() 44 return id == rhs.id && eventTime == rhs.eventTime; in operator ==() 54 NotifyKeyArgs::NotifyKeyArgs(int32_t id, nsecs_t eventTime, int32_t deviceId, uint32_t source, in NotifyKeyArgs() argument 57 : NotifyArgs(id, eventTime), in NotifyKeyArgs() 70 : NotifyArgs(other.id, other.eventTime), in NotifyKeyArgs() 83 return id == rhs.id && eventTime == rhs.eventTime && deviceId == rhs.deviceId && in operator ==() 96 NotifyMotionArgs::NotifyMotionArgs(int32_t id, nsecs_t eventTime, int32_t deviceId, uint32_t source, in NotifyMotionArgs() argument 106 : NotifyArgs(id, eventTime), in NotifyMotionArgs() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | GestureLauncherServiceTest.java | 178 long eventTime = INITIAL_EVENT_TIME_MILLIS + in testInterceptPowerKeyDown_firstPowerDownCameraPowerGestureOnInteractive() local 180 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_firstPowerDownCameraPowerGestureOnInteractive() 189 verify(mMetricsLogger).histogram("power_double_tap_interval", (int) eventTime); in testInterceptPowerKeyDown_firstPowerDownCameraPowerGestureOnInteractive() 198 long eventTime = INITIAL_EVENT_TIME_MILLIS; in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() local 199 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() 209 eventTime += interval; in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() 210 keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() 242 long eventTime = INITIAL_EVENT_TIME_MILLIS; in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() local 243 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() 253 eventTime += interval; in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | ClassifierTest.java | 81 MotionEvent appendDownEvent(float x, float y, long eventTime) { in appendDownEvent() argument 82 return appendMotionEvent(MotionEvent.ACTION_DOWN, x, y, eventTime); in appendDownEvent() 89 MotionEvent appendMoveEvent(float x, float y, long eventTime) { in appendMoveEvent() argument 90 return appendMotionEvent(MotionEvent.ACTION_MOVE, x, y, eventTime); in appendMoveEvent() 98 MotionEvent appendUpEvent(float x, float y, long eventTime) { in appendUpEvent() argument 99 return appendMotionEvent(MotionEvent.ACTION_UP, x, y, eventTime); in appendUpEvent() 104 long eventTime = mMotionEvents.isEmpty() ? 1 : mMotionEvents.get( in appendMotionEvent() local 106 return appendMotionEvent(actionType, x, y, eventTime); in appendMotionEvent() 109 private MotionEvent appendMotionEvent(int actionType, float x, float y, long eventTime) { in appendMotionEvent() argument 113 MotionEvent motionEvent = MotionEvent.obtain(1, eventTime, actionType, x, y, in appendMotionEvent()
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 230 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement() argument 236 && eventTime >= mLastEventTime + ASSUME_POINTER_STOPPED_TIME) { in addMovement() 239 (eventTime - mLastEventTime) * 0.000001f); in addMovement() 245 mLastEventTime = eventTime; in addMovement() 252 mStrategy->addMovement(eventTime, idBits, positions); in addMovement() 256 eventTime, idBits.value, mActivePointerId); in addMovement() 322 nsecs_t eventTime; in addMovement() local 327 eventTime = event->getHistoricalEventTime(h); in addMovement() 333 addMovement(eventTime, idBits, positions); in addMovement() 336 eventTime = event->getEventTime(); in addMovement() [all …]
|
D | VelocityControl.cpp | 52 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()
|
D | InputTransport.cpp | 145 msg->body.key.eventTime = body.key.eventTime; in getSanitizedCopy() 176 msg->body.motion.eventTime = body.motion.eventTime; in getSanitizedCopy() 445 nsecs_t eventTime) { in publishKeyEvent() argument 456 metaState, repeatCount, downTime, eventTime); in publishKeyEvent() 479 msg.body.key.eventTime = eventTime; in publishKeyEvent() 489 float yCursorPosition, nsecs_t downTime, nsecs_t eventTime, uint32_t pointerCount, in publishMotionEvent() argument 508 xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent() 546 msg.body.motion.eventTime = eventTime; in publishMotionEvent() 903 nsecs_t eventTime = msg.body.motion.eventTime; in rewriteMessage() local 907 if (eventTime < state.lastResample.eventTime || in rewriteMessage() [all …]
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | Entry.cpp | 32 return {{VerifiedInputEvent::Type::KEY, entry.deviceId, entry.eventTime, entry.source, in verifiedKeyEventFromKeyEntry() 47 return {{VerifiedInputEvent::Type::MOTION, entry.deviceId, entry.eventTime, entry.source, in verifiedMotionEventFromMotionEntry() 60 EventEntry::EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags) in EventEntry() argument 64 eventTime(eventTime), in EventEntry() 97 ConfigurationChangedEntry::ConfigurationChangedEntry(int32_t id, nsecs_t eventTime) in ConfigurationChangedEntry() argument 98 : EventEntry(id, Type::CONFIGURATION_CHANGED, eventTime, 0) {} in ConfigurationChangedEntry() 108 DeviceResetEntry::DeviceResetEntry(int32_t id, nsecs_t eventTime, int32_t deviceId) in DeviceResetEntry() argument 109 : EventEntry(id, Type::DEVICE_RESET, eventTime, 0), deviceId(deviceId) {} in DeviceResetEntry() 120 FocusEntry::FocusEntry(int32_t id, nsecs_t eventTime, sp<IBinder> connectionToken, bool hasFocus) in FocusEntry() argument 121 : EventEntry(id, Type::FOCUS, eventTime, POLICY_FLAG_PASS_TO_USER), in FocusEntry() [all …]
|
D | Entry.h | 59 nsecs_t eventTime; member 89 EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags); 95 explicit ConfigurationChangedEntry(int32_t id, nsecs_t eventTime); 105 DeviceResetEntry(int32_t id, nsecs_t eventTime, int32_t deviceId); 116 FocusEntry(int32_t id, nsecs_t eventTime, sp<IBinder> connectionToken, bool hasFocus); 146 KeyEntry(int32_t id, nsecs_t eventTime, int32_t deviceId, uint32_t source, int32_t displayId, 157 nsecs_t eventTime; member 177 MotionEntry(int32_t id, nsecs_t eventTime, int32_t deviceId, uint32_t source, int32_t displayId, 258 nsecs_t eventTime; member
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 277 long eventTime = SystemClock.uptimeMillis(); in tapView() local 279 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in tapView() 284 eventTime = SystemClock.uptimeMillis(); in tapView() 286 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in tapView() 291 eventTime = SystemClock.uptimeMillis(); in tapView() 292 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in tapView() 317 long eventTime = SystemClock.uptimeMillis(); in touchAndCancelView() local 319 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in touchAndCancelView() 324 eventTime = SystemClock.uptimeMillis(); in touchAndCancelView() 326 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, in touchAndCancelView() [all …]
|
/frameworks/native/include/input/ |
D | 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; 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 274 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits, [all …]
|
D | InputTransport.h | 86 nsecs_t eventTime __attribute__((aligned(8))); member 106 nsecs_t eventTime __attribute__((aligned(8))); member 284 int32_t repeatCount, nsecs_t downTime, nsecs_t eventTime); 301 nsecs_t eventTime, uint32_t pointerCount, 436 nsecs_t eventTime; member 442 eventTime = msg.body.motion.eventTime; in initializeFrom() 453 eventTime = other.eventTime; in initializeFrom() 485 lastResample.eventTime = 0; in initialize()
|
/frameworks/native/services/inputflinger/include/ |
D | InputListener.h | 34 nsecs_t eventTime; member 36 inline NotifyArgs() : id(0), eventTime(0) {} in NotifyArgs() 38 inline explicit NotifyArgs(int32_t id, nsecs_t eventTime) : id(id), eventTime(eventTime) {} in NotifyArgs() 53 NotifyConfigurationChangedArgs(int32_t id, nsecs_t eventTime); 78 NotifyKeyArgs(int32_t id, nsecs_t eventTime, int32_t deviceId, uint32_t source, 126 NotifyMotionArgs(int32_t id, nsecs_t eventTime, int32_t deviceId, uint32_t source, 153 NotifySwitchArgs(int32_t id, nsecs_t eventTime, uint32_t policyFlags, uint32_t switchValues, 173 NotifyDeviceResetArgs(int32_t id, nsecs_t eventTime, int32_t deviceId);
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | PinchZoomAction.java | 82 long eventTime = startTime; in sendPinchZoomAction() local 86 eventTime, MotionEvent.ACTION_DOWN, 1, pointerProperties, pointerCoords, in sendPinchZoomAction() 89 eventTime = SystemClock.uptimeMillis(); in sendPinchZoomAction() 90 final MotionEvent secondFingerEvent = MotionEvent.obtain(startTime, eventTime, in sendPinchZoomAction() 123 eventTime = SystemClock.uptimeMillis(); in sendPinchZoomAction() 130 final MotionEvent event = MotionEvent.obtain(startTime, eventTime, in sendPinchZoomAction() 147 eventTime = SystemClock.uptimeMillis(); in sendPinchZoomAction() 150 final MotionEvent secondFingerUpEvent = MotionEvent.obtain(startTime, eventTime, in sendPinchZoomAction() 163 eventTime = SystemClock.uptimeMillis(); in sendPinchZoomAction() 165 final MotionEvent firstFingerUpEvent = MotionEvent.obtain(startTime, eventTime, in sendPinchZoomAction()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | EditorCursorDragTest.java | 547 long eventTime = handleDownTime; in testCursorDrag_multiTouch() local 548 dispatchTouchEvent(handleView, downEvent(handleView, handleDownTime, eventTime++, 0, 0)); in testCursorDrag_multiTouch() 551 long cursorDownTime = eventTime++; in testCursorDrag_multiTouch() 553 tv, MotionEvent.ACTION_DOWN, cursorDownTime, eventTime++, 1, in testCursorDrag_multiTouch() 556 tv, MotionEvent.ACTION_MOVE, cursorDownTime, eventTime++, 1, in testCursorDrag_multiTouch() 559 tv, MotionEvent.ACTION_UP, cursorDownTime, eventTime++, 1, in testCursorDrag_multiTouch() 566 dispatchTouchEvent(handleView, upEvent(handleView, handleDownTime, eventTime, 0, 0)); in testCursorDrag_multiTouch() 634 long eventTime = downTime; in dragDownUntilLineChange() local 636 dispatchTouchEvent(view, downEvent(view, downTime, eventTime++, startX, startY)); in dragDownUntilLineChange() 637 dispatchTouchEvent(view, moveEvent(view, downTime, eventTime++, startX + 50, startY)); in dragDownUntilLineChange() [all …]
|
D | EditorTouchStateTest.java | 414 private static MotionEvent downEvent(long downTime, long eventTime, float x, float y) { in downEvent() argument 415 return MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, x, y, 0); in downEvent() 418 private static MotionEvent upEvent(long downTime, long eventTime, float x, float y) { in upEvent() argument 419 return MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in upEvent() 422 private static MotionEvent moveEvent(long downTime, long eventTime, float x, float y) { in moveEvent() argument 423 return MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 0); in moveEvent() 426 private static MotionEvent cancelEvent(long downTime, long eventTime, float x, float y) { in cancelEvent() argument 427 return MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, x, y, 0); in cancelEvent()
|
/frameworks/base/cmds/statsd/src/metrics/duration_helper/ |
D | MaxDurationTracker.cpp | 60 const int64_t eventTime, const ConditionKey& conditionKey) { in noteStart() argument 85 duration.lastStartTime = eventTime; in noteStart() 86 startAnomalyAlarm(eventTime); in noteStart() 93 void MaxDurationTracker::noteStop(const HashableDimensionKey& key, const int64_t eventTime, in noteStop() argument 109 stopAnomalyAlarm(eventTime); in noteStop() 111 int64_t durationTime = eventTime - duration.lastStartTime; in noteStop() 113 (long long)duration.lastStartTime, (long long)eventTime, in noteStop() 119 startAnomalyAlarm(eventTime); in noteStop() 154 void MaxDurationTracker::noteStopAll(const int64_t eventTime) { in noteStopAll() argument 160 noteStop(key, eventTime, true); in noteStopAll()
|
D | DurationTracker.h | 92 virtual void noteStart(const HashableDimensionKey& key, bool condition, const int64_t eventTime, 94 virtual void noteStop(const HashableDimensionKey& key, const int64_t eventTime, 96 virtual void noteStopAll(const int64_t eventTime) = 0; 135 void startAnomalyAlarm(const int64_t eventTime) { in startAnomalyAlarm() argument 139 predictAnomalyTimestampNs(*anomalyTracker, eventTime); in startAnomalyAlarm()
|
D | OringDurationTracker.h | 38 void noteStart(const HashableDimensionKey& key, bool condition, const int64_t eventTime, 40 void noteStop(const HashableDimensionKey& key, const int64_t eventTime, 42 void noteStopAll(const int64_t eventTime) override;
|
D | MaxDurationTracker.h | 41 void noteStart(const HashableDimensionKey& key, bool condition, const int64_t eventTime, 43 void noteStop(const HashableDimensionKey& key, const int64_t eventTime, 45 void noteStopAll(const int64_t eventTime) override;
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 189 final long eventTime = SystemClock.uptimeMillis(); in sendKeyAndWaitForEvent() 190 KeyEvent downEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, in sendKeyAndWaitForEvent() 194 KeyEvent upEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_UP, in sendKeyAndWaitForEvent() 317 final long eventTime = SystemClock.uptimeMillis(); 319 mDownTime, eventTime, MotionEvent.ACTION_UP, x, y, 1); 329 final long eventTime = SystemClock.uptimeMillis(); 331 mDownTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 1); 546 final long eventTime = SystemClock.uptimeMillis(); 547 KeyEvent downEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, 551 KeyEvent upEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_UP,
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | DurationMetricProducer.h | 83 void onConditionChangedLocked(const bool conditionMet, const int64_t eventTime) override; 89 void onSlicedConditionMayChangeLocked(bool overallCondition, const int64_t eventTime) override; 94 void onSlicedConditionMayChangeLocked_opt1(bool overallCondition, const int64_t eventTime); 95 void onSlicedConditionMayChangeLocked_opt2(bool overallCondition, const int64_t eventTime); 105 void flushIfNeededLocked(const int64_t& eventTime);
|
D | MetricProducer.h | 173 void onConditionChanged(const bool condition, const int64_t eventTime) { in onConditionChanged() argument 175 onConditionChangedLocked(condition, eventTime); in onConditionChanged() 178 void onSlicedConditionMayChange(bool overallCondition, const int64_t eventTime) { in onSlicedConditionMayChange() argument 180 onSlicedConditionMayChangeLocked(overallCondition, eventTime); in onSlicedConditionMayChange() 296 virtual void flushIfNeededLocked(const int64_t& eventTime){}; in flushIfNeededLocked() argument 341 virtual void onConditionChangedLocked(const bool condition, const int64_t eventTime) = 0; 343 const int64_t eventTime) = 0;
|
D | DurationMetricProducer.cpp | 212 const int64_t eventTime) { in onSlicedConditionMayChangeLocked_opt1() argument 247 whatIt.second->onConditionChanged(currentUnSlicedPartCondition, eventTime); in onSlicedConditionMayChangeLocked_opt1() 259 whatIt.second->onConditionChanged(true, eventTime); in onSlicedConditionMayChangeLocked_opt1() 263 whatIt.second->onConditionChanged(false, eventTime); in onSlicedConditionMayChangeLocked_opt1() 285 const int64_t eventTime) { in onSlicedConditionMayChangeLocked() argument 292 flushIfNeededLocked(eventTime); in onSlicedConditionMayChangeLocked() 298 onSlicedConditionMayChangeInternalLocked(overallCondition, eventTime); in onSlicedConditionMayChangeLocked() 327 const int64_t eventTime) { in onConditionChangedLocked() argument 335 flushIfNeededLocked(eventTime); in onConditionChangedLocked() 337 whatIt.second->onConditionChanged(conditionMet, eventTime); in onConditionChangedLocked()
|
/frameworks/base/core/java/android/view/ |
D | KeyEvent.java | 1386 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 1415 mEventTime = eventTime; in KeyEvent() 1439 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1444 mEventTime = eventTime; in KeyEvent() 1470 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1475 mEventTime = eventTime; in KeyEvent() 1503 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1508 mEventTime = eventTime; in KeyEvent() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 1578 private void userActivityFromNative(long eventTime, int event, int flags) { 1579 userActivityInternal(eventTime, event, flags, Process.SYSTEM_UID); 1582 private void userActivityInternal(long eventTime, int event, int flags, int uid) { 1584 if (userActivityNoUpdateLocked(eventTime, event, flags, uid)) { 1600 private boolean userActivityNoUpdateLocked(long eventTime, int event, int flags, int uid) { 1602 Slog.d(TAG, "userActivityNoUpdateLocked: eventTime=" + eventTime 1607 if (eventTime < mLastSleepTime || eventTime < mLastWakeTime || !mSystemReady) { 1613 if (eventTime > mLastInteractivePowerHintTime) { 1615 mLastInteractivePowerHintTime = eventTime; 1619 mAttentionDetector.onUserActivity(eventTime, event); [all …]
|