Home
last modified time | relevance | path

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

12

/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DInputSmoother.java42 long millis; field in InputSmoother.Sample
54 if (last != null && nowMs - last.millis > MAX_SAMPLE_INTERVAL_MS) { in onInput()
64 sample.millis = nowMs; in onInput()
84 final long totalTimeMs = mRecentSamples.getLast().millis - mRecentSamples.getFirst().millis; in getSmoothedVelocity()
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaByDayAdapter.java224 long millis = date.setJulianDay(row.mDay); in getView() local
228 String dayViewText = Utils.getDayOfWeekString(row.mDay, mTodayJulianDay, millis, in getView()
236 String dateViewText = DateUtils.formatDateRange(mContext, mFormatter, millis, millis, in getView()
512 long millis = time.toMillis(false /* use isDst */); in findEventPositionNearestTime() local
540 if (row.mEventStartTimeMilli == millis) { in findEventPositionNearestTime()
545 long distance = Math.abs(millis - row.mEventStartTimeMilli); in findEventPositionNearestTime()
554 if (millis >= row.mEventStartTimeMilli && millis <= row.mEventEndTimeMilli) { in findEventPositionNearestTime()
565 long distance = Math.abs(millis - row.mEventStartTimeMilli); in findEventPositionNearestTime()
DAgendaWindowAdapter.java943 long millis = time.toMillis(false); in formatDateString() local
945 return DateUtils.formatDateRange(mContext, mFormatter, millis, millis, in formatDateString()
/packages/apps/Calendar/tests/src/com/android/calendar/
DWeekNumberTest.java211 long millis = test.date.toMillis(false /* use isDst */); in testAll() local
213 String output = DateUtils.formatDateTime(mContext, millis, flags); in testAll()
223 long millis = test.date.toMillis(false /* use isDst */); in testAll() local
225 String output = DateUtils.formatDateTime(mContext, millis, flags); in testAll()
/packages/apps/Calendar/src/com/android/calendar/
DSearchActivity.java138 long millis = 0; in onCreate() local
141 millis = icicle.getLong(BUNDLE_KEY_RESTORE_TIME); in onCreate()
143 Log.v(TAG, "Restore value from icicle: " + millis); in onCreate()
146 if (millis == 0) { in onCreate()
148 millis = Utils.timeFromIntentInMillis(getIntent()); in onCreate()
162 initFragments(millis, query); in onCreate()
DUtils.java530 long millis = intent.getLongExtra(EXTRA_EVENT_BEGIN_TIME, -1); in timeFromIntentInMillis() local
531 if (millis == -1 && data != null && data.isHierarchical()) { in timeFromIntentInMillis()
535 millis = Long.valueOf(data.getLastPathSegment()); in timeFromIntentInMillis()
542 if (millis <= 0) { in timeFromIntentInMillis()
543 millis = System.currentTimeMillis(); in timeFromIntentInMillis()
545 return millis; in timeFromIntentInMillis()
558 long millis = time.toMillis(true); in formatMonthYear() local
559 return formatDateRange(context, millis, millis, flags); in formatMonthYear()
1357 public static String getDayOfWeekString(int julianDay, int todayJulianDay, long millis, in getDayOfWeekString() argument
1364 mTZUtils.formatDateRange(context, millis, millis, flags).toString()); in getDayOfWeekString()
[all …]
DAllInOneActivity.java290 long millis = parseViewAction(intent); in onNewIntent() local
291 if (millis == -1) { in onNewIntent()
292 millis = Utils.timeFromIntentInMillis(intent); in onNewIntent()
294 if (millis != -1 && mViewEventId == -1 && mController != null) { in onNewIntent()
296 time.set(millis); in onNewIntent()
1059 long millis = time.toMillis(true); in updateSecondaryTitleFields() local
1067 Utils.formatDateRange(this, millis, millis, flags))).append(" ").append( in updateSecondaryTitleFields()
1076 DateUtils.MINUTE_IN_MILLIS - (millis % DateUtils.MINUTE_IN_MILLIS)); in updateSecondaryTitleFields()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetProvider.java136 long millis = time.toMillis(true); in performUpdate() local
139 final String date = Utils.formatDateRange(context, millis, millis, in performUpdate()
153 .setData(Uri.parse("content://com.android.calendar/time/" + millis)); in performUpdate()
DCalendarAppWidgetModel.java408 long millis = recycle.setJulianDay(julianDay); in populateDayInfo() local
414 Utils.formatDateRange(mContext, millis, millis, flags).toString()); in populateDayInfo()
417 label = Utils.formatDateRange(mContext, millis, millis, flags); in populateDayInfo()
/packages/apps/TV/src/com/android/tv/guide/
DGuideUtils.java35 public static int convertMillisToPixel(long millis) { in convertMillisToPixel() argument
36 return (int) (millis * sWidthPerHour / TimeUnit.HOURS.toMillis(1)); in convertMillisToPixel()
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DMockAlarmManager.java35 public void expectAlarmTime(int type, long millis) { in expectAlarmTime() argument
37 this.expectedAlarmTime = millis; in expectAlarmTime()
DAlarmSchedulerTest.java150 private void expectAlarmAt(long millis) { in expectAlarmAt() argument
153 millis + AlarmScheduler.ALARM_DELAY_MS); in expectAlarmAt()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DInCallDateUtils.java17 public static String formatDuration(Context context, long millis) { in formatDuration() argument
21 int elapsedSeconds = (int) (millis / 1000); in formatDuration()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleDayPickerFragment.java400 long millis = mTempTime.normalize(true); in goTo() local
404 Time.getJulianDay(millis, mTempTime.gmtoff), mFirstDayOfWeek); in goTo()
445 millis = mFirstDayOfMonth.normalize(true); in goTo()
448 Time.getJulianDay(millis, mFirstDayOfMonth.gmtoff), mFirstDayOfWeek); in goTo()
DSimpleWeekView.java537 Long millis = hover.toMillis(true); in onHoverEvent() local
538 String date = Utils.formatDateRange(context, millis, millis, in onHoverEvent()
DSimpleWeeksAdapter.java167 long millis = mSelectedDay.normalize(true); in setSelectedDay() local
169 Time.getJulianDay(millis, mSelectedDay.gmtoff), mFirstDayOfWeek); in setSelectedDay()
DMonthByWeekAdapter.java124 long millis = mSelectedDay.normalize(true); in setSelectedDay() local
126 Time.getJulianDay(millis, mSelectedDay.gmtoff), mFirstDayOfWeek); in setSelectedDay()
DMonthWeekEventsView.java1068 Long millis = hover.toMillis(true); in onHoverEvent() local
1069 String date = Utils.formatDateRange(context, millis, millis, in onHoverEvent()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java151 long millis = System.currentTimeMillis(); in onOptionsItemSelected() local
152 while (mLegacyVpnPreferences.containsKey(Long.toHexString(millis))) { in onOptionsItemSelected()
153 ++millis; in onOptionsItemSelected()
155 VpnProfile profile = new VpnProfile(Long.toHexString(millis)); in onOptionsItemSelected()
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityTest.java60 int day, int hour, int minute, int second, int millis) throws Exception { in testParseEmailDateTimeHelper() argument
65 assertEquals(cal.getTimeInMillis() + millis, timeInMillis); in testParseEmailDateTimeHelper()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTimeBar.java250 protected String stringForTime(long millis) { in stringForTime() argument
251 int totalSeconds = (int) millis / 1000; in stringForTime()
/packages/apps/UnifiedEmail/src/com/android/mail/analytics/
DTracker.java31 void sendTiming(String category, long millis, String name, String label); in sendTiming() argument
DAnalytics.java120 public void sendTiming(String category, long millis, String name, String label) {} in sendTiming() argument
/packages/apps/Dialer/src/com/android/dialer/voicemail/
DVoicemailPlaybackLayout.java493 private String formatAsMinutesAndSeconds(int millis) { in formatAsMinutesAndSeconds() argument
494 int seconds = millis / 1000; in formatAsMinutesAndSeconds()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraImpl.java653 private void resumeContinuousAFAfterDelay(int millis) { in resumeContinuousAFAfterDelay() argument
655 mCameraHandler.postDelayed(mReturnToContinuousAFRunnable, millis); in resumeContinuousAFAfterDelay()

12