Home
last modified time | relevance | path

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

1234

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DPointerTracker.java277 final int y, final long eventTime, final boolean isKeyRepeat) { in callListenerOnCodeInput() argument
293 sTypingTimeRecorder.onCodeInput(code, eventTime); in callListenerOnCodeInput()
414 private static boolean needsToSuppressKeyPreviewPopup(final long eventTime) { in needsToSuppressKeyPreviewPopup() argument
416 return sTypingTimeRecorder.needsToSuppressKeyPreviewPopup(eventTime); in needsToSuppressKeyPreviewPopup()
419 private void setPressedKeyGraphics(@Nullable final Key key, final long eventTime) { in setPressedKeyGraphics() argument
431 final boolean noKeyPreview = sInGesture || needsToSuppressKeyPreviewPopup(eventTime); in setPressedKeyGraphics()
472 private Key onDownKey(final int x, final int y, final long eventTime) { in onDownKey() argument
473 mDownTime = eventTime; in onDownKey()
535 public void onUpdateBatchInput(final InputPointers aggregatedPointers, final long eventTime) { in onUpdateBatchInput() argument
551 public void onEndBatchInput(final InputPointers aggregatedPointers, final long eventTime) { in onEndBatchInput() argument
[all …]
DMoreKeysKeyboardView.java159 public void onDownEvent(final int x, final int y, final int pointerId, final long eventTime) { in onDownEvent() argument
165 public void onMoveEvent(final int x, final int y, final int pointerId, final long eventTime) { in onMoveEvent() argument
178 public void onUpEvent(final int x, final int y, final int pointerId, final long eventTime) { in onUpEvent() argument
263 final long eventTime = me.getEventTime(); in onTouchEvent() local
271 onDownEvent(x, y, pointerId, eventTime); in onTouchEvent()
275 onUpEvent(x, y, pointerId, eventTime); in onTouchEvent()
278 onMoveEvent(x, y, pointerId, eventTime); in onTouchEvent()
DMoreKeysPanel.java80 public void onMoveEvent(final int x, final int y, final int pointerId, final long eventTime); in onMoveEvent() argument
90 public void onDownEvent(final int x, final int y, final int pointerId, final long eventTime); in onDownEvent() argument
100 public void onUpEvent(final int x, final int y, final int pointerId, final long eventTime); in onUpEvent() argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DTypingTimeRecorder.java32 public boolean isInFastTyping(final long eventTime) { in isInFastTyping() argument
33 final long elapsedTimeSinceLastLetterTyping = eventTime - mLastLetterTypingTime; in isInFastTyping()
41 public void onCodeInput(final int code, final long eventTime) { in onCodeInput() argument
48 || eventTime - mLastTypingTime < mStaticTimeThresholdAfterFastTyping) { in onCodeInput()
49 mLastLetterTypingTime = eventTime; in onCodeInput()
52 if (eventTime - mLastLetterTypingTime < mStaticTimeThresholdAfterFastTyping) { in onCodeInput()
54 mLastLetterTypingTime = eventTime; in onCodeInput()
57 mLastTypingTime = eventTime; in onCodeInput()
60 public void onEndBatchInput(final long eventTime) { in onEndBatchInput() argument
61 mLastBatchInputTime = eventTime; in onEndBatchInput()
[all …]
DNonDistinctMultitouchHelper.java50 final long eventTime = me.getEventTime(); in processMotionEvent() local
60 injectMotionEvent(action, me.getX(index), me.getY(index), downTime, eventTime, in processMotionEvent()
74 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime, in processMotionEvent()
89 injectMotionEvent(MotionEvent.ACTION_DOWN, x, y, downTime, eventTime, in processMotionEvent()
93 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime, in processMotionEvent()
105 final long downTime, final long eventTime, final PointerTracker tracker, in injectMotionEvent() argument
108 downTime, eventTime, action, x, y, 0 /* metaState */); in injectMotionEvent()
DPointerTrackerQueue.java30 public void onPhantomUpEvent(long eventTime); in onPhantomUpEvent() argument
95 public void releaseAllPointersOlderThan(final Element pointer, final long eventTime) { in releaseAllPointersOlderThan() argument
109 element.onPhantomUpEvent(eventTime); in releaseAllPointersOlderThan()
139 public void releaseAllPointers(final long eventTime) { in releaseAllPointers() argument
140 releaseAllPointersExcept(null, eventTime); in releaseAllPointers()
143 public void releaseAllPointersExcept(final Element pointer, final long eventTime) { in releaseAllPointersExcept() argument
164 element.onPhantomUpEvent(eventTime); in releaseAllPointersExcept()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/noising/
DSourceNoiseHandlerTest.java288 long eventTime = System.currentTimeMillis(); in impressionNoiseParamGeneration() local
292 .setEventTime(eventTime) in impressionNoiseParamGeneration()
293 .setEventReportWindow(eventTime + TimeUnit.DAYS.toMillis(30)) in impressionNoiseParamGeneration()
306 .setEventTime(eventTime) in impressionNoiseParamGeneration()
307 .setEventReportWindow(eventTime + TimeUnit.DAYS.toMillis(30)) in impressionNoiseParamGeneration()
320 .setEventTime(eventTime) in impressionNoiseParamGeneration()
321 .setEventReportWindow(eventTime + TimeUnit.DAYS.toMillis(30)) in impressionNoiseParamGeneration()
334 .setEventTime(eventTime) in impressionNoiseParamGeneration()
335 .setExpiryTime(eventTime + TimeUnit.DAYS.toMillis(30)) in impressionNoiseParamGeneration()
336 .setEventReportWindow(eventTime + TimeUnit.DAYS.toMillis(30)) in impressionNoiseParamGeneration()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DPointerTrackerQueueTests.java56 public void onPhantomUpEvent(long eventTime) { in onPhantomUpEvent() argument
58 mPhantomUpEventTime = eventTime + sPhantomUpCount; in onPhantomUpEvent()
181 final long eventTime = 123; in testReleaseAllPointers() local
183 mQueue.releaseAllPointers(eventTime); in testReleaseAllPointers()
187 assertEquals(eventTime + 1, mElement1.mPhantomUpEventTime); in testReleaseAllPointers()
188 assertEquals(eventTime + 2, mElement2.mPhantomUpEventTime); in testReleaseAllPointers()
189 assertEquals(eventTime + 3, mElement3.mPhantomUpEventTime); in testReleaseAllPointers()
190 assertEquals(eventTime + 4, mElement4.mPhantomUpEventTime); in testReleaseAllPointers()
200 final long eventTime = 123; in testReleaseAllPointersOlderThanFirst() local
202 mQueue.releaseAllPointersOlderThan(mElement1, eventTime); in testReleaseAllPointersOlderThanFirst()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DEventReportWindowCalcDelegateTest.java384 long eventTime = System.currentTimeMillis(); in noiseReportingTimeByIndex_event() local
390 .setEventTime(eventTime) in noiseReportingTimeByIndex_event()
391 .setExpiryTime(eventTime + TimeUnit.DAYS.toMillis(30)) in noiseReportingTimeByIndex_event()
392 .setEventReportWindow(eventTime + TimeUnit.DAYS.toMillis(10)) in noiseReportingTimeByIndex_event()
395 eventTime + TimeUnit.DAYS.toMillis(10), in noiseReportingTimeByIndex_event()
399 eventTime + TimeUnit.DAYS.toMillis(10), in noiseReportingTimeByIndex_event()
407 .setEventTime(eventTime) in noiseReportingTimeByIndex_event()
408 .setExpiryTime(eventTime + TimeUnit.DAYS.toMillis(30)) in noiseReportingTimeByIndex_event()
409 .setEventReportWindow(eventTime + TimeUnit.DAYS.toMillis(7)) in noiseReportingTimeByIndex_event()
412 eventTime + TimeUnit.DAYS.toMillis(7), in noiseReportingTimeByIndex_event()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DMoreKeysKeyboardAccessibilityDelegate.java72 final long eventTime = event.getEventTime(); in onHoverEnter() local
73 mKeyboardView.onDownEvent(x, y, pointerId, eventTime); in onHoverEnter()
83 final long eventTime = event.getEventTime(); in onHoverMove() local
84 mKeyboardView.onMoveEvent(x, y, pointerId, eventTime); in onHoverMove()
101 final long eventTime = event.getEventTime(); in onHoverExit() local
109 mKeyboardView.onUpEvent(x, y, pointerId, eventTime); in onHoverExit()
/packages/modules/StatsD/statsd/src/metrics/duration_helper/
DMaxDurationTracker.cpp66 const int64_t eventTime, const ConditionKey& conditionKey, in noteStart() argument
92 duration.lastStartTime = eventTime; in noteStart()
93 startAnomalyAlarm(eventTime); in noteStart()
100 void MaxDurationTracker::noteStop(const HashableDimensionKey& key, const int64_t eventTime, in noteStop() argument
116 stopAnomalyAlarm(eventTime); in noteStop()
118 int64_t durationTime = eventTime - duration.lastStartTime; in noteStop()
120 (long long)duration.lastStartTime, (long long)eventTime, in noteStop()
126 startAnomalyAlarm(eventTime); in noteStop()
167 void MaxDurationTracker::noteStopAll(const int64_t eventTime) { in noteStopAll() argument
173 noteStop(key, eventTime, true); in noteStopAll()
DDurationTracker.h105 virtual void noteStart(const HashableDimensionKey& key, bool condition, int64_t eventTime,
107 virtual void noteStop(const HashableDimensionKey& key, int64_t eventTime,
109 virtual void noteStopAll(const int64_t eventTime) = 0;
172 void startAnomalyAlarm(const int64_t eventTime) { in startAnomalyAlarm() argument
176 predictAnomalyTimestampNs(*anomalyTracker, eventTime); in startAnomalyAlarm()
DMaxDurationTracker.h39 void noteStart(const HashableDimensionKey& key, bool condition, int64_t eventTime,
41 void noteStop(const HashableDimensionKey& key, int64_t eventTime, const bool stopAll) override;
42 void noteStopAll(const int64_t eventTime) override;
DOringDurationTracker.h37 void noteStart(const HashableDimensionKey& key, bool condition, int64_t eventTime,
39 void noteStop(const HashableDimensionKey& key, int64_t eventTime, const bool stopAll) override;
40 void noteStopAll(const int64_t eventTime) override;
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/
DBasePermissionEventStorageTest.kt180 val todayEvent = parkingEvent.copy(eventTime = System.currentTimeMillis()) in removeOldData_removesOnlyOldData()
182 podcastEvent.copy(eventTime = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(6)) in removeOldData_removesOnlyOldData()
184 parkingEvent.copy(eventTime = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(8)) in removeOldData_removesOnlyOldData()
204 musicEvent.copy(eventTime = musicEvent.eventTime + TimeUnit.DAYS.toMillis(1)) in updateEventsBySystemTimeDelta_oneDayForward_shiftsData()
218 musicEvent.copy(eventTime = musicEvent.eventTime - TimeUnit.DAYS.toMillis(1)) in updateEventsBySystemTimeDelta_oneDayBackward_shiftsData()
253 return this.copy(eventTime = this.eventTime + timeDelta) in copyWithTimeDelta()
DPermissionChangeStorageImplTest.kt105 val laterInTheDayGrant = mapChange.copy(eventTime = (mapChange.eventTime + FIVE_HOURS_MS)) in serialize_roundsTimeDownToDate()
160 val laterInTheDayEvent = mapChange.copy(eventTime = (mapChange.eventTime + FIVE_HOURS_MS)) in serialize_afterStoresExactTimeChangedToFalse_roundsTimeDownToDate()
DTestPermissionEvent.kt28 override val eventTime: Long, constant in com.android.permissioncontroller.tests.mocking.permission.service.TestPermissionEvent
30 ) : PermissionEvent(packageName, eventTime)
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DGestureBot.java154 final long eventTime = SystemClock.uptimeMillis(); in touchUp() local
155 MotionEvent event = getMotionEvent(mDownTime, eventTime, MotionEvent.ACTION_UP, 0, x, y); in touchUp()
161 final long eventTime = SystemClock.uptimeMillis(); in touchMove() local
162 MotionEvent event = getMotionEvent(mDownTime, eventTime, MotionEvent.ACTION_MOVE, button, x, in touchMove()
168 private static MotionEvent getMotionEvent(long downTime, long eventTime, int action, int button, in getMotionEvent() argument
181 return MotionEvent.obtain(downTime, eventTime, action, 1, in getMotionEvent()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKeyManager.java81 long eventTime = mClock.millis(); in getAggregateEncryptionKeys() local
87 coordinatorOrigin, eventTime)); in getAggregateEncryptionKeys()
97 coordinatorOrigin, aggregationCoordinatorUrl, eventTime); in getAggregateEncryptionKeys()
108 dao.deleteExpiredAggregateEncryptionKeys(eventTime)); in getAggregateEncryptionKeys()
/packages/apps/TV/src/com/android/tv/receiver/
DAbstractGlobalKeyReceiver.java82 long eventTime = event.getEventTime(); in handleIntent() local
83 if (action == KeyEvent.ACTION_UP && sLastEventTime != eventTime) { in handleIntent()
85 sLastEventTime = eventTime; in handleIntent()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarInstancesHelper.java190 Time eventTime = new Time(); in performInstanceExpansion() local
291 eventTime.setTimezone(eventTimezone); in performInstanceExpansion()
292 eventTime.set(dtstartMillis); in performInstanceExpansion()
293 eventTime.setAllDay(allDay); in performInstanceExpansion()
330 dates = rp.expand(eventTime, recur, begin, end); in performInstanceExpansion()
335 eventTime.setTimezone(Time.TIMEZONE_UTC); in performInstanceExpansion()
337 eventTime.setTimezone(localTimezone); in performInstanceExpansion()
350 eventTime, initialValues); in performInstanceExpansion()
407 eventTime.setTimezone(Time.TIMEZONE_UTC); in performInstanceExpansion()
409 eventTime.setTimezone(localTimezone); in performInstanceExpansion()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DPermissionChange.kt25 data class PermissionChange(override val packageName: String, override val eventTime: Long) : constant in com.android.permissioncontroller.permission.data.PermissionChange
26 PermissionEvent(packageName, eventTime)
/packages/modules/StatsD/statsd/src/metrics/
DDurationMetricProducer.h99 void onConditionChangedLocked(const bool conditionMet, int64_t eventTime) override;
105 void onSlicedConditionMayChangeLocked(bool overallCondition, int64_t eventTime) override;
109 void onSlicedConditionMayChangeLocked_opt1(const int64_t eventTime);
119 void flushIfNeededLocked(int64_t eventTime);
DDurationMetricProducer.cpp368 void DurationMetricProducer::onSlicedConditionMayChangeLocked_opt1(const int64_t eventTime) { in onSlicedConditionMayChangeLocked_opt1() argument
403 whatIt.second->onConditionChanged(currentUnSlicedPartCondition, eventTime); in onSlicedConditionMayChangeLocked_opt1()
415 whatIt.second->onConditionChanged(true, eventTime); in onSlicedConditionMayChangeLocked_opt1()
419 whatIt.second->onConditionChanged(false, eventTime); in onSlicedConditionMayChangeLocked_opt1()
440 const int64_t eventTime) { in onSlicedConditionMayChangeLocked() argument
447 flushIfNeededLocked(eventTime); in onSlicedConditionMayChangeLocked()
453 onSlicedConditionMayChangeInternalLocked(eventTime); in onSlicedConditionMayChangeLocked()
484 const int64_t eventTime) { in onConditionChangedLocked() argument
492 flushIfNeededLocked(eventTime); in onConditionChangedLocked()
494 whatIt.second->onConditionChanged(conditionMet, eventTime); in onConditionChangedLocked()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/v33/
DPermissionDecision.kt32 override val eventTime: Long, constant in com.android.permissioncontroller.permission.data.v33.PermissionDecision
35 ) : PermissionEvent(packageName, eventTime)

1234