Home
last modified time | relevance | path

Searched refs:accumulatedTime (Results 1 – 9 of 9) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/data/
DStopwatchDAO.kt52 val accumulatedTime: Long = prefs.getLong(ACCUMULATED_TIME, 0) in getStopwatch() constant
53 var s = Stopwatch(state, lastStartTime, lastWallClockTime, accumulatedTime) in getStopwatch()
78 .putLong(ACCUMULATED_TIME, stopwatch.accumulatedTime) in setStopwatch()
98 val accumulatedTime: Long = prefs.getLong(lapAccumulatedTimeKey, 0) in getLaps() constant
101 val lapTime = accumulatedTime - prevAccumulatedTime in getLaps()
104 laps.add(Lap(lapNumber, lapTime, accumulatedTime)) in getLaps()
107 prevAccumulatedTime = accumulatedTime in getLaps()
120 fun addLap(prefs: SharedPreferences, newLapCount: Int, accumulatedTime: Long) { in addLap()
123 .putLong(LAP_ACCUMULATED_TIME + newLapCount, accumulatedTime) in addLap()
DStopwatch.kt34 val accumulatedTime: Long constant in com.android.deskclock.data.Stopwatch
56 return accumulatedTime
64 return accumulatedTime + max(0, timeSinceStart)
108 return Stopwatch(state, timeSinceBoot, wallClockTime, accumulatedTime + delta) in reset()
129 Stopwatch(state, timeSinceBoot, wallClockTime, accumulatedTime + delta) in updateAfterTimeSet()
DStopwatchModel.kt138 val prevAccumulatedTime = if (laps.isEmpty()) 0 else laps[0].accumulatedTime in addLap()
187 val currentLapTime = stopwatch.totalTime - laps[0].accumulatedTime in canAddMoreLaps()
204 val currentLapTime = time - previousLap.accumulatedTime in getCurrentLapTime()
DLap.kt28 val accumulatedTime: Long constant in com.android.deskclock.data.Lap
/packages/apps/DeskClock/src/com/android/deskclock/
DStopwatchTextController.kt33 fun setTimeString(accumulatedTime: Long) { in setTimeString()
36 if (mLastTime / 10 == accumulatedTime / 10) { in setTimeString()
40 val hours = (accumulatedTime / DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString()
41 var remainder = (accumulatedTime % DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString()
54 accumulatedTime / DateUtils.SECOND_IN_MILLIS) { in setTimeString()
59 mLastTime = accumulatedTime in setTimeString()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DLapsAdapter.kt86 totalTime = lap.accumulatedTime in onBindViewHolder()
96 viewHolder.accumulatedTime.setText(formatAccumulatedTime(totalTime, true)) in onBindViewHolder()
125 holder.accumulatedTime.setText(formatAccumulatedTime(totalTime, false)) in updateCurrentLap()
246 private fun formatAccumulatedTime(accumulatedTime: Long, isBinding: Boolean): String { in formatAccumulatedTime()
248 val longestAccumulatedTime = max(totalTime, accumulatedTime) in formatAccumulatedTime()
249 val formattedTime = formatTime(longestAccumulatedTime, accumulatedTime, LRM_SPACE) in formatAccumulatedTime()
273 val accumulatedTime: TextView constant
278 accumulatedTime = itemView.findViewById(R.id.lap_total) as TextView
DStopwatchCircleView.kt126 val currentLapTime = stopwatch.totalTime - priorLap.accumulatedTime in onDraw()
/packages/modules/NeuralNetworks/runtime/
DTelemetryStatsd.cpp79 void combineAccumulatedTiming(AtomValue::AccumulatedTiming* accumulatedTime, in combineAccumulatedTiming() argument
84 accumulatedTime->sumTime += timing.sumTime; in combineAccumulatedTiming()
85 accumulatedTime->minTime = std::min(accumulatedTime->minTime, timing.minTime); in combineAccumulatedTiming()
86 accumulatedTime->maxTime = std::max(accumulatedTime->maxTime, timing.maxTime); in combineAccumulatedTiming()
87 accumulatedTime->sumSquaredTime += timing.sumSquaredTime; in combineAccumulatedTiming()
88 accumulatedTime->count += timing.count; in combineAccumulatedTiming()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp6330 int64_t accumulatedTime = 0; in TEST_F() local
6351 accumulatedTime += s.timeTakenUs(); in TEST_F()
6366 const int averageTime = accumulatedTime / queryNum; in TEST_F()