/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteOpenHelper.java | 26 import android.database.sqlite.SQLiteDatabase.CursorFactory; 64 private SQLiteDatabase mDatabase; 66 private SQLiteDatabase.OpenParams.Builder mOpenParamsBuilder; 125 @NonNull SQLiteDatabase.OpenParams openParams) { in SQLiteOpenHelper() 156 new SQLiteDatabase.OpenParams.Builder()); in SQLiteOpenHelper() 163 @NonNull SQLiteDatabase.OpenParams.Builder openParamsBuilder) { in SQLiteOpenHelper() 207 mOpenParamsBuilder.removeOpenFlags(SQLiteDatabase.ENABLE_LEGACY_COMPATIBILITY_WAL); in setWriteAheadLoggingEnabled() 247 public void setOpenParams(@NonNull SQLiteDatabase.OpenParams openParams) { in setOpenParams() 254 setOpenParamsBuilder(new SQLiteDatabase.OpenParams.Builder(openParams)); in setOpenParams() 258 private void setOpenParamsBuilder(SQLiteDatabase.OpenParams.Builder openParamsBuilder) { in setOpenParamsBuilder() [all …]
|
D | SQLiteDirectCursorDriver.java | 21 import android.database.sqlite.SQLiteDatabase.CursorFactory; 31 private final SQLiteDatabase mDatabase; 37 public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable, in SQLiteDirectCursorDriver()
|
D | SQLiteDatabase.java | 86 public final class SQLiteDatabase extends SQLiteClosable { class 98 private static WeakHashMap<SQLiteDatabase, Object> sActiveDatabases = new WeakHashMap<>(); 289 private SQLiteDatabase(final String path, final int openFlags, in SQLiteDatabase() method in SQLiteDatabase 731 public static SQLiteDatabase openDatabase(@NonNull String path, @Nullable CursorFactory factory, in openDatabase() 746 public static SQLiteDatabase openDatabase(@NonNull File path, in openDatabase() 752 private static SQLiteDatabase openDatabase(@NonNull String path, in openDatabase() 755 SQLiteDatabase db = new SQLiteDatabase(path, openParams.mOpenFlags, in openDatabase() 782 public static SQLiteDatabase openDatabase(@NonNull String path, @Nullable CursorFactory factory, in openDatabase() 784 SQLiteDatabase db = new SQLiteDatabase(path, flags, factory, errorHandler, -1, -1, -1, null, in openDatabase() 793 public static SQLiteDatabase openOrCreateDatabase(@NonNull File file, in openOrCreateDatabase() [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/services/backup/java/com/android/server/backup/encryption/storage/ |
D | BackupEncryptionDbHelper.java | 22 import android.database.sqlite.SQLiteDatabase; 57 SQLiteDatabase db = getWritableDatabaseSafe(); in resetDatabase() 63 public void onCreate(SQLiteDatabase db) { in onCreate() 68 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 74 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() 83 public SQLiteDatabase getWritableDatabaseSafe() throws EncryptionDbException { in getWritableDatabaseSafe() 95 public SQLiteDatabase getReadableDatabaseSafe() throws EncryptionDbException { in getReadableDatabaseSafe()
|
D | TertiaryKeysTable.java | 23 import android.database.sqlite.SQLiteDatabase; 44 SQLiteDatabase db = mHelper.getWritableDatabaseSafe(); in addKey() 58 SQLiteDatabase db = mHelper.getReadableDatabaseSafe(); in getKey() 98 SQLiteDatabase db = mHelper.getReadableDatabaseSafe(); in getAllKeys()
|
/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; 108 public void onCreate(SQLiteDatabase db) { in onCreate() 116 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() 123 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 155 private void dropAllKnownTables(SQLiteDatabase db) { in dropAllKnownTables() 162 private void upgradeDbForVersion3(SQLiteDatabase db) { in upgradeDbForVersion3() 171 private void upgradeDbForVersion4(SQLiteDatabase db) { in upgradeDbForVersion4() 181 private void upgradeDbForVersion5(SQLiteDatabase db) { in upgradeDbForVersion5() 188 private void upgradeDbForVersion6(SQLiteDatabase db) { in upgradeDbForVersion6() 198 SQLiteDatabase db, String tableName, String column, String columnType, in addColumnToTable()
|
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/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerDbHelper.java | 22 import android.database.sqlite.SQLiteDatabase; 66 public void onCreate(SQLiteDatabase db) { in onCreate() 72 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 84 SQLiteDatabase db = getWritableDatabase(); in updateGenericSoundModel() 92 SQLiteDatabase.CONFLICT_REPLACE) != -1; in updateGenericSoundModel() 107 SQLiteDatabase db = getReadableDatabase(); in getGenericSoundModel() 135 SQLiteDatabase db = getWritableDatabase(); in deleteGenericSoundModel()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseErrorHandlerTest.java | 20 import android.database.sqlite.SQLiteDatabase; 33 private SQLiteDatabase mDatabase; 46 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in setUp() 94 SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in testDatabaseIsCorrupt() 105 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() 1066 int N = SQLiteDatabase.MAX_SQL_CACHE_SIZE; in testSetMaxCahesize() 1083 SQLiteDatabase.OpenParams params = new SQLiteDatabase.OpenParams.Builder() in testOpenDatabaseLookasideConfig() 1085 mDatabase = SQLiteDatabase.openDatabase(mDatabaseFile, params); in testOpenDatabaseLookasideConfig() 1092 SQLiteDatabase.OpenParams params = new SQLiteDatabase.OpenParams.Builder() in testOpenParamsSetLookasideConfigValidation() 1098 SQLiteDatabase.OpenParams params = new SQLiteDatabase.OpenParams.Builder() in testOpenParamsSetLookasideConfigValidation() [all …]
|
/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()
|
D | DatabaseErrorHandler.java | 19 import android.database.sqlite.SQLiteDatabase; 31 void onCorruption(SQLiteDatabase dbObj); in onCorruption()
|
/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
D | WatchlistReportDbHelper.java | 23 import android.database.sqlite.SQLiteDatabase; 115 public void onCreate(SQLiteDatabase db) { in onCreate() 120 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 135 final SQLiteDatabase db = getWritableDatabase(); in insertNewRecord() 151 final SQLiteDatabase db = getReadableDatabase(); in getAggregatedRecords() 189 final SQLiteDatabase db = getWritableDatabase(); in cleanup()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | Mapper.java | 23 import android.database.sqlite.SQLiteDatabase; 62 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putDeviceDocument() 95 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putStorageDocuments() 163 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in clearMapping() 200 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in startAddingDocuments() 245 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putDocuments() 329 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in stopAddingDocuments() 380 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in cancelAddingDocuments() 434 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in queryCandidate()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | LocalProvider.java | 22 import android.database.sqlite.SQLiteDatabase; 66 public void onCreate(SQLiteDatabase db) { in onCreate() 84 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() 127 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 158 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
|
/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/base/packages/WAPPushManager/src/com/android/smspush/ |
D | WapPushManager.java | 30 import android.database.sqlite.SQLiteDatabase; 77 public void onCreate(SQLiteDatabase db) { in onCreate() 96 public void onUpgrade(SQLiteDatabase db, in onUpgrade() 122 protected queryData queryLastApp(SQLiteDatabase db, in queryLastApp() 190 SQLiteDatabase db = dbh.getReadableDatabase(); in processMessage() 271 SQLiteDatabase db = dbh.getWritableDatabase(); in addPackage() 331 SQLiteDatabase db = dbh.getWritableDatabase(); in updatePackage() 366 SQLiteDatabase db = dbh.getWritableDatabase(); in deletePackage() 420 SQLiteDatabase db = dbh.getReadableDatabase(); in verifyData() 454 SQLiteDatabase db = dbh.getReadableDatabase(); in isDataExist()
|
/frameworks/base/core/tests/coretests/src/android/database/sqlite/ |
D | SQLiteCompatibilityWalFlagsTest.java | 44 private SQLiteDatabase mDatabase; 51 SQLiteDatabase.deleteDatabase(new File(mDatabase.getPath())); in tearDown() 104 mDatabase = SQLiteDatabase in testApplyFlags() 118 mDatabase = SQLiteDatabase in testApplyFlags_thenDisableWriteAheadLogging()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | DatabaseHelper.java | 22 import android.database.sqlite.SQLiteDatabase; 83 public void onCreate(SQLiteDatabase db) { in onCreate() 89 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 150 SQLiteDatabase db = getWritableDatabase(); in updateKeyphraseSoundModel() 169 SQLiteDatabase.CONFLICT_REPLACE) != -1; in updateKeyphraseSoundModel() 192 SQLiteDatabase db = getWritableDatabase(); in deleteKeyphraseSoundModel() 218 SQLiteDatabase db = getReadableDatabase(); in getKeyphraseSoundModel() 390 public long writeToDatabase(int version, SQLiteDatabase db) { in writeToDatabase() 405 SoundModelContract.TABLE, null, values, SQLiteDatabase.CONFLICT_REPLACE); in writeToDatabase()
|