Home
last modified time | relevance | path

Searched refs:CalendarCache (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Calendar/src/com/android/calendar/
DCalendarUtils.java26 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 …]
DGeneralPreferences.java43 import android.provider.CalendarContract.CalendarCache;
298 tz = CalendarCache.TIMEZONE_TYPE_AUTO; in onPreferenceChange()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarCacheTest.java32 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 …]
DCalendarProvider2Test.java1095 throws CalendarCache.CacheException { in wipeAndInitData()
1126 throws CalendarCache.CacheException { in initCalendarCacheLocked()
1127 CalendarCache cache = new CalendarCache(helper); in initCalendarCacheLocked()
1132 cache.writeDataLocked(db, CalendarCache.KEY_TIMEZONE_DATABASE_VERSION, "2010k"); in initCalendarCacheLocked()
1133 … cache.writeDataLocked(db, CalendarCache.KEY_TIMEZONE_TYPE, CalendarCache.TIMEZONE_TYPE_AUTO); in initCalendarCacheLocked()
1134 cache.writeDataLocked(db, CalendarCache.KEY_TIMEZONE_INSTANCES, localTimezone); in initCalendarCacheLocked()
1135 cache.writeDataLocked(db, CalendarCache.KEY_TIMEZONE_INSTANCES_PREVIOUS, localTimezone); in initCalendarCacheLocked()
2927 public void testGetAndSetTimezoneDatabaseVersion() throws CalendarCache.CacheException { in testGetAndSetTimezoneDatabaseVersion()
2930 CalendarCache cache = new CalendarCache(helper); in testGetAndSetTimezoneDatabaseVersion()
2935 } catch (CalendarCache.CacheException e) { in testGetAndSetTimezoneDatabaseVersion()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDatabaseHelper.java1019 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 …]
DCalendarCache.java32 public class CalendarCache { class
73 public CalendarCache(SQLiteOpenHelper openHelper) { in CalendarCache() method in CalendarCache
DCalendarProvider2.java194 CalendarCache mCalendarCache;
559 mCalendarCache = new CalendarCache(mDbHelper); in initialize()
654 if (timezoneType != null && timezoneType.equals(CalendarCache.TIMEZONE_TYPE_HOME)) { in doUpdateTimezoneDependentFields()
762 } catch (CalendarCache.CacheException e) { in updateTimezoneDatabaseVersion()
794 return CalendarCache.TIMEZONE_TYPE_HOME.equals(type); in isHomeTimezone()
1608 if (CalendarCache.TIMEZONE_TYPE_AUTO.equals(timezoneType)) { in acquireInstanceRangeLocked()
4415 if (list.contains(CalendarCache.KEY_TIMEZONE_INSTANCES_PREVIOUS)) { in updateInTransactionInner()
4417 CalendarCache.KEY_TIMEZONE_INSTANCES_PREVIOUS + " for " + uri); in updateInTransactionInner()
4438 if (list.contains(CalendarCache.KEY_TIMEZONE_TYPE)) { in updateInTransactionInner()
4439 String value = values.getAsString(CalendarCache.COLUMN_NAME_VALUE); in updateInTransactionInner()
[all …]
DCalendarInstancesHelper.java63 private final CalendarCache mCalendarCache;
133 mCalendarCache = new CalendarCache(mDbHelper); in CalendarInstancesHelper()
DCalendarAlarmManager.java351 boolean isHomeTimezone = CalendarCache.TIMEZONE_TYPE_HOME.equals(timezoneType); in scheduleNextAlarmLocked()
/packages/apps/Calendar/tests/src/com/android/calendar/
DUtilsTests.java27 import android.provider.CalendarContract.CalendarCache;
176 dbUtils.getContentResolver().addProvider(CalendarCache.URI.getAuthority(), in setUp()
/packages/modules/RuntimeI18n/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt70 Landroid/icu/impl/CalendarCache;->arraySize:I
71 Landroid/icu/impl/CalendarCache;->findIndex(J)I
72 Landroid/icu/impl/CalendarCache;->hash(J)I
73 Landroid/icu/impl/CalendarCache;->hash2(J)I
74 Landroid/icu/impl/CalendarCache;->keys:[J
75 Landroid/icu/impl/CalendarCache;->makeArrays(I)V
76 Landroid/icu/impl/CalendarCache;->pIndex:I
77 Landroid/icu/impl/CalendarCache;->primes:[I
78 Landroid/icu/impl/CalendarCache;->rehash()V
79 Landroid/icu/impl/CalendarCache;->size:I
[all …]