Searched refs:getTimeInMillis (Results 1 - 25 of 48) sorted by relevance

12

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DScheduleConditionProviderTest.java94 assertTrue(cal.isInSchedule(now.getTimeInMillis()));
97 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000);
118 assertTrue(cal.isInSchedule(now.getTimeInMillis()));
123 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000);
151 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000);
174 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis()
[all...]
H A DScheduleCalendarTest.java80 expected.setTimeInMillis(cal.getTimeInMillis());
83 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis());
86 assertEquals("Expected " + expected + " was " + actual, expected.getTimeInMillis(),
106 expected.setTimeInMillis(cal.getTimeInMillis());
110 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis());
113 assertEquals("Expected " + expected + " was " + actual, expected.getTimeInMillis(),
133 expected.setTimeInMillis(cal.getTimeInMillis());
138 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis());
141 assertEquals("Expected " + expected + " was " + actual, expected.getTimeInMillis(),
161 expected.setTimeInMillis(cal.getTimeInMillis());
[all...]
/frameworks/base/core/tests/coretests/src/android/provider/
H A DSmsProviderTest.java44 Long.toString(new GregorianCalendar(1970, 1, 1, 0, 0, 0).getTimeInMillis()),
45 Long.toString(new GregorianCalendar(1971, 2, 13, 16, 35, 3).getTimeInMillis()),
46 Long.toString(new GregorianCalendar(1978, 10, 22, 0, 1, 0).getTimeInMillis()),
47 Long.toString(new GregorianCalendar(1980, 1, 11, 10, 22, 30).getTimeInMillis()),
/frameworks/base/core/java/android/webkit/
H A DDateSorter.java58 mBins[0] = c.getTimeInMillis(); // Today
60 mBins[1] = c.getTimeInMillis(); // Yesterday
62 mBins[2] = c.getTimeInMillis(); // Five days ago
65 mBins[3] = c.getTimeInMillis(); // One month ago
86 * returned by Calendar.getTimeInMillis()
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUnixCalendar.java54 public long getTimeInMillis() { method in class:UnixCalendar
H A DUserUsageStatsService.java159 if (event.mTimeStamp >= mDailyExpiryDate.getTimeInMillis()) {
465 stat.update(pkgStats.mPackageName, mDailyExpiryDate.getTimeInMillis() - 1,
471 stat.updateConfigurationStats(null, mDailyExpiryDate.getTimeInMillis() - 1);
472 stat.commitTime(mDailyExpiryDate.getTimeInMillis() - 1);
544 sDateFormat.format(mDailyExpiryDate.getTimeInMillis()) + "(" +
545 mDailyExpiryDate.getTimeInMillis() + ")");
616 final long beginTime = yesterday.getTimeInMillis();
/frameworks/base/core/java/android/widget/
H A DDayPickerView.java152 final long minDateMillis = tempDate.getTimeInMillis();
157 final long maxDateMillis = tempDate.getTimeInMillis();
298 if (timeInMillis < mMinDate.getTimeInMillis()) {
299 timeInMillis = mMinDate.getTimeInMillis();
301 } else if (timeInMillis > mMaxDate.getTimeInMillis()) {
302 timeInMillis = mMaxDate.getTimeInMillis();
321 return mSelectedDay.getTimeInMillis();
348 return mMinDate.getTimeInMillis();
357 return mMaxDate.getTimeInMillis();
368 setDate(mSelectedDay.getTimeInMillis(), fals
[all...]
H A DDatePickerSpinnerDelegate.java124 mTempDate.setTimeInMillis(mCurrentDate.getTimeInMillis());
209 setMinDate(mTempDate.getTimeInMillis());
220 setMaxDate(mTempDate.getTimeInMillis());
296 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis());
320 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis());
380 getMinDate().getTimeInMillis(), getMaxDate().getTimeInMillis());
444 final long currentTimeMillis = oldCalendar.getTimeInMillis();
509 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis());
511 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis());
[all...]
H A DDatePickerCalendarDelegate.java162 mDayPickerView.setMinDate(mMinDate.getTimeInMillis());
163 mDayPickerView.setMaxDate(mMaxDate.getTimeInMillis());
164 mDayPickerView.setDate(mCurrentDate.getTimeInMillis());
238 mCurrentDate.setTimeInMillis(day.getTimeInMillis());
328 mDayPickerView.setDate(mCurrentDate.getTimeInMillis());
399 mDayPickerView.setDate(mCurrentDate.getTimeInMillis());
543 return new SavedState(superState, year, month, day, mMinDate.getTimeInMillis(),
544 mMaxDate.getTimeInMillis(), mCurrentView, listPosition, listPositionOffset);
H A DCalendarViewLegacyDelegate.java508 setDate(mTempDate.getTimeInMillis());
520 return mMinDate.getTimeInMillis();
534 setDate(mMaxDate.getTimeInMillis());
546 return mMaxDate.getTimeInMillis();
596 return mAdapter.mSelectedDate.getTimeInMillis();
676 final long currentTimeMillis = oldCalendar.getTimeInMillis();
821 mFirstDayOfMonth.setTimeInMillis(date.getTimeInMillis());
937 final long millis = calendar.getTimeInMillis();
952 long endTimeMillis = date.getTimeInMillis()
953 + date.getTimeZone().getOffset(date.getTimeInMillis());
[all...]
H A DDatePicker.java287 return mDelegate.getMinDate().getTimeInMillis();
312 return mDelegate.getMaxDate().getTimeInMillis();
647 : mCurrentDate.getTimeInMillis();
675 return DateUtils.formatDateTime(mContext, mCurrentDate.getTimeInMillis(),
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/wizard/
H A DGuidedDatePickerTest.java227 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis());
234 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis());
779 .date(currCal.getTimeInMillis())
781 .minDate(minCal.getTimeInMillis())
782 .maxDate(maxCal.getTimeInMillis())
789 dateFormat.format(minCal.getTimeInMillis()),
790 dateFormat.format(maxCal.getTimeInMillis())))
792 .date(currCal.getTimeInMillis())
794 .minDate(minCal.getTimeInMillis())
795 .maxDate(maxCal.getTimeInMillis())
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DMediaPlayerInvokeTest.java42 rnd = new Random(Calendar.getInstance().getTimeInMillis());
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/content/
H A DSimpleWakefulController.java65 am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), sender);
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/content/
H A DSimpleWakefulController.java65 am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), sender);
/frameworks/base/core/java/android/service/notification/
H A DScheduleCalendar.java120 return mCalendar.getTimeInMillis();
194 return mCalendar.getTimeInMillis();
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/picker/
H A DDatePicker.java92 mMinDate.setTimeInMillis(mTempDate.getTimeInMillis());
102 mMaxDate.setTimeInMillis(mTempDate.getTimeInMillis());
297 mTempDate.setTimeInMillis(mCurrentDate.getTimeInMillis());
330 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis());
347 return mMinDate.getTimeInMillis();
365 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis());
381 return mMaxDate.getTimeInMillis();
391 return mCurrentDate.getTimeInMillis();
397 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis());
399 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis());
[all...]
H A DPickerUtility.java92 final long currentTimeMillis = oldCalendar.getTimeInMillis();
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DGuidedDatePickerAction.java45 mDate = c.getTimeInMillis();
/frameworks/base/services/core/java/com/android/server/twilight/
H A DTwilightService.java297 ca.setTime(noon.getTimeInMillis());
304 ca.setTime(noon.getTimeInMillis());
308 ca.setTime(noon.getTimeInMillis());
/frameworks/base/core/java/android/util/
H A DMonthDisplayHelper.java60 mCalendar.getTimeInMillis();
/frameworks/base/services/core/java/com/android/server/
H A DMountServiceIdler.java102 final long timeToMidnight = calendar.getTimeInMillis() - System.currentTimeMillis();
H A DGraphicsStatsService.java138 mAlarmManager.setExact(AlarmManager.RTC, calendar.getTimeInMillis(), TAG, this::onAlarm,
219 normalizeDate(info.startTime).getTimeInMillis(), info.packageName, info.versionCode);
298 long today = normalizeDate(System.currentTimeMillis()).getTimeInMillis();
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DNitzDataTest.java114 return calendar.getTimeInMillis();
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DDozeUi.java193 return calendar.getTimeInMillis();

Completed in 333 milliseconds

12