Lines Matching refs:CacheDb
139 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()
392 CacheDb.COLUMN_NAME + " LIKE ? OR " + in removeFromDb()
393 CacheDb.COLUMN_NAME + " LIKE ?", // SELECT query in removeFromDb()
410 mCachedSelectQuery = CacheDb.COLUMN_NAME + " = ? AND " + in readFromDb()
411 CacheDb.COLUMN_SIZE + " = ?"; in readFromDb()
416 result = db.query(CacheDb.TABLE_NAME, in readFromDb()
417 new String[] { CacheDb.COLUMN_PREVIEW_BITMAP }, // cols to return in readFromDb()