Home
last modified time | relevance | path

Searched refs:mDb (Results 1 – 4 of 4) sorted by relevance

/frameworks/ex/common/java/com/android/common/content/
DSQLiteContentProvider.java42 protected SQLiteDatabase mDb; field in SQLiteContentProvider
99 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 …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationHistoryManagerTest.java58 NotificationHistoryDatabase mDb; field in NotificationHistoryManagerTest
116 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 …]
/frameworks/base/core/java/android/database/
DDatabaseUtils.java1177 private final SQLiteDatabase mDb; field in DatabaseUtils.InsertHelper
1206 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()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java85 private File mDb; field in LockSettingsStorageTests
90 mDb = InstrumentationRegistry.getContext().getDatabasePath("locksettings.db"); in setUp()
94 assertTrue(!mDb.exists() || mDb.delete()); in setUp()