HomeSort by relevance Sort by last modified time
    Searched refs:CalendarCache (Results 1 - 25 of 25) sorted by null

  /packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
CalendarCacheTest.java 22 * Run various tests on CalendarCache
32 private CalendarCache mCalendarCache;
41 mCalendarCache = new CalendarCache(mDbHelper);
57 } catch (CalendarCache.CacheException e) {
63 public void testWriteAndReadTimezoneDatabaseVersion() throws CalendarCache.CacheException {
68 public void testWriteAndReadTimezone() throws CalendarCache.CacheException {
73 public void testWriteAndReadTimezonePrevious() throws CalendarCache.CacheException {
78 public void testWriteAndReadTimezoneType() throws CalendarCache.CacheException {
79 mCalendarCache.writeTimezoneType(CalendarCache.TIMEZONE_TYPE_AUTO);
80 assertEquals(CalendarCache.TIMEZONE_TYPE_AUTO, mCalendarCache.readTimezoneType())
    [all...]
CalendarProvider2Test.java     [all...]
  /frameworks/base/core/java/android/util/
CalendarUtils.java 25 import android.provider.Calendar.CalendarCache;
48 private static final String[] TIMEZONE_TYPE_ARGS = { CalendarCache.TIMEZONE_KEY_TYPE };
50 { CalendarCache.TIMEZONE_KEY_INSTANCES };
93 int keyColumn = cursor.getColumnIndexOrThrow(CalendarCache.KEY);
94 int valueColumn = cursor.getColumnIndexOrThrow(CalendarCache.VALUE);
98 if (TextUtils.equals(key, CalendarCache.TIMEZONE_KEY_TYPE)) {
100 value, CalendarCache.TIMEZONE_TYPE_AUTO);
106 key, CalendarCache.TIMEZONE_KEY_INSTANCES_PREVIOUS)) {
181 * {@link CalendarCache#TIMEZONE_TYPE_AUTO} will cause it to be set
186 * {@link CalendarCache#TIMEZONE_TYPE_AUTO
    [all...]
  /external/chromium/third_party/icu/source/i18n/
astro.h 737 class CalendarCache : public UMemory {
739 static int32_t get(CalendarCache** cache, int32_t key, UErrorCode &status);
740 static void put(CalendarCache** cache, int32_t key, int32_t value, UErrorCode &status);
741 virtual ~CalendarCache();
743 CalendarCache(int32_t size, UErrorCode& status);
744 static void createCache(CalendarCache** cache, UErrorCode& status);
748 CalendarCache();
astro.cpp     [all...]
chnsecal.cpp 53 static U_NAMESPACE_QUALIFIER CalendarCache *gChineseCalendarWinterSolsticeCache = NULL;
54 static U_NAMESPACE_QUALIFIER CalendarCache *gChineseCalendarNewYearCache = NULL;
468 int32_t cacheValue = CalendarCache::get(&gChineseCalendarWinterSolsticeCache, gyear, status);
488 CalendarCache::put(&gChineseCalendarWinterSolsticeCache, gyear, cacheValue, status);
696 int32_t cacheValue = CalendarCache::get(&gChineseCalendarNewYearCache, gyear, status);
713 CalendarCache::put(&gChineseCalendarNewYearCache, gyear, cacheValue, status);
hebrwcal.cpp 134 static U_NAMESPACE_QUALIFIER CalendarCache *gCache = NULL;
390 int32_t day = CalendarCache::get(&gCache, year, status);
418 CalendarCache::put(&gCache, year, day, status);
islamcal.cpp 55 static U_NAMESPACE_QUALIFIER CalendarCache *gMonthCache = NULL;
230 int32_t start = CalendarCache::get(&gMonthCache, month, status);
264 CalendarCache::put(&gMonthCache, month, start, status);
  /external/icu4c/i18n/
astro.h 737 class CalendarCache : public UMemory {
739 static int32_t get(CalendarCache** cache, int32_t key, UErrorCode &status);
740 static void put(CalendarCache** cache, int32_t key, int32_t value, UErrorCode &status);
741 virtual ~CalendarCache();
743 CalendarCache(int32_t size, UErrorCode& status);
744 static void createCache(CalendarCache** cache, UErrorCode& status);
748 CalendarCache();
astro.cpp     [all...]
chnsecal.cpp 53 static U_NAMESPACE_QUALIFIER CalendarCache *gChineseCalendarWinterSolsticeCache = NULL;
54 static U_NAMESPACE_QUALIFIER CalendarCache *gChineseCalendarNewYearCache = NULL;
468 int32_t cacheValue = CalendarCache::get(&gChineseCalendarWinterSolsticeCache, gyear, status);
488 CalendarCache::put(&gChineseCalendarWinterSolsticeCache, gyear, cacheValue, status);
696 int32_t cacheValue = CalendarCache::get(&gChineseCalendarNewYearCache, gyear, status);
713 CalendarCache::put(&gChineseCalendarNewYearCache, gyear, cacheValue, status);
hebrwcal.cpp 134 static U_NAMESPACE_QUALIFIER CalendarCache *gCache = NULL;
390 int32_t day = CalendarCache::get(&gCache, year, status);
418 CalendarCache::put(&gCache, year, day, status);
islamcal.cpp 55 static U_NAMESPACE_QUALIFIER CalendarCache *gMonthCache = NULL;
230 int32_t start = CalendarCache::get(&gMonthCache, month, status);
264 CalendarCache::put(&gMonthCache, month, start, status);
  /packages/apps/Calendar/src/com/android/calendar/
CalendarPreferenceActivity.java 33 import android.provider.Calendar.CalendarCache;
172 tz = CalendarCache.TIMEZONE_TYPE_AUTO;
  /packages/providers/CalendarProvider/src/com/android/providers/calendar/
CalendarCache.java 32 public class CalendarCache {
33 private static final String TAG = "CalendarCache";
35 public static final String DATABASE_NAME = "CalendarCache";
73 public CalendarCache(SQLiteOpenHelper openHelper) {
85 Log.e(TAG, "Could not read timezone database version from CalendarCache");
99 Log.e(TAG, "Cannot read timezone type from CalendarCache - using AUTO as default", e);
108 Log.e(TAG, "Cannot write instances timezone to CalendarCache");
117 Log.e(TAG, "Cannot read instances timezone from CalendarCache - using device one: " +
127 Log.e(TAG, "Cannot write previous instance timezone to CalendarCache");
135 Log.e(TAG, "Cannot read previous instances timezone from CalendarCache", e)
    [all...]
CalendarDatabaseHelper.java 423 db.execSQL("DROP TABLE IF EXISTS CalendarCache;");
426 db.execSQL("CREATE TABLE IF NOT EXISTS CalendarCache (" +
438 oldTimezoneDbVersion : CalendarCache.DEFAULT_TIMEZONE_DATABASE_VERSION;
441 db.execSQL("INSERT OR REPLACE INTO CalendarCache (_id, key, value) VALUES (" +
442 CalendarCache.KEY_TIMEZONE_DATABASE_VERSION.hashCode() + "," +
443 "'" + CalendarCache.KEY_TIMEZONE_DATABASE_VERSION + "'," +
450 db.execSQL("INSERT INTO CalendarCache (_id, key, value) VALUES (" +
451 CalendarCache.KEY_TIMEZONE_TYPE.hashCode() + "," +
452 "'" + CalendarCache.KEY_TIMEZONE_TYPE + "'," +
453 "'" + CalendarCache.TIMEZONE_TYPE_AUTO + "'"
    [all...]
CalendarAppWidgetService.java 32 import android.provider.Calendar.CalendarCache;
165 tzCursor = resolver.query(CalendarCache.URI, CalendarCache.POJECTION,
169 int keyColumn = tzCursor.getColumnIndexOrThrow(CalendarCache.KEY);
170 int valueColumn = tzCursor.getColumnIndexOrThrow(CalendarCache.VALUE);
173 tzCursor.getString(keyColumn), CalendarCache.TIMEZONE_KEY_INSTANCES)) {
CalendarProvider2.java 132 CalendarCache mCalendarCache;
418 mCalendarCache = new CalendarCache(mDbHelper);
474 if (timezoneType.equals(CalendarCache.TIMEZONE_TYPE_HOME)) {
575 } catch (CalendarCache.CacheException e) {
607 return type.equals(CalendarCache.TIMEZONE_TYPE_HOME);
    [all...]
  /frameworks/base/core/java/android/provider/
Calendar.java     [all...]
  /external/webkit/JavaScriptCore/icu/unicode/
urename.h     [all...]
  /external/webkit/JavaScriptGlue/icu/unicode/
urename.h     [all...]
  /external/webkit/WebCore/icu/unicode/
urename.h     [all...]
  /external/webkit/WebKit/mac/icu/unicode/
urename.h     [all...]
  /external/icu4c/common/unicode/
urename.h     [all...]
  /external/chromium/third_party/icu/public/common/unicode/
urename.h     [all...]

Completed in 593 milliseconds