Home
last modified time | relevance | path

Searched refs:Stopwatch (Results 1 – 25 of 42) sorted by relevance

12

/packages/apps/DeskClock/src/com/android/deskclock/data/
DStopwatch.kt26 class Stopwatch internal constructor( class
70 fun start(): Stopwatch { in start()
74 Stopwatch(State.RUNNING, Utils.now(), Utils.wallClock(), totalTime) in start()
81 fun pause(): Stopwatch { in pause()
85 Stopwatch(State.PAUSED, UNUSED, UNUSED, totalTime) in pause()
92 fun reset(): Stopwatch = RESET_STOPWATCH in reset()
99 fun updateAfterReboot(): Stopwatch { in reset()
108 return Stopwatch(state, timeSinceBoot, wallClockTime, accumulatedTime + delta) in reset()
116 fun updateAfterTimeSet(): Stopwatch { in updateAfterTimeSet()
129 Stopwatch(state, timeSinceBoot, wallClockTime, accumulatedTime + delta) in updateAfterTimeSet()
[all …]
DStopwatchDAO.kt47 fun getStopwatch(prefs: SharedPreferences): Stopwatch { in getStopwatch()
48 val stateIndex: Int = prefs.getInt(STATE, Stopwatch.State.RESET.ordinal) in getStopwatch()
49 val state = Stopwatch.State.values()[stateIndex] in getStopwatch()
50 val lastStartTime: Long = prefs.getLong(LAST_START_TIME, Stopwatch.UNUSED) in getStopwatch()
51 val lastWallClockTime: Long = prefs.getLong(LAST_WALL_CLOCK_TIME, Stopwatch.UNUSED) in getStopwatch()
53 var s = Stopwatch(state, lastStartTime, lastWallClockTime, accumulatedTime) in getStopwatch()
66 fun setStopwatch(prefs: SharedPreferences, stopwatch: Stopwatch) { in setStopwatch()
DStopwatchModel.kt53 private var mStopwatch: Stopwatch? = null
81 val stopwatch: Stopwatch
93 fun setStopwatch(stopwatch: Stopwatch): Stopwatch { in setStopwatch()
DStopwatchListener.kt27 fun stopwatchUpdated(before: Stopwatch, after: Stopwatch)
DDataModel.kt756 val stopwatch: Stopwatch
765 fun startStopwatch(): Stopwatch { in startStopwatch()
773 fun pauseStopwatch(): Stopwatch { in pauseStopwatch()
781 fun resetStopwatch(): Stopwatch { in resetStopwatch()
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DIpProvisioningMetrics.java21 import android.net.util.Stopwatch;
46 private final Stopwatch mIpv4Watch = new Stopwatch().start();
47 private final Stopwatch mIpv6Watch = new Stopwatch().start();
48 private final Stopwatch mWatch = new Stopwatch().start();
DNetworkValidationMetrics.java33 import android.net.util.Stopwatch;
57 private final Stopwatch mWatch = new Stopwatch();
/packages/modules/NetworkStack/src/android/net/util/
DStopwatch.java25 public class Stopwatch { class
44 public Stopwatch start() { in start()
54 public Stopwatch restart() { in restart()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchFragment.kt56 import com.android.deskclock.data.Stopwatch in <lambda>()
224 Stopwatch.State.RUNNING -> doAddLap() in <lambda>()
225 Stopwatch.State.PAUSED -> doShare() in <lambda>()
226 Stopwatch.State.RESET -> { in <lambda>()
270 Stopwatch.State.RESET -> { in <lambda>()
275 Stopwatch.State.RUNNING -> { in <lambda>()
283 Stopwatch.State.PAUSED -> { in <lambda>()
328 if (priorState == Stopwatch.State.RUNNING) { in <lambda>()
446 private val stopwatch: Stopwatch in <lambda>()
559 override fun stopwatchUpdated(before: Stopwatch, after: Stopwatch) { in <lambda>()
DStopwatchCircleView.kt33 import com.android.deskclock.data.Stopwatch
166 private val stopwatch: Stopwatch
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/
DStopwatch.h25 class Stopwatch {
31 Stopwatch() : mStart(clock::now()) {} in Stopwatch() function
32 virtual ~Stopwatch() = default;
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/measurement/
DAbstractMeasurementLatencyTest.java41 import com.google.common.base.Stopwatch;
92 Stopwatch timer = Stopwatch.createStarted(); in runRegisterSource()
114 Stopwatch timer = Stopwatch.createStarted(); in runGetMeasurementApiStatus()
/packages/apps/Messaging/src/com/android/messaging/util/
DGifTranscoder.java22 import com.google.common.base.Stopwatch;
48 Stopwatch stopwatch = Stopwatch.createStarted(); in transcode()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/measurement/load/scenarios/
DCallRegisterSource.java30 import com.google.common.base.Stopwatch;
71 Stopwatch timer = Stopwatch.createStarted(); in runRegisterSource()
/packages/modules/Bluetooth/system/test/headless/discovery/
Ddiscovery.cc47 Stopwatch acl_stopwatch("ACL_connection"); in start_discovery()
48 Stopwatch sdp_stopwatch("SDP_discovery"); in start_discovery()
/packages/modules/Bluetooth/system/test/headless/
Dstopwatch.h25 class Stopwatch {
27 Stopwatch(std::string name) in Stopwatch() function
Dmessenger.h37 Stopwatch stop_watch;
/packages/modules/NetworkStack/src/com/android/networkstack/util/
DDnsUtils.java26 import android.net.util.Stopwatch;
102 final Stopwatch watch = new Stopwatch().start(); in getAllByName()
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
DTzS2PolygonsToTzS2CellUnions.java30 import com.google.common.base.Stopwatch;
177 Stopwatch stopwatch = Stopwatch.createStarted(); in createTzS2CellUnion()
DTzS2CellUnionsToTzS2Ranges.java31 import com.google.common.base.Stopwatch;
175 Stopwatch stopwatch = Stopwatch.createStarted(); in createTzS2Ranges()
/packages/apps/DeskClock/src/com/android/deskclock/controller/
DShortcutController.kt39 import com.android.deskclock.data.Stopwatch
157 override fun stopwatchUpdated(before: Stopwatch, after: Stopwatch) { in stopwatchUpdated()
/packages/services/Telephony/utils/satellite/tools/src/main/java/com/android/telephony/tools/sats2/
DSatS2FileCreator.java24 import com.google.common.base.Stopwatch;
193 Stopwatch stopwatch = Stopwatch.createStarted(); in createSatS2Ranges()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/
DAbstractSelectAdsLatencyTest.java44 import com.google.common.base.Stopwatch;
137 Stopwatch timer = Stopwatch.createStarted(mTicker); in runSelectAds()
/packages/modules/Bluetooth/system/test/headless/adapter/
Dadapter.cc48 .stop_watch = Stopwatch(__func__), in get_adapter_info()
/packages/modules/DnsResolver/
DDnsTlsTransport.cpp322 netdutils::Stopwatch stopwatch; in validate()
340 netdutils::Stopwatch stopwatch; in validate()

12