Home
last modified time | relevance | path

Searched refs:CacheDb (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java69 private final CacheDb mDb;
80 mDb = new CacheDb(context); in WidgetPreviewLoader()
107 private static class CacheDb extends SQLiteCacheHelper { class in WidgetPreviewLoader
119 public CacheDb(Context context) { in CacheDb() method in WidgetPreviewLoader.CacheDb
153 values.put(CacheDb.COLUMN_COMPONENT, key.componentName.flattenToShortString()); in writeToDb()
154 values.put(CacheDb.COLUMN_USER, mUserManager.getSerialNumberForUser(key.user)); in writeToDb()
155 values.put(CacheDb.COLUMN_SIZE, key.size); in writeToDb()
156 values.put(CacheDb.COLUMN_PACKAGE, key.componentName.getPackageName()); in writeToDb()
157 values.put(CacheDb.COLUMN_VERSION, versions[0]); in writeToDb()
158 values.put(CacheDb.COLUMN_LAST_UPDATED, versions[1]); in writeToDb()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DWidgetPreviewLoader.java139 private CacheDb mDb;
287 static class CacheDb extends SQLiteOpenHelper { class in WidgetPreviewLoader
296 public CacheDb(Context context) { in CacheDb() method in WidgetPreviewLoader.CacheDb
362 values.put(CacheDb.COLUMN_NAME, name); in writeToDb()
365 values.put(CacheDb.COLUMN_PREVIEW_BITMAP, stream.toByteArray()); in writeToDb()
366 values.put(CacheDb.COLUMN_SIZE, mSize); in writeToDb()
368 db.insert(CacheDb.TABLE_NAME, null, values); in writeToDb()
378 db.delete(CacheDb.TABLE_NAME, null, null); in clearDb()
383 public static void removeFromDb(final CacheDb cacheDb, final String packageName) { in removeFromDb()
391 db.delete(CacheDb.TABLE_NAME, in removeFromDb()
[all …]
DLauncherApplication.java39 private WidgetPreviewLoader.CacheDb mWidgetPreviewCacheDb;
80 mWidgetPreviewCacheDb = new WidgetPreviewLoader.CacheDb(this); in recreateWidgetPreviewDb()
122 WidgetPreviewLoader.CacheDb getWidgetPreviewCacheDb() { in getWidgetPreviewCacheDb()