/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
PhotoStoreTest.java | 46 private SQLiteDatabase mDb; 59 mDb = mProvider.getDatabaseHelper().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; 174 mDb = SQLiteDatabase.create(null); 177 mDb = SQLiteDatabase.openOrCreateDatabase(filename, null); 183 mDb.close(); 196 TableStructure structure = new TableStructure(mDb, entry.name);
|
ContactsDatabaseHelperUpgradeTest.java | 103 mHelper.onConfigure(mDb); 118 mHelper.onCreate(mDb); 123 create1108(mDb); 135 create1108(mDb); 146 mHelper.onUpgrade(mDb, upgradeFrom, MY_VERSION); 147 TableStructure calls = new TableStructure(mDb, "calls"); 150 TableStructure voicemailStatus = new TableStructure(mDb, "voicemail_status"); 160 executeSqlFromAssetFile(getTestContext(), mDb, "upgradeTest/pre_upgrade1201.sql"); 162 mHelper.onUpgrade(mDb, upgradeFrom, MY_VERSION); 164 try (Cursor c = mDb.rawQuery("select * from contacts order by _id", null)) [all...] |
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
SavedWallpaperImages.java | 57 private final ImageDb mDb; 64 mDb = new ImageDb(context); 71 SQLiteDatabase db = mDb.getReadableDatabase(); 99 SQLiteDatabase db = mDb.getWritableDatabase(); 137 SQLiteDatabase db = mDb.getWritableDatabase();
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarProvider2.java | 482 mDb = null; 505 mDb = mDbHelper.getWritableDatabase(); 640 mDb.beginTransaction(); 646 mDb.setTransactionSuccessful(); 648 mDb.endTransaction(); 653 Cursor cursor = mDb.rawQuery(SQL_SELECT_EVENTSRAWTIMES, null /* selection args */); 704 int result = mDb.update(Tables.EVENTS, values, SQL_WHERE_ID, [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DbModifierWithNotification.java | 71 private final SQLiteDatabase mDb; 91 mDb = db; 106 long rowId = mDb.insert(table, nullColumnHack, values); 198 int count = mDb.update(table, values, whereClause, whereArgs); 220 mDb.update(table, values, 244 count = mDb.update(table, values, whereClause, whereArgs); 246 count = mDb.delete(table, whereClause, whereArgs); 266 Cursor cursor = mDb.query(mTableName, PROJECTION,
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/ |
SiteMapManagerTest.java | 64 private SQLiteDatabase mDb; 75 mDb = IndexDatabaseHelper.getInstance(mContext).getWritableDatabase(); 103 mDb.replaceOrThrow(IndexDatabaseHelper.Tables.TABLE_PREFS_INDEX, null, index); 142 mDb.replaceOrThrow(IndexDatabaseHelper.Tables.TABLE_SITE_MAP, null, siteMapPair);
|
DatabaseResultLoaderTest.java | 62 SQLiteDatabase mDb; 73 mDb = IndexDatabaseHelper.getInstance(mContext).getWritableDatabase(); 259 mDb.replaceOrThrow(IndexDatabaseHelper.Tables.TABLE_PREFS_INDEX, null, values); 290 mDb.replaceOrThrow(IndexDatabaseHelper.Tables.TABLE_PREFS_INDEX, null, values); 316 mDb.replaceOrThrow(IndexDatabaseHelper.Tables.TABLE_PREFS_INDEX, null, values); 343 mDb.replaceOrThrow(IndexDatabaseHelper.Tables.TABLE_PREFS_INDEX, null, values); 373 mDb.replaceOrThrow(IndexDatabaseHelper.Tables.TABLE_PREFS_INDEX, null, values);
|
/cts/tests/tests/content/src/android/content/cts/ |
ContentProviderTest.java | 304 private SQLiteDatabase mDb; 309 mDb = mContext.openOrCreateDatabase(dbName, Context.MODE_PRIVATE, null); 310 mDb.execSQL("CREATE TABLE files ( _data TEXT );"); 311 mDb.execSQL("INSERT INTO files VALUES ( \"" + fileName + "\");"); 337 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/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/test/ |
ConstructorTest.java | 170 private MyDb mDb; 175 mDb = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getTargetContext(), MyDb.class) 177 mDao = mDb.dao();
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
LockSettingsStorageTests.java | 58 private File mDb; 64 mDb = getContext().getDatabasePath("locksettings.db"); 68 assertTrue(!mDb.exists() || mDb.delete());
|
/frameworks/base/core/java/android/database/ |
DatabaseUtils.java | [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
AutoInstallsLayout.java | 166 protected SQLiteDatabase mDb; 191 mDb = db; 296 if (mCallback.insertAndCheck(mDb, mValues) < 0) { 518 long insertedId = mCallback.insertAndCheck(mDb, mValues); 554 long folderId = mCallback.insertAndCheck(mDb, mValues); 596 mDb.delete(args.table, args.where, args.args); 609 mDb.update(Favorites.TABLE_NAME, childValues,
|
WidgetPreviewLoader.java | 75 private final CacheDb mDb; 85 mDb = new CacheDb(context); 153 mDb.insertOrReplace(values); 165 mDb.delete( 200 c = mDb.query( 256 cursor = mDb.query(
|
DefaultLayoutParser.java | 309 insertedId = mCallback.insertAndCheck(mDb, mValues);
|
/development/samples/NotePad/tests/src/com/example/android/notepad/ |
NotePadProviderTest.java | 55 private SQLiteDatabase mDb; 121 mDb = getProvider().getOpenHelperForTest().getWritableDatabase(); 150 mDb.insertOrThrow( [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
WidgetPreviewLoader.java | 139 private CacheDb mDb; 159 mDb = app.getWidgetPreviewCacheDb(); 180 mDb = app.getWidgetPreviewCacheDb(); 359 SQLiteDatabase db = mDb.getWritableDatabase(); 375 SQLiteDatabase db = mDb.getWritableDatabase(); 413 SQLiteDatabase db = mDb.getReadableDatabase();
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
CalendarProvider2Test.java | 94 private SQLiteDatabase mDb; [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaProvider.java | [all...] |
/external/robolectric/v3/runtime/ |
android-all-4.1.2_r1-robolectric-0.jar | |
android-all-4.2.2_r1.2-robolectric-0.jar | |
android-all-4.3_r2-robolectric-0.jar | |
/prebuilts/misc/common/robolectric/lib/ |
android-all-4.1.2_r1-robolectric-0.jar | |
android-all-4.2.2_r1.2-robolectric-0.jar | |