/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/UnifiedEmail/src/com/android/mail/utils/ |
D | InputSmoother.java | 42 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/ |
D | Utils.java | 530 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 …]
|
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() 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/Car/Dialer/src/com/android/car/dialer/ |
D | CallLogListingTask.java | 118 private static CharSequence getRelativeTime(long millis) { in getRelativeTime() argument 119 boolean validTimestamp = millis > 0; in getRelativeTime() 122 millis, System.currentTimeMillis(), DateUtils.MINUTE_IN_MILLIS, in getRelativeTime() 159 long millis = dateColumn == -1 ? 0 : mCursor.getLong(dateColumn); in doInBackground() local 162 CharSequence relativeDate = getRelativeTime(millis); in doInBackground()
|
D | StrequentsAdapter.java | 299 long millis = column == -1 ? 0 : cursor.getLong(column); in convertLastCallCursor() local 301 CharSequence relativeDate = getRelativeTime(millis); in convertLastCallCursor() 383 private static CharSequence getRelativeTime(long millis) { in getRelativeTime() argument 384 if (millis <= 0) { in getRelativeTime() 388 return DateUtils.getRelativeTimeSpanString(millis, System.currentTimeMillis(), in getRelativeTime()
|
/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 | 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()
|
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()
|
/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 | MonthByWeekAdapter.java | 124 long millis = mSelectedDay.normalize(true); in setSelectedDay() local 126 Time.getJulianDay(millis, mSelectedDay.gmtoff), mFirstDayOfWeek); in setSelectedDay()
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
D | HistoryItem.java | 32 public HistoryItem(long evaluatorIndex, long millis, Spannable formula) { in HistoryItem() argument 34 mTimeInMillis = millis; in HistoryItem()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | VpnSettings.java | 158 long millis = System.currentTimeMillis(); in onOptionsItemSelected() local 159 while (mLegacyVpnPreferences.containsKey(Long.toHexString(millis))) { in onOptionsItemSelected() 160 ++millis; in onOptionsItemSelected() 162 VpnProfile profile = new VpnProfile(Long.toHexString(millis)); in onOptionsItemSelected()
|
/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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/testcommon/ |
D | ActivityLifecycleWaiter.java | 51 public void waitForStage(long millis) throws InterruptedException { in waitForStage() argument 53 mLatch.await(millis, TimeUnit.MILLISECONDS); in waitForStage()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | GuideUtils.java | 43 static int convertMillisToPixel(long millis) { in convertMillisToPixel() argument 44 return (int) (millis * sWidthPerHour / TimeUnit.HOURS.toMillis(1)); in convertMillisToPixel()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | Utils.java | 380 public static int getRoundOffMinsFromMs(long millis) { in getRoundOffMinsFromMs() argument 382 return (int) TimeUnit.MILLISECONDS.toMinutes(millis + HALF_MINUTE_MS); in getRoundOffMinsFromMs() 482 public static long getLastMillisecondOfDay(long millis) { in getLastMillisecondOfDay() argument 484 calender.setTime(new Date(millis)); in getLastMillisecondOfDay()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/ |
D | TranscriptionTask.java | 151 long millis = (1 << retryCount) * 1000; in backoff() local 152 Thread.sleep(millis); in backoff()
|
/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/Email/tests/src/com/android/emailcommon/utility/ |
D | UtilityTest.java | 60 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/Dialer/java/com/android/dialer/app/voicemail/ |
D | VoicemailPlaybackLayout.java | 363 private String formatAsMinutesAndSeconds(int millis) { in formatAsMinutesAndSeconds() argument 364 int seconds = millis / 1000; in formatAsMinutesAndSeconds()
|