Commit 7504ce76 by christosts Committed by Oliver Woodman

Add QoePingStore and QoePingItem

This is the first CL for the offline qoe reporting
feature. Refer to the design doc for full information.

Design doc: go/exoplayer-offline-qoe

PiperOrigin-RevId: 305459231
parent e7fd6a0e
...@@ -21,7 +21,7 @@ project.ext { ...@@ -21,7 +21,7 @@ project.ext {
compileSdkVersion = 29 compileSdkVersion = 29
dexmakerVersion = '2.21.0' dexmakerVersion = '2.21.0'
junitVersion = '4.13-rc-2' junitVersion = '4.13-rc-2'
guavaVersion = '23.5-android' guavaVersion = '28.2-android'
mockitoVersion = '2.25.0' mockitoVersion = '2.25.0'
robolectricVersion = '4.3.1' robolectricVersion = '4.3.1'
checkerframeworkVersion = '2.5.0' checkerframeworkVersion = '2.5.0'
......
...@@ -40,6 +40,8 @@ public final class VersionTable { ...@@ -40,6 +40,8 @@ public final class VersionTable {
public static final int FEATURE_CACHE_CONTENT_METADATA = 1; public static final int FEATURE_CACHE_CONTENT_METADATA = 1;
/** Version of tables used for cache file metadata. */ /** Version of tables used for cache file metadata. */
public static final int FEATURE_CACHE_FILE_METADATA = 2; public static final int FEATURE_CACHE_FILE_METADATA = 2;
/** Version of tables used from external features. */
public static final int FEATURE_EXTERNAL = 1000;
private static final String TABLE_NAME = DatabaseProvider.TABLE_PREFIX + "Versions"; private static final String TABLE_NAME = DatabaseProvider.TABLE_PREFIX + "Versions";
...@@ -67,7 +69,12 @@ public final class VersionTable { ...@@ -67,7 +69,12 @@ public final class VersionTable {
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.SOURCE)
@IntDef({FEATURE_OFFLINE, FEATURE_CACHE_CONTENT_METADATA, FEATURE_CACHE_FILE_METADATA}) @IntDef({
FEATURE_OFFLINE,
FEATURE_CACHE_CONTENT_METADATA,
FEATURE_CACHE_FILE_METADATA,
FEATURE_EXTERNAL
})
private @interface Feature {} private @interface Feature {}
private VersionTable() {} private VersionTable() {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment