Lines Matching refs:CacheDb
139 private CacheDb mDb;
287 static class CacheDb extends SQLiteOpenHelper {
296 public CacheDb(Context context) {
362 values.put(CacheDb.COLUMN_NAME, name);
365 values.put(CacheDb.COLUMN_PREVIEW_BITMAP, stream.toByteArray());
366 values.put(CacheDb.COLUMN_SIZE, mSize);
368 db.insert(CacheDb.TABLE_NAME, null, values);
378 db.delete(CacheDb.TABLE_NAME, null, null);
383 public static void removeFromDb(final CacheDb cacheDb, final String packageName) {
389 SQLiteDatabase db = cacheDb.getWritableDatabase();
391 db.delete(CacheDb.TABLE_NAME,
392 CacheDb.COLUMN_NAME + " LIKE ? OR " +
393 CacheDb.COLUMN_NAME + " LIKE ?", // SELECT query
410 mCachedSelectQuery = CacheDb.COLUMN_NAME + " = ? AND " +
411 CacheDb.COLUMN_SIZE + " = ?";
416 result = db.query(CacheDb.TABLE_NAME,
417 new String[] { CacheDb.COLUMN_PREVIEW_BITMAP }, // cols to return