Home
last modified time | relevance | path

Searched refs:timeMs (Results 1 – 20 of 20) sorted by relevance

/packages/apps/TV/tests/common/src/com/android/tv/testing/
DProgramUtils.java58 long timeMs = getLastProgramEndTimeMs(context, channelUri, currentTimeMs, targetEndTimeMs); in populatePrograms() local
59 if (timeMs <= 0) { in populatePrograms()
60 timeMs = currentTimeMs; in populatePrograms()
62 int index = program.getIndex(timeMs, channelId); in populatePrograms()
63 timeMs = program.getStartTimeMs(index, channelId); in populatePrograms()
66 while (timeMs < targetEndTimeMs) { in populatePrograms()
77 values.put(Programs.COLUMN_START_TIME_UTC_MILLIS, timeMs); in populatePrograms()
78 values.put(Programs.COLUMN_END_TIME_UTC_MILLIS, timeMs + programAt.durationMs); in populatePrograms()
82 timeMs += programAt.durationMs; in populatePrograms()
85 || timeMs >= targetEndTimeMs) { in populatePrograms()
DProgramInfo.java149 public int getIndex(long timeMs, long channelId) { in getIndex() argument
151 return Math.max((int) (timeMs / durationMs), 0); in getIndex()
154 int index = (int) ((timeMs - startTimeMs) / DURATIONS_SUM_MS) * DURATIONS_MS.length; in getIndex()
156 while (startTimeMs + DURATIONS_MS[index % DURATIONS_MS.length] < timeMs) { in getIndex()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java486 public Program getProgramAt(long timeMs) { in getProgramAt() argument
487 Program program = mProgramManager.getProgramAt(timeMs); in getProgramAt()
490 mProgramManager.addDummyProgramsAt(timeMs); in getProgramAt()
491 program = mProgramManager.getProgramAt(timeMs); in getProgramAt()
783 void seekTo(long timeMs) { in seekTo() argument
786 Math.max(mRecordStartTimeMs, timeMs))); in seekTo()
951 void addDummyProgramsAt(long timeMs) { in addDummyProgramsAt() argument
952 addDummyPrograms(timeMs, timeMs + PREFETCH_DURATION_FOR_NEXT); in addDummyProgramsAt()
1083 Program getProgramAt(long timeMs) { in getProgramAt() argument
1084 return getProgramAt(timeMs, 0, mPrograms.size() - 1); in getProgramAt()
[all …]
DInputSessionManager.java184 long timeMs = Long.MAX_VALUE; in getEarliestRecordingSessionEndTimeMs() local
188 if (session.mEndTimeMs < timeMs) { in getEarliestRecordingSessionEndTimeMs()
189 timeMs = session.mEndTimeMs; in getEarliestRecordingSessionEndTimeMs()
194 return timeMs == Long.MAX_VALUE ? null : timeMs; in getEarliestRecordingSessionEndTimeMs()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlayer.java454 public void onTimeShiftStartPositionChanged(String inputId, long timeMs) { in setTvViewCallbacks()
455 if (DEBUG) Log.d(TAG, "onTimeShiftStartPositionChanged:" + timeMs); in setTvViewCallbacks()
456 mStartPositionMs = timeMs; in setTvViewCallbacks()
463 public void onTimeShiftCurrentPositionChanged(String inputId, long timeMs) { in setTvViewCallbacks()
464 if (DEBUG) Log.d(TAG, "onTimeShiftCurrentPositionChanged: " + timeMs); in setTvViewCallbacks()
477 timeMs -= mStartPositionMs; in setTvViewCallbacks()
479 && timeMs <= REWIND_POSITION_MARGIN_MS) { in setTvViewCallbacks()
482 mTimeShiftCurrentPositionMs = getRealSeekPosition(timeMs, 0); in setTvViewCallbacks()
484 if (timeMs >= mProgram.getDurationMillis()) { in setTvViewCallbacks()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java344 public static Program getProgramAt(Context context, long channelId, long timeMs) { in getProgramAt() argument
359 timeMs, timeMs); in getProgramAt()
730 public static long floorTime(long timeMs, long timeUnit) { in floorTime() argument
731 return timeMs - (timeMs % timeUnit); in floorTime()
738 public static long ceilTime(long timeMs, long timeUnit) { in ceilTime() argument
739 return timeMs + timeUnit - (timeMs % timeUnit); in ceilTime()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java200 final long timeMs = getProcessTimeMs(StatusType.SCREEN_USAGE, uid, in smearScreenBatterySipper() local
202 activityTimeArray.put(uid.getUid(), timeMs); in smearScreenBatterySipper() local
203 totalActivityTimeMs += timeMs; in smearScreenBatterySipper()
380 public static long convertMsToUs(long timeMs) { in convertMsToUs() argument
381 return timeMs * 1000; in convertMsToUs()
DPowerUsageSummary.java683 void updateLastFullChargePreference(long timeMs) { in updateLastFullChargePreference() argument
684 final CharSequence timeSequence = Utils.formatElapsedTime(getContext(), timeMs, false); in updateLastFullChargePreference()
/packages/apps/TV/src/com/android/tv/ui/
DTunableTvView.java1103 Long timeMs = mInputSessionManager.getEarliestRecordingSessionEndTimeMs(mTagetInputId); in getTuneConflictMessage() local
1104 if (timeMs != null) { in getTuneConflictMessage()
1107 DateUtils.formatDateTime(getContext(), timeMs, DateUtils.FORMAT_SHOW_TIME)); in getTuneConflictMessage()
1223 public void onTimeShiftStartPositionChanged(String inputId, long timeMs) { in setTimeShiftAvailable()
1226 mTimeShiftListener.onRecordStartTimeChanged(timeMs); in setTimeShiftAvailable()
1231 public void onTimeShiftCurrentPositionChanged(String inputId, long timeMs) { in setTimeShiftAvailable()
1232 mTimeShiftCurrentPositionMs = timeMs; in setTimeShiftAvailable()
1319 public void timeshiftSeekTo(long timeMs) { in timeshiftSeekTo() argument
1323 mTvView.timeShiftSeekTo(timeMs); in timeshiftSeekTo()
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
DTunerSession.java151 public void onTimeShiftSeekTo(long timeMs) { in onTimeShiftSeekTo() argument
152 if (DEBUG) Log.d(TAG, "Timeshift seekTo requested position: " + timeMs / 1000); in onTimeShiftSeekTo()
154 mPlayPaused ? 1 : 0, 0, timeMs); in onTimeShiftSeekTo()
DTunerSessionWorker.java1588 private void doTimeShiftSeekTo(long timeMs) { in doTimeShiftSeekTo() argument
1591 mPlayer.seekTo((int) (timeMs - mRecordStartTimeMs)); in doTimeShiftSeekTo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/suggestions/
DEventStoreTest.java45 long timeMs = System.currentTimeMillis(); in testWriteRead() local
48 assertThat(Math.abs(timeMs - mEventStore in testWriteRead()
/packages/apps/TV/src/com/android/tv/tuner/
DTunerPreferences.java271 public static synchronized void setTrickplayExpiredMs(Context context, long timeMs) { in setTrickplayExpiredMs() argument
273 setPreference(context, PREFS_KEY_TRICKPLAY_EXPIRED_MS, timeMs); in setTrickplayExpiredMs()
276 .putLong(TunerPreferences.PREFS_KEY_TRICKPLAY_EXPIRED_MS, timeMs) in setTrickplayExpiredMs()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
DTestUtils.java87 public static void wait(UiDevice uiDevice, long timeMs) throws InterruptedException { in wait() argument
89 Thread.sleep(timeMs); in wait()
/packages/services/Telephony/src/com/android/services/telephony/
DEmergencyCallStateListener.java292 public void setTimeBetweenRetriesMillis(long timeMs) { in setTimeBetweenRetriesMillis() argument
293 TIME_BETWEEN_RETRIES_MILLIS = timeMs; in setTimeBetweenRetriesMillis()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapServer.java682 private void startDisconnectTimer(int discType, int timeMs) { in startDisconnectTimer() argument
695 SystemClock.elapsedRealtime() + timeMs, pDiscIntent); in startDisconnectTimer()
697 if(VERBOSE) Log.d(TAG_HANDLER, "Setting alarm for " + timeMs + in startDisconnectTimer()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DSessionManagerTest.java46 mTestSessionManager.registerSessionListener(((sessionName, timeMs) -> { in setUp() argument
47 mfullSessionCompleteTime = timeMs; in setUp()
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DMailPrefs.java603 public void setNbAccountsLatestReport(long timeMs) { in setNbAccountsLatestReport() argument
605 PreferenceKeys.ANALYTICS_NB_ACCOUNT_LATEST_REPORT, timeMs); in setNbAccountsLatestReport()
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
DTestTvInputService.java284 public void onTimeShiftSeekTo(long timeMs) { in onTimeShiftSeekTo() argument
287 Math.min(timeMs, mLastCurrentPositionUpdateTimeMs)); in onTimeShiftSeekTo()
/packages/apps/TV/src/com/android/tv/menu/
DPlayControlsRowView.java647 private String getTimeString(long timeMs) { in getTimeString() argument
648 return mTimeFormat.format(timeMs); in getTimeString()