/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 | 68 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/ |
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 | 129 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/ |
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 | 55 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/ |
D | DataModelImpl.java | 66 private final DatabaseHelper mDatabaseHelper; field in DataModelImpl 80 mDatabaseHelper = DatabaseHelper.getInstance(context); in DataModelImpl() 190 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()
|