/art/test/002-sleep/src/ |
Main.java | 3 int millis = 1000; local 6 millis = Integer.parseInt(args[0]); 9 System.out.println("Sleeping " + millis + " msec..."); 12 Thread.sleep(millis); 14 long offBy = Math.abs(elapsed - millis);
|
/dalvik/tests/002-sleep/src/ |
Main.java | 3 int millis = 1000; local 6 millis = Integer.parseInt(args[0]); 9 System.out.println("Sleeping " + millis + " msec..."); 12 Thread.sleep(millis); 14 long offBy = Math.abs(elapsed - millis);
|
/libcore/luni/src/main/java/libcore/io/ |
StructTimeval.java | 35 public static StructTimeval fromMillis(long millis) { 36 long tv_sec = millis / 1000; 37 long tv_usec = (millis - (tv_sec * 1000)) * 1000;
|
/frameworks/base/core/java/com/android/internal/policy/ |
IFaceLockCallback.aidl | 25 void pokeWakelock(int millis);
|
/libcore/libdvm/src/main/java/java/lang/ |
Object.java | 385 * @param millis 388 * if {@code millis < 0}. 400 public final void wait(long millis) throws InterruptedException { 401 wait(millis, 0); 422 * @param millis 428 * if {@code millis < 0}, {@code nanos < 0} or {@code nanos > 441 public final native void wait(long millis, int nanos) throws InterruptedException;
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
simplethread.h | 25 static void sleep(int32_t millis); // probably shouldn't go here but oh well.
|
simplethread.cpp | 113 SimpleThread::sleep(int32_t millis) 248 void SimpleThread::sleep(int32_t millis) 250 ::Sleep(millis); 281 SimpleThread::sleep(int32_t millis) 418 void SimpleThread::sleep(int32_t millis) 425 cma_sleep(millis/100); 427 millis *= 1000; 428 while(millis >= 1000000) { 430 millis -= 1000000; 432 if(millis > 0) [all...] |
/external/icu4c/test/intltest/ |
simplethread.h | 25 static void sleep(int32_t millis); // probably shouldn't go here but oh well.
|
simplethread.cpp | 121 SimpleThread::sleep(int32_t millis) 256 void SimpleThread::sleep(int32_t millis) 258 ::Sleep(millis); 289 SimpleThread::sleep(int32_t millis) 426 void SimpleThread::sleep(int32_t millis) 433 cma_sleep(millis/100); 435 millis *= 1000; 436 while(millis >= 1000000) { 438 millis -= 1000000; 440 if(millis > 0) [all...] |
/external/junit/src/org/junit/rules/ |
Timeout.java | 40 * @param millis the millisecond timeout 42 public Timeout(int millis) { 43 fMillis= millis;
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
InputSmoother.java | 27 * The maximum elapsed time (in millis) between samples that we would consider "consecutive". 42 long millis; field in class:InputSmoother.Sample 54 if (last != null && nowMs - last.millis > MAX_SAMPLE_INTERVAL_MS) { 64 sample.millis = nowMs; 84 final long totalTimeMs = mRecentSamples.getLast().millis - mRecentSamples.getFirst().millis;
|
/external/valgrind/unittest/ |
thread_wrappers_win.h | 104 bool ReaderLockWhenWithTimeout(Condition cond, int millis) 105 { Lock(); return WaitLoopWithTimeout(cond, millis); } 106 bool LockWhenWithTimeout(Condition cond, int millis) 107 { Lock(); return WaitLoopWithTimeout(cond, millis); } 108 bool AwaitWithTimeout(Condition cond, int millis) 109 { return WaitLoopWithTimeout(cond, millis); } 123 bool WaitLoopWithTimeout(Condition cond, int millis) { 126 while (cond.Eval() == false && GetTimeInMs() - start_time < millis) { 163 bool WaitWithTimeout(Mutex *mu, int millis) { 166 while (!signaled_ && GetTimeInMs() - start_time < millis) { [all...] |
/libcore/libart/src/main/java/java/lang/ |
Object.java | 395 * @param millis 398 * if {@code millis < 0}. 410 public final void wait(long millis) throws InterruptedException { 411 wait(millis, 0); 432 * @param millis 438 * if {@code millis < 0}, {@code nanos < 0} or {@code nanos > 451 public final native void wait(long millis, int nanos) throws InterruptedException;
|
Thread.java | 733 * @param millis The maximum time to wait (in milliseconds). 739 public final void join(long millis) throws InterruptedException { 740 join(millis, 0); 748 * @param millis The maximum time to wait (in milliseconds). 755 public final void join(long millis, int nanos) throws InterruptedException { 756 if (millis < 0 || nanos < 0 || nanos >= NANOS_PER_MILLI) { 757 throw new IllegalArgumentException("bad timeout: millis=" + millis + ",nanos=" + nanos); 761 boolean overflow = millis >= (Long.MAX_VALUE - nanos) / NANOS_PER_MILLI; 762 boolean forever = (millis | nanos) == 0 1194 long millis = nanos \/ NANOS_PER_MILLI; local [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
IDropBoxManagerService.aidl | 41 DropBoxManager.Entry getNextEntry(String tag, long millis);
|
/external/mockito/src/org/mockito/verification/ |
Timeout.java | 29 public Timeout(int millis, VerificationMode delegate) {
30 this(10, millis, delegate);
36 Timeout(int treshhold, int millis, VerificationMode delegate) {
37 this.impl = new VerificationWithTimeoutImpl(treshhold, millis, delegate);
|
/frameworks/base/core/jni/ |
android_os_SystemClock.cpp | 49 static int setCurrentTimeMillis(int64_t millis) 57 if (millis <= 0 || millis / 1000LL >= INT_MAX) { 61 tv.tv_sec = (time_t) (millis / 1000LL); 62 tv.tv_usec = (suseconds_t) ((millis % 1000LL) * 1000LL); 83 * native public static void setCurrentTimeMillis(long millis) 88 jobject clazz, jlong millis) 90 return (setCurrentTimeMillis(millis) == 0);
|
/frameworks/base/location/java/android/location/ |
LocationRequest.java | 303 * @param millis desired interval in millisecond, inexact 307 public LocationRequest setInterval(long millis) { 308 checkInterval(millis); 309 mInterval = millis; 350 * @param millis fastest interval for updates in milliseconds, exact 354 public LocationRequest setFastestInterval(long millis) { 355 checkInterval(millis); 357 mFastestInterval = millis; 387 * @param millis duration of request in milliseconds 390 public LocationRequest setExpireIn(long millis) { [all...] |
/frameworks/base/core/java/android/os/ |
DropBoxManager.java | 98 public Entry(String tag, long millis) { 102 mTimeMillis = millis; 109 public Entry(String tag, long millis, String text) { 114 mTimeMillis = millis; 124 public Entry(String tag, long millis, byte[] data, int flags) { 131 mTimeMillis = millis; 141 public Entry(String tag, long millis, ParcelFileDescriptor data, int flags) { 148 mTimeMillis = millis; 158 public Entry(String tag, long millis, File data, int flags) throws IOException { 163 mTimeMillis = millis; [all...] |
SystemClock.java | 47 * {@link Object#wait(long) Object.wait(millis)}, and 65 * Thread.sleep(millis)} and {@link Object#wait(long) Object.wait(millis)} 72 * <li> <p> {@link #sleep SystemClock.sleep(millis)} is a utility function 73 * very similar to {@link Thread#sleep(long) Thread.sleep(millis)}, but it 137 native public static boolean setCurrentTimeMillis(long millis);
|
/external/chromium_org/base/android/java/src/org/chromium/base/ |
SystemMessageHandler.java | 38 private void setDelayedTimer(long millis) { 40 sendEmptyMessageDelayed(DELAYED_TIMER_MESSAGE, millis);
|
/external/mockito/src/org/mockito/internal/verification/ |
VerificationWithTimeoutImpl.java | 17 public VerificationWithTimeoutImpl(int treshhold, int millis, VerificationMode delegate) {
19 this.timeout = millis;
|
/frameworks/base/core/java/android/app/ |
IAlarmManager.aidl | 31 void setTime(long millis);
|
/frameworks/base/core/java/com/android/internal/app/ |
IUsageStats.aidl | 25 void noteLaunchTime(in ComponentName componentName, int millis);
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
MockAlarmManager.java | 35 public void expectAlarmTime(int type, long millis) { 37 this.expectedAlarmTime = millis;
|