/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | TvProviderForTesting.java | 30 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()
|
D | DatabaseHelperTest.java | 33 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/ |
D | GrantsDatabase.java | 58 public DatabaseHelper mDatabaseHelper; field in GrantsDatabase 149 mDatabaseHelper = new DatabaseHelper(context, keysProvider); in GrantsDatabase() 153 mDatabaseHelper.close(); in destroy() 154 mDatabaseHelper = null; in destroy() 167 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in hasGrant() 172 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in setGrant() 189 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in removeAliasInformation() 195 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in removeAllAliasesInformation() 201 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in purgeOldGrants() 227 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in setIsUserSelectable() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/ |
D | BatteryDatabaseManager.java | 56 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/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryDatabaseManager.java | 56 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/ |
D | TransientRowHelper.java | 41 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/ |
D | BugStorageProvider.java | 117 private DatabaseHelper mDatabaseHelper; field in BugStorageProvider 214 mDatabaseHelper = new DatabaseHelper(getContext()); in onCreate() 259 SQLiteDatabase db = mDatabaseHelper.getReadableDatabase(); in query() 281 SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in insert() 310 SQLiteDatabase db = mDatabaseHelper.getReadableDatabase(); in delete() 356 SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in update()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoStore.java | 60 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/ |
D | FakeDataModel.java | 56 private final DatabaseHelper mDatabaseHelper; field in FakeDataModel 69 mDatabaseHelper = DatabaseHelper.getNewInstanceForTest(context); in FakeDataModel() 71 mDatabaseHelper = null; in FakeDataModel() 236 return mDatabaseHelper.getDatabase(); in getDatabase()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DataModelImpl.java | 64 private final DatabaseHelper mDatabaseHelper; field in DataModelImpl 73 mDatabaseHelper = DatabaseHelper.getInstance(context); in DataModelImpl() 184 return mDatabaseHelper.getDatabase(); in getDatabase()
|
D | MessagingContentProvider.java | 240 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/ |
D | EpgFetcherImplTest.java | 134 private EpgContentProvider.EpgDatabaseHelper mDatabaseHelper; field in EpgFetcherImplTest 144 mDatabaseHelper = new EpgContentProvider.EpgDatabaseHelper(RuntimeEnvironment.application); in setup() 305 SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in createTestEpgInput()
|