Home
last modified time | relevance | path

Searched refs:mTotalTimeInMs (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DPlaybackTransportRowPresenter.java67 long mTotalTimeInMs = Long.MIN_VALUE; field in PlaybackTransportRowPresenter.ViewHolder
117 newPos = mTotalTimeInMs; in updateProgressInSeek()
127 newPos = mTotalTimeInMs; in updateProgressInSeek()
155 long interval = (long) (mTotalTimeInMs * getDefaultSeekIncrement()); in updateProgressInSeek()
157 if (newPos > mTotalTimeInMs) { in updateProgressInSeek()
158 newPos = mTotalTimeInMs; in updateProgressInSeek()
163 double ratio = (double) newPos / mTotalTimeInMs; // Range: [0, 1] in updateProgressInSeek()
367 || mTotalTimeInMs <= 0) { in startSeek()
375 int pos = Arrays.binarySearch(mPositions, mTotalTimeInMs); in startSeek()
465 if (mTotalTimeInMs != totalTimeMs) { in setTotalTime()
[all …]
DPlaybackControlsPresenter.java61 long mTotalTimeInMs = -1; // Hold total time in milliseconds field in PlaybackControlsPresenter.ViewHolder
148 mTotalTimeInMs = totalTimeMs; in setTotalTime()
156 return mTotalTimeInMs; in getTotalTime()
167 double ratio = (double) mCurrentTimeInMs / mTotalTimeInMs; // Range: [0, 1] in setCurrentTime()
173 return mTotalTimeInMs; in getCurrentTime()
179 double ratio = (double) progressMs / mTotalTimeInMs; // Range: [0, 1] in setSecondaryProgress()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DPlaybackTransportRowPresenterTest.java185 assertEquals(20000L, mViewHolder.mTotalTimeInMs); in progressUpdating()
199 assertEquals((long) (Integer.MAX_VALUE) * 2, mViewHolder.mTotalTimeInMs); in progressUpdating()