Lines Matching refs:db
182 // not in cache; we need to load it from the db
214 // it's not in the db... we need to generate it
225 // write to db on a thread pool... this can be done lazily and improves the performance
259 final static String DB_NAME = "widgetpreviews.db";
283 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
286 db.execSQL("DELETE FROM " + TABLE_NAME);
326 SQLiteDatabase db = mDb.getWritableDatabase();
334 db.insert(CacheDb.TABLE_NAME, null, values);
343 SQLiteDatabase db = cacheDb.getWritableDatabase();
344 db.delete(CacheDb.TABLE_NAME,
364 SQLiteDatabase db = mDb.getReadableDatabase();
365 Cursor result = db.query(CacheDb.TABLE_NAME,