Searched refs:endUtcMillis (Results 1 - 4 of 4) sorted by relevance

/packages/apps/TV/src/com/android/tv/search/
H A DTvProviderSearch.java275 long endUtcMillis = c.getLong(6);
278 startUtcMillis, endUtcMillis);
285 result.duration = endUtcMillis - startUtcMillis;
286 result.progressPercentage = getProgressPercentage(startUtcMillis, endUtcMillis);
297 private int getProgressPercentage(long startUtcMillis, long endUtcMillis) { argument
299 if (startUtcMillis > current || endUtcMillis <= current) {
302 return (int)(100 * (current - startUtcMillis) / (endUtcMillis - startUtcMillis));
372 long endUtcMillis = c.getLong(7);
377 cChannel.getString(2), startUtcMillis, endUtcMillis);
385 result.duration = endUtcMillis
[all...]
H A DDataManagerSearch.java225 private int getProgressPercentage(long startUtcMillis, long endUtcMillis) { argument
227 if (startUtcMillis > current || endUtcMillis <= current) {
230 return (int)(100 * (current - startUtcMillis) / (endUtcMillis - startUtcMillis));
/packages/apps/TV/src/com/android/tv/guide/
H A DProgramManager.java91 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis) { argument
92 this(channelId, null, startUtcMillis, endUtcMillis, false);
95 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis, argument
97 this(channelId, null, null, startUtcMillis, endUtcMillis, blocked);
524 public void updateInitialTimeRange(long startUtcMillis, long endUtcMillis) { argument
526 if (endUtcMillis > mEndUtcMillis) {
527 mEndUtcMillis = endUtcMillis;
532 setTimeRange(startUtcMillis, endUtcMillis);
/packages/apps/TV/src/com/android/tv/util/
H A DUtils.java275 * @param startUtcMillis start of duration in millis. Should be less than {code endUtcMillis}.
276 * @param endUtcMillis end of duration in millis. Should be larger than {@code startUtcMillis}.
283 Context context, long startUtcMillis, long endUtcMillis, boolean useShortFormat) {
284 return getDurationString(context, System.currentTimeMillis(), startUtcMillis, endUtcMillis,
290 long startUtcMillis, long endUtcMillis, boolean useShortFormat, int flag) {
296 if (startUtcMillis != endUtcMillis && useShortFormat) {
300 if (!isInGivenDay(startUtcMillis, endUtcMillis - 1)
301 && endUtcMillis - startUtcMillis < TimeUnit.HOURS.toMillis(11)) {
306 startUtcMillis, endUtcMillis - TimeUnit.DAYS.toMillis(1), flag);
309 return DateUtils.formatDateRange(context, startUtcMillis, endUtcMillis, fla
282 getDurationString( Context context, long startUtcMillis, long endUtcMillis, boolean useShortFormat) argument
289 getDurationString(Context context, long baseMillis, long startUtcMillis, long endUtcMillis, boolean useShortFormat, int flag) argument
[all...]

Completed in 86 milliseconds