/packages/apps/Calendar/src/com/android/calendar/ |
D | Utils.java | 522 long millis = intent.getLongExtra(EXTRA_EVENT_BEGIN_TIME, -1); in timeFromIntentInMillis() local 523 if (millis == -1 && data != null && data.isHierarchical()) { in timeFromIntentInMillis() 527 millis = Long.valueOf(data.getLastPathSegment()); in timeFromIntentInMillis() 534 if (millis <= 0) { in timeFromIntentInMillis() 535 millis = System.currentTimeMillis(); in timeFromIntentInMillis() 537 return millis; in timeFromIntentInMillis() 550 long millis = time.toMillis(true); in formatMonthYear() local 551 return formatDateRange(context, millis, millis, flags); in formatMonthYear() 1327 public static String getDayOfWeekString(int julianDay, int todayJulianDay, long millis, in getDayOfWeekString() argument 1334 mTZUtils.formatDateRange(context, millis, millis, flags).toString()); in getDayOfWeekString() [all …]
|
D | SearchActivity.java | 138 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()
|
D | AllInOneActivity.java | 290 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() 1052 long millis = time.toMillis(true); in updateSecondaryTitleFields() local 1060 Utils.formatDateRange(this, millis, millis, flags))).append(" ").append( in updateSecondaryTitleFields() 1069 DateUtils.MINUTE_IN_MILLIS - (millis % DateUtils.MINUTE_IN_MILLIS)); in updateSecondaryTitleFields()
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaByDayAdapter.java | 224 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()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | VpnSettings.java | 125 long millis = System.currentTimeMillis(); in onOptionsItemSelected() local 126 while (mPreferences.containsKey(Long.toHexString(millis))) { in onOptionsItemSelected() 127 ++millis; in onOptionsItemSelected() 130 getActivity(), this, new VpnProfile(Long.toHexString(millis)), true); in onOptionsItemSelected() 336 long millis = System.currentTimeMillis(); in onPreferenceClick() local 337 while (mPreferences.containsKey(Long.toHexString(millis))) { in onPreferenceClick() 338 ++millis; in onPreferenceClick() 341 new VpnProfile(Long.toHexString(millis)), true); in onPreferenceClick()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | WeekNumberTest.java | 211 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/ |
D | CalendarAppWidgetModel.java | 408 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()
|
D | CalendarAppWidgetProvider.java | 136 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/Exchange/exchange2/src/com/android/exchange/utility/ |
D | CalendarUtilities.java | 265 static void putTransitionMillisIntoSystemTime(byte[] bytes, int offset, long millis) { in putTransitionMillisIntoSystemTime() argument 268 cal.setTimeInMillis(millis + 30*SECONDS); in putTransitionMillisIntoSystemTime() 931 static public String millisToEasDateTime(long millis) { in millisToEasDateTime() argument 932 return millisToEasDateTime(millis, sGmtTimeZone, true); in millisToEasDateTime() 959 static public String millisToEasDateTime(long millis, TimeZone tz, boolean withTime) { in millisToEasDateTime() argument 962 cal.setTimeInMillis(millis); in millisToEasDateTime() 1019 static String transitionMillisToVCalendarTime(long millis, TimeZone tz, boolean dst) { in transitionMillisToVCalendarTime() argument 1022 cal.setTimeInMillis(millis); in transitionMillisToVCalendarTime()
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | SimpleDayPickerFragment.java | 400 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()
|
D | SimpleWeekView.java | 537 Long millis = hover.toMillis(true); in onHoverEvent() local 538 String date = Utils.formatDateRange(context, millis, millis, in onHoverEvent()
|
D | SimpleWeeksAdapter.java | 167 long millis = mSelectedDay.normalize(true); in setSelectedDay() local 169 Time.getJulianDay(millis, mSelectedDay.gmtoff), mFirstDayOfWeek); in setSelectedDay()
|
D | MonthWeekEventsView.java | 1068 Long millis = hover.toMillis(true); in onHoverEvent() local 1069 String date = Utils.formatDateRange(context, millis, millis, in onHoverEvent()
|
D | MonthByWeekAdapter.java | 124 long millis = mSelectedDay.normalize(true); in setSelectedDay() local 126 Time.getJulianDay(millis, mSelectedDay.gmtoff), mFirstDayOfWeek); in setSelectedDay()
|
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
D | SmartDialCache.java | 222 final String millis = String.valueOf(System.currentTimeMillis()); in cacheContacts() local 226 null, new String[] {millis, millis}, in cacheContacts()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/ |
D | PolarClockWallpaper.java | 477 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/Calendar/tests/src/com/android/calendar/alerts/ |
D | MockAlarmManager.java | 35 public void expectAlarmTime(int type, long millis) { in expectAlarmTime() argument 37 this.expectedAlarmTime = millis; in expectAlarmTime()
|
D | AlarmSchedulerTest.java | 150 private void expectAlarmAt(long millis) { in expectAlarmAt() argument 153 millis + AlarmScheduler.ALARM_DELAY_MS); in expectAlarmAt()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Log.java | 57 public static String formatTime(long millis) { in formatTime() argument 58 return new SimpleDateFormat("HH:mm:ss.SSS/E").format(new Date(millis)); in formatTime()
|
D | AlarmKlaxon.java | 146 long millis = System.currentTimeMillis() - mStartTime; in sendKillBroadcast() local 147 int minutes = (int) Math.round(millis / (double)DateUtils.MINUTE_IN_MILLIS); in sendKillBroadcast()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | Utils.java | 38 public static String formatElapsedTime(Context context, double millis) { in formatElapsedTime() argument 40 int seconds = (int) Math.floor(millis / 1000); in formatElapsedTime()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
D | ExchangeService.java | 1479 private void setAlarm(long id, long millis) { in setAlarm() argument 1490 alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + millis, pi); in setAlarm() 1514 static public void runAsleep(long id, long millis) { in runAsleep() argument 1517 exchangeService.setAlarm(id, millis); in runAsleep() 1529 static public void setWatchdogAlarm(long id, long millis) { in setWatchdogAlarm() argument 1532 exchangeService.setAlarm(id, millis); in setWatchdogAlarm()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | TimeBar.java | 250 protected String stringForTime(long millis) { in stringForTime() argument 251 int totalSeconds = (int) millis / 1000; in stringForTime()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerObj.java | 183 long millis = Utils.getTimeNow(); in updateTimeLeft() local 184 mTimeLeft = mOriginalLength - (millis - mStartTime); in updateTimeLeft()
|
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
D | VoicemailPlaybackFragment.java | 146 private static String formatAsMinutesAndSeconds(int millis) { in formatAsMinutesAndSeconds() argument 147 int seconds = millis / 1000; in formatAsMinutesAndSeconds()
|