Home | History | Annotate | Download | only in launcher2

Lines Matching defs:CacheDb

134     private CacheDb mDb;
272 static class CacheDb extends SQLiteOpenHelper {
281 public CacheDb(Context context) {
344 values.put(CacheDb.COLUMN_NAME, name);
347 values.put(CacheDb.COLUMN_PREVIEW_BITMAP, stream.toByteArray());
348 values.put(CacheDb.COLUMN_SIZE, mSize);
349 db.insert(CacheDb.TABLE_NAME, null, values);
355 db.delete(CacheDb.TABLE_NAME, null, null);
358 public static void removeFromDb(final CacheDb cacheDb, final String packageName) {
364 SQLiteDatabase db = cacheDb.getWritableDatabase();
365 db.delete(CacheDb.TABLE_NAME,
366 CacheDb.COLUMN_NAME + " LIKE ? OR " +
367 CacheDb.COLUMN_NAME + " LIKE ?", // SELECT query
382 mCachedSelectQuery = CacheDb.COLUMN_NAME + " = ? AND " +
383 CacheDb.COLUMN_SIZE + " = ?";
386 Cursor result = db.query(CacheDb.TABLE_NAME,
387 new String[] { CacheDb.COLUMN_PREVIEW_BITMAP }, // cols to return