/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | ProgramUtils.java | 57 long timeMs = getLastProgramEndTimeMs(context, channelUri, currentTimeMs, targetEndTimeMs); in populatePrograms() local 58 if (timeMs <= 0) { in populatePrograms() 59 timeMs = currentTimeMs; in populatePrograms() 61 int index = program.getIndex(timeMs, channelId); in populatePrograms() 62 timeMs = program.getStartTimeMs(index, channelId); in populatePrograms() 65 while (timeMs < targetEndTimeMs) { in populatePrograms() 72 values.put(Programs.COLUMN_START_TIME_UTC_MILLIS, timeMs); in populatePrograms() 73 values.put(Programs.COLUMN_END_TIME_UTC_MILLIS, timeMs + programAt.durationMs); in populatePrograms() 77 timeMs += programAt.durationMs; in populatePrograms() 80 || timeMs >= targetEndTimeMs) { in populatePrograms()
|
D | ProgramInfo.java | 149 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/ |
D | TimeShiftManager.java | 498 public Program getProgramAt(long timeMs) { in getProgramAt() argument 499 Program program = mProgramManager.getProgramAt(timeMs); in getProgramAt() 502 mProgramManager.addDummyProgramsAt(timeMs); in getProgramAt() 503 program = mProgramManager.getProgramAt(timeMs); in getProgramAt() 786 void seekTo(long timeMs) { in seekTo() argument 789 Math.max(mRecordStartTimeMs, timeMs))); in seekTo() 969 void addDummyProgramsAt(long timeMs) { in addDummyProgramsAt() argument 970 addDummyPrograms(timeMs, timeMs + PREFETCH_DURATION_FOR_NEXT); in addDummyProgramsAt() 1092 Program getProgramAt(long timeMs) { in getProgramAt() argument 1093 return getProgramAt(timeMs, 0, mPrograms.size() - 1); in getProgramAt() [all …]
|
/packages/apps/TV/src/com/android/tv/util/ |
D | Utils.java | 237 public static Program getProgramAt(Context context, long channelId, long timeMs) { in getProgramAt() argument 252 timeMs, timeMs); in getProgramAt() 542 public static long floorTime(long timeMs, long timeUnit) { in floorTime() argument 543 return timeMs - (timeMs % timeUnit); in floorTime() 550 public static long ceilTime(long timeMs, long timeUnit) { in ceilTime() argument 551 return timeMs + timeUnit - (timeMs % timeUnit); in ceilTime()
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/ |
D | TunerSession.java | 154 public void onTimeShiftSeekTo(long timeMs) { in onTimeShiftSeekTo() argument 155 if (DEBUG) Log.d(TAG, "Timeshift seekTo requested position: " + timeMs / 1000); in onTimeShiftSeekTo() 157 mPlayPaused ? 1 : 0, 0, timeMs); in onTimeShiftSeekTo()
|
D | TunerSessionWorker.java | 1337 private void doTimeShiftSeekTo(long timeMs) { in doTimeShiftSeekTo() argument 1338 mPlayer.seekTo((int) (timeMs - mRecordStartTimeMs)); in doTimeShiftSeekTo()
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | MissedCallNotifier.java | 98 long timeMs = useCallLog ? newestCall.dateMs : System.currentTimeMillis(); in updateMissedCallNotification() local 140 .setWhen(timeMs) in updateMissedCallNotification() 150 .setWhen(timeMs) in updateMissedCallNotification()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TunableTvView.java | 1176 public void onTimeShiftStartPositionChanged(String inputId, long timeMs) { in setTimeShiftAvailable() 1179 mTimeShiftListener.onRecordStartTimeChanged(timeMs); in setTimeShiftAvailable() 1184 public void onTimeShiftCurrentPositionChanged(String inputId, long timeMs) { in setTimeShiftAvailable() 1185 mTimeShiftCurrentPositionMs = timeMs; in setTimeShiftAvailable() 1294 public void timeshiftSeekTo(long timeMs) { in timeshiftSeekTo() argument 1302 mTvView.timeShiftSeekTo(timeMs); in timeshiftSeekTo()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | PlayControlsRowView.java | 484 private String getTimeString(long timeMs) { in getTimeString() argument 486 ? DateUtils.formatElapsedTime(timeMs / 1000) in getTimeString() 487 : mTimeFormat.format(timeMs); in getTimeString()
|
/packages/apps/TV/tests/input/src/com/android/tv/testinput/ |
D | TestTvInputService.java | 252 public void onTimeShiftSeekTo(long timeMs) { in onTimeShiftSeekTo() argument 255 Math.min(timeMs, mLastCurrentPositionUpdateTimeMs)); in onTimeShiftSeekTo()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
D | SapServer.java | 673 private void startDisconnectTimer(int discType, int timeMs) { in startDisconnectTimer() argument 686 SystemClock.elapsedRealtime() + timeMs, pDiscIntent); in startDisconnectTimer() 688 if(VERBOSE) Log.d(TAG_HANDLER, "Setting alarm for " + timeMs + in startDisconnectTimer()
|
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
D | MailPrefs.java | 603 public void setNbAccountsLatestReport(long timeMs) { in setNbAccountsLatestReport() argument 605 PreferenceKeys.ANALYTICS_NB_ACCOUNT_LATEST_REPORT, timeMs); in setNbAccountsLatestReport()
|