Home
last modified time | relevance | path

Searched refs:getTimeInMillis (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DScheduleConditionProviderTest.java94 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InSchedule()
97 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InSchedule()
118 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
123 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
151 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_beforeSchedule()
174 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_endSchedule()
191 conditionId, cal, now.getTimeInMillis() - 1000, now.getTimeInMillis() + 1000); in testEvaluateSubscription_alarmSetBeforeInSchedule()
195 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_alarmSetBeforeInSchedule()
199 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 1000)); in testEvaluateSubscription_alarmSetBeforeInSchedule()
200 assertTrue("" + info.nextAlarm + " " + now.getTimeInMillis(), in testEvaluateSubscription_alarmSetBeforeInSchedule()
[all …]
DScheduleCalendarTest.java80 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_startToday()
83 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis()); in testGetNextChangeTime_startToday()
86 assertEquals("Expected " + expected + " was " + actual, expected.getTimeInMillis(), in testGetNextChangeTime_startToday()
106 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_endToday()
110 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis()); in testGetNextChangeTime_endToday()
113 assertEquals("Expected " + expected + " was " + actual, expected.getTimeInMillis(), in testGetNextChangeTime_endToday()
133 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_startTomorrow()
138 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis()); in testGetNextChangeTime_startTomorrow()
141 assertEquals("Expected " + expected + " was " + actual, expected.getTimeInMillis(), in testGetNextChangeTime_startTomorrow()
161 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_endTomorrow()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DSmsProviderTest.java45 Long.toString(new GregorianCalendar(1970, 1, 1, 0, 0, 0).getTimeInMillis()), in testProvider()
46 Long.toString(new GregorianCalendar(1971, 2, 13, 16, 35, 3).getTimeInMillis()), in testProvider()
47 Long.toString(new GregorianCalendar(1978, 10, 22, 0, 1, 0).getTimeInMillis()), in testProvider()
48 Long.toString(new GregorianCalendar(1980, 1, 11, 10, 22, 30).getTimeInMillis()), in testProvider()
/frameworks/base/core/java/android/webkit/
DDateSorter.java58 mBins[0] = c.getTimeInMillis(); // Today in DateSorter()
60 mBins[1] = c.getTimeInMillis(); // Yesterday in DateSorter()
62 mBins[2] = c.getTimeInMillis(); // Five days ago in DateSorter()
65 mBins[3] = c.getTimeInMillis(); // One month ago in DateSorter()
/frameworks/base/core/java/android/widget/
DDayPickerView.java154 final long minDateMillis = tempDate.getTimeInMillis(); in DayPickerView()
159 final long maxDateMillis = tempDate.getTimeInMillis(); in DayPickerView()
300 if (timeInMillis < mMinDate.getTimeInMillis()) {
301 timeInMillis = mMinDate.getTimeInMillis();
303 } else if (timeInMillis > mMaxDate.getTimeInMillis()) {
304 timeInMillis = mMaxDate.getTimeInMillis();
323 return mSelectedDay.getTimeInMillis();
350 return mMinDate.getTimeInMillis();
359 return mMaxDate.getTimeInMillis();
370 setDate(mSelectedDay.getTimeInMillis(), false, false);
DDatePickerSpinnerDelegate.java125 mTempDate.setTimeInMillis(mCurrentDate.getTimeInMillis()); in DatePickerSpinnerDelegate()
210 setMinDate(mTempDate.getTimeInMillis()); in DatePickerSpinnerDelegate()
221 setMaxDate(mTempDate.getTimeInMillis()); in DatePickerSpinnerDelegate()
297 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis()); in setMinDate()
321 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setMaxDate()
381 getMinDate().getTimeInMillis(), getMaxDate().getTimeInMillis()); in onSaveInstanceState()
445 final long currentTimeMillis = oldCalendar.getTimeInMillis(); in getCalendarForLocale()
511 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis()); in setDate()
513 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setDate()
572 mCalendarView.setDate(mCurrentDate.getTimeInMillis(), false, false); in updateCalendarView()
DDatePickerCalendarDelegate.java162 mDayPickerView.setMinDate(mMinDate.getTimeInMillis()); in DatePickerCalendarDelegate()
163 mDayPickerView.setMaxDate(mMaxDate.getTimeInMillis()); in DatePickerCalendarDelegate()
164 mDayPickerView.setDate(mCurrentDate.getTimeInMillis()); in DatePickerCalendarDelegate()
238 mCurrentDate.setTimeInMillis(day.getTimeInMillis());
328 mDayPickerView.setDate(mCurrentDate.getTimeInMillis()); in setCurrentView()
399 mDayPickerView.setDate(mCurrentDate.getTimeInMillis()); in onDateChanged()
543 return new SavedState(superState, year, month, day, mMinDate.getTimeInMillis(), in onSaveInstanceState()
544 mMaxDate.getTimeInMillis(), mCurrentView, listPosition, listPositionOffset); in onSaveInstanceState()
DCalendarViewLegacyDelegate.java508 setDate(mTempDate.getTimeInMillis()); in setMinDate()
520 return mMinDate.getTimeInMillis(); in getMinDate()
534 setDate(mMaxDate.getTimeInMillis()); in setMaxDate()
546 return mMaxDate.getTimeInMillis(); in getMaxDate()
596 return mAdapter.mSelectedDate.getTimeInMillis(); in getDate()
676 final long currentTimeMillis = oldCalendar.getTimeInMillis(); in getCalendarForLocale()
821 mFirstDayOfMonth.setTimeInMillis(date.getTimeInMillis()); in goTo()
937 final long millis = calendar.getTimeInMillis(); in setMonthDisplayed()
952 long endTimeMillis = date.getTimeInMillis() in getWeeksSinceMinDate()
953 + date.getTimeZone().getOffset(date.getTimeInMillis()); in getWeeksSinceMinDate()
[all …]
DDatePicker.java300 return mDelegate.getMinDate().getTimeInMillis(); in getMinDate()
326 return mDelegate.getMaxDate().getTimeInMillis(); in getMaxDate()
665 : mCurrentDate.getTimeInMillis(); in getAutofillValue()
693 return DateUtils.formatDateTime(mContext, mCurrentDate.getTimeInMillis(), in getFormattedCurrentDate()
DDayPickerPagerAdapter.java79 mMinDate.setTimeInMillis(min.getTimeInMillis()); in setRange()
80 mMaxDate.setTimeInMillis(max.getTimeInMillis()); in setRange()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java294 ca.setTime(noon.getTimeInMillis()); in calculateTwilightState()
301 ca.setTime(noon.getTimeInMillis()); in calculateTwilightState()
305 ca.setTime(noon.getTimeInMillis()); in calculateTwilightState()
/frameworks/base/services/usage/java/com/android/server/usage/
DUnixCalendar.java54 public long getTimeInMillis() { in getTimeInMillis() method in UnixCalendar
DUserUsageStatsService.java172 if (event.mTimeStamp >= mDailyExpiryDate.getTimeInMillis()) { in reportEvent()
497 mDailyExpiryDate.getTimeInMillis() - 1, in rolloverStats()
504 mDailyExpiryDate.getTimeInMillis() - 1, in rolloverStats()
513 mDailyExpiryDate.getTimeInMillis() - 1); in rolloverStats()
514 stat.commitTime(mDailyExpiryDate.getTimeInMillis() - 1); in rolloverStats()
603 sDateFormat.format(mDailyExpiryDate.getTimeInMillis()) + "(" + in updateRolloverDeadline()
604 mDailyExpiryDate.getTimeInMillis() + ")"); in updateRolloverDeadline()
763 final long beginTime = yesterday.getTimeInMillis(); in printLast24HrEvents()
DUsageStatsDatabase.java706 mCal.getTimeInMillis()); in prune()
711 mCal.getTimeInMillis()); in prune()
716 mCal.getTimeInMillis()); in prune()
721 mCal.getTimeInMillis()); in prune()
726 pruneChooserCountsOlderThan(mIntervalDirs[i], mCal.getTimeInMillis()); in prune()
/frameworks/base/core/java/android/service/notification/
DScheduleCalendar.java120 return mCalendar.getTimeInMillis(); in getTime()
194 return mCalendar.getTimeInMillis(); in addDays()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaPlayerInvokeTest.java42 rnd = new Random(Calendar.getInstance().getTimeInMillis()); in MediaPlayerInvokeTest()
/frameworks/base/services/core/java/com/android/server/
DGraphicsStatsService.java138 mAlarmManager.setExact(AlarmManager.RTC, calendar.getTimeInMillis(), TAG, this::onAlarm, in scheduleRotateLocked()
219 … normalizeDate(info.startTime).getTimeInMillis(), info.packageName, info.versionCode); in pathForApp()
298 long today = normalizeDate(System.currentTimeMillis()).getTimeInMillis(); in fetchActiveBuffersLocked()
DMountServiceIdler.java102 final long timeToMidnight = calendar.getTimeInMillis() - System.currentTimeMillis(); in scheduleIdlePass()
/frameworks/base/core/java/android/util/
DMonthDisplayHelper.java60 mCalendar.getTimeInMillis(); in MonthDisplayHelper()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DDatePickerDialog.java239 mAnimator.setDateMillis(mCalendar.getTimeInMillis()); in onCreateView()
291 long millis = mCalendar.getTimeInMillis(); in setCurrentView()
349 long millis = mCalendar.getTimeInMillis(); in updateDisplay()
DMonthView.java447 long millis = mCalendar.getTimeInMillis(); in getMonthAndYearString()
799 mTempCalendar.getTimeInMillis()); in getItemDescription()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNitzDataTest.java111 return calendar.getTimeInMillis(); in createUtcTime()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzData.java132 c.getTimeInMillis(), zone); in parse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeUi.java205 return calendar.getTimeInMillis(); in roundToNextMinute()
/frameworks/base/core/java/android/hardware/
DGeomagneticField.java113 new GregorianCalendar(2015, 1, 1).getTimeInMillis();

12