Home
last modified time | relevance | path

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

12

/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/src/com/android/calendar/
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 …]
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()
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()
DDayView.java900 long millis = System.currentTimeMillis(); in init() local
901 mBaseDate.set(millis); in init()
1012 long millis = mBaseDate.toMillis(false /* use isDst */); in setSelected() local
1013 setSelectedDay(Time.getJulianDay(millis, mBaseDate.gmtoff)); in setSelected()
2021 long millis = weekStart.normalize(true /* ignore isDst */); in reloadEvents() local
2024 if (millis == mLastReloadMillis) { in reloadEvents()
2027 mLastReloadMillis = millis; in reloadEvents()
/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/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/widget/
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()
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()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java143 long millis = System.currentTimeMillis(); in onOptionsItemSelected() local
144 while (mConfigPreferences.containsKey(Long.toHexString(millis))) { in onOptionsItemSelected()
145 ++millis; in onOptionsItemSelected()
147 VpnProfile profile = new VpnProfile(Long.toHexString(millis)); in onOptionsItemSelected()
/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/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/InCallUI/src/com/android/incallui/
DInCallDateUtils.java15 public static String formatDuration(Context context, long millis) { in formatDuration() argument
19 int elapsedSeconds = (int) (millis / 1000); in formatDuration()
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
DPolarClockWallpaper.java477 final long millis = System.currentTimeMillis(); in drawFrame() local
478 calendar.set(millis); in drawFrame()
501 angle = (float) (millis % 60000) / 60000.0f; in drawFrame()
/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/DeskClock/src/com/android/deskclock/timer/
DTimerObj.java220 long millis = Utils.getTimeNow(); in updateTimeLeft() local
221 mTimeLeft = mOriginalLength - (millis - mStartTime); in updateTimeLeft()
/packages/apps/Dialer/src/com/android/dialer/voicemail/
DVoicemailPlaybackLayout.java370 private String formatAsMinutesAndSeconds(int millis) { in formatAsMinutesAndSeconds() argument
371 int seconds = millis / 1000; in formatAsMinutesAndSeconds()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventView.java1593 private void setDate(TextView view, long millis) { in setDate() argument
1608 dateString = DateUtils.formatDateTime(mActivity, millis, flags); in setDate()
1615 private void setTime(TextView view, long millis) { in setTime() argument
1632 timeString = DateUtils.formatDateTime(mActivity, millis, flags); in setTime()

12