/external/icu/icu4c/source/i18n/ |
simpletz.cpp | 394 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const 408 return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status); 413 uint8_t dayOfWeek, int32_t millis, 432 return getOffset(era, year, month, day, dayOfWeek, millis, 440 uint8_t dayOfWeek, int32_t millis, 453 || millis < 0 454 || millis >= U_MILLIS_PER_DAY 476 (int8_t)day, (int8_t)dayOfWeek, millis, 490 (int8_t)day, (int8_t)dayOfWeek, millis, 518 int32_t millis = (int32_t) (date - day * U_MILLIS_PER_DAY) local [all...] |
gregoimp.h | 197 * month, day-of-month, and day-of-week, day of year and millis-in-day. 204 * @param mid output parameter to recieve millis-in-day 236 * @param millis the given milliseconds. 240 static inline int32_t millisToJulianDay(double millis); 284 inline int32_t Grego::millisToJulianDay(double millis) { 285 return (int32_t) (kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay));
|
vzone.cpp | 118 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) { 119 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, status); 124 uint8_t dayOfWeek, int32_t millis, 126 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, monthLength, status);
|
/frameworks/base/core/java/android/text/format/ |
Time.java | 393 * long millis = time.normalize(false); 719 * millis = time.toMillis(false); // millis is Nov 4, 2007, 11pm 720 * millis = time.toMillis(true); // millis is Nov 5, 2007, 12am 745 * @param millis the time in UTC milliseconds since the epoch. 747 public void set(long millis) { 750 calculator.setTimeInMillis(millis); 924 long millis = time.toMillis(true); local 925 return getJulianDay(millis, 0) == EPOCH_JULIAN_DAY 976 long millis = (julianDay - EPOCH_JULIAN_DAY) * DateUtils.DAY_IN_MILLIS; local [all...] |
Formatter.java | 116 * Returns elapsed time for the given millis, in the following format: 119 * @param millis the elapsed time in milli seconds 123 public static String formatShortElapsedTime(Context context, long millis) { 124 long secondsLong = millis / 1000; 177 * Returns elapsed time for the given millis, in the following format: 180 * @param millis the elapsed time in milli seconds 184 public static String formatShortElapsedTimeRoundingUpToMinutes(Context context, long millis) { 185 long minutesRoundedUp = (millis + MILLIS_PER_MINUTE - 1) / MILLIS_PER_MINUTE;
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
TimeTest.java | 206 long millis = local.toMillis(true /* ignore isDst */); local 207 local.set(millis); 251 long millis = local.toMillis(false /* use isDst */); local 252 local.set(millis); 537 long millis = time.normalize(true); local 543 int julianDay = Time.getJulianDay(millis, time.gmtoff); 550 millis = time.normalize(true); 551 int day = Time.getJulianDay(millis, time.gmtoff); 578 long millis = time.normalize(true); local 582 int julianDay = Time.getJulianDay(millis, time.gmtoff) [all...] |
/device/google/accessory/arduino/USB_Host_Shield/ |
Usb.cpp | 238 unsigned long timeout = millis() + USB_XFER_TIMEOUT;
255 while( rcode && ( timeout > millis())) {
294 unsigned long timeout = millis() + USB_XFER_TIMEOUT;
300 while( timeout > millis() ) {
303 while( millis() < timeout ) { //wait for transfer completion
310 }//while ( millis() < timeout
331 }//while( timeout > millis()
358 delay = millis() + USB_SETTLE_DELAY;
375 if( delay < millis() ) {
389 delay = millis() + 20; //20ms wait after reset per USB spec [all...] |
/external/chromium_org/third_party/icu/source/test/threadtest/ |
threadtest.cpp | 48 static void Sleep(int millis) {::Sleep(millis);}; 97 static void Sleep(int millis); 103 void ThreadFuncs::Sleep(int millis) 105 int seconds = millis/1000;
|
/external/icu/icu4c/source/test/threadtest/ |
threadtest.cpp | 48 static void Sleep(int millis) {::Sleep(millis);}; 97 static void Sleep(int millis); 103 void ThreadFuncs::Sleep(int millis) 105 int seconds = millis/1000;
|
/external/chromium_org/third_party/icu/source/i18n/ |
gregoimp.h | 197 * month, day-of-month, and day-of-week, day of year and millis-in-day. 204 * @param mid output parameter to recieve millis-in-day 236 * @param millis the given milliseconds. 240 static inline int32_t millisToJulianDay(double millis); 284 inline int32_t Grego::millisToJulianDay(double millis) { 285 return (int32_t) (kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay));
|
vzone.cpp | 118 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) { 119 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, status); 124 uint8_t dayOfWeek, int32_t millis, 126 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, monthLength, status);
|
/frameworks/support/v4/java/android/support/v4/util/ |
TimeUtils.java | 100 int millis = (int)(duration%1000); local 124 myLen += accumField(millis, 2, true, myLen > 0 ? 3 : 0) + 1; 141 pos = printField(formatStr, millis, 'm', pos, true, (zeropad && pos != start) ? 3 : 0);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
ThreadTest.java | 62 int millis = 1000; local 65 Thread.sleep(millis); 68 long offBy = Math.abs(elapsed - millis);
|
/art/runtime/ |
monitor_test.cc | 108 explicit CreateTask(MonitorTest* monitor_test, uint64_t initial_sleep, int64_t millis, 110 monitor_test_(monitor_test), initial_sleep_(initial_sleep), millis_(millis), 183 UseTask(MonitorTest* monitor_test, uint64_t initial_sleep, int64_t millis, bool expected) : 184 monitor_test_(monitor_test), initial_sleep_(initial_sleep), millis_(millis), 222 InterruptTask(MonitorTest* monitor_test, uint64_t initial_sleep, uint64_t millis) : 223 monitor_test_(monitor_test), initial_sleep_(initial_sleep), millis_(millis) {}
|
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/input/ |
InputDialogContainerTest.java | 360 int hourOfDay, int minute, int second, int millis, int week, 369 mExpectedMillis = millis; 379 int hourOfDay, int minute, int second, int millis, int week, 388 assertEquals(mExpectedMillis, millis); 398 int hourOfDay, int minute, int second, int millis, 402 hourOfDay, minute, second, millis,
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
OkHttpClient.java | 91 long millis = unit.toMillis(timeout); local 92 if (millis > Integer.MAX_VALUE) { 95 connectTimeout = (int) millis; 115 long millis = unit.toMillis(timeout); local 116 if (millis > Integer.MAX_VALUE) { 119 readTimeout = (int) millis;
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_posix_libcdep.cc | 75 void SleepForMillis(int millis) { 76 usleep(millis * 1000);
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
JSR166TestCase.java | 485 static void delay(long millis) throws InterruptedException { 487 long ns = millis * 1000 * 1000; 489 if (millis > 0L) 490 Thread.sleep(millis); 495 millis = d / (1000 * 1000); 527 void assertThreadStaysAlive(Thread thread, long millis) { 530 delay(millis); 548 void assertThreadsStayAlive(long millis, Thread... threads) { 551 delay(millis); 709 void sleep(long millis) { [all...] |
/frameworks/base/services/core/java/com/android/server/ |
VibratorService.java | 98 Vibration(IBinder token, long millis, int usageHint, int uid, String opPkg) { 99 this(token, millis, null, 0, usageHint, uid, opPkg); 107 private Vibration(IBinder token, long millis, long[] pattern, 110 mTimeout = millis; 129 public boolean hasLongerTimeout(long millis) { 136 < (SystemClock.uptimeMillis() + millis)) { 530 private void doVibratorOn(long millis, int uid, int usageHint) { 533 Slog.d(TAG, "Turning vibrator on for " + millis + " ms."); 536 mBatteryStatsService.noteVibratorOn(uid, millis); 545 mInputDeviceVibrators.get(i).vibrate(millis, attributes) [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
JSR166TestCase.java | 366 static void delay(long millis) throws InterruptedException { 368 long ns = millis * 1000 * 1000; 370 if (millis > 0L) 371 Thread.sleep(millis); 376 millis = d / (1000 * 1000); 408 void assertThreadStaysAlive(Thread thread, long millis) { 411 delay(millis); 429 void assertThreadsStayAlive(long millis, Thread... threads) { 432 delay(millis); 582 void sleep(long millis) { [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
FaceUnlock.java | 343 void handlePokeWakelock(int millis) { 453 public void pokeWakelock(int millis) { 454 if (DEBUG) Log.d(TAG, "pokeWakelock() for " + millis + "ms"); 455 Message message = mHandler.obtainMessage(MSG_POKE_WAKELOCK, millis, -1);
|
/frameworks/ex/common/java/com/android/common/ |
OperationScheduler.java | 242 * @param millis wall clock time ({@link System#currentTimeMillis()}) to 245 public void setTriggerTimeMillis(long millis) { 247 mStorage.edit().putLong(PREFIX + "triggerTimeMillis", millis)); 254 * @param millis wall clock time ({@link System#currentTimeMillis()}) 257 public void setMoratoriumTimeMillis(long millis) { 259 .putLong(PREFIX + "moratoriumTimeMillis", millis)
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
CalendarAppWidgetProvider.java | 136 long millis = time.toMillis(true); local 139 final String date = Utils.formatDateRange(context, millis, millis, 153 .setData(Uri.parse("content://com.android.calendar/time/" + millis));
|
/packages/apps/UnifiedEmail/src/com/android/mail/analytics/ |
Analytics.java | 120 public void sendTiming(String category, long millis, String name, String label) {}
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
AgendaByDayAdapter.java | 224 long millis = date.setJulianDay(row.mDay); local 228 String dayViewText = Utils.getDayOfWeekString(row.mDay, mTodayJulianDay, millis, 236 String dateViewText = DateUtils.formatDateRange(mContext, mFormatter, millis, millis, 512 long millis = time.toMillis(false /* use isDst */); local 540 if (row.mEventStartTimeMilli == millis) { 545 long distance = Math.abs(millis - row.mEventStartTimeMilli); 554 if (millis >= row.mEventStartTimeMilli && millis <= row.mEventEndTimeMilli) { 565 long distance = Math.abs(millis - row.mEventStartTimeMilli) [all...] |