Searched refs:mDb (Results 1 – 4 of 4) sorted by relevance
42 protected SQLiteDatabase mDb; field in SQLiteContentProvider99 mDb = mOpenHelper.getWritableDatabase(); in insert()100 mDb.beginTransactionWithListener(this); in insert()106 mDb.setTransactionSuccessful(); in insert()108 mDb.endTransaction(); in insert()124 mDb = mOpenHelper.getWritableDatabase(); in bulkInsert()125 mDb.beginTransactionWithListener(this); in bulkInsert()133 SQLiteDatabase savedDb = mDb; in bulkInsert()134 mDb.yieldIfContendedSafely(); in bulkInsert()135 mDb = savedDb; in bulkInsert()[all …]
58 NotificationHistoryDatabase mDb; field in NotificationHistoryManagerTest116 NotificationHistoryDatabaseFactory.setTestingNotificationHistoryDatabase(mDb); in setUp()134 verify(mDb, times(1)).init(); in testOnUserUnlocked()154 verify(mDb, times(1)).disableHistory(); in testOnUserUnlocked_historyDisabled()179 verify(mDb, times(2)).disableHistory(); in testOnUserUnlocked_historyDisabled_withProfile()205 verify(mDb, never()).disableHistory(); in testOnUserUnlocked_historyDisabledThenEnabled()236 verify(mDb, never()).disableHistory(); in testOnUserUnlocked_historyDisabledThenEnabled_multiProfile()249 verify(mDb, times(1)).onPackageRemoved(pkg); in testOnUserUnlocked_cleansUpRemovedPackages()447 verify(mDb, never()).addNotification(any()); in testAddNotification_historyDisabled()511 when(mDb.readNotificationHistory()).thenReturn(nhSystem); in testReadNotificationHistory_historyDisabled()[all …]
1177 private final SQLiteDatabase mDb; field in DatabaseUtils.InsertHelper1206 mDb = db; in InsertHelper()1222 cur = mDb.rawQuery("PRAGMA table_info(" + mTableName + ")", null); in buildSQL()1261 mReplaceStatement = mDb.compileStatement(replaceSQL); in getStatement()1267 mInsertStatement = mDb.compileStatement(mInsertSQL); in getStatement()1292 mDb.beginTransactionNonExclusive(); in insertInternal()1307 mDb.setTransactionSuccessful(); in insertInternal()1313 mDb.endTransaction(); in insertInternal()
85 private File mDb; field in LockSettingsStorageTests90 mDb = InstrumentationRegistry.getContext().getDatabasePath("locksettings.db"); in setUp()94 assertTrue(!mDb.exists() || mDb.delete()); in setUp()