/libcore/luni/src/main/java/libcore/io/ |
StructTimeval.java | 41 public long toMillis() {
|
/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...] |
/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);
|
/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);
|
/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);
|
/libcore/luni/src/main/java/libcore/net/http/ |
ResponseHeaders.java | 291 ? Math.max(apparentReceivedAge, TimeUnit.SECONDS.toMillis(ageSeconds)) 304 return TimeUnit.SECONDS.toMillis(maxAgeSeconds); 412 TimeUnit.SECONDS.toMillis(request.getMaxAgeSeconds())); 417 minFreshMillis = TimeUnit.SECONDS.toMillis(request.getMinFreshSeconds()); 422 maxStaleMillis = TimeUnit.SECONDS.toMillis(request.getMaxStaleSeconds()); 429 if (ageMillis > TimeUnit.HOURS.toMillis(24) && isFreshnessLifetimeHeuristic()) {
|
/packages/apps/Calendar/src/com/android/calendar/ |
SearchActivity.java | 175 event.startTime.toMillis(false), event.endTime.toMillis(false), 186 event.startTime != null ? event.startTime.toMillis(true) : -1); 188 EXTRA_EVENT_END_TIME, event.endTime != null ? event.endTime.toMillis(true) : -1); 319 long endTime = (event.endTime == null) ? -1 : event.endTime.toMillis(false); 323 deleteEvent(event.id, event.startTime.toMillis(false), endTime);
|
CalendarController.java | 381 startMillis = event.startTime.toMillis(false); 385 if (event.selectedTime != null && event.selectedTime.toMillis(false) != 0) { 391 long mtimeMillis = mTime.toMillis(false); 393 || (event.endTime != null && mtimeMillis > event.endTime.toMillis(false))) { 504 long endTime = (event.endTime == null) ? -1 : event.endTime.toMillis(false); 506 launchCreateEvent(event.startTime.toMillis(false), endTime, 510 launchViewEvent(event.id, event.startTime.toMillis(false), endTime); 513 launchEditEvent(event.id, event.startTime.toMillis(false), endTime, true); 516 launchEditEvent(event.id, event.startTime.toMillis(false), endTime, false); 519 launchDeleteEvent(event.id, event.startTime.toMillis(false), endTime) [all...] |
AllInOneActivity.java | 717 this, EventType.CREATE_EVENT, -1, t.toMillis(true), 0, 0, 0, -1); [all...] |
/packages/apps/Calendar/src/com/android/calendar/month/ |
MonthByWeekFragment.java | 150 long start = mTempTime.toMillis(true); 154 long end = mTempTime.toMillis(true); 255 Time.getJulianDay(mSelectedDay.toMillis(true), mSelectedDay.gmtoff)); 318 Time.getJulianDay(mSelectedDay.toMillis(true), mSelectedDay.gmtoff) 348 goTo(mSelectedDay.toMillis(true), false, true, false); 396 Time.getJulianDay(event.selectedTime.toMillis(true), event.selectedTime.gmtoff) 397 - Time.getJulianDay(mFirstVisibleDay.toMillis(true), mFirstVisibleDay.gmtoff) 404 boolean delayAnimation = goTo(event.selectedTime.toMillis(true), animate, true, false);
|
SimpleDayPickerFragment.java | 131 long currentMillis = midnight.toMillis(true); 152 goTo(day.toMillis(true), true, true, false); 207 Time.getJulianDay(mSelectedDay.toMillis(false), mSelectedDay.gmtoff)); 295 outState.putLong(KEY_CURRENT_TIME, mSelectedDay.toMillis(true)); 310 goTo(mSelectedDay.toMillis(true), false, false, false); 362 return mSelectedDay.toMillis(true);
|
/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...] |
/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 */);
|
FormatDateRangeTest.java | 185 long startMillis = dateTest.date1.toMillis(false /* use isDst */); 186 long endMillis = dateTest.date2.toMillis(false /* use isDst */);
|
/cts/tests/tests/app/src/android/app/cts/ |
DownloadManagerTest.java | 65 new DownloadCompleteReceiver(2, TimeUnit.SECONDS.toMillis(3)); 93 new DownloadCompleteReceiver(1, TimeUnit.MINUTES.toMillis(2)); 150 new DownloadCompleteReceiver(3, TimeUnit.SECONDS.toMillis(5)); 202 new DownloadCompleteReceiver(2, TimeUnit.SECONDS.toMillis(5));
|
/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/opt/calendar/tests/src/com/android/calendarcommon/ |
RecurrenceProcessorTest.java | 109 long[] out = rp.expand(dtstart, recur, rangeStart.toMillis(false /* use isDst */), 110 rangeEnd.toMillis(false /* use isDst */)); 153 lastMillis = outCal.toMillis(true /* ignore isDst */); 158 expectedMillis = expectedLast.toMillis(true /* ignore isDst */); [all...] |
/external/apache-http/src/org/apache/http/impl/conn/ |
IdleConnectionHandler.java | 184 this.timeExpires = now + validUnit.toMillis(validDuration);
|
SingleClientConnManager.java | 330 connectionExpiresTime = timeUnit.toMillis(validDuration) + lastReleaseTime; 354 System.currentTimeMillis() - tunit.toMillis(idletime);
|
/frameworks/base/core/java/android/net/ |
NetworkPolicyManager.java | 155 return cycle.toMillis(true); 181 return cycle.toMillis(true);
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
AlertReceiver.java | 176 int today = Time.getJulianDay(time.toMillis(false), time.gmtoff); 178 int eventDay = Time.getJulianDay(time.toMillis(false), time.gmtoff);
|
/cts/tests/tests/text/src/android/text/format/cts/ |
TimeTest.java | 386 method = "toMillis", 417 long millis = local.toMillis(true /* ignore isDst */); 427 "day test index " + index + ", toMillis(): expected local " + expectedTime 462 long millis = local.toMillis(false /* use isDst */); 474 "minute test index " + index + ", toMillis(): expected local " 632 long time = t.toMillis(false); 638 method = "toMillis", 644 long r = t.toMillis(true); 648 r = t.toMillis(true); 652 r = t.toMillis(true) [all...] |