Searched refs:endUtcMillis (Results 1 – 4 of 4) sorted by relevance
/packages/apps/TV/src/com/android/tv/search/ |
D | TvProviderSearch.java | 275 long endUtcMillis = c.getLong(6); in fillProgramInfo() local 278 startUtcMillis, endUtcMillis); in fillProgramInfo() 285 result.duration = endUtcMillis - startUtcMillis; in fillProgramInfo() 286 result.progressPercentage = getProgressPercentage(startUtcMillis, endUtcMillis); in fillProgramInfo() 297 private int getProgressPercentage(long startUtcMillis, long endUtcMillis) { in getProgressPercentage() argument 299 if (startUtcMillis > current || endUtcMillis <= current) { in getProgressPercentage() 302 return (int)(100 * (current - startUtcMillis) / (endUtcMillis - startUtcMillis)); in getProgressPercentage() 372 long endUtcMillis = c.getLong(7); in searchPrograms() local 377 cChannel.getString(2), startUtcMillis, endUtcMillis); in searchPrograms() 385 result.duration = endUtcMillis - startUtcMillis; in searchPrograms() [all …]
|
D | DataManagerSearch.java | 225 private int getProgressPercentage(long startUtcMillis, long endUtcMillis) { in getProgressPercentage() argument 227 if (startUtcMillis > current || endUtcMillis <= current) { in getProgressPercentage() 230 return (int)(100 * (current - startUtcMillis) / (endUtcMillis - startUtcMillis)); in getProgressPercentage()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramManager.java | 91 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis) { in TableEntry() argument 92 this(channelId, null, startUtcMillis, endUtcMillis, false); in TableEntry() 95 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis, in TableEntry() argument 97 this(channelId, null, null, startUtcMillis, endUtcMillis, blocked); in TableEntry() 524 public void updateInitialTimeRange(long startUtcMillis, long endUtcMillis) { in updateInitialTimeRange() argument 526 if (endUtcMillis > mEndUtcMillis) { in updateInitialTimeRange() 527 mEndUtcMillis = endUtcMillis; in updateInitialTimeRange() 532 setTimeRange(startUtcMillis, endUtcMillis); in updateInitialTimeRange()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | Utils.java | 283 Context context, long startUtcMillis, long endUtcMillis, boolean useShortFormat) { in getDurationString() argument 284 return getDurationString(context, System.currentTimeMillis(), startUtcMillis, endUtcMillis, in getDurationString() 290 long startUtcMillis, long endUtcMillis, boolean useShortFormat, int flag) { in getDurationString() argument 296 if (startUtcMillis != endUtcMillis && useShortFormat) { in getDurationString() 300 if (!isInGivenDay(startUtcMillis, endUtcMillis - 1) in getDurationString() 301 && endUtcMillis - startUtcMillis < TimeUnit.HOURS.toMillis(11)) { in getDurationString() 306 startUtcMillis, endUtcMillis - TimeUnit.DAYS.toMillis(1), flag); in getDurationString() 309 return DateUtils.formatDateRange(context, startUtcMillis, endUtcMillis, flag); in getDurationString()
|