Searched refs:endUtcMillis (Results 1 – 4 of 4) sorted by relevance
/packages/apps/TV/src/com/android/tv/search/ |
D | TvProviderSearch.java | 276 long endUtcMillis = c.getLong(6); in fillProgramInfo() local 279 startUtcMillis, endUtcMillis); in fillProgramInfo() 286 result.duration = endUtcMillis - startUtcMillis; in fillProgramInfo() 287 result.progressPercentage = getProgressPercentage(startUtcMillis, endUtcMillis); in fillProgramInfo() 298 private int getProgressPercentage(long startUtcMillis, long endUtcMillis) { in getProgressPercentage() argument 300 if (startUtcMillis > current || endUtcMillis <= current) { in getProgressPercentage() 303 return (int)(100 * (current - startUtcMillis) / (endUtcMillis - startUtcMillis)); in getProgressPercentage() 371 long endUtcMillis = c.getLong(7); in searchPrograms() local 376 cChannel.getString(2), startUtcMillis, endUtcMillis); in searchPrograms() 384 result.duration = endUtcMillis - startUtcMillis; in searchPrograms() [all …]
|
D | DataManagerSearch.java | 259 private int getProgressPercentage(long startUtcMillis, long endUtcMillis) { in getProgressPercentage() argument 261 if (startUtcMillis > current || endUtcMillis <= current) { in getProgressPercentage() 264 return (int)(100 * (current - startUtcMillis) / (endUtcMillis - startUtcMillis)); in getProgressPercentage()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | Utils.java | 398 Context context, long startUtcMillis, long endUtcMillis, boolean useShortFormat) { in getDurationString() argument 399 return getDurationString(context, System.currentTimeMillis(), startUtcMillis, endUtcMillis, in getDurationString() 405 long endUtcMillis, boolean useShortFormat, int flag) { in getDurationString() argument 406 return getDurationString(context, startUtcMillis, endUtcMillis, in getDurationString() 414 public static String getDurationString(Context context, long startUtcMillis, long endUtcMillis, in getDurationString() argument 425 if (startUtcMillis != endUtcMillis && useShortFormat) { in getDurationString() 429 if (!isInGivenDay(startUtcMillis, endUtcMillis - 1) in getDurationString() 430 && endUtcMillis - startUtcMillis < TimeUnit.HOURS.toMillis(11)) { in getDurationString() 435 startUtcMillis, endUtcMillis - TimeUnit.DAYS.toMillis(1), flag); in getDurationString() 440 String dateRange = DateUtils.formatDateRange(context, startUtcMillis, endUtcMillis, flag); in getDurationString() [all …]
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramManager.java | 290 void updateInitialTimeRange(long startUtcMillis, long endUtcMillis) { in updateInitialTimeRange() argument 292 if (endUtcMillis > mEndUtcMillis) { in updateInitialTimeRange() 293 mEndUtcMillis = endUtcMillis; in updateInitialTimeRange() 298 setTimeRange(startUtcMillis, endUtcMillis); in updateInitialTimeRange() 685 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis) { in TableEntry() argument 686 this(channelId, null, startUtcMillis, endUtcMillis, false); in TableEntry() 689 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis, in TableEntry() argument 691 this(channelId, null, null, startUtcMillis, endUtcMillis, blocked); in TableEntry()
|