Searched refs:endUtcMillis (Results 1 – 4 of 4) sorted by relevance
/packages/apps/TV/src/com/android/tv/util/ |
D | Utils.java | 368 Context context, long startUtcMillis, long endUtcMillis, boolean useShortFormat) { in getDurationString() argument 373 endUtcMillis, in getDurationString() 392 long endUtcMillis, in getDurationString() argument 398 endUtcMillis, in getDurationString() 408 long endUtcMillis, in getDurationString() argument 414 endUtcMillis, in getDurationString() 428 long endUtcMillis, in getDurationString() argument 447 if (startUtcMillis != endUtcMillis && useShortFormat) { in getDurationString() 451 if (!isInGivenDay(startUtcMillis, endUtcMillis - 1) in getDurationString() 452 && endUtcMillis - startUtcMillis < TimeUnit.HOURS.toMillis(11)) { in getDurationString() [all …]
|
/packages/apps/TV/src/com/android/tv/search/ |
D | TvProviderSearch.java | 313 long endUtcMillis = c.getLong(6); 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() 432 long endUtcMillis = c.getLong(7); in searchPrograms() local 441 endUtcMillis)); in searchPrograms() 451 result.setDuration(endUtcMillis - startUtcMillis); in searchPrograms() [all …]
|
D | DataManagerSearch.java | 296 private int getProgressPercentage(long startUtcMillis, long endUtcMillis) { in getProgressPercentage() argument 298 if (startUtcMillis > current || endUtcMillis <= current) { in getProgressPercentage() 301 return (int) (100 * (current - startUtcMillis) / (endUtcMillis - startUtcMillis)); in getProgressPercentage()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramManager.java | 305 void updateInitialTimeRange(long startUtcMillis, long endUtcMillis) { in updateInitialTimeRange() argument 307 if (endUtcMillis > mEndUtcMillis) { in updateInitialTimeRange() 308 mEndUtcMillis = endUtcMillis; in updateInitialTimeRange() 313 setTimeRange(startUtcMillis, endUtcMillis); in updateInitialTimeRange() 718 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis) { in TableEntry() argument 719 this(channelId, null, startUtcMillis, endUtcMillis, false); in TableEntry() 723 long channelId, long startUtcMillis, long endUtcMillis, boolean blocked) { in TableEntry() argument 724 this(channelId, null, null, startUtcMillis, endUtcMillis, blocked); in TableEntry()
|