Change default value from NONE to UNKNOWN

Bug: 194523273
Test: atest MediaMetricsAtomTests
Change-Id: Ib5b96db02089f3b785507c7f5fd822bcb68f35ea
This commit is contained in:
shubang
2021-07-23 13:48:47 -07:00
parent c97285abb5
commit d7b1d8e6a0
2 changed files with 3 additions and 3 deletions

View File

@@ -317,7 +317,7 @@ public final class PlaybackErrorEvent extends Event implements Parcelable {
*/
public static final class Builder {
private @Nullable Exception mException;
private int mErrorCode;
private int mErrorCode = ERROR_UNKNOWN;
private int mSubErrorCode;
private long mTimeSinceCreatedMillis = -1;
private Bundle mMetricsBundle = new Bundle();

View File

@@ -502,9 +502,9 @@ public final class PlaybackMetrics implements Parcelable {
private long mMediaDurationMillis = -1;
private int mStreamSource = STREAM_SOURCE_UNKNOWN;
private int mStreamType = STREAM_TYPE_UNKNOWN;
private int mPlaybackType = PLAYBACK_TYPE_OTHER;
private int mPlaybackType = PLAYBACK_TYPE_UNKNOWN;
private int mDrmType = DRM_TYPE_NONE;
private int mContentType = CONTENT_TYPE_OTHER;
private int mContentType = CONTENT_TYPE_UNKNOWN;
private @Nullable String mPlayerName;
private @Nullable String mPlayerVersion;
private @NonNull List<Long> mExperimentIds = new ArrayList<>();