Searched refs:writableDatabase (Results 1 – 5 of 5) sorted by relevance
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
D | CacheFileMetadataIndex.java | 80 SQLiteDatabase writableDatabase = databaseProvider.getWritableDatabase(); in delete() local 81 writableDatabase.beginTransactionNonExclusive(); in delete() 84 writableDatabase, VersionTable.FEATURE_CACHE_FILE_METADATA, hexUid); in delete() 85 dropTable(writableDatabase, tableName); in delete() 86 writableDatabase.setTransactionSuccessful(); in delete() 88 writableDatabase.endTransaction(); in delete() 118 SQLiteDatabase writableDatabase = databaseProvider.getWritableDatabase(); in initialize() local 119 writableDatabase.beginTransactionNonExclusive(); in initialize() 122 writableDatabase, VersionTable.FEATURE_CACHE_FILE_METADATA, hexUid, TABLE_VERSION); in initialize() 123 dropTable(writableDatabase, tableName); in initialize() [all …]
|
D | CachedContentIndex.java | 801 SQLiteDatabase writableDatabase = databaseProvider.getWritableDatabase(); in load() local 802 writableDatabase.beginTransactionNonExclusive(); in load() 804 initializeTable(writableDatabase); in load() 805 writableDatabase.setTransactionSuccessful(); in load() 807 writableDatabase.endTransaction(); in load() 836 SQLiteDatabase writableDatabase = databaseProvider.getWritableDatabase(); in storeFully() local 837 writableDatabase.beginTransactionNonExclusive(); in storeFully() 839 initializeTable(writableDatabase); in storeFully() 841 addOrUpdateRow(writableDatabase, cachedContent); in storeFully() 843 writableDatabase.setTransactionSuccessful(); in storeFully() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/ |
D | DefaultDownloadIndex.java | 208 SQLiteDatabase writableDatabase = databaseProvider.getWritableDatabase(); in putDownload() local 209 writableDatabase.replaceOrThrow(tableName, /* nullColumnHack= */ null, values); in putDownload() 231 SQLiteDatabase writableDatabase = databaseProvider.getWritableDatabase(); in setDownloadingStatesToQueued() local 232 writableDatabase.update(tableName, values, WHERE_STATE_IS_DOWNLOADING, /* whereArgs= */ null); in setDownloadingStatesToQueued() 247 SQLiteDatabase writableDatabase = databaseProvider.getWritableDatabase(); in setStatesToRemoving() local 248 writableDatabase.update(tableName, values, /* whereClause= */ null, /* whereArgs= */ null); in setStatesToRemoving() 260 SQLiteDatabase writableDatabase = databaseProvider.getWritableDatabase(); in setStopReason() local 261 writableDatabase.update(tableName, values, WHERE_STATE_IS_TERMINAL, /* whereArgs= */ null); in setStopReason() 273 SQLiteDatabase writableDatabase = databaseProvider.getWritableDatabase(); in setStopReason() local 274 writableDatabase.update( in setStopReason() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/database/ |
D | VersionTable.java | 92 SQLiteDatabase writableDatabase, @Feature int feature, String instanceUid, int version) in setVersion() argument 95 writableDatabase.execSQL(SQL_CREATE_TABLE_IF_NOT_EXISTS); in setVersion() 100 writableDatabase.replaceOrThrow(TABLE_NAME, /* nullColumnHack= */ null, values); in setVersion() 115 SQLiteDatabase writableDatabase, @Feature int feature, String instanceUid) in removeVersion() argument 118 if (!tableExists(writableDatabase, TABLE_NAME)) { in removeVersion() 121 writableDatabase.delete( in removeVersion()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/offline/ |
D | DefaultDownloadIndexTest.java | 192 SQLiteDatabase writableDatabase = databaseProvider.getWritableDatabase(); in downloadIndex_versionDowngradeWipesData() local 194 writableDatabase, VersionTable.FEATURE_OFFLINE, EMPTY_NAME, Integer.MAX_VALUE); in downloadIndex_versionDowngradeWipesData() 201 assertThat(VersionTable.getVersion(writableDatabase, VersionTable.FEATURE_OFFLINE, EMPTY_NAME)) in downloadIndex_versionDowngradeWipesData()
|