Home
last modified time | relevance | path

Searched refs:mDatabaseHelper (Results 1 – 11 of 11) sorted by relevance

/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DTvProviderForTesting.java30 DatabaseHelper mDatabaseHelper; field in TvProviderForTesting
34 mDatabaseHelper = new DatabaseHelperForTesting(getContext(), TvProvider.DATABASE_VERSION); in onCreate()
35 setOpenHelper(mDatabaseHelper, false); in onCreate()
54 if (mDatabaseHelper != null) { in shutdown()
55 SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in shutdown()
57 mDatabaseHelper.close(); in shutdown()
67 return mDatabaseHelper; in getDatabaseHelper()
74 if (mDatabaseHelper == null) { in insertWatchedProgramSync()
75 mDatabaseHelper = DatabaseHelper.getInstance(getContext()); in insertWatchedProgramSync()
77 SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in insertWatchedProgramSync()
DDatabaseHelperTest.java33 private DatabaseHelperForTesting mDatabaseHelper; field in DatabaseHelperTest
56 mDatabaseHelper = new DatabaseHelperForTesting(getContext(), BASE_DATABASE_VERSION); in setUp()
59 mProvider.setOpenHelper(mDatabaseHelper, false); in setUp()
69 SQLiteDatabase db = mDatabaseHelper.getReadableDatabase(); in testUpgradeDatabase()
71 mDatabaseHelper.close(); in testUpgradeDatabase()
/packages/apps/KeyChain/src/com/android/keychain/internal/
DGrantsDatabase.java68 public DatabaseHelper mDatabaseHelper; field in GrantsDatabase
159 mDatabaseHelper = new DatabaseHelper(context, keysProvider); in GrantsDatabase()
163 mDatabaseHelper.close(); in destroy()
164 mDatabaseHelper = null; in destroy()
177 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in hasGrant()
182 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in setGrant()
199 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in getGrants()
218 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in removeAliasInformation()
224 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in removeAllAliasesInformation()
230 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in purgeOldGrants()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryDatabaseManager.java56 private AnomalyDatabaseHelper mDatabaseHelper; field in BatteryDatabaseManager
59 mDatabaseHelper = AnomalyDatabaseHelper.getInstance(context); in BatteryDatabaseManager()
87 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in insertAnomaly()
103 final SQLiteDatabase db = mDatabaseHelper.getReadableDatabase(); in queryAllAnomalies()
135 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in deleteAllAnomaliesBeforeTimeStamp()
154 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in updateAnomalies()
171 final SQLiteDatabase db = mDatabaseHelper.getReadableDatabase(); in queryActionTime()
196 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in insertAction()
211 SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in deleteAction()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTransientRowHelper.java41 private DatabaseHelper mDatabaseHelper; field in TransientRowHelper
62 mDatabaseHelper = DatabaseHelper.getInstance(context); in TransientRowHelper()
68 mDatabaseHelper = databaseHelper; in TransientRowHelper()
85 SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in ensureOldTransientRowsDeleted()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugStorageProvider.java129 private DatabaseHelper mDatabaseHelper; field in BugStorageProvider
236 mDatabaseHelper = new DatabaseHelper(getContext()); in onCreate()
281 SQLiteDatabase db = mDatabaseHelper.getReadableDatabase(); in query()
303 SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in insert()
332 SQLiteDatabase db = mDatabaseHelper.getReadableDatabase(); in delete()
394 SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in update()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoStore.java60 private final ContactsDatabaseHelper mDatabaseHelper; field in PhotoStore
80 mDatabaseHelper = databaseHelper; in PhotoStore()
96 mDb = mDatabaseHelper.getWritableDatabase(); in clear()
135 mDb = mDatabaseHelper.getWritableDatabase(); in initialize()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DFakeDataModel.java55 private final DatabaseHelper mDatabaseHelper; field in FakeDataModel
67 mDatabaseHelper = DatabaseHelper.getNewInstanceForTest(context); in FakeDataModel()
69 mDatabaseHelper = null; in FakeDataModel()
224 return mDatabaseHelper.getDatabase(); in getDatabase()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDataModelImpl.java66 private final DatabaseHelper mDatabaseHelper; field in DataModelImpl
80 mDatabaseHelper = DatabaseHelper.getInstance(context); in DataModelImpl()
190 return mDatabaseHelper.getDatabase(); in getDatabase()
DMessagingContentProvider.java240 private DatabaseHelper mDatabaseHelper; field in MessagingContentProvider
255 mDatabaseWrapper = mDatabaseHelper.getDatabase(); in getDatabaseWrapper()
472 mDatabaseHelper = (DatabaseHelper) getDatabase(); in onCreate()
/packages/apps/TV/tests/robotests/src/com/android/tv/data/epg/
DEpgFetcherImplTest.java134 private EpgContentProvider.EpgDatabaseHelper mDatabaseHelper; field in EpgFetcherImplTest
144 mDatabaseHelper = new EpgContentProvider.EpgDatabaseHelper(RuntimeEnvironment.application); in setup()
305 SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in createTestEpgInput()