Searched refs:mOpenHelper (Results 1 – 3 of 3) sorted by relevance
36 private MockOpenHelper mOpenHelper; field in SQLiteOpenHelperTest47 mOpenHelper = getOpenHelper(); in setUp()66 assertFalse(mOpenHelper.hasCalledOnOpen()); in testGetDatabase()68 database = mOpenHelper.getReadableDatabase(); in testGetDatabase()71 assertTrue(mOpenHelper.hasCalledOnOpen()); in testGetDatabase()74 mOpenHelper.resetStatus(); in testGetDatabase()75 assertFalse(mOpenHelper.hasCalledOnOpen()); in testGetDatabase()77 SQLiteDatabase database2 = mOpenHelper.getWritableDatabase(); in testGetDatabase()80 assertFalse(mOpenHelper.hasCalledOnOpen()); in testGetDatabase()82 mOpenHelper.close(); in testGetDatabase()[all …]
80 private SQLiteOpenHelper mOpenHelper; field in TestResultsProvider86 mOpenHelper = new TestResultsOpenHelper(getContext()); in onCreate()146 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()152 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()189 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()200 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
51 private SQLiteOpenHelper mOpenHelper; field in MockContentProvider126 mOpenHelper = new DatabaseHelper(getContext(), mDbName); in onCreate()133 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()221 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()290 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()301 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()