Searched refs:mAnalyticsUtils (Results 1 – 2 of 2) sorted by relevance
45 @Mock private AnalyticsUtils mAnalyticsUtils; field in TimeLoggerTest54 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()
43 private final AnalyticsUtils mAnalyticsUtils; field in TimeLogger71 mAnalyticsUtils = checkNotNull(analyticsUtils); in TimeLogger()78 mStartTime = mAnalyticsUtils.elapsedRealTime(); in start()88 final int time = (int) (mAnalyticsUtils.elapsedRealTime() - mStartTime); in stop()