Home
last modified time | relevance | path

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

/frameworks/ex/common/java/com/android/common/content/
DSQLiteContentProvider.java40 private SQLiteOpenHelper mOpenHelper; field in SQLiteContentProvider
62 mOpenHelper = getDatabaseHelper(context); in onCreate()
87 return mOpenHelper; in getDatabaseHelper()
99 mDb = mOpenHelper.getWritableDatabase(); in insert()
124 mDb = mOpenHelper.getWritableDatabase(); in bulkInsert()
152 mDb = mOpenHelper.getWritableDatabase(); in update()
180 mDb = mOpenHelper.getWritableDatabase(); in delete()
207 mDb = mOpenHelper.getWritableDatabase(); in applyBatch()
225 mDb = mOpenHelper.getWritableDatabase(); in applyBatch()
/frameworks/support/room/runtime/src/main/java/androidx/room/
DRoomDatabase.java73 private SupportSQLiteOpenHelper mOpenHelper; field in RoomDatabase
111 mOpenHelper = createOpenHelper(configuration); in init()
115 mOpenHelper.setWriteAheadLoggingEnabled(wal); in init()
129 return mOpenHelper; in getOpenHelper()
185 mOpenHelper.close(); in close()
223 return mOpenHelper.getWritableDatabase().query(new SimpleSQLiteQuery(query, args)); in query()
234 return mOpenHelper.getWritableDatabase().query(query); in query()
245 return mOpenHelper.getWritableDatabase().compileStatement(sql); in compileStatement()
253 SupportSQLiteDatabase database = mOpenHelper.getWritableDatabase(); in beginTransaction()
262 mOpenHelper.getWritableDatabase().endTransaction(); in endTransaction()
[all …]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerProvider.java77 private DatabaseHelper mOpenHelper; field in TrackerProvider
81 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
87 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
100 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
113 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalProvider.java45 private SQLiteOpenHelper mOpenHelper; field in LocalProvider
103 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
127 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
158 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
/frameworks/base/core/java/android/content/
DSearchRecentSuggestionsProvider.java83 private SQLiteOpenHelper mOpenHelper; field in SearchRecentSuggestionsProvider
226 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
273 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
308 mOpenHelper = new DatabaseHelper(getContext(), mWorkingDbVersion); in onCreate()
321 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java47 private SQLiteOpenHelper mOpenHelper; field in MemoryFileProvider
101 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
158 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getBlobColumnAsFile()
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/
DLoaderThrottleSupport.java182 private DatabaseHelper mOpenHelper; field in LoaderThrottleSupport.SimpleProvider
205 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
244 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
290 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
309 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
345 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
/frameworks/support/room/runtime/src/test/java/androidx/room/
DInvalidationTrackerTest.java66 private SupportSQLiteOpenHelper mOpenHelper; field in InvalidationTrackerTest
75 mOpenHelper = mock(SupportSQLiteOpenHelper.class); in setup()
78 doReturn(sqliteDb).when(mOpenHelper).getWritableDatabase(); in setup()
83 doReturn(mOpenHelper).when(mRoomDatabase).getOpenHelper(); in setup()
243 doThrow(new IllegalStateException("foo")).when(mOpenHelper).getWritableDatabase(); in closedDb()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStorage.java87 private final DatabaseHelper mOpenHelper; field in LockSettingsStorage
182 mOpenHelper = new DatabaseHelper(context); in LockSettingsStorage()
186 mOpenHelper.setCallback(callback); in setDatabaseOnCreateCallback()
190 writeKeyValue(mOpenHelper.getWritableDatabase(), key, value, userId); in writeKeyValue()
223 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in readKeyValue()
248 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in prefetchUser()
562 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in removeUser()
605 mOpenHelper.close(); in closeDatabase()