/frameworks/base/core/java/android/os/ |
D | DropBoxManager.java | 98 public Entry(String tag, long millis) { in Entry() argument 102 mTimeMillis = millis; in Entry() 109 public Entry(String tag, long millis, String text) { in Entry() argument 114 mTimeMillis = millis; in Entry() 124 public Entry(String tag, long millis, byte[] data, int flags) { in Entry() argument 131 mTimeMillis = millis; in Entry() 141 public Entry(String tag, long millis, ParcelFileDescriptor data, int flags) { in Entry() argument 148 mTimeMillis = millis; in Entry() 158 public Entry(String tag, long millis, File data, int flags) throws IOException { in Entry() argument 163 mTimeMillis = millis; in Entry() [all …]
|
D | SystemClock.java | 137 native public static boolean setCurrentTimeMillis(long millis); in setCurrentTimeMillis() argument
|
/frameworks/base/location/java/android/location/ |
D | LocationRequest.java | 307 public LocationRequest setInterval(long millis) { in setInterval() argument 308 checkInterval(millis); in setInterval() 309 mInterval = millis; in setInterval() 354 public LocationRequest setFastestInterval(long millis) { in setFastestInterval() argument 355 checkInterval(millis); in setFastestInterval() 357 mFastestInterval = millis; in setFastestInterval() 390 public LocationRequest setExpireIn(long millis) { in setExpireIn() argument 394 if (millis > Long.MAX_VALUE - elapsedRealtime) { in setExpireIn() 397 mExpireAt = millis + elapsedRealtime; in setExpireIn() 418 public LocationRequest setExpireAt(long millis) { in setExpireAt() argument [all …]
|
/frameworks/base/core/jni/ |
D | android_os_SystemClock.cpp | 49 static int setCurrentTimeMillis(int64_t millis) in setCurrentTimeMillis() argument 57 if (millis <= 0 || millis / 1000LL >= INT_MAX) { in setCurrentTimeMillis() 61 tv.tv_sec = (time_t) (millis / 1000LL); in setCurrentTimeMillis() 62 tv.tv_usec = (suseconds_t) ((millis % 1000LL) * 1000LL); in setCurrentTimeMillis() 88 jobject clazz, jlong millis) in android_os_SystemClock_setCurrentTimeMillis() argument 90 return (setCurrentTimeMillis(millis) == 0); in android_os_SystemClock_setCurrentTimeMillis()
|
/frameworks/base/core/java/android/text/format/ |
D | DateUtils.java | 483 public static CharSequence formatDuration(long millis) { in formatDuration() argument 485 if (millis >= HOUR_IN_MILLIS) { in formatDuration() 486 final int hours = (int) ((millis + 1800000) / HOUR_IN_MILLIS); in formatDuration() 489 } else if (millis >= MINUTE_IN_MILLIS) { in formatDuration() 490 final int minutes = (int) ((millis + 30000) / MINUTE_IN_MILLIS); in formatDuration() 494 final int seconds = (int) ((millis + 500) / SECOND_IN_MILLIS); in formatDuration() 877 public static String formatDateTime(Context context, long millis, int flags) { in formatDateTime() argument 878 return formatDateRange(context, millis, millis, flags); in formatDateTime() 895 public static CharSequence getRelativeTimeSpanString(Context c, long millis, in getRelativeTimeSpanString() argument 900 long span = Math.abs(now - millis); in getRelativeTimeSpanString() [all …]
|
D | Time.java | 542 native public void set(long millis); in set() argument 712 long millis = time.toMillis(true); in isEpoch() local 713 return getJulianDay(millis, 0) == EPOCH_JULIAN_DAY; in isEpoch() 732 public static int getJulianDay(long millis, long gmtoff) { in getJulianDay() argument 734 long julianDay = (millis + offsetMillis) / DateUtils.DAY_IN_MILLIS; in getJulianDay() 762 long millis = (julianDay - EPOCH_JULIAN_DAY) * DateUtils.DAY_IN_MILLIS; in setJulianDay() local 763 set(millis); in setJulianDay() 767 int approximateDay = getJulianDay(millis, gmtoff); in setJulianDay() 775 millis = normalize(true); in setJulianDay() 776 return millis; in setJulianDay()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | TimeTest.java | 206 long millis = local.toMillis(true /* ignore isDst */); in testNormalize1() local 207 local.set(millis); in testNormalize1() 251 long millis = local.toMillis(false /* use isDst */); in testNormalize1() local 252 local.set(millis); in testNormalize1() 537 long millis = time.normalize(true); in disableTestGetJulianDay() local 543 int julianDay = Time.getJulianDay(millis, time.gmtoff); in disableTestGetJulianDay() 550 millis = time.normalize(true); in disableTestGetJulianDay() 551 int day = Time.getJulianDay(millis, time.gmtoff); in disableTestGetJulianDay() 578 long millis = time.normalize(true); in disableTestSetJulianDay() local 582 int julianDay = Time.getJulianDay(millis, time.gmtoff); in disableTestSetJulianDay() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/text/format/ |
D | Time_Delegate.java | 44 long millis = toMillis(thisTime, ignoreDst); in normalize() local 45 set(thisTime, millis); in normalize() 46 return millis; in normalize() 114 /*package*/ static void set(Time thisTime, long millis) { in set() argument 116 c.setTimeInMillis(millis); in set()
|
/frameworks/base/services/java/com/android/server/ |
D | VibratorService.java | 90 Vibration(IBinder token, long millis, int uid, String packageName) { in Vibration() argument 91 this(token, millis, null, 0, uid, packageName); in Vibration() 98 private Vibration(IBinder token, long millis, long[] pattern, in Vibration() argument 101 mTimeout = millis; in Vibration() 119 public boolean hasLongerTimeout(long millis) { in hasLongerTimeout() argument 126 < (SystemClock.uptimeMillis() + millis)) { in hasLongerTimeout() 476 private void doVibratorOn(long millis, int uid) { in doVibratorOn() argument 479 mBatteryStatsService.noteVibratorOn(uid, millis); in doVibratorOn() 486 mInputDeviceVibrators.get(i).vibrate(millis); in doVibratorOn() 489 vibratorOn(millis); in doVibratorOn()
|
D | DropBoxManagerService.java | 278 public synchronized DropBoxManager.Entry getNextEntry(String tag, long millis) { in getNextEntry() argument 294 for (EntryFile entry : list.contents.tailSet(new EntryFile(millis + 1))) { in getNextEntry() 564 long millis; in EntryFile() local 565 try { millis = Long.valueOf(name); } catch (NumberFormatException e) { millis = 0; } in EntryFile() 566 this.timestampMillis = millis; in EntryFile() 573 public EntryFile(long millis) { in EntryFile() argument 575 this.timestampMillis = millis; in EntryFile()
|
/frameworks/base/core/java/android/util/ |
D | TimeUtils.java | 319 int millis = (int)(duration%1000); in formatDurationLocked() local 343 myLen += accumField(millis, 2, true, myLen > 0 ? 3 : 0) + 1; in formatDurationLocked() 360 pos = printField(formatStr, millis, 'm', pos, true, (zeropad && pos != start) ? 3 : 0); in formatDurationLocked() 415 public static String logTimeOfDay(long millis) { in logTimeOfDay() argument 417 if (millis >= 0) { in logTimeOfDay() 418 c.setTimeInMillis(millis); in logTimeOfDay() 421 return Long.toString(millis); in logTimeOfDay()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | FaceUnlock.java | 345 void handlePokeWakelock(int millis) { in handlePokeWakelock() argument 348 mKeyguardScreenCallback.userActivity(millis); in handlePokeWakelock() 455 public void pokeWakelock(int millis) { 456 if (DEBUG) Log.d(TAG, "pokeWakelock() for " + millis + "ms"); 457 Message message = mHandler.obtainMessage(MSG_POKE_WAKELOCK, millis, -1);
|
/frameworks/support/v4/java/android/support/v4/util/ |
D | TimeUtils.java | 100 int millis = (int)(duration%1000); in formatDurationLocked() local 124 myLen += accumField(millis, 2, true, myLen > 0 ? 3 : 0) + 1; in formatDurationLocked() 141 pos = printField(formatStr, millis, 'm', pos, true, (zeropad && pos != start) ? 3 : 0); in formatDurationLocked()
|
/frameworks/ex/common/java/com/android/common/ |
D | OperationScheduler.java | 244 public void setTriggerTimeMillis(long millis) { in setTriggerTimeMillis() argument 246 mStorage.edit().putLong(PREFIX + "triggerTimeMillis", millis)); in setTriggerTimeMillis() 256 public void setMoratoriumTimeMillis(long millis) { in setMoratoriumTimeMillis() argument 258 .putLong(PREFIX + "moratoriumTimeMillis", millis) in setMoratoriumTimeMillis()
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
D | DatePickerDialog.java | 286 long millis = mCalendar.getTimeInMillis(); in setCurrentView() local 306 String dayString = DateUtils.formatDateTime(getActivity(), millis, flags); in setCurrentView() 325 CharSequence yearString = YEAR_FORMAT.format(millis); in setCurrentView() 344 long millis = mCalendar.getTimeInMillis(); in updateDisplay() local 345 mAnimator.setDateMillis(millis); in updateDisplay() 347 String monthAndDayText = DateUtils.formatDateTime(getActivity(), millis, flags); in updateDisplay() 352 String fullDateText = DateUtils.formatDateTime(getActivity(), millis, flags); in updateDisplay()
|
/frameworks/base/core/java/android/app/ |
D | AlarmManager.java | 490 public void setTime(long millis) { in setTime() argument 492 mService.setTime(millis); in setTime()
|
D | IAlarmManager.aidl | 31 void setTime(long millis); in setTime() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | Clock.java | 214 String millis = args.getString("millis"); in dispatchDemoCommand() local 216 if (millis != null) { in dispatchDemoCommand() 217 mCalendar.setTimeInMillis(Long.parseLong(millis)); in dispatchDemoCommand()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | IFaceLockCallback.aidl | 25 void pokeWakelock(int millis); in pokeWakelock() argument
|
/frameworks/base/core/java/com/android/internal/os/ |
D | IDropBoxManagerService.aidl | 41 DropBoxManager.Entry getNextEntry(String tag, long millis); in getNextEntry() argument
|
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/ |
D | ImfBaseTestCase.java | 142 void pause(int millis) { in pause() argument 144 Thread.sleep(millis); in pause()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IUsageStats.aidl | 25 void noteLaunchTime(in ComponentName componentName, int millis); in noteLaunchTime() argument
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStore.java | 290 final long millis = mBinder.getmtime(key); in getmtime() local 291 if (millis == -1L) { in getmtime() 295 return millis * 1000L; in getmtime()
|
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
D | accessorychat.c | 69 static void milli_sleep(int millis) { in milli_sleep() argument 73 tm.tv_nsec = millis * 1000000; in milli_sleep()
|
/frameworks/base/tools/layoutlib/bridge/src/android/os/ |
D | SystemClock_Delegate.java | 37 /*package*/ static boolean setCurrentTimeMillis(long millis) { in setCurrentTimeMillis() argument
|