Searched refs:CalendarCache (Results 1 – 10 of 10) sorted by relevance
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarUtils.java | 26 import android.provider.CalendarContract.CalendarCache; 50 private static final String[] TIMEZONE_TYPE_ARGS = { CalendarCache.KEY_TIMEZONE_TYPE }; 52 { CalendarCache.KEY_TIMEZONE_INSTANCES }; 54 CalendarCache.KEY, CalendarCache.VALUE 104 int keyColumn = cursor.getColumnIndexOrThrow(CalendarCache.KEY); in onQueryComplete() 105 int valueColumn = cursor.getColumnIndexOrThrow(CalendarCache.VALUE); in onQueryComplete() 109 if (TextUtils.equals(key, CalendarCache.KEY_TIMEZONE_TYPE)) { in onQueryComplete() 111 value, CalendarCache.TIMEZONE_TYPE_AUTO); in onQueryComplete() 117 key, CalendarCache.KEY_TIMEZONE_INSTANCES_PREVIOUS)) { in onQueryComplete() 208 if (CalendarCache.TIMEZONE_TYPE_AUTO.equals(timeZone)) { in setTimeZone() [all …]
|
D | GeneralPreferences.java | 43 import android.provider.CalendarContract.CalendarCache; 298 tz = CalendarCache.TIMEZONE_TYPE_AUTO; in onPreferenceChange()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarCacheTest.java | 32 private CalendarCache mCalendarCache; 41 mCalendarCache = new CalendarCache(mDbHelper); in setUp() 57 } catch (CalendarCache.CacheException e) { in testGenerateCacheException() 63 public void testWriteAndReadTimezoneDatabaseVersion() throws CalendarCache.CacheException { in testWriteAndReadTimezoneDatabaseVersion() 68 public void testWriteAndReadTimezone() throws CalendarCache.CacheException { in testWriteAndReadTimezone() 73 public void testWriteAndReadTimezonePrevious() throws CalendarCache.CacheException { in testWriteAndReadTimezonePrevious() 78 public void testWriteAndReadTimezoneType() throws CalendarCache.CacheException { in testWriteAndReadTimezoneType() 79 mCalendarCache.writeTimezoneType(CalendarCache.TIMEZONE_TYPE_AUTO); in testWriteAndReadTimezoneType() 80 assertEquals(CalendarCache.TIMEZONE_TYPE_AUTO, mCalendarCache.readTimezoneType()); in testWriteAndReadTimezoneType() 82 mCalendarCache.writeTimezoneType(CalendarCache.TIMEZONE_TYPE_HOME); in testWriteAndReadTimezoneType() [all …]
|
D | CalendarProvider2Test.java | 1076 throws CalendarCache.CacheException { in wipeAndInitData() 1107 throws CalendarCache.CacheException { in initCalendarCacheLocked() 1108 CalendarCache cache = new CalendarCache(helper); in initCalendarCacheLocked() 1113 cache.writeDataLocked(db, CalendarCache.KEY_TIMEZONE_DATABASE_VERSION, "2010k"); in initCalendarCacheLocked() 1114 … cache.writeDataLocked(db, CalendarCache.KEY_TIMEZONE_TYPE, CalendarCache.TIMEZONE_TYPE_AUTO); in initCalendarCacheLocked() 1115 cache.writeDataLocked(db, CalendarCache.KEY_TIMEZONE_INSTANCES, localTimezone); in initCalendarCacheLocked() 1116 cache.writeDataLocked(db, CalendarCache.KEY_TIMEZONE_INSTANCES_PREVIOUS, localTimezone); in initCalendarCacheLocked() 2908 public void testGetAndSetTimezoneDatabaseVersion() throws CalendarCache.CacheException { in testGetAndSetTimezoneDatabaseVersion() 2911 CalendarCache cache = new CalendarCache(helper); in testGetAndSetTimezoneDatabaseVersion() 2916 } catch (CalendarCache.CacheException e) { in testGetAndSetTimezoneDatabaseVersion() [all …]
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarDatabaseHelper.java | 1019 CalendarCache.COLUMN_NAME_ID + " INTEGER PRIMARY KEY," + in createCalendarCacheTable() 1020 CalendarCache.COLUMN_NAME_KEY + " TEXT NOT NULL," + in createCalendarCacheTable() 1021 CalendarCache.COLUMN_NAME_VALUE + " TEXT" + in createCalendarCacheTable() 1030 oldTimezoneDbVersion : CalendarCache.DEFAULT_TIMEZONE_DATABASE_VERSION; in initCalendarCacheTable() 1034 " (" + CalendarCache.COLUMN_NAME_ID + ", " + in initCalendarCacheTable() 1035 CalendarCache.COLUMN_NAME_KEY + ", " + in initCalendarCacheTable() 1036 CalendarCache.COLUMN_NAME_VALUE + ") VALUES (" + in initCalendarCacheTable() 1037 CalendarCache.KEY_TIMEZONE_DATABASE_VERSION.hashCode() + "," + in initCalendarCacheTable() 1038 "'" + CalendarCache.KEY_TIMEZONE_DATABASE_VERSION + "'," + in initCalendarCacheTable() 1046 " (" + CalendarCache.COLUMN_NAME_ID + ", " + in updateCalendarCacheTable() [all …]
|
D | CalendarCache.java | 32 public class CalendarCache { class 73 public CalendarCache(SQLiteOpenHelper openHelper) { in CalendarCache() method in CalendarCache
|
D | CalendarProvider2.java | 191 CalendarCache mCalendarCache; 546 mCalendarCache = new CalendarCache(mDbHelper); in initialize() 641 if (timezoneType != null && timezoneType.equals(CalendarCache.TIMEZONE_TYPE_HOME)) { in doUpdateTimezoneDependentFields() 749 } catch (CalendarCache.CacheException e) { in updateTimezoneDatabaseVersion() 781 return CalendarCache.TIMEZONE_TYPE_HOME.equals(type); in isHomeTimezone() 1588 if (CalendarCache.TIMEZONE_TYPE_AUTO.equals(timezoneType)) { in acquireInstanceRangeLocked() 4391 if (list.contains(CalendarCache.KEY_TIMEZONE_INSTANCES_PREVIOUS)) { in updateInTransactionInner() 4393 CalendarCache.KEY_TIMEZONE_INSTANCES_PREVIOUS + " for " + uri); in updateInTransactionInner() 4414 if (list.contains(CalendarCache.KEY_TIMEZONE_TYPE)) { in updateInTransactionInner() 4415 String value = values.getAsString(CalendarCache.COLUMN_NAME_VALUE); in updateInTransactionInner() [all …]
|
D | CalendarInstancesHelper.java | 63 private final CalendarCache mCalendarCache; 133 mCalendarCache = new CalendarCache(mDbHelper); in CalendarInstancesHelper()
|
D | CalendarAlarmManager.java | 351 boolean isHomeTimezone = CalendarCache.TIMEZONE_TYPE_HOME.equals(timezoneType); in scheduleNextAlarmLocked()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 27 import android.provider.CalendarContract.CalendarCache; 176 dbUtils.getContentResolver().addProvider(CalendarCache.URI.getAuthority(), in setUp()
|