Home
last modified time | relevance | path

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

12

/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DProgramUtils.java79 long timeMs = getLastProgramEndTimeMs(context, channelUri, currentTimeMs, targetEndTimeMs); in populatePrograms() local
80 if (timeMs <= 0) { in populatePrograms()
81 timeMs = currentTimeMs; in populatePrograms()
83 int index = program.getIndex(timeMs, channelId); in populatePrograms()
84 timeMs = program.getStartTimeMs(index, channelId); in populatePrograms()
87 while (timeMs < targetEndTimeMs) { in populatePrograms()
98 values.put(Programs.COLUMN_START_TIME_UTC_MILLIS, timeMs); in populatePrograms()
99 values.put(Programs.COLUMN_END_TIME_UTC_MILLIS, timeMs + programAt.durationMs); in populatePrograms()
103 timeMs += programAt.durationMs; in populatePrograms()
105 if (list.size() >= MAX_DB_INSERT_COUNT_AT_ONCE || timeMs >= targetEndTimeMs) { in populatePrograms()
DProgramInfo.java161 public int getIndex(long timeMs, long channelId) { in getIndex() argument
163 return Math.max((int) (timeMs / durationMs), 0); in getIndex()
166 int index = (int) ((timeMs - startTimeMs) / durationsSumMs) * DURATIONS_MS.length; in getIndex()
168 while (startTimeMs + DURATIONS_MS[index % DURATIONS_MS.length] < timeMs) { in getIndex()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java488 public Program getProgramAt(long timeMs) { in getProgramAt() argument
489 Program program = mProgramManager.getProgramAt(timeMs); in getProgramAt()
492 mProgramManager.addPlaceholderProgramsAt(timeMs); in getProgramAt()
493 program = mProgramManager.getProgramAt(timeMs); in getProgramAt()
806 void seekTo(long timeMs) { in seekTo() argument
812 Math.max(mRecordStartTimeMs, timeMs))); in seekTo()
986 void addPlaceholderProgramsAt(long timeMs) { in addPlaceholderProgramsAt() argument
987 addPlaceholderPrograms(timeMs, timeMs + PREFETCH_DURATION_FOR_NEXT); in addPlaceholderProgramsAt()
1124 Program getProgramAt(long timeMs) { in getProgramAt() argument
1125 return getProgramAt(timeMs, 0, mPrograms.size() - 1); in getProgramAt()
[all …]
DInputSessionManager.java180 long timeMs = Long.MAX_VALUE; in getEarliestRecordingSessionEndTimeMs() local
184 if (session.mEndTimeMs < timeMs) { in getEarliestRecordingSessionEndTimeMs()
185 timeMs = session.mEndTimeMs; in getEarliestRecordingSessionEndTimeMs()
190 return timeMs == Long.MAX_VALUE ? null : timeMs; in getEarliestRecordingSessionEndTimeMs()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlayer.java428 public void onTimeShiftStartPositionChanged(String inputId, long timeMs) { in setTvViewCallbacks()
429 if (DEBUG) Log.d(TAG, "onTimeShiftStartPositionChanged:" + timeMs); in setTvViewCallbacks()
430 mStartPositionMs = timeMs; in setTvViewCallbacks()
437 public void onTimeShiftCurrentPositionChanged(String inputId, long timeMs) { in setTvViewCallbacks()
438 if (DEBUG) Log.d(TAG, "onTimeShiftCurrentPositionChanged: " + timeMs); in setTvViewCallbacks()
453 timeMs -= mStartPositionMs; in setTvViewCallbacks()
459 && timeMs <= REWIND_POSITION_MARGIN_MS) in setTvViewCallbacks()
461 && timeMs > bufferedTimeMs)) { in setTvViewCallbacks()
465 mTimeShiftCurrentPositionMs = getRealSeekPosition(timeMs, 0); in setTvViewCallbacks()
467 if (timeMs >= mProgram.getDurationMillis()) { in setTvViewCallbacks()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java310 public static Program getProgramAt(Context context, long channelId, long timeMs) { in getProgramAt() argument
326 TvContract.buildChannelUri(channelId), timeMs, timeMs); in getProgramAt()
681 public static long floorTime(long timeMs, long timeUnit) { in floorTime() argument
682 return timeMs - (timeMs % timeUnit); in floorTime()
689 public static long ceilTime(long timeMs, long timeUnit) { in ceilTime() argument
690 return timeMs + timeUnit - (timeMs % timeUnit); in ceilTime()
/packages/apps/TV/src/com/android/tv/ui/
DTunableTvView.java1169 Long timeMs = mInputSessionManager.getEarliestRecordingSessionEndTimeMs(mTagetInputId); in getTuneConflictMessage() local
1170 if (timeMs != null) { in getTuneConflictMessage()
1176 getContext(), timeMs, DateUtils.FORMAT_SHOW_TIME)); in getTuneConflictMessage()
1292 public void onTimeShiftStartPositionChanged(String inputId, long timeMs) { in setTimeShiftAvailable()
1296 mTimeShiftListener.onRecordStartTimeChanged(timeMs); in setTimeShiftAvailable()
1301 public void onTimeShiftCurrentPositionChanged(String inputId, long timeMs) { in setTimeShiftAvailable()
1302 mTimeShiftCurrentPositionMs = timeMs; in setTimeShiftAvailable()
1389 public void timeShiftSeekTo(long timeMs) { in timeShiftSeekTo() argument
1393 mTvView.timeShiftSeekTo(timeMs); in timeShiftSeekTo()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSession.java120 public void onTimeShiftSeekTo(long timeMs) { in onTimeShiftSeekTo() argument
121 if (DEBUG) Log.d(TAG, "Timeshift seekTo requested position: " + timeMs / 1000); in onTimeShiftSeekTo()
123 TunerSessionWorker.MSG_TIMESHIFT_SEEK_TO, mPlayPaused ? 1 : 0, 0, timeMs); in onTimeShiftSeekTo()
DTunerSessionExoV2.java118 public void onTimeShiftSeekTo(long timeMs) { in onTimeShiftSeekTo() argument
119 if (DEBUG) Log.d(TAG, "Timeshift seekTo requested position: " + timeMs / 1000); in onTimeShiftSeekTo()
121 TunerSessionWorkerExoV2.MSG_TIMESHIFT_SEEK_TO, mPlayPaused ? 1 : 0, 0, timeMs); in onTimeShiftSeekTo()
DTunerSessionWorkerExoV2.java1127 private boolean handleMessageTimeshiftSeekTo(long timeMs) { in handleMessageTimeshiftSeekTo() argument
1129 Log.d(TAG, "MSG_TIMESHIFT_SEEK_TO (position=" + timeMs + ")"); in handleMessageTimeshiftSeekTo()
1135 doTimeShiftSeekTo(timeMs); in handleMessageTimeshiftSeekTo()
1881 private void doTimeShiftSeekTo(long timeMs) { in doTimeShiftSeekTo() argument
1883 mPlayer.seekTo((int) (timeMs - mRecordStartTimeMs)); in doTimeShiftSeekTo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DAnomalyDetectionJobService.java136 final long timeMs = bundle.getLong(AnomalyDetectionReceiver.KEY_ANOMALY_TIMESTAMP, in saveAnomalyToDatabase() local
167 timeMs); in saveAnomalyToDatabase()
171 timeMs); in saveAnomalyToDatabase()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobService.java136 final long timeMs = bundle.getLong(AnomalyDetectionReceiver.KEY_ANOMALY_TIMESTAMP, in saveAnomalyToDatabase() local
167 timeMs); in saveAnomalyToDatabase()
171 timeMs); in saveAnomalyToDatabase()
/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/apps/TV/tuner/src/com/android/tv/tuner/prefs/
DTunerPreferences.java93 public static synchronized void setTrickplayExpiredMs(Context context, long timeMs) { in setTrickplayExpiredMs() argument
97 .putLong(TunerPreferences.PREFS_KEY_TRICKPLAY_EXPIRED_MS, timeMs) in setTrickplayExpiredMs()
/packages/apps/TV/common/src/com/android/tv/common/support/tis/
DWrappedSession.java113 public void onTimeShiftSeekTo(long timeMs) { in onTimeShiftSeekTo() argument
114 delegate.onTimeShiftSeekTo(timeMs); in onTimeShiftSeekTo()
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DDvrHistoryRowAdapter.java114 private String calculateHeaderDate(long timeMs) { in calculateHeaderDate() argument
117 ((Utils.getFirstMillisecondOfDay(mClock.currentTimeMillis()) - timeMs) in calculateHeaderDate()
126 timeMs, in calculateHeaderDate()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrTvView.java107 public void timeShiftSeekTo(long timeMs) { in timeShiftSeekTo() argument
108 mTvView.timeShiftSeekTo(timeMs); in timeShiftSeekTo()
/packages/services/Telephony/src/com/android/services/telephony/
DRadioOnStateListener.java360 public void setTimeBetweenRetriesMillis(long timeMs) { in setTimeBetweenRetriesMillis() argument
361 TIME_BETWEEN_RETRIES_MILLIS = timeMs; in setTimeBetweenRetriesMillis()
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DDataStallDetectionStats.java190 public Builder addDnsEvent(int code, long timeMs) { in addDnsEvent() argument
192 mDnsTimeStamp.add(timeMs); in addDnsEvent()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java215 final long timeMs = getProcessTimeMs(StatusType.SCREEN_USAGE, uid, in smearScreenBatterySipper() local
217 activityTimeArray.put(uid.getUid(), timeMs); in smearScreenBatterySipper() local
218 totalActivityTimeMs += timeMs; in smearScreenBatterySipper()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java222 final long timeMs = getProcessTimeMs(StatusType.SCREEN_USAGE, uid, in smearScreenBatterySipper() local
224 activityTimeArray.put(uid.getUid(), timeMs); in smearScreenBatterySipper() local
225 totalActivityTimeMs += timeMs; in smearScreenBatterySipper()
/packages/apps/TV/src/com/android/tv/ui/api/
DTunableTvViewPlayingApi.java38 void timeShiftSeekTo(long timeMs); in timeShiftSeekTo() argument
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DSessionManagerTest.java60 mTestSessionManager.registerSessionListener(((sessionName, timeMs) -> { in setUp() argument
61 mfullSessionCompleteTime = timeMs; in setUp()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchViewManagerTest.java158 private void fastForwardTo(long timeMs) { in fastForwardTo() argument
159 mTestTimer.fastForwardTo(timeMs); in fastForwardTo()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapServer.java748 private void startDisconnectTimer(int discType, int timeMs) { in startDisconnectTimer() argument
759 SystemClock.elapsedRealtime() + timeMs, mPendingDiscIntent); in startDisconnectTimer()
763 "Setting alarm for " + timeMs + " ms to activate disconnect type " in startDisconnectTimer()

12