Lines Matching defs:CacheDb
132 private CacheDb mDb;
257 static class CacheDb extends SQLiteOpenHelper {
266 public CacheDb(Context context) {
329 values.put(CacheDb.COLUMN_NAME, name);
332 values.put(CacheDb.COLUMN_PREVIEW_BITMAP, stream.toByteArray());
333 values.put(CacheDb.COLUMN_SIZE, mSize);
334 db.insert(CacheDb.TABLE_NAME, null, values);
337 public static void removeFromDb(final CacheDb cacheDb, final String packageName) {
344 db.delete(CacheDb.TABLE_NAME,
345 CacheDb.COLUMN_NAME + " LIKE ? OR " +
346 CacheDb.COLUMN_NAME + " LIKE ?", // SELECT query
361 mCachedSelectQuery = CacheDb.COLUMN_NAME + " = ? AND " +
362 CacheDb.COLUMN_SIZE + " = ?";
365 Cursor result = db.query(CacheDb.TABLE_NAME,
366 new String[] { CacheDb.COLUMN_PREVIEW_BITMAP }, // cols to return