Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/garagemode/
DGarageModeRecorder.java75 private long mSessionStartTime; field in GarageModeRecorder
109 if (mSessionStartTime != 0) { in startSession()
111 mDateFormat.format(mSessionStartTime)); in startSession()
115 mSessionStartTime = mClock.millis(); in startSession()
125 if (mSessionStartTime == 0) { in finishSession()
141 if (mSessionStartTime == 0) { in cancelSession()
152 mSessionStartTime = 0; in cleanupRecorder()
189 stringBuilder.append(mDateFormat.format(new Date(mSessionStartTime))); in recordEvent()
197 stringBuilder.append(mSessionFinishTime - mSessionStartTime); in recordEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/garagemode/
DGarageModeRecorderTest.java66 private long mSessionStartTime; field in GarageModeRecorderTest
85 mSessionStartTime = 1620000000000L; in setup()
86 mSessionFinishTime = mSessionStartTime + TimeUnit.SECONDS.toMillis(20L); in setup()
90 when(mClock.millis()).thenReturn(mSessionStartTime, mSessionFinishTime); in setup()
161 return SESSION_START_TIME + mDateFormat.format(new Date(mSessionStartTime)); in getSessionStartString()
169 return SESSION_DURATION + (mSessionFinishTime - mSessionStartTime) + TIME_UNIT_MS; in getSessionDurationString()