Home
last modified time | relevance | path

Searched refs:startUtcMillis (Results 1 – 4 of 4) sorted by relevance

/packages/apps/TV/src/com/android/tv/util/
DUtils.java366 Context context, long startUtcMillis, long endUtcMillis, boolean useShortFormat) { in getDurationString() argument
370 startUtcMillis, in getDurationString()
389 long startUtcMillis, in getDurationString() argument
395 startUtcMillis, in getDurationString()
405 long startUtcMillis, in getDurationString() argument
411 startUtcMillis, in getDurationString()
414 !isInGivenDay(baseMillis, startUtcMillis), in getDurationString()
425 long startUtcMillis, in getDurationString() argument
445 if (startUtcMillis != endUtcMillis && useShortFormat) { in getDurationString()
449 if (!isInGivenDay(startUtcMillis, endUtcMillis - 1) in getDurationString()
[all …]
/packages/apps/TV/src/com/android/tv/search/
DTvProviderSearch.java312 long startUtcMillis = c.getLong(5); in fillProgramInfo() local
317 channelNumber, channelName, startUtcMillis, endUtcMillis)); in fillProgramInfo()
324 builder.setDuration(endUtcMillis - startUtcMillis); in fillProgramInfo()
325 builder.setProgressPercentage(getProgressPercentage(startUtcMillis, endUtcMillis)); in fillProgramInfo()
344 private int getProgressPercentage(long startUtcMillis, long endUtcMillis) { in getProgressPercentage() argument
346 if (startUtcMillis > current || endUtcMillis <= current) { in getProgressPercentage()
349 return (int) (100 * (current - startUtcMillis) / (endUtcMillis - startUtcMillis)); in getProgressPercentage()
431 long startUtcMillis = c.getLong(6); in searchPrograms() local
440 startUtcMillis, in searchPrograms()
451 result.setDuration(endUtcMillis - startUtcMillis); in searchPrograms()
[all …]
DDataManagerSearch.java293 private int getProgressPercentage(long startUtcMillis, long endUtcMillis) { in getProgressPercentage() argument
295 if (startUtcMillis > current || endUtcMillis <= current) { in getProgressPercentage()
298 return (int) (100 * (current - startUtcMillis) / (endUtcMillis - startUtcMillis)); in getProgressPercentage()
/packages/apps/TV/src/com/android/tv/guide/
DProgramManager.java315 void updateInitialTimeRange(long startUtcMillis, long endUtcMillis) { in updateInitialTimeRange() argument
316 mStartUtcMillis = startUtcMillis; in updateInitialTimeRange()
323 setTimeRange(startUtcMillis, endUtcMillis); in updateInitialTimeRange()
729 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis) { in TableEntry() argument
730 this(channelId, null, startUtcMillis, endUtcMillis, false); in TableEntry()
734 long channelId, long startUtcMillis, long endUtcMillis, boolean blocked) { in TableEntry() argument
735 this(channelId, null, null, startUtcMillis, endUtcMillis, blocked); in TableEntry()