Searched refs:mCal (Results 1 – 2 of 2) sorted by relevance
50 private final UnixCalendar mCal; field in UsageStatsDatabase64 mCal = new UnixCalendar(0); in UsageStatsDatabase()490 mCal.setTimeInMillis(currentTimeMillis); in prune()491 mCal.addYears(-3); in prune()493 mCal.getTimeInMillis()); in prune()495 mCal.setTimeInMillis(currentTimeMillis); in prune()496 mCal.addMonths(-6); in prune()498 mCal.getTimeInMillis()); in prune()500 mCal.setTimeInMillis(currentTimeMillis); in prune()501 mCal.addWeeks(-4); in prune()[all …]
461 private final Calendar mCal; field in SyncStorageEngine510 mCal = Calendar.getInstance(TimeZone.getTimeZone("GMT+0")); in SyncStorageEngine()1609 mCal.setTimeInMillis(System.currentTimeMillis()); in getCurrentDayLocked()1610 final int dayOfYear = mCal.get(Calendar.DAY_OF_YEAR); in getCurrentDayLocked()1611 if (mYear != mCal.get(Calendar.YEAR)) { in getCurrentDayLocked()1612 mYear = mCal.get(Calendar.YEAR); in getCurrentDayLocked()1613 mCal.clear(); in getCurrentDayLocked()1614 mCal.set(Calendar.YEAR, mYear); in getCurrentDayLocked()1615 mYearInDays = (int)(mCal.getTimeInMillis()/86400000); in getCurrentDayLocked()