/packages/apps/TV/tests/common/src/com/android/tv/testing/data/ |
D | ProgramUtils.java | 79 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()
|
D | ProgramInfo.java | 161 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/ |
D | TimeShiftManager.java | 488 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 …]
|
D | InputSessionManager.java | 180 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/ |
D | DvrPlayer.java | 428 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/ |
D | Utils.java | 310 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/ |
D | TunableTvView.java | 1169 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/ |
D | TunerSession.java | 120 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()
|
D | TunerSessionExoV2.java | 118 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()
|
D | TunerSessionWorkerExoV2.java | 1127 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/ |
D | AnomalyDetectionJobService.java | 136 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/ |
D | AnomalyDetectionJobService.java | 136 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/ |
D | TestUtils.java | 87 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/ |
D | TunerPreferences.java | 93 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/ |
D | WrappedSession.java | 113 public void onTimeShiftSeekTo(long timeMs) { in onTimeShiftSeekTo() argument 114 delegate.onTimeShiftSeekTo(timeMs); in onTimeShiftSeekTo()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | DvrHistoryRowAdapter.java | 114 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/ |
D | DvrTvView.java | 107 public void timeShiftSeekTo(long timeMs) { in timeShiftSeekTo() argument 108 mTvView.timeShiftSeekTo(timeMs); in timeShiftSeekTo()
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | RadioOnStateListener.java | 360 public void setTimeBetweenRetriesMillis(long timeMs) { in setTimeBetweenRetriesMillis() argument 361 TIME_BETWEEN_RETRIES_MILLIS = timeMs; in setTimeBetweenRetriesMillis()
|
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/ |
D | DataStallDetectionStats.java | 190 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/ |
D | BatteryUtils.java | 215 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/ |
D | BatteryUtils.java | 222 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/ |
D | TunableTvViewPlayingApi.java | 38 void timeShiftSeekTo(long timeMs); in timeShiftSeekTo() argument
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | SessionManagerTest.java | 60 mTestSessionManager.registerSessionListener(((sessionName, timeMs) -> { in setUp() argument 61 mfullSessionCompleteTime = timeMs; in setUp()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/ |
D | SearchViewManagerTest.java | 158 private void fastForwardTo(long timeMs) { in fastForwardTo() argument 159 mTestTimer.fastForwardTo(timeMs); in fastForwardTo()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
D | SapServer.java | 748 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()
|