/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | MetaData.java | 53 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()
|
D | SQLiteContentProvider.java | 41 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()
|
D | CalendarCache.java | 59 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/ |
D | SQLiteContentProvider.java | 41 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()
|
D | SnapshotProvider.java | 64 SnapshotDatabaseHelper mOpenHelper; field in SnapshotProvider 138 mOpenHelper = new SnapshotDatabaseHelper(getContext()); in onCreate() 143 return mOpenHelper.getWritableDatabase(); in getWritableDatabase() 147 return mOpenHelper.getReadableDatabase(); in getReadableDatabase()
|
D | BrowserProvider.java | 58 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()
|
D | BrowserProvider2.java | 385 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 …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AlarmProvider.java | 31 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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastContentProvider.java | 68 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() 209 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteBroadcast() 230 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteAllBroadcasts() 252 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in markBroadcastRead()
|
/packages/apps/Browser/src/com/android/browser/ |
D | AutoFillProfileDatabase.java | 34 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/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsSmsProvider.java | 274 private SQLiteOpenHelper mOpenHelper; field in MmsSmsProvider 280 mOpenHelper = MmsSmsDatabaseHelper.getInstance(getContext()); in onCreate() 290 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 501 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getSingleAddressId() 510 db = mOpenHelper.getWritableDatabase(); in getSingleAddressId() 601 long result = mOpenHelper.getWritableDatabase().insert("threads", null, values); in insertThread() 640 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getThreadId() 650 db = mOpenHelper.getReadableDatabase(); // In case insertThread closed it in getThreadId() 703 return mOpenHelper.getReadableDatabase().query("threads", projection, in getSimpleConversations() 756 return mOpenHelper.getReadableDatabase().rawQuery(outerQuery, EMPTY_STRING_ARRAY); in getDraftThread() [all …]
|
D | TelephonyProvider.java | 369 mOpenHelper = new DatabaseHelper(getContext()); in onCreate() 460 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 492 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() 610 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() 666 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() 723 private DatabaseHelper mOpenHelper; field in TelephonyProvider 726 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in restoreDefaultAPN() 730 mOpenHelper.initDatabase(db); in restoreDefaultAPN()
|
D | SmsProvider.java | 85 mOpenHelper = MmsSmsDatabaseHelper.getInstance(getContext()); in onCreate() 222 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 402 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() 524 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() 610 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() 685 private SQLiteOpenHelper mOpenHelper; field in SmsProvider
|
D | MmsProvider.java | 66 mOpenHelper = MmsSmsDatabaseHelper.getInstance(getContext()); in onCreate() 205 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 239 Cursor cursor = mOpenHelper.getReadableDatabase().query( in getType() 321 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() 583 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() 757 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() 889 private SQLiteOpenHelper mOpenHelper; field in MmsProvider
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
D | UserDictionaryProvider.java | 115 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/ |
D | DrmProvider.java | 103 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/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppProvider.java | 112 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/ |
D | PartnerBookmarksProvider.java | 146 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/Launcher2/src/com/android/launcher2/ |
D | LauncherProvider.java | 89 private DatabaseHelper mOpenHelper; field in LauncherProvider 93 mOpenHelper = new DatabaseHelper(getContext()); in onCreate() 116 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query() 141 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() 142 final long rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues); in insert() 155 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert() 160 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) { in bulkInsert() 177 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() 188 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() 203 return mOpenHelper.generateNewId(); in generateNewId() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | ShortcutRepositoryImplLog.java | 81 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/ |
D | DownloadProvider.java | 164 private SQLiteOpenHelper mOpenHelper = null; field in DownloadProvider 429 mOpenHelper = new DatabaseHelper(getContext()); in onCreate() 470 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getType() 496 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() 833 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 1013 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() 1135 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
|