Searched refs:mAnalyticsUtils (Results 1 – 2 of 2) sorted by relevance
49 @Mock private AnalyticsUtils mAnalyticsUtils; field in TimeLoggerTest60 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()
46 private final AnalyticsUtils mAnalyticsUtils; field in TimeLogger79 mAnalyticsUtils = checkNotNull(analyticsUtils); in TimeLogger()87 mStartTime = mAnalyticsUtils.elapsedRealTime(); in start()97 final int time = (int) (mAnalyticsUtils.elapsedRealTime() - mStartTime); in stop()