/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteOpenHelper.java | 26 import android.database.sqlite.SQLiteDatabase.CursorFactory; 63 private SQLiteDatabase mDatabase; 65 private SQLiteDatabase.OpenParams.Builder mOpenParamsBuilder; 124 @NonNull SQLiteDatabase.OpenParams openParams) { in SQLiteOpenHelper() 155 new SQLiteDatabase.OpenParams.Builder()); in SQLiteOpenHelper() 162 @NonNull SQLiteDatabase.OpenParams.Builder openParamsBuilder) { in SQLiteOpenHelper() 206 mOpenParamsBuilder.removeOpenFlags(SQLiteDatabase.ENABLE_LEGACY_COMPATIBILITY_WAL); in setWriteAheadLoggingEnabled() 246 public void setOpenParams(@NonNull SQLiteDatabase.OpenParams openParams) { in setOpenParams() 253 setOpenParamsBuilder(new SQLiteDatabase.OpenParams.Builder(openParams)); in setOpenParams() 257 private void setOpenParamsBuilder(SQLiteDatabase.OpenParams.Builder openParamsBuilder) { in setOpenParamsBuilder() [all …]
|
D | SQLiteDatabaseConfiguration.java | 135 public @SQLiteDatabase.JournalMode String journalMode; 142 public @SQLiteDatabase.SyncMode String syncMode; 223 return (openFlags & SQLiteDatabase.OPEN_READONLY) != 0; in isReadOnlyDatabase() 228 && (openFlags & SQLiteDatabase.ENABLE_LEGACY_COMPATIBILITY_WAL) != 0; in isLegacyCompatibilityWalEnabled() 250 public @SQLiteDatabase.JournalMode String resolveJournalMode() { in resolveJournalMode() 258 && journalMode.equalsIgnoreCase(SQLiteDatabase.JOURNAL_MODE_OFF)) { in resolveJournalMode() 259 return SQLiteDatabase.JOURNAL_MODE_OFF; in resolveJournalMode() 261 return SQLiteDatabase.JOURNAL_MODE_MEMORY; in resolveJournalMode() 268 return SQLiteDatabase.JOURNAL_MODE_WAL; in resolveJournalMode() 283 public @SQLiteDatabase.SyncMode String resolveSyncMode() { in resolveSyncMode() [all …]
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountsDb.java | 25 import android.database.sqlite.SQLiteDatabase; 208 public void onCreate(SQLiteDatabase db) { in onCreate() 234 private void createAccountsDeletionTrigger(SQLiteDatabase db) { in createAccountsDeletionTrigger() 246 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 269 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() 276 public void onOpen(SQLiteDatabase db) { in onOpen() 305 if (!SQLiteDatabase.deleteDatabase(preNDatabaseFile)) { in create() 333 SQLiteDatabase db = mDeDatabase.getReadableDatabaseUserIsUnlocked(); in findAuthtokenForAllAccounts() 348 SQLiteDatabase db = mDeDatabase.getReadableDatabaseUserIsUnlocked(); in findAuthTokensByAccount() 368 SQLiteDatabase db = mDeDatabase.getWritableDatabaseUserIsUnlocked(); in deleteAuthtokensByAccountIdAndType() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/database/ |
D | SQLiteDatabasePerfTest.java | 24 import android.database.sqlite.SQLiteDatabase; 54 private SQLiteDatabase mDatabase; 63 SQLiteDatabase.JOURNAL_MODE_TRUNCATE, SQLiteDatabase.SYNC_MODE_FULL); in setUp() 73 SQLiteDatabase.OpenParams.Builder paramsBuilder = new SQLiteDatabase.OpenParams.Builder(); in createOrOpenTestDatabase() 81 paramsBuilder.addOpenFlags(SQLiteDatabase.CREATE_IF_NECESSARY); in createOrOpenTestDatabase() 83 mDatabase = SQLiteDatabase.openDatabase(dbFile, paramsBuilder.build()); in createOrOpenTestDatabase() 269 recreateTestDatabase(SQLiteDatabase.JOURNAL_MODE_PERSIST, SQLiteDatabase.SYNC_MODE_FULL); 299 recreateTestDatabase(SQLiteDatabase.JOURNAL_MODE_WAL, SQLiteDatabase.SYNC_MODE_NORMAL); 311 recreateTestDatabase(SQLiteDatabase.JOURNAL_MODE_WAL, SQLiteDatabase.SYNC_MODE_FULL); 324 recreateTestDatabase(SQLiteDatabase.JOURNAL_MODE_WAL, SQLiteDatabase.SYNC_MODE_NORMAL); [all …]
|
/frameworks/ex/common/java/com/android/common/content/ |
D | SyncStateContentProviderHelper.java | 23 import android.database.sqlite.SQLiteDatabase; 54 public void createDatabase(SQLiteDatabase db) { in createDatabase() 72 public void onDatabaseOpened(SQLiteDatabase db) { in onDatabaseOpened() 81 public Cursor query(SQLiteDatabase db, String[] projection, in query() 87 public long insert(SQLiteDatabase db, ContentValues values) { in insert() 91 public int delete(SQLiteDatabase db, String userWhere, String[] whereArgs) { in delete() 95 public int update(SQLiteDatabase db, ContentValues values, in update() 100 public int update(SQLiteDatabase db, long rowId, Object data) { in update() 113 public void onAccountsChanged(SQLiteDatabase db, Account[] accounts) { in onAccountsChanged()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbHelper.java | 20 import android.database.sqlite.SQLiteDatabase; 125 public void onCreate(SQLiteDatabase db) { in onCreate() 133 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() 140 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 187 private void dropAllKnownTables(SQLiteDatabase db) { in dropAllKnownTables() 194 private void upgradeDbForVersion3(SQLiteDatabase db) { in upgradeDbForVersion3() 203 private void upgradeDbForVersion4(SQLiteDatabase db) { in upgradeDbForVersion4() 213 private void upgradeDbForVersion5(SQLiteDatabase db) { in upgradeDbForVersion5() 220 private void upgradeDbForVersion6(SQLiteDatabase db) { in upgradeDbForVersion6() 229 private void upgradeDbForVersion7(SQLiteDatabase db) { in upgradeDbForVersion7() [all …]
|
D | RecoverableKeyStoreDb.java | 24 import android.database.sqlite.SQLiteDatabase; 98 SQLiteDatabase db = mKeyStoreDbHelper.getWritableDatabase(); in insertKey() 123 SQLiteDatabase db = mKeyStoreDbHelper.getReadableDatabase(); in getKey() 186 SQLiteDatabase db = mKeyStoreDbHelper.getWritableDatabase(); in removeKey() 203 SQLiteDatabase db = mKeyStoreDbHelper.getReadableDatabase(); in getStatusForAllKeys() 243 SQLiteDatabase db = mKeyStoreDbHelper.getWritableDatabase(); in setRecoveryStatus() 267 SQLiteDatabase db = mKeyStoreDbHelper.getReadableDatabase(); in getAllKeys() 328 SQLiteDatabase db = mKeyStoreDbHelper.getWritableDatabase(); in setPlatformKeyGenerationId() 348 SQLiteDatabase db = mKeyStoreDbHelper.getReadableDatabase(); in getUserSerialNumbers() 383 SQLiteDatabase db = mKeyStoreDbHelper.getWritableDatabase(); in setUserSerialNumber() [all …]
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/util/ |
D | SQLiteCacheHelper.java | 6 import android.database.sqlite.SQLiteDatabase; 61 mTableName, null, values, SQLiteDatabase.CONFLICT_REPLACE); in insertOrReplace() 90 protected abstract void onCreateTable(SQLiteDatabase db); in onCreateTable() 102 public void onCreate(SQLiteDatabase db) { in onCreate() 107 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 114 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() 120 private void clearDB(SQLiteDatabase db) { in clearDB()
|
D | NoLocaleSQLiteHelper.java | 19 import static android.database.sqlite.SQLiteDatabase.NO_LOCALIZED_COLLATORS; 24 import android.database.sqlite.SQLiteDatabase; 25 import android.database.sqlite.SQLiteDatabase.CursorFactory; 26 import android.database.sqlite.SQLiteDatabase.OpenParams; 52 public SQLiteDatabase openOrCreateDatabase( in openOrCreateDatabase()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/analytics/ |
D | TelephonyAnalyticsUtil.java | 25 import android.database.sqlite.SQLiteDatabase; 64 public void onCreate(SQLiteDatabase db) {} in onCreate() 67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {} in onUpgrade() 77 SQLiteDatabase db = getWritableDatabase(); in createTable() 88 SQLiteDatabase db = getWritableDatabase(); in insert() 101 SQLiteDatabase db = getWritableDatabase(); in update() 126 SQLiteDatabase db = getReadableDatabase(); in getCursor() 175 SQLiteDatabase db = getWritableDatabase(); in delete()
|
/frameworks/base/core/java/com/android/internal/net/ |
D | ConnectivityBlobStore.java | 24 import android.database.sqlite.SQLiteDatabase; 50 private final SQLiteDatabase mDb; 63 final SQLiteDatabase.OpenParams params = new SQLiteDatabase.OpenParams.Builder() in ConnectivityBlobStore() 64 .addOpenFlags(SQLiteDatabase.CREATE_IF_NECESSARY) in ConnectivityBlobStore() 65 .addOpenFlags(SQLiteDatabase.ENABLE_WRITE_AHEAD_LOGGING) in ConnectivityBlobStore() 67 mDb = SQLiteDatabase.openDatabase(file, params); in ConnectivityBlobStore()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerDbHelper.java | 22 import android.database.sqlite.SQLiteDatabase; 65 public void onCreate(SQLiteDatabase db) { in onCreate() 71 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 87 SQLiteDatabase db = getWritableDatabase(); in updateGenericSoundModel() 97 SQLiteDatabase.CONFLICT_REPLACE) != -1; in updateGenericSoundModel() 112 SQLiteDatabase db = getReadableDatabase(); in getGenericSoundModel() 142 SQLiteDatabase db = getWritableDatabase(); in deleteGenericSoundModel() 156 SQLiteDatabase db = getReadableDatabase(); in dump()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | FakeSmsContentProvider.java | 24 import android.database.sqlite.SQLiteDatabase; 52 public void onCreate(SQLiteDatabase db) { in onCreate() 70 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 78 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() 85 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() 93 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | TrackerProvider.java | 24 import android.database.sqlite.SQLiteDatabase; 56 public void onCreate(SQLiteDatabase db) { in onCreate() 67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 87 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() 100 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() 113 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
|
/frameworks/base/core/java/com/android/internal/content/ |
D | SelectionBuilder.java | 21 import android.database.sqlite.SQLiteDatabase; 99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { in query() 106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, in query() 115 public int update(SQLiteDatabase db, String table, ContentValues values) { in update() 122 public int delete(SQLiteDatabase db, String table) { in delete()
|
/frameworks/base/core/java/android/database/ |
D | DefaultDatabaseErrorHandler.java | 18 import android.database.sqlite.SQLiteDatabase; 53 public void onCorruption(SQLiteDatabase dbObj) { in onCorruption() 55 SQLiteDatabase.wipeDetected(dbObj.getPath(), "corruption"); in onCorruption() 103 SQLiteDatabase.deleteDatabase(new File(fileName), /*removeCheckFile=*/ false); in deleteDatabaseFile()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseErrorHandlerTest.java | 20 import android.database.sqlite.SQLiteDatabase; 36 private SQLiteDatabase mDatabase; 49 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in setUp() 88 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in testDatabaseIsCorrupt() 101 public void onCorruption(SQLiteDatabase dbObj) { in onCorruption()
|
D | SQLiteOpenHelperTest.java | 25 import android.database.sqlite.SQLiteDatabase; 66 TestHelper(Context context, String name, int version, SQLiteDatabase.OpenParams params) { in TestHelper() 71 public void onCreate(SQLiteDatabase db) { in onCreate() 75 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 93 SQLiteDatabase.deleteDatabase( in teardown() 180 SQLiteDatabase.OpenParams params = new SQLiteDatabase.OpenParams.Builder() in testOpenParamsConstructor()
|
D | DatabaseGeneralTest.java | 24 import android.database.sqlite.SQLiteDatabase; 59 private SQLiteDatabase mDatabase; 70 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setUp() 78 SQLiteDatabase.deleteDatabase(mDatabaseFile); in tearDown() 403 SQLiteDatabase db1 = mDatabase; in testSchemaChange1() 894 int N = SQLiteDatabase.MAX_SQL_CACHE_SIZE; in testSetMaxCahesize() 911 SQLiteDatabase.OpenParams params = new SQLiteDatabase.OpenParams.Builder() in testOpenDatabaseLookasideConfig() 913 mDatabase = SQLiteDatabase.openDatabase(mDatabaseFile, params); in testOpenDatabaseLookasideConfig() 938 SQLiteDatabase.OpenParams params = new SQLiteDatabase.OpenParams.Builder() in testOpenParamsSetLookasideConfigValidation() 944 SQLiteDatabase.OpenParams params = new SQLiteDatabase.OpenParams.Builder() in testOpenParamsSetLookasideConfigValidation() [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/eab/ |
D | EabProvider.java | 28 import android.database.sqlite.SQLiteDatabase; 402 public void onCreate(SQLiteDatabase db) { in onCreate() 410 public void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion) { in onUpgrade() 498 SQLiteDatabase db = getReadableDatabase(); in query() 559 SQLiteDatabase db = getWritableDatabase(); in insert() 579 SQLiteDatabase.CONFLICT_REPLACE); in insert() 593 SQLiteDatabase db = getWritableDatabase(); in bulkInsert() 623 SQLiteDatabase.CONFLICT_REPLACE); in bulkInsert() 640 SQLiteDatabase db = getWritableDatabase(); in delete() 673 SQLiteDatabase db = getWritableDatabase(); in update() [all …]
|
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/eab/ |
D | EabProviderTestable.java | 28 import android.database.sqlite.SQLiteDatabase; 66 public SQLiteDatabase getReadableDatabase() { in getReadableDatabase() 72 public SQLiteDatabase getWritableDatabase() { in getWritableDatabase() 90 public void onCreate(SQLiteDatabase db) { in onCreate() 100 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
|
/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
D | WatchlistReportDbHelper.java | 23 import android.database.sqlite.SQLiteDatabase; 113 public void onCreate(SQLiteDatabase db) { in onCreate() 118 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 133 final SQLiteDatabase db; in insertNewRecord() 155 final SQLiteDatabase db; in getAggregatedRecords() 199 final SQLiteDatabase db; in cleanup()
|
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/ |
D | WapPushManager.java | 29 import android.database.sqlite.SQLiteDatabase; 86 public void onCreate(SQLiteDatabase db) { in onCreate() 105 public void onUpgrade(SQLiteDatabase db, in onUpgrade() 131 protected queryData queryLastApp(SQLiteDatabase db, in queryLastApp() 199 SQLiteDatabase db = dbh.getReadableDatabase(); in processMessage() 280 SQLiteDatabase db = dbh.getWritableDatabase(); in addPackage() 310 SQLiteDatabase db = dbh.getWritableDatabase(); in updatePackage() 345 SQLiteDatabase db = dbh.getWritableDatabase(); in deletePackage() 397 public boolean insertPackage(WapPushManDBHelper dbh, SQLiteDatabase db, String appId, in insertPackage() 452 SQLiteDatabase legacyDb = legacyDbHelper.getWritableDatabase(); in migrateWapPushManDBIfNeeded() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | PreNTestDatabaseHelper.java | 20 import android.database.sqlite.SQLiteDatabase; 39 public void onCreate(SQLiteDatabase db) { in onCreate() 88 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/satellite/ |
D | FakeSatelliteProvider.java | 22 import android.database.sqlite.SQLiteDatabase; 55 public void onCreate(SQLiteDatabase db) { in onCreate() 62 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 70 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert()
|