Searched refs:mCal (Results 1 – 2 of 2) sorted by relevance
110 private final UnixCalendar mCal; field in UsageStatsDatabase141 mCal = new UnixCalendar(0); in UsageStatsDatabase()703 mCal.setTimeInMillis(currentTimeMillis); in prune()704 mCal.addYears(-3); in prune()706 mCal.getTimeInMillis()); in prune()708 mCal.setTimeInMillis(currentTimeMillis); in prune()709 mCal.addMonths(-6); in prune()711 mCal.getTimeInMillis()); in prune()713 mCal.setTimeInMillis(currentTimeMillis); in prune()714 mCal.addWeeks(-4); in prune()[all …]
457 private final Calendar mCal; field in SyncStorageEngine505 mCal = Calendar.getInstance(TimeZone.getTimeZone("GMT+0")); in SyncStorageEngine()1456 mCal.setTimeInMillis(System.currentTimeMillis()); in getCurrentDayLocked()1457 final int dayOfYear = mCal.get(Calendar.DAY_OF_YEAR); in getCurrentDayLocked()1458 if (mYear != mCal.get(Calendar.YEAR)) { in getCurrentDayLocked()1459 mYear = mCal.get(Calendar.YEAR); in getCurrentDayLocked()1460 mCal.clear(); in getCurrentDayLocked()1461 mCal.set(Calendar.YEAR, mYear); in getCurrentDayLocked()1462 mYearInDays = (int)(mCal.getTimeInMillis()/86400000); in getCurrentDayLocked()