Home
last modified time | relevance | path

Searched refs:mOpenHelper (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteOpenHelperTest.java48 private MockOpenHelper mOpenHelper; field in SQLiteOpenHelperTest
55 mOpenHelper = getOpenHelper(); in setUp()
60 mOpenHelper.close(); in tearDown()
81 assertFalse(mOpenHelper.hasCalledOnOpen()); in testGetDatabase()
83 database = mOpenHelper.getReadableDatabase(); in testGetDatabase()
86 assertTrue(mOpenHelper.hasCalledOnOpen()); in testGetDatabase()
89 mOpenHelper.resetStatus(); in testGetDatabase()
90 assertFalse(mOpenHelper.hasCalledOnOpen()); in testGetDatabase()
92 SQLiteDatabase database2 = mOpenHelper.getWritableDatabase(); in testGetDatabase()
95 assertFalse(mOpenHelper.hasCalledOnOpen()); in testGetDatabase()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java88 private SQLiteOpenHelper mOpenHelper; field in TestResultsProvider
100 mOpenHelper = new TestResultsOpenHelper(getContext()); in onCreate()
160 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
166 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
203 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
214 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
/cts/tests/tests/content/src/android/content/cts/
DMockContentProvider.java76 private SQLiteOpenHelper mOpenHelper; field in MockContentProvider
133 mOpenHelper = new DatabaseHelper(getContext(), mDbName); in onCreate()
140 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
243 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
314 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
325 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()