Home
last modified time | relevance | path

Searched refs:mEventTimes (Results 1 – 7 of 7) sorted by relevance

/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DGestureTrailDrawingPoints.java47 private final ResizableIntArray mEventTimes = new ResizableIntArray(DEFAULT_CAPACITY); field in GestureTrailDrawingPoints
73 synchronized (mEventTimes) { in addStroke()
79 final int trailSize = mEventTimes.getLength(); in addStrokeLocked()
80 stroke.appendPreviewStroke(mEventTimes, mXCoordinates, mYCoordinates, mPointTypes); in addStrokeLocked()
81 if (mEventTimes.getLength() == trailSize) { in addStrokeLocked()
84 final int[] eventTimes = mEventTimes.getPrimitiveArray(); in addStrokeLocked()
97 lastInterpolatedIndex, mEventTimes, mXCoordinates, mYCoordinates, mPointTypes); in addStrokeLocked()
159 synchronized (mEventTimes) { in drawGestureTrail()
168 final int trailSize = mEventTimes.getLength(); in drawGestureTrailLocked()
173 final int[] eventTimes = mEventTimes.getPrimitiveArray(); in drawGestureTrailLocked()
[all …]
H A DGestureStrokeRecognitionPoints.java39 private final ResizableIntArray mEventTimes = new ResizableIntArray( field in GestureStrokeRecognitionPoints
108 return mEventTimes.getLength(); in getLength()
158 final int deltaTime = mEventTimes.get(lastIndex) - mDetectFastMoveTime; in isStartOfAGesture()
198 mEventTimes.setLength(0); in reset()
211 if (lastIndex >= 0 && mEventTimes.get(lastIndex) > time) { in appendPoint()
214 mEventTimes.get(lastIndex))); in appendPoint()
217 mEventTimes.add(time); in appendPoint()
238 final int msecs = time - mEventTimes.get(lastIndex); in detectFastMove()
326 out.append(mPointerId, mEventTimes, mXCoordinates, mYCoordinates, in appendBatchPoints()
/aosp12/frameworks/native/services/inputflinger/dispatcher/
H A DLatencyTracker.cpp81 eraseByKeyAndValue(mEventTimes, eventTime, inputEventId); in trackListener()
85 mEventTimes.emplace(eventTime, inputEventId); in trackListener()
150 while (!mEventTimes.empty()) { in reportAndPruneMatureRecords()
151 const auto& [oldestEventTime, oldestInputEventId] = *mEventTimes.begin(); in reportAndPruneMatureRecords()
161 mEventTimes.erase(mEventTimes.begin()); in reportAndPruneMatureRecords()
174 mEventTimes.clear(); in reportNow()
180 StringPrintf("%s mEventTimes.size() = %zu\n", prefix, mEventTimes.size()); in dump()
H A DLatencyTracker.h79 std::multimap<nsecs_t /*eventTime*/, int32_t /*inputEventId*/> mEventTimes; variable
/aosp12/frameworks/base/services/core/java/com/android/server/utils/quota/
H A DCountQuotaTracker.java129 private final UptcMap<LongArrayQueue> mEventTimes = new UptcMap<>(); field in CountQuotaTracker
189 final LongArrayQueue times = mEventTimes in noteEvent()
277 mEventTimes.clear(); in dropEverythingLocked()
302 mEventTimes.delete(userId, packageName); in handleRemovedAppLocked()
309 mEventTimes.delete(userId); in handleRemovedUserLocked()
331 mEventTimes.forEach((userId, packageName, tag, events) -> { in maybeUpdateAllQuotaStatusLocked()
520 mEventTimes.forEach(mEarliestEventTimeFunctor); in maybeScheduleCleanupAlarmLocked()
552 if (!mEventTimes.contains(userId, packageName)) { in maybeUpdateStatusForPkgLocked()
643 mEventTimes.forEach(mDeleteOldEventTimesFunctor); in deleteObsoleteEventsLocked()
676 return mEventTimes.get(userId, packageName, tag); in getEvents()
[all …]
/aosp12/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
H A DJobPackageTracker.java56 private final long[] mEventTimes = new long[EVENT_BUFFER_SIZE]; field in JobPackageTracker
66 mEventTimes[index] = sElapsedRealtimeClock.millis(); in addEvent()
609 TimeUtils.formatDuration(mEventTimes[index]-now, pw, TimeUtils.HUNDRED_DAY_FIELD_LEN); in dumpHistory()
655 … proto.write(JobPackageHistoryProto.HistoryEvent.TIME_SINCE_EVENT_MS, now - mEventTimes[index]); in dumpHistory()
/aosp12/frameworks/base/apex/jobscheduler/service/java/com/android/server/
H A DDeviceIdleController.java584 private final long[] mEventTimes = new long[EVENT_BUFFER_SIZE]; field in DeviceIdleController
590 System.arraycopy(mEventTimes, 0, mEventTimes, 1, EVENT_BUFFER_SIZE - 1); in addEvent()
593 mEventTimes[0] = SystemClock.elapsedRealtime(); in addEvent()
4846 TimeUtils.formatDuration(mEventTimes[i], now, pw); in dump()