Home
last modified time | relevance | path

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

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java280 private SQLiteOpenHelper mOpenHelper; field in MmsSmsProvider
287 mOpenHelper = MmsSmsDatabaseHelper.getInstance(getContext()); in onCreate()
297 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
508 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getSingleAddressId()
517 db = mOpenHelper.getWritableDatabase(); in getSingleAddressId()
608 long result = mOpenHelper.getWritableDatabase().insert(TABLE_THREADS, null, values); in insertThread()
648 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getThreadId()
721 return mOpenHelper.getReadableDatabase().query(TABLE_THREADS, projection, in getSimpleConversations()
774 return mOpenHelper.getReadableDatabase().rawQuery(outerQuery, EMPTY_STRING_ARRAY); in getDraftThread()
839 return mOpenHelper.getReadableDatabase().rawQuery(outerQuery, EMPTY_STRING_ARRAY); in getConversations()
[all …]
DTelephonyProvider.java404 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
514 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
552 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
676 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
732 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
788 private DatabaseHelper mOpenHelper; field in TelephonyProvider
791 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in restoreDefaultAPN()
799 mOpenHelper.initDatabase(db); in restoreDefaultAPN()
DMmsProvider.java69 mOpenHelper = MmsSmsDatabaseHelper.getInstance(getContext()); in onCreate()
208 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
242 Cursor cursor = mOpenHelper.getReadableDatabase().query( in getType()
328 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
590 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
768 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
930 private SQLiteOpenHelper mOpenHelper; field in MmsProvider
DSmsProvider.java87 mOpenHelper = MmsSmsDatabaseHelper.getInstance(getContext()); in onCreate()
224 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
404 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
526 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
612 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
687 private SQLiteOpenHelper mOpenHelper; field in SmsProvider
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java41 private SQLiteOpenHelper mOpenHelper; field in SQLiteContentProvider
53 mOpenHelper = getDatabaseHelper(context); in onCreate()
80 return mOpenHelper; in getDatabaseHelper()
93 mDb = mOpenHelper.getWritableDatabase(); in insert()
119 mDb = mOpenHelper.getWritableDatabase(); in bulkInsert()
144 mDb = mOpenHelper.getWritableDatabase(); in update()
175 mDb = mOpenHelper.getWritableDatabase(); in delete()
213 mDb = mOpenHelper.getWritableDatabase(); in applyBatch()
DMetaData.java53 private final SQLiteOpenHelper mOpenHelper; field in MetaData
70 mOpenHelper = openHelper; in MetaData()
81 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getFields()
115 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getFieldsLocked()
171 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in write()
203 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in writeLocked()
227 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in clearInstanceRange()
DCalendarCache.java59 private final SQLiteOpenHelper mOpenHelper; field in CalendarCache
74 mOpenHelper = openHelper; in CalendarCache()
148 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in writeData()
201 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in readData()
/packages/apps/Browser/src/com/android/browser/provider/
DSQLiteContentProvider.java41 private SQLiteOpenHelper mOpenHelper; field in SQLiteContentProvider
56 mOpenHelper = getDatabaseHelper(context); in onCreate()
99 return mOpenHelper; in getDatabaseHelper()
112 mDb = mOpenHelper.getWritableDatabase(); in insert()
132 mDb = mOpenHelper.getWritableDatabase(); in bulkInsert()
154 mDb = mOpenHelper.getWritableDatabase(); in update()
178 mDb = mOpenHelper.getWritableDatabase(); in delete()
200 mDb = mOpenHelper.getWritableDatabase(); in applyBatch()
DBrowserProvider.java58 private SQLiteOpenHelper mOpenHelper; field in BrowserProvider
406 mOpenHelper = new DatabaseHelper(context); in onCreate()
427 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in fixPicasaBookmark()
778 Cursor c = mOpenHelper.getReadableDatabase().query(TABLE_NAMES[match % 10], projection,
809 Cursor c = mOpenHelper.getReadableDatabase().query(TABLE_NAMES[URI_MATCH_BOOKMARKS],
856 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
906 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
954 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
DBrowserProvider2.java385 DatabaseHelper mOpenHelper; field in BrowserProvider2
792 if (mOpenHelper == null) { in getDatabaseHelper()
793 mOpenHelper = new DatabaseHelper(context); in getDatabaseHelper()
795 return mOpenHelper; in getDatabaseHelper()
879 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
1156 Cursor c = mOpenHelper.getReadableDatabase().query(TABLE_BOOKMARKS_JOIN_HISTORY, in doSuggestQuery()
1211 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteBookmarks()
1226 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteInTransaction()
1349 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in queryDefaultFolderId()
1369 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertInTransaction()
[all …]
DSnapshotProvider.java64 SnapshotDatabaseHelper mOpenHelper; field in SnapshotProvider
138 mOpenHelper = new SnapshotDatabaseHelper(getContext()); in onCreate()
143 return mOpenHelper.getWritableDatabase(); in getWritableDatabase()
147 return mOpenHelper.getReadableDatabase(); in getReadableDatabase()
/packages/apps/Gallery2/src/com/android/photos/data/
DSQLiteContentProvider.java43 private SQLiteOpenHelper mOpenHelper; field in SQLiteContentProvider
57 mOpenHelper = getDatabaseHelper(context); in onCreate()
108 return mOpenHelper; in getDatabaseHelper()
121 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
141 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert()
164 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
188 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
210 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in applyBatch()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java68 private SQLiteOpenHelper mOpenHelper; field in CellBroadcastContentProvider
76 mOpenHelper = new CellBroadcastDatabaseHelper(getContext()); in onCreate()
119 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
190 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertNewBroadcast()
216 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteBroadcast()
234 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteAllBroadcasts()
255 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in markBroadcastRead()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmProvider.java31 private AlarmDatabaseHelper mOpenHelper; field in AlarmProvider
48 mOpenHelper = new AlarmDatabaseHelper(getContext()); in onCreate()
72 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
103 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
127 Uri newUrl = mOpenHelper.commonInsert(initialValues); in insert()
133 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherProvider.java91 private DatabaseHelper mOpenHelper; field in LauncherProvider
95 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
118 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query()
143 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
144 final long rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues); in insert()
157 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert()
162 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) { in bulkInsert()
179 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
190 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
205 return mOpenHelper.generateNewId(); in generateNewId()
[all …]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java115 private DatabaseHelper mOpenHelper; field in UserDictionaryProvider
119 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
154 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
208 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
222 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
246 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
/packages/providers/DrmProvider/src/com/android/providers/drm/
DDrmProvider.java103 mOpenHelper = new OpenDatabaseHelper(getContext()); in onCreate()
175 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
234 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
349 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
375 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
419 private SQLiteOpenHelper mOpenHelper; field in DrmProvider
/packages/apps/Browser/src/com/android/browser/
DAutoFillProfileDatabase.java34 private AutoFillProfileDatabaseHelper mOpenHelper; field in AutoFillProfileDatabase
84 mOpenHelper = new AutoFillProfileDatabaseHelper(context); in AutoFillProfileDatabase()
95 return writable ? mOpenHelper.getWritableDatabase() : mOpenHelper.getReadableDatabase(); in getDatabase()
152 mOpenHelper.close(); in close()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java112 private SQLiteOpenHelper mOpenHelper = null; field in BluetoothOppProvider
233 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
298 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
305 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
391 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
435 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java146 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in prepareForConfiguration()
344 private DatabaseHelper mOpenHelper; field in PartnerBookmarksProvider
348 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
354 mOpenHelper.prepareForConfiguration(getContext().getResources().getConfiguration()); in onConfigurationChanged()
361 mOpenHelper.prepareForConfiguration(getContext().getResources().getConfiguration()); in query()
362 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DShortcutRepositoryImplLog.java81 private final DbOpenHelper mOpenHelper; field in ShortcutRepositoryImplLog
107 mOpenHelper = new DbOpenHelper(context, name, DB_VERSION, config); in ShortcutRepositoryImplLog()
200 return mOpenHelper; in getOpenHelper()
206 transaction.run(mOpenHelper.getWritableDatabase()); in runTransactionAsync()
214 query.run(mOpenHelper.getReadableDatabase(), consumer); in runQueryAsync()
322 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getShortcutsForQuery()
512 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getCorpusScores()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java170 private SQLiteOpenHelper mOpenHelper = null; field in DownloadProvider
435 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
480 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getType()
506 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
838 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
1018 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
1140 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
1219 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in dump()