/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
TimeUnit.java | 17 public long toMillis(long d) { return d/(C2/C0); } 28 public long toMillis(long d) { return d/(C2/C1); } 39 public long toMillis(long d) { return d; } 44 public long convert(long d, TimeUnit u) { return u.toMillis(d); } 50 public long toMillis(long d) { return x(d, C3/C2, MAX/(C3/C2)); } 61 public long toMillis(long d) { return x(d, C4/C2, MAX/(C4/C2)); } 72 public long toMillis(long d) { return x(d, C5/C2, MAX/(C5/C2)); } 83 public long toMillis(long d) { return x(d, C6/C2, MAX/(C6/C2)); } 123 public long toMillis(long duration) {
|
/libcore/luni/src/test/java/libcore/java/lang/ref/ |
ReferenceQueueTest.java | 56 long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); 78 long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); 88 long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos);
|
/libcore/luni/src/main/java/java/util/concurrent/ |
TimeUnit.java | 46 public long toMillis(long d) { return d/(C2/C0); } 57 public long toMillis(long d) { return d/(C2/C1); } 68 public long toMillis(long d) { return d; } 73 public long convert(long d, TimeUnit u) { return u.toMillis(d); } 79 public long toMillis(long d) { return x(d, C3/C2, MAX/(C3/C2)); } 90 public long toMillis(long d) { return x(d, C4/C2, MAX/(C4/C2)); } 101 public long toMillis(long d) { return x(d, C5/C2, MAX/(C5/C2)); } 112 public long toMillis(long d) { return x(d, C6/C2, MAX/(C6/C2)); } 202 public long toMillis(long duration) { 291 long ms = toMillis(timeout) [all...] |
/frameworks/base/core/jni/ |
Time.cpp | 58 int64_t am = a.toMillis(false /* use isDst */); 59 int64_t bm = b.toMillis(false /* use isDst */); 166 (int)(((Time*)this)->toMillis(false /* use isDst */)/1000)); 180 Time::toMillis(bool ignoreDst)
|
TimeUtils.h | 66 int64_t toMillis(bool ignoreDst);
|
/libcore/luni/src/main/java/libcore/io/ |
StructTimeval.java | 41 public long toMillis() {
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
SyncCalendarTest.java | 62 long dtStart = time.toMillis(false); 63 long dtEnd = time.toMillis(false) + ONE_HOUR_IN_MILLIS; 111 long newDtStart = time.toMillis(false); 113 long newDtEnd = time.toMillis(false);
|
CalendarSyncTestingBase.java | 278 mDtstart = time.toMillis(false /* use isDst */); 280 mDtend = time.toMillis(false /* use isDst */); 310 mDtstart = time.toMillis(false /* use isDst */); 313 mDtend = time.toMillis(false /* use isDst */); 342 mOriginalInstance = time.toMillis(false /* use isDst */);
|
CalendarProvider2Test.java | 301 begin = time.toMillis(false /* use isDst */); 303 end = time.toMillis(false /* use isDst */); 325 begin = time.toMillis(false /* use isDst */); 327 end = time.toMillis(false /* use isDst */); 353 begin = time.toMillis(false /* use isDst */); 355 end = time.toMillis(false /* use isDst */); 367 this.instances[index++] = time.toMillis(false /* use isDst */); 448 begin = time.toMillis(false /* use isDst */); 450 end = time.toMillis(false /* use isDst */); 455 instance = time.toMillis(false /* use isDst */) [all...] |
/frameworks/base/core/java/android/widget/ |
DateTimeView.java | 98 mTimeMillis = t.toMillis(false); 118 long twelveHoursBefore = t.toMillis(false); 120 long twelveHoursAfter = t.toMillis(false); 123 long midnightBefore = t.toMillis(false); 125 long midnightAfter = t.toMillis(false);
|
/packages/apps/Calendar/src/com/android/calendar/ |
SearchActivity.java | 190 event.startTime.toMillis(false), event.endTime.toMillis(false), 201 event.startTime != null ? event.startTime.toMillis(true) : -1); 203 EXTRA_EVENT_END_TIME, event.endTime != null ? event.endTime.toMillis(true) : -1); 355 long endTime = (event.endTime == null) ? -1 : event.endTime.toMillis(false); 359 deleteEvent(event.id, event.startTime.toMillis(false), endTime);
|
CalendarController.java | 443 startMillis = event.startTime.toMillis(false); 447 if (event.selectedTime != null && event.selectedTime.toMillis(false) != 0) { 453 long mtimeMillis = mTime.toMillis(false); 455 || (event.endTime != null && mtimeMillis > event.endTime.toMillis(false))) { 566 long endTime = (event.endTime == null) ? -1 : event.endTime.toMillis(false); 568 launchCreateEvent(event.startTime.toMillis(false), endTime, 572 launchViewEvent(event.id, event.startTime.toMillis(false), endTime, 576 launchEditEvent(event.id, event.startTime.toMillis(false), endTime, true); 579 launchEditEvent(event.id, event.startTime.toMillis(false), endTime, false); 582 launchDeleteEvent(event.id, event.startTime.toMillis(false), endTime) [all...] |
AllInOneActivity.java | [all...] |
/packages/apps/Calendar/src/com/android/calendar/month/ |
MonthByWeekFragment.java | 160 long start = mTempTime.toMillis(true); 164 long end = mTempTime.toMillis(true); 253 Time.getJulianDay(mSelectedDay.toMillis(true), mSelectedDay.gmtoff)); 327 Time.getJulianDay(mSelectedDay.toMillis(true), mSelectedDay.gmtoff) 357 goTo(mSelectedDay.toMillis(true), false, true, false); 406 Time.getJulianDay(event.selectedTime.toMillis(true), event.selectedTime.gmtoff) 407 - Time.getJulianDay(mFirstVisibleDay.toMillis(true), mFirstVisibleDay.gmtoff) 414 boolean delayAnimation = goTo(event.selectedTime.toMillis(true), animate, true, false);
|
SimpleDayPickerFragment.java | 130 long currentMillis = midnight.toMillis(true); 151 goTo(day.toMillis(true), true, true, false); 206 Time.getJulianDay(mSelectedDay.toMillis(false), mSelectedDay.gmtoff)); 293 outState.putLong(KEY_CURRENT_TIME, mSelectedDay.toMillis(true)); 308 goTo(mSelectedDay.toMillis(true), false, false, false); 360 return mSelectedDay.toMillis(true);
|
/external/okhttp/src/main/java/libcore/net/http/ |
ResponseHeaders.java | 278 ? Math.max(apparentReceivedAge, TimeUnit.SECONDS.toMillis(ageSeconds)) 291 return TimeUnit.SECONDS.toMillis(maxAgeSeconds); 399 TimeUnit.SECONDS.toMillis(request.getMaxAgeSeconds())); 404 minFreshMillis = TimeUnit.SECONDS.toMillis(request.getMinFreshSeconds()); 409 maxStaleMillis = TimeUnit.SECONDS.toMillis(request.getMaxStaleSeconds()); 416 if (ageMillis > TimeUnit.HOURS.toMillis(24) && isFreshnessLifetimeHeuristic()) {
|
/libcore/luni/src/main/java/libcore/net/http/ |
ResponseHeaders.java | 283 ? Math.max(apparentReceivedAge, TimeUnit.SECONDS.toMillis(ageSeconds)) 296 return TimeUnit.SECONDS.toMillis(maxAgeSeconds); 404 TimeUnit.SECONDS.toMillis(request.getMaxAgeSeconds())); 409 minFreshMillis = TimeUnit.SECONDS.toMillis(request.getMinFreshSeconds()); 414 maxStaleMillis = TimeUnit.SECONDS.toMillis(request.getMaxStaleSeconds()); 421 if (ageMillis > TimeUnit.HOURS.toMillis(24) && isFreshnessLifetimeHeuristic()) {
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
AgendaFragment.java | 250 timeToSave = mLastHandledEventTime.toMillis(true); 411 long startMillis = event.startTime.toMillis(true); 412 long endMillis = event.endTime.toMillis(true); 418 event.startTime.toMillis(true), event.endTime.toMillis(true), 458 mController.setTime(t.toMillis(true));
|
AgendaWindowAdapter.java | 260 long goToTimeMillis = goToTime.toMillis(false); 280 if (goToTime.toMillis(false) != other.goToTime.toMillis(false)) { 631 event.begin = time.toMillis(false /* use isDst */); 638 event.begin = time.toMillis(false /* use isDst */); 645 event.end = time.toMillis(false /* use isDst */); 668 int startDay = Time.getJulianDay(goToTime.toMillis(false), goToTime.gmtoff); 696 event.allDay), goToTime.toMillis(false)); [all...] |
/frameworks/base/core/tests/coretests/src/android/text/format/ |
TimeTest.java | 206 long millis = local.toMillis(true /* ignore isDst */); 216 "day test index " + index + ", toMillis(): expected local " + expectedTime 251 long millis = local.toMillis(false /* use isDst */); 263 "minute test index " + index + ", toMillis(): expected local " + expectedTime 335 long r = t.toMillis(true /* ignore isDst */); 338 r = t.toMillis(true /* ignore isDst */); 346 long r = t.toMillis(true /* ignore isDst */); 596 millis = time.toMillis(false);
|
/frameworks/base/core/java/android/text/format/ |
Time.java | 206 * See {@link #toMillis(boolean)} for more information about when to 509 * Here is an example where <tt>toMillis(true)</tt> adjusts the time, 517 * millis = time.toMillis(false); // millis is Nov 4, 2007, 11pm 518 * millis = time.toMillis(true); // millis is Nov 5, 2007, 12am 522 * To avoid this problem, use <tt>toMillis(true)</tt> 526 * <tt>toMillis(false)</tt>. 529 * You should also use <tt>toMillis(false)</tt> if you want 533 native public long toMillis(boolean ignoreDst); 712 long millis = time.toMillis(true); 726 * Use {@link #toMillis(boolean)} to get the milliseconds [all...] |
/cts/tests/tests/text/src/android/text/format/cts/ |
TimeTest.java | 351 long millis = local.toMillis(true /* ignore isDst */); 361 "day test index " + index + ", toMillis(): expected local " + expectedTime 396 long millis = local.toMillis(false /* use isDst */); 408 "minute test index " + index + ", toMillis(): expected local " 532 long time = t.toMillis(false) / 1000; 542 long r = t.toMillis(true); 546 r = t.toMillis(true); 550 r = t.toMillis(true); 731 millis = time.toMillis(false);
|
/frameworks/base/core/java/android/net/ |
NetworkPolicyManager.java | 182 return cycle.toMillis(true); 212 return cycle.toMillis(true);
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
WeekNumberTest.java | 211 long millis = test.date.toMillis(false /* use isDst */); 223 long millis = test.date.toMillis(false /* use isDst */);
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
EditEventFragment.java | 362 mBegin = mEvent.startTime.toMillis(true); 365 mEnd = mEvent.endTime.toMillis(true); 715 start = t.toMillis(true); 720 end = t.toMillis(true); [all...] |