/packages/apps/TV/src/com/android/tv/recommendation/ |
RoutineWatchEvaluator.java | 39 private static final long DIFF_MS_TOLERANCE_FOR_OLD_PROGRAM = TimeUnit.DAYS.toMillis(14); 40 private static final long MAX_DIFF_MS_FOR_OLD_PROGRAM = TimeUnit.DAYS.toMillis(56); 238 TimeUnit.HOURS.toMillis(12)) / 1000;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
DeviceSuspendTestActivity.java | 210 final long ALARM_WAKE_UP_DELAY_MS = TimeUnit.SECONDS.toMillis(20); 290 TimeUnit.MICROSECONDS.toMillis(MAX_REPORT_LATENCY_US) + 291 TimeUnit.SECONDS.toMillis(10); 326 TimeUnit.MICROSECONDS.toMillis(fifoBasedReportLatencyUs) + 327 TimeUnit.SECONDS.toMillis(10);
|
SignificantMotionTestActivity.java | 69 private static final long ALARM_WAKE_TIME_DELAY_MS = TimeUnit.SECONDS.toMillis(45); 209 TimeUnit.NANOSECONDS.toMillis(lastWakeupTimeNs), 210 TimeUnit.NANOSECONDS.toMillis(eventTimeStampNs)),
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTime.java | 67 long millis = time.toMillis(true); 117 public long toMillis(boolean ignoreDst) { 167 long ams = a.toMillis(false); 168 long bms = b.toMillis(false); 218 return strftime.format(new Date(toMillis(false)));
|
/frameworks/base/core/java/android/widget/ |
DateTimeView.java | 122 mTimeMillis = t.toMillis(false); 161 long twelveHoursBefore = t.toMillis(false); 163 long twelveHoursAfter = t.toMillis(false); 166 long midnightBefore = t.toMillis(false); 168 long midnightAfter = t.toMillis(false);
|
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarController.java | 475 startMillis = event.startTime.toMillis(false); 479 if (event.selectedTime != null && event.selectedTime.toMillis(false) != 0) { 485 long mtimeMillis = mTime.toMillis(false); 487 || (event.endTime != null && mtimeMillis > event.endTime.toMillis(false))) { 598 long endTime = (event.endTime == null) ? -1 : event.endTime.toMillis(false); 600 launchCreateEvent(event.startTime.toMillis(false), endTime, 605 launchViewEvent(event.id, event.startTime.toMillis(false), endTime, 609 launchEditEvent(event.id, event.startTime.toMillis(false), endTime, true); 612 launchEditEvent(event.id, event.startTime.toMillis(false), endTime, false); 615 launchDeleteEvent(event.id, event.startTime.toMillis(false), endTime) [all...] |
AllInOneActivity.java | 779 this, EventType.CREATE_EVENT, -1, t.toMillis(true), 0, 0, 0, -1); [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/opt/calendar/tests/src/com/android/calendarcommon2/ |
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...] |
/packages/apps/TV/src/com/android/tv/data/ |
ProgramDataManager.java | 62 private static final long PERIODIC_PROGRAM_UPDATE_MIN_MS = TimeUnit.MINUTES.toMillis(5); 63 private static final long PERIODIC_PROGRAM_UPDATE_MAX_MS = TimeUnit.MINUTES.toMillis(10); 64 private static final long PROGRAM_PREFETCH_UPDATE_WAIT_MS = TimeUnit.SECONDS.toMillis(5); 66 private static final long CURRENT_PROGRAM_UPDATE_WAIT_MS = TimeUnit.SECONDS.toMillis(5); 68 static final long PROGRAM_GUIDE_SNAP_TIME_MS = TimeUnit.MINUTES.toMillis(30); 70 static final long PROGRAM_GUIDE_MAX_TIME_RANGE = TimeUnit.DAYS.toMillis(2);
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
WrappingExecutorServiceTest.java | 203 assertEquals(unit.toMillis(timeout), lastTimeoutInMillis); 226 lastTimeoutInMillis = unit.toMillis(timeout); 244 lastTimeoutInMillis = unit.toMillis(timeout);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
TimeTest.java | 19 assertThat(t.toMillis(false), not(equalTo(0l))); 106 assertEquals(86400 * 1000, t.toMillis(false)); 233 millis = time.toMillis(false);
|
/external/apache-http/src/org/apache/http/impl/conn/ |
IdleConnectionHandler.java | 189 this.timeExpires = now + validUnit.toMillis(validDuration);
|
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/ |
ApacheHttpClient.java | 78 total, TimeUnit.NANOSECONDS.toMillis(finish - start)));
|
OkHttpAsync.java | 79 total, TimeUnit.NANOSECONDS.toMillis(finish - start));
|
/frameworks/base/services/core/java/com/android/server/location/ |
GpsXtraDownloader.java | 41 private static final int CONNECTION_TIMEOUT_MS = (int) TimeUnit.SECONDS.toMillis(30);
|
/frameworks/opt/telephony/src/java/android/telephony/ |
SmsCbEtwsInfo.java | 180 return time.toMillis(true) - timezoneOffset * 15 * 60 * 1000;
|
/packages/apps/Browser2/src/org/chromium/webview_shell/ |
WebViewLayoutTestActivity.java | 81 long deadline = System.currentTimeMillis() + unit.toMillis(timeout);
|
/packages/apps/TV/src/com/android/tv/ |
TimeShiftManager.java | 104 private static final long REQUEST_CURRENT_POSITION_INTERVAL = TimeUnit.SECONDS.toMillis(1); 105 private static final long MAX_DUMMY_PROGRAM_DURATION = TimeUnit.MINUTES.toMillis(30); 109 private static final long PREFETCH_TIME_OFFSET_FROM_PROGRAM_END = TimeUnit.MINUTES.toMillis(1); 110 private static final long PREFETCH_DURATION_FOR_NEXT = TimeUnit.HOURS.toMillis(2); 113 static final long REQUEST_TIMEOUT_MS = TimeUnit.SECONDS.toMillis(3); 122 private static final long PROGRAM_START_TIME_THRESHOLD = TimeUnit.SECONDS.toMillis(3); [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ |
DvrRecordingService.java | 99 mReaperRunner = new RecurringRunner(this, java.util.concurrent.TimeUnit.DAYS.toMillis(1),
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
ImportantNoticeUtils.java | 47 static final long TIMEOUT_OF_IMPORTANT_NOTICE = TimeUnit.HOURS.toMillis(23);
|
/developers/build/prebuilts/gradle/AlwaysOn/Wearable/src/main/java/com/example/android/wearable/wear/alwayson/ |
MainActivity.java | 75 private static final long ACTIVE_INTERVAL_MS = TimeUnit.SECONDS.toMillis(1); 76 private static final long AMBIENT_INTERVAL_MS = TimeUnit.SECONDS.toMillis(20);
|
/developers/build/prebuilts/gradle/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/ |
MainActivity.java | 50 private static final long COUNT_DOWN_MS = TimeUnit.SECONDS.toMillis(10); 51 private static final long MILLIS_IN_SECOND = TimeUnit.SECONDS.toMillis(1);
|
/developers/samples/android/wearable/wear/AlwaysOn/Wearable/src/main/java/com/example/android/wearable/wear/alwayson/ |
MainActivity.java | 75 private static final long ACTIVE_INTERVAL_MS = TimeUnit.SECONDS.toMillis(1); 76 private static final long AMBIENT_INTERVAL_MS = TimeUnit.SECONDS.toMillis(20);
|
/developers/samples/android/wearable/wear/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/ |
MainActivity.java | 50 private static final long COUNT_DOWN_MS = TimeUnit.SECONDS.toMillis(10); 51 private static final long MILLIS_IN_SECOND = TimeUnit.SECONDS.toMillis(1);
|