Home
last modified time | relevance | path

Searched refs:mAnalyticsUtils (Results 1 – 2 of 2) sorted by relevance

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/analytics/
DTimeLoggerTest.java49 @Mock private AnalyticsUtils mAnalyticsUtils; field in TimeLoggerTest
60 mTimeLogger = new TimeLogger(mContext, CATEGORY, mMetricsLoggerWrapper, mAnalyticsUtils, in setUp()
67 when(mAnalyticsUtils.elapsedRealTime()).thenReturn(START_TIME_MS); in testTimeLogger_withStartTime()
72 when(mAnalyticsUtils.elapsedRealTime()).thenReturn(STOP_TIME_MS); in testTimeLogger_withStartTime()
84 when(mAnalyticsUtils.elapsedRealTime()).thenReturn(START_TIME_MS); in testTimeLogger_withStartTime_stopsTwice()
89 when(mAnalyticsUtils.elapsedRealTime()).thenReturn(STOP_TIME_MS); in testTimeLogger_withStartTime_stopsTwice()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DTimeLogger.java46 private final AnalyticsUtils mAnalyticsUtils; field in TimeLogger
79 mAnalyticsUtils = checkNotNull(analyticsUtils); in TimeLogger()
87 mStartTime = mAnalyticsUtils.elapsedRealTime(); in start()
97 final int time = (int) (mAnalyticsUtils.elapsedRealTime() - mStartTime); in stop()