/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | Stopwatch.kt | 26 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 …]
|
D | StopwatchDAO.kt | 47 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()
|
D | StopwatchModel.kt | 53 private var mStopwatch: Stopwatch? = null 81 val stopwatch: Stopwatch 93 fun setStopwatch(stopwatch: Stopwatch): Stopwatch { in setStopwatch()
|
D | StopwatchListener.kt | 27 fun stopwatchUpdated(before: Stopwatch, after: Stopwatch)
|
D | DataModel.kt | 756 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/ |
D | IpProvisioningMetrics.java | 21 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();
|
D | NetworkValidationMetrics.java | 33 import android.net.util.Stopwatch; 57 private final Stopwatch mWatch = new Stopwatch();
|
/packages/modules/NetworkStack/src/android/net/util/ |
D | Stopwatch.java | 25 public class Stopwatch { class 44 public Stopwatch start() { in start() 54 public Stopwatch restart() { in restart()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchFragment.kt | 56 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>()
|
D | StopwatchCircleView.kt | 33 import com.android.deskclock.data.Stopwatch 166 private val stopwatch: Stopwatch
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/ |
D | Stopwatch.h | 25 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/ |
D | AbstractMeasurementLatencyTest.java | 41 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/ |
D | GifTranscoder.java | 22 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/ |
D | CallRegisterSource.java | 30 import com.google.common.base.Stopwatch; 71 Stopwatch timer = Stopwatch.createStarted(); in runRegisterSource()
|
/packages/modules/Bluetooth/system/test/headless/discovery/ |
D | discovery.cc | 47 Stopwatch acl_stopwatch("ACL_connection"); in start_discovery() 48 Stopwatch sdp_stopwatch("SDP_discovery"); in start_discovery()
|
/packages/modules/Bluetooth/system/test/headless/ |
D | stopwatch.h | 25 class Stopwatch { 27 Stopwatch(std::string name) in Stopwatch() function
|
D | messenger.h | 37 Stopwatch stop_watch;
|
/packages/modules/NetworkStack/src/com/android/networkstack/util/ |
D | DnsUtils.java | 26 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/ |
D | TzS2PolygonsToTzS2CellUnions.java | 30 import com.google.common.base.Stopwatch; 177 Stopwatch stopwatch = Stopwatch.createStarted(); in createTzS2CellUnion()
|
D | TzS2CellUnionsToTzS2Ranges.java | 31 import com.google.common.base.Stopwatch; 175 Stopwatch stopwatch = Stopwatch.createStarted(); in createTzS2Ranges()
|
/packages/apps/DeskClock/src/com/android/deskclock/controller/ |
D | ShortcutController.kt | 39 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/ |
D | SatS2FileCreator.java | 24 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/ |
D | AbstractSelectAdsLatencyTest.java | 44 import com.google.common.base.Stopwatch; 137 Stopwatch timer = Stopwatch.createStarted(mTicker); in runSelectAds()
|
/packages/modules/Bluetooth/system/test/headless/adapter/ |
D | adapter.cc | 48 .stop_watch = Stopwatch(__func__), in get_adapter_info()
|
/packages/modules/DnsResolver/ |
D | DnsTlsTransport.cpp | 322 netdutils::Stopwatch stopwatch; in validate() 340 netdutils::Stopwatch stopwatch; in validate()
|