Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DScheduleConditionProviderTest.java96 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InSchedule()
99 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InSchedule()
120 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
125 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
153 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_beforeSchedule()
176 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_endSchedule()
193 conditionId, cal, now.getTimeInMillis() - 1000, now.getTimeInMillis() + 1000); in testEvaluateSubscription_alarmSetBeforeInSchedule()
197 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_alarmSetBeforeInSchedule()
201 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 1000)); in testEvaluateSubscription_alarmSetBeforeInSchedule()
202 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 …]
DNotificationHistoryDatabaseTest.java125 for (long i = cal.getTimeInMillis(); i >= 5; i--) { in testPrune()
137 when(file.getName()).thenReturn(String.valueOf(cal.getTimeInMillis() - i)); in testPrune()
144 mDataBase.prune(retainDays, cal.getTimeInMillis()); in testPrune()
160 for (long i = cal.getTimeInMillis(); i >= 5; i--) { in testPrune_badFileName_noCrash()
169 mDataBase.prune(retainDays, cal.getTimeInMillis()); in testPrune_badFileName_noCrash()
/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/telephony/java/android/telephony/
DModemActivityInfo.java155 dest.writeInt(mTransmitPowerInfo.get(i).getTimeInMillis()); in writeToParcel()
194 transmitTimeMillis[i] = mTransmitPowerInfo.get(i).getTimeInMillis(); in getTransmitTimeMillis()
244 if(powerInfo.getTimeInMillis() < 0) { in isValid()
255 if(txVal.getTimeInMillis() != 0) { in isEmpty()
283 public int getTimeInMillis() { in getTimeInMillis() method in ModemActivityInfo.TransmitPower
/frameworks/base/services/core/java/com/android/server/
DMountServiceIdler.java102 final long today3AM = offsetFromTodayMidnight(0, 3).getTimeInMillis(); in scheduleIdlePass()
103 final long today4AM = offsetFromTodayMidnight(0, 4).getTimeInMillis(); in scheduleIdlePass()
104 final long tomorrow3AM = offsetFromTodayMidnight(1, 3).getTimeInMillis(); in scheduleIdlePass()
/frameworks/base/core/tests/benchmarks/src/android/text/format/
DAndroidTimeVsOthersBenchmark.java66 answer = calendar.getTimeInMillis(); in toMillis_javaUtil()
81 answer = calendar.getTimeInMillis(); in toMillis_androidIucUtil()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java292 ca.setTime(noon.getTimeInMillis()); in calculateTwilightState()
299 ca.setTime(noon.getTimeInMillis()); in calculateTwilightState()
303 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.java283 if (event.mTimeStamp >= mDailyExpiryDate.getTimeInMillis()) { in reportEvent()
644 mDailyExpiryDate.getTimeInMillis() - 1, in rolloverStats()
651 mDailyExpiryDate.getTimeInMillis() - 1, in rolloverStats()
660 mDailyExpiryDate.getTimeInMillis() - 1); in rolloverStats()
661 stat.commitTime(mDailyExpiryDate.getTimeInMillis() - 1); in rolloverStats()
750 sDateFormat.format(mDailyExpiryDate.getTimeInMillis()) + "(" + in updateRolloverDeadline()
751 mDailyExpiryDate.getTimeInMillis() + ")"); in updateRolloverDeadline()
918 final long beginTime = yesterday.getTimeInMillis(); in printLast24HrEvents()
/frameworks/base/graphics/java/android/graphics/
DGraphicsStatsService.java148 mAlarmManager.setExact(AlarmManager.RTC, calendar.getTimeInMillis(), TAG, this::onAlarm, in scheduleRotateLocked()
231 targetDay = normalizeDate(System.currentTimeMillis() - 86400000).getTimeInMillis(); in pullGraphicsStatsImpl()
234 targetDay = normalizeDate(System.currentTimeMillis()).getTimeInMillis(); in pullGraphicsStatsImpl()
298 normalizeDate(info.mStartTime).getTimeInMillis(), info.mPackageName, in pathForApp()
380 long today = normalizeDate(System.currentTimeMillis()).getTimeInMillis(); in fetchActiveBuffersLocked()
/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/core/java/android/util/
DMonthDisplayHelper.java60 mCalendar.getTimeInMillis(); in MonthDisplayHelper()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNitzDataTest.java111 return calendar.getTimeInMillis(); in createUtcTime()
/frameworks/base/cmds/incident_helper/java/com/android/commands/incident/sections/
DPersistLogSection.java255 if (calendar.getTimeInMillis() > System.currentTimeMillis()) { in getEpochSec()
258 return calendar.getTimeInMillis() / 1000; in getEpochSec()
/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java120 return calendar.getTimeInMillis(); in parse()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzData.java131 c.getTimeInMillis(), zone); in parse()

12