Home
last modified time | relevance | path

Searched refs:millis (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/core/java/android/os/
DDropBoxManager.java95 public Entry(String tag, long millis) { in Entry() argument
99 mTimeMillis = millis; in Entry()
106 public Entry(String tag, long millis, String text) { in Entry() argument
111 mTimeMillis = millis; in Entry()
121 public Entry(String tag, long millis, byte[] data, int flags) { in Entry() argument
128 mTimeMillis = millis; in Entry()
138 public Entry(String tag, long millis, ParcelFileDescriptor data, int flags) { in Entry() argument
145 mTimeMillis = millis; in Entry()
155 public Entry(String tag, long millis, File data, int flags) throws IOException { in Entry() argument
160 mTimeMillis = millis; in Entry()
[all …]
DSystemClock.java142 public static boolean setCurrentTimeMillis(long millis) { in setCurrentTimeMillis() argument
150 return mgr.setTime(millis); in setCurrentTimeMillis()
/frameworks/base/location/java/android/location/
DLocationRequest.java311 public LocationRequest setInterval(long millis) { in setInterval() argument
312 checkInterval(millis); in setInterval()
313 mInterval = millis; in setInterval()
358 public LocationRequest setFastestInterval(long millis) { in setFastestInterval() argument
359 checkInterval(millis); in setFastestInterval()
361 mFastestInterval = millis; in setFastestInterval()
394 public LocationRequest setExpireIn(long millis) { in setExpireIn() argument
398 if (millis > Long.MAX_VALUE - elapsedRealtime) { in setExpireIn()
401 mExpireAt = millis + elapsedRealtime; in setExpireIn()
422 public LocationRequest setExpireAt(long millis) { in setExpireAt() argument
[all …]
/frameworks/base/core/java/android/text/format/
DDateUtils.java482 public static CharSequence formatDuration(long millis) { in formatDuration() argument
484 if (millis >= HOUR_IN_MILLIS) { in formatDuration()
485 final int hours = (int) ((millis + 1800000) / HOUR_IN_MILLIS); in formatDuration()
488 } else if (millis >= MINUTE_IN_MILLIS) { in formatDuration()
489 final int minutes = (int) ((millis + 30000) / MINUTE_IN_MILLIS); in formatDuration()
493 final int seconds = (int) ((millis + 500) / SECOND_IN_MILLIS); in formatDuration()
876 public static String formatDateTime(Context context, long millis, int flags) { in formatDateTime() argument
877 return formatDateRange(context, millis, millis, flags); in formatDateTime()
894 public static CharSequence getRelativeTimeSpanString(Context c, long millis, in getRelativeTimeSpanString() argument
899 long span = Math.abs(now - millis); in getRelativeTimeSpanString()
[all …]
DTime.java744 public void set(long millis) { in set() argument
747 calculator.setTimeInMillis(millis); in set()
921 long millis = time.toMillis(true); in isEpoch() local
922 return getJulianDay(millis, 0) == EPOCH_JULIAN_DAY; in isEpoch()
943 public static int getJulianDay(long millis, long gmtoff) { in getJulianDay() argument
945 long julianDay = (millis + offsetMillis) / DateUtils.DAY_IN_MILLIS; in getJulianDay()
973 long millis = (julianDay - EPOCH_JULIAN_DAY) * DateUtils.DAY_IN_MILLIS; in setJulianDay() local
974 set(millis); in setJulianDay()
978 int approximateDay = getJulianDay(millis, gmtoff); in setJulianDay()
986 millis = normalize(true); in setJulianDay()
[all …]
DFormatter.java122 public static String formatShortElapsedTime(Context context, long millis) { in formatShortElapsedTime() argument
123 long secondsLong = millis / 1000; in formatShortElapsedTime()
/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeTest.java206 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/services/core/java/com/android/server/
DVibratorService.java98 Vibration(IBinder token, long millis, int usageHint, int uid, String opPkg) { in Vibration() argument
99 this(token, millis, null, 0, usageHint, uid, opPkg); in Vibration()
107 private Vibration(IBinder token, long millis, long[] pattern, in Vibration() argument
110 mTimeout = millis; in Vibration()
129 public boolean hasLongerTimeout(long millis) { in hasLongerTimeout() argument
136 < (SystemClock.uptimeMillis() + millis)) { in hasLongerTimeout()
530 private void doVibratorOn(long millis, int uid, int usageHint) { in doVibratorOn() argument
533 Slog.d(TAG, "Turning vibrator on for " + millis + " ms."); in doVibratorOn()
536 mBatteryStatsService.noteVibratorOn(uid, millis); in doVibratorOn()
545 mInputDeviceVibrators.get(i).vibrate(millis, attributes); in doVibratorOn()
[all …]
DDropBoxManagerService.java278 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/
DTimeUtils.java319 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/support/v4/java/android/support/v4/util/
DTimeUtils.java100 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/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp232 … android_server_AlarmManagerService_setKernelTime(JNIEnv*, jobject, jlong nativeData, jlong millis) in android_server_AlarmManagerService_setKernelTime() argument
238 if (millis <= 0 || millis / 1000LL >= INT_MAX) { in android_server_AlarmManagerService_setKernelTime()
242 tv.tv_sec = (time_t) (millis / 1000LL); in android_server_AlarmManagerService_setKernelTime()
243 tv.tv_usec = (suseconds_t) ((millis % 1000LL) * 1000LL); in android_server_AlarmManagerService_setKernelTime()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DDatePickerDialog.java288 long millis = mCalendar.getTimeInMillis(); in setCurrentView() local
308 String dayString = DateUtils.formatDateTime(getActivity(), millis, flags); in setCurrentView()
327 CharSequence yearString = YEAR_FORMAT.format(millis); in setCurrentView()
346 long millis = mCalendar.getTimeInMillis(); in updateDisplay() local
347 mAnimator.setDateMillis(millis); in updateDisplay()
349 String monthAndDayText = DateUtils.formatDateTime(getActivity(), millis, flags); in updateDisplay()
354 String fullDateText = DateUtils.formatDateTime(getActivity(), millis, flags); in updateDisplay()
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java245 public void setTriggerTimeMillis(long millis) { in setTriggerTimeMillis() argument
247 mStorage.edit().putLong(PREFIX + "triggerTimeMillis", millis)); in setTriggerTimeMillis()
257 public void setMoratoriumTimeMillis(long millis) { in setMoratoriumTimeMillis() argument
259 .putLong(PREFIX + "moratoriumTimeMillis", millis) in setMoratoriumTimeMillis()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DFaceUnlock.java343 void handlePokeWakelock(int millis) { in handlePokeWakelock() argument
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/base/core/java/com/android/internal/policy/
DIFaceLockCallback.aidl25 void pokeWakelock(int millis); in pokeWakelock() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DClock.java225 String millis = args.getString("millis"); in dispatchDemoCommand() local
227 if (millis != null) { in dispatchDemoCommand()
228 mCalendar.setTimeInMillis(Long.parseLong(millis)); in dispatchDemoCommand()
/frameworks/base/core/java/com/android/internal/os/
DIDropBoxManagerService.aidl41 DropBoxManager.Entry getNextEntry(String tag, long millis); in getNextEntry() argument
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/
DImfBaseTestCase.java142 void pause(int millis) { in pause() argument
144 Thread.sleep(millis); in pause()
/frameworks/base/core/java/android/app/
DIAlarmManager.aidl33 boolean setTime(long millis); in setTime() argument
DAlarmManager.java536 public void setTime(long millis) { in setTime() argument
538 mService.setTime(millis); in setTime()
/frameworks/base/libs/usb/tests/accessorytest/
Dhid.c41 static void milli_sleep(int millis) { in milli_sleep() argument
45 tm.tv_nsec = millis * 1000000; in milli_sleep()
/frameworks/base/core/java/android/widget/
DDatePickerCalendarDelegate.java317 long millis = mCurrentDate.getTimeInMillis(); in updateDisplay() local
318 mAnimator.setDateMillis(millis); in updateDisplay()
320 String monthAndDayText = DateUtils.formatDateTime(mContext, millis, flags); in updateDisplay()
325 String fullDateText = DateUtils.formatDateTime(mContext, millis, flags); in updateDisplay()
332 long millis = mCurrentDate.getTimeInMillis(); in setCurrentView() local
345 final String dayString = DateUtils.formatDateTime(mContext, millis, flags); in setCurrentView()
358 final CharSequence yearString = mYearFormat.format(millis); in setCurrentView()
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
Daccessorychat.c69 static void milli_sleep(int millis) { in milli_sleep() argument
73 tm.tv_nsec = millis * 1000000; in milli_sleep()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerUtils.java65 public CharSequence getGmtDisplayName(Context context, String id, long millis, in getGmtDisplayName() argument
79 return buildGmtDisplayName(timezone, millis, grayGmt); in getGmtDisplayName()

12