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.java45 @Mock private AnalyticsUtils mAnalyticsUtils; field in TimeLoggerTest
54 mTimeLogger = new TimeLogger(mContext, CATEGORY, mMetricsLoggerWrapper, mAnalyticsUtils); in setUp()
60 when(mAnalyticsUtils.elapsedRealTime()).thenReturn(START_TIME_MS); in testTimeLogger_withStartTime()
65 when(mAnalyticsUtils.elapsedRealTime()).thenReturn(STOP_TIME_MS); in testTimeLogger_withStartTime()
77 when(mAnalyticsUtils.elapsedRealTime()).thenReturn(START_TIME_MS); in testTimeLogger_withStartTime_stopsTwice()
82 when(mAnalyticsUtils.elapsedRealTime()).thenReturn(STOP_TIME_MS); in testTimeLogger_withStartTime_stopsTwice()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DTimeLogger.java43 private final AnalyticsUtils mAnalyticsUtils; field in TimeLogger
71 mAnalyticsUtils = checkNotNull(analyticsUtils); in TimeLogger()
78 mStartTime = mAnalyticsUtils.elapsedRealTime(); in start()
88 final int time = (int) (mAnalyticsUtils.elapsedRealTime() - mStartTime); in stop()