Home
last modified time | relevance | path

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

/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/apps/Calendar/src/com/android/calendar/
DCalendarUtils.kt25 import android.provider.CalendarContract.CalendarCache
111 val keyColumn: Int = cursor.getColumnIndexOrThrow(CalendarCache.KEY) in onQueryComplete()
112 val valueColumn: Int = cursor.getColumnIndexOrThrow(CalendarCache.VALUE) in onQueryComplete()
116 if (TextUtils.equals(key, CalendarCache.KEY_TIMEZONE_TYPE)) { in onQueryComplete()
118 value, CalendarCache.TIMEZONE_TYPE_AUTO) in onQueryComplete()
124 key, CalendarCache.KEY_TIMEZONE_INSTANCES_PREVIOUS)) { in onQueryComplete()
204 if (CalendarCache.TIMEZONE_TYPE_AUTO.equals(timeZone)) { in setTimeZone()
236 values.put(CalendarCache.VALUE, if (mUseHomeTZ) CalendarCache.TIMEZONE_TYPE_HOME in setTimeZone()
237 else CalendarCache.TIMEZONE_TYPE_AUTO) in setTimeZone()
238 mHandler?.startUpdate(mToken, null, CalendarCache.URI, values, "key=?", in setTimeZone()
[all …]
DGeneralPreferences.kt40 import android.provider.CalendarContract.CalendarCache
206 CalendarCache.TIMEZONE_TYPE_AUTO in onPreferenceChange()
/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.java193 CalendarCache mCalendarCache;
558 mCalendarCache = new CalendarCache(mDbHelper); in initialize()
653 if (timezoneType != null && timezoneType.equals(CalendarCache.TIMEZONE_TYPE_HOME)) { in doUpdateTimezoneDependentFields()
761 } catch (CalendarCache.CacheException e) { in updateTimezoneDatabaseVersion()
793 return CalendarCache.TIMEZONE_TYPE_HOME.equals(type); in isHomeTimezone()
1607 if (CalendarCache.TIMEZONE_TYPE_AUTO.equals(timezoneType)) { in acquireInstanceRangeLocked()
4414 if (list.contains(CalendarCache.KEY_TIMEZONE_INSTANCES_PREVIOUS)) { in updateInTransactionInner()
4416 CalendarCache.KEY_TIMEZONE_INSTANCES_PREVIOUS + " for " + uri); in updateInTransactionInner()
4437 if (list.contains(CalendarCache.KEY_TIMEZONE_TYPE)) { in updateInTransactionInner()
4438 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.java21 import android.provider.CalendarContract.CalendarCache;
160 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 …]