/packages/apps/Dialer/tests/src/com/android/dialer/database/ |
DialerDatabaseHelperTest.java | 47 private SQLiteDatabase mDb; 52 mDb = mTestHelper.getWritableDatabase(); 69 mTestHelper.insertUpdatedContactsAndNumberPrefix(mDb, contactCursor, 0L); 70 mTestHelper.insertNamePrefixes(mDb, nameCursor); 76 mTestHelper.insertUpdatedContactsAndNumberPrefix(mDb, contactCursor, 1L); 77 mTestHelper.insertNamePrefixes(mDb, nameCursor); 89 mTestHelper.insertUpdatedContactsAndNumberPrefix(mDb, contactCursor, 0L); 90 mTestHelper.insertNamePrefixes(mDb, nameCursor); 99 mTestHelper.removeUpdatedContacts(mDb, contactCursor2); 100 mTestHelper.insertUpdatedContactsAndNumberPrefix(mDb, contactCursor2, 1L) [all...] |
/frameworks/ex/common/java/com/android/common/content/ |
SQLiteContentProvider.java | 42 protected SQLiteDatabase mDb; 99 mDb = mOpenHelper.getWritableDatabase(); 100 mDb.beginTransactionWithListener(this); 106 mDb.setTransactionSuccessful(); 108 mDb.endTransaction(); 124 mDb = mOpenHelper.getWritableDatabase(); 125 mDb.beginTransactionWithListener(this); 133 SQLiteDatabase savedDb = mDb; 134 mDb.yieldIfContendedSafely(); 135 mDb = savedDb [all...] |
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
SQLiteContentProvider.java | 46 protected SQLiteDatabase mDb; 96 mDb = mOpenHelper.getWritableDatabase(); 97 mDb.beginTransactionWithListener(this); 104 mDb.setTransactionSuccessful(); 107 mDb.endTransaction(); 124 mDb = mOpenHelper.getWritableDatabase(); 125 mDb.beginTransactionWithListener(this); 133 mDb.yieldIfContendedSafely(); 135 mDb.setTransactionSuccessful(); 138 mDb.endTransaction() [all...] |
CalendarProvider2.java | 504 mDb = null; 529 mDb = mDbHelper.getWritableDatabase(); 664 mDb.beginTransaction(); 670 mDb.setTransactionSuccessful(); 672 mDb.endTransaction(); 677 Cursor cursor = mDb.rawQuery(SQL_SELECT_EVENTSRAWTIMES, null /* selection args */); 728 int result = mDb.update(Tables.EVENTS, values, SQL_WHERE_ID, [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsDatabaseHelperTest.java | 39 private SQLiteDatabase mDb; 45 mDb = mDbHelper.getWritableDatabase(); 136 assertEquals(-1, ContactsDatabaseHelper.queryIdWithOneArg(mDb, query, "value1")); 137 assertEquals(-1, ContactsDatabaseHelper.queryIdWithOneArg(mDb, query, "value2")); 140 final long id1 = ContactsDatabaseHelper.insertWithOneArgAndReturnId(mDb, insert, "value1"); 143 assertEquals(id1, ContactsDatabaseHelper.queryIdWithOneArg(mDb, query, "value1")); 144 assertEquals(-1, ContactsDatabaseHelper.queryIdWithOneArg(mDb, query, "value2")); 148 final long id2 = ContactsDatabaseHelper.insertWithOneArgAndReturnId(mDb, insert, "value2"); 151 assertEquals(id1, ContactsDatabaseHelper.queryIdWithOneArg(mDb, query, "value1")); 152 assertEquals(id2, ContactsDatabaseHelper.queryIdWithOneArg(mDb, query, "value2")) [all...] |
PhotoStoreTest.java | 46 private SQLiteDatabase mDb; 59 mDb = mProvider.getDatabaseHelper(getContext()).getReadableDatabase(); 142 Cursor c = mDb.query(Tables.PHOTO_FILES, 163 Cursor c = mDb.query(Tables.PHOTO_FILES, 187 Cursor c = mDb.query(Tables.PHOTO_FILES, new String[]{PhotoFiles._ID}, 233 Cursor c = mDb.query(Tables.PHOTO_FILES, new String[]{PhotoFiles._ID},
|
BaseDatabaseHelperUpgradeTest.java | 39 protected SQLiteDatabase mDb; 171 mDb = SQLiteDatabase.create(null); 176 mDb.close(); 187 TableStructure structure = new TableStructure(mDb, entry.name);
|
ContactsDatabaseHelperUpgradeTest.java | 91 mHelper.onConfigure(mDb); 101 mHelper.onCreate(mDb); 106 create1108(mDb); 107 mHelper.onUpgrade(mDb, 1108, mHelper.DATABASE_VERSION); 115 create1108(mDb); 122 mHelper.onUpgrade(mDb, 1108, 1109); 123 TableStructure calls = new TableStructure(mDb, "calls"); 126 TableStructure voicemailStatus = new TableStructure(mDb, "voicemail_status"); 132 mHelper.onUpgrade(mDb, 1109, 1110);
|
/development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/ |
NotesDbAdapter.java | 45 private SQLiteDatabase mDb; 102 mDb = mDbHelper.getWritableDatabase(); 125 return mDb.insert(DATABASE_TABLE, null, initialValues); 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0;
|
/development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/ |
NotesDbAdapter.java | 45 private SQLiteDatabase mDb; 102 mDb = mDbHelper.getWritableDatabase(); 125 return mDb.insert(DATABASE_TABLE, null, initialValues); 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0;
|
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/ |
NotesDbAdapter.java | 45 private SQLiteDatabase mDb; 102 mDb = mDbHelper.getWritableDatabase(); 125 return mDb.insert(DATABASE_TABLE, null, initialValues); 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0;
|
/development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/ |
NotesDbAdapter.java | 45 private SQLiteDatabase mDb; 102 mDb = mDbHelper.getWritableDatabase(); 125 return mDb.insert(DATABASE_TABLE, null, initialValues); 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0;
|
/development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/ |
NotesDbAdapter.java | 45 private SQLiteDatabase mDb; 102 mDb = mDbHelper.getWritableDatabase(); 125 return mDb.insert(DATABASE_TABLE, null, initialValues); 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0;
|
/development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/ |
NotesDbAdapter.java | 45 private SQLiteDatabase mDb; 102 mDb = mDbHelper.getWritableDatabase(); 125 return mDb.insert(DATABASE_TABLE, null, initialValues); 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0;
|
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
RssContentProvider.java | 38 private SQLiteDatabase mDb; 106 mDb = mDbHelper.openDatabase(getContext(), DATABASE_NAME, null, DB_VERSION); 111 if(mDb == null){ 158 Cursor c = qBuilder.query(mDb, 172 int updateCount = mDb.update(DATABASE_TABLE_NAME, values, whereClause); 185 rowId = mDb.insert(DATABASE_TABLE_NAME, "rawcontent", initialValues); 196 int rowCount = mDb.delete(DATABASE_TABLE_NAME, ID + " = " + uri.getPathLeafId());
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
CommonNicknameCache.java | 41 private final SQLiteDatabase mDb; 44 mDb = db; 71 Cursor cursor = mDb.query(NicknameLookupPreloadQuery.TABLE, 134 Cursor cursor = mDb.query(NicknameLookupQuery.TABLE, NicknameLookupQuery.COLUMNS,
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
PhotoStore.java | 62 private SQLiteDatabase mDb; 94 if (mDb == null) { 95 mDb = mDatabaseHelper.getWritableDatabase(); 97 mDb.delete(Tables.PHOTO_FILES, null, null); 134 mDb = mDatabaseHelper.getWritableDatabase(); 208 long id = mDb.insert(Tables.PHOTO_FILES, null, values); 277 mDb.delete(ContactsDatabaseHelper.Tables.PHOTO_FILES, PhotoFilesColumns.CONCRETE_ID + "=?",
|
DbModifierWithNotification.java | 68 private final SQLiteDatabase mDb; 88 mDb = db; 103 long rowId = mDb.insert(table, nullColumnHack, values); 184 int count = mDb.update(table, values, whereClause, whereArgs); 221 count = mDb.update(table, values, whereClause, whereArgs); 223 count = mDb.delete(table, whereClause, whereArgs); 243 Cursor cursor = mDb.query(mTableName, PROJECTION,
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
SavedWallpaperImages.java | 51 private ImageDb mDb; 100 mDb = new ImageDb(context); 107 SQLiteDatabase db = mDb.getReadableDatabase(); 172 SQLiteDatabase db = mDb.getReadableDatabase(); 199 SQLiteDatabase db = mDb.getWritableDatabase(); 241 SQLiteDatabase db = mDb.getWritableDatabase();
|
/cts/tests/tests/content/src/android/content/cts/ |
ContentProviderTest.java | 299 private SQLiteDatabase mDb; 304 mDb = mContext.openOrCreateDatabase(dbName, Context.MODE_PRIVATE, null); 305 mDb.execSQL("CREATE TABLE files ( _data TEXT );"); 306 mDb.execSQL("INSERT INTO files VALUES ( \"" + fileName + "\");"); 332 return mDb.query("files", projection, selection, selectionArgs, null, null, null);
|
/packages/experimental/StrictModeTest/src/com/android/strictmodetest/ |
StrictModeActivity.java | 98 private SQLiteDatabase mDb; 107 mDb = openOrCreateDatabase("foo.db", MODE_PRIVATE, null); 116 c = mDb.rawQuery("SELECT * FROM foo", null); 129 mDb.execSQL("CREATE TABLE IF NOT EXISTS FOO (a INT)"); 326 mDb.execSQL("CREATE TABLE IF NOT EXISTS FOO (a INT)"); 327 Cursor c = mDb.rawQuery("SELECT * FROM foo", null); 408 mDb.close(); 409 mDb = null;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
LockSettingsStorageTests.java | 37 private File mDb; 43 mDb = getContext().getDatabasePath("locksettings.db"); 47 assertTrue(!mDb.exists() || mDb.delete());
|
/frameworks/base/core/java/android/database/ |
DatabaseUtils.java | [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
AutoInstallsLayout.java | 168 protected SQLiteDatabase mDb; 194 mDb = db; 298 if (mCallback.insertAndCheck(mDb, mValues) < 0) { 530 insertedId = mCallback.insertAndCheck(mDb, mValues); 578 long folderId = mCallback.insertAndCheck(mDb, mValues); 620 mDb.delete(args.table, args.where, args.args); 633 mDb.update(LauncherProvider.TABLE_FAVORITES, childValues,
|
/development/samples/NotePad/tests/src/com/example/android/notepad/ |
NotePadProviderTest.java | 55 private SQLiteDatabase mDb; 121 mDb = getProvider().getOpenHelperForTest().getWritableDatabase(); 150 mDb.insertOrThrow( [all...] |