Add device files error detail to metrics.
[ Merge from http://go/wvgerrit/71923 ] Plumb through the device files error detail and add the detail to metrics. Bug: http://b/115382201 Test: Unit tests, manual GPlay. Change-Id: I18139f6712b6670be5fed863a97f9f03440745c7
This commit is contained in:
@@ -30,24 +30,27 @@ class DeviceFiles {
|
||||
kLicenseStateUnknown,
|
||||
} LicenseState;
|
||||
|
||||
// All error response codes start with 5000 to avoid overlap with other error
|
||||
// spaces.
|
||||
enum ResponseType {
|
||||
kNoError = 0,
|
||||
kObjectNotInitialized = 1,
|
||||
kParameterNull = 2,
|
||||
kBasePathUnavailable = 3,
|
||||
kFileNotFound = 4,
|
||||
kFileOpenFailed = 5,
|
||||
kFileWriteError = 6,
|
||||
kFileReadError = 7,
|
||||
kInvalidFileSize = 8,
|
||||
kHashComputationFailed = 9,
|
||||
kFileHashMismatch = 10,
|
||||
kFileParseError1 = 11,
|
||||
kFileParseError2 = 12,
|
||||
kUnknownLicenseState = 13,
|
||||
kIncorrectFileType = 14,
|
||||
kIncorrectFileVersion = 15,
|
||||
kLicenseNotPresent = 16,
|
||||
kNoError = NO_ERROR,
|
||||
kResponseTypeBase = 5000,
|
||||
kObjectNotInitialized = kResponseTypeBase + 1,
|
||||
kParameterNull = kResponseTypeBase + 2,
|
||||
kBasePathUnavailable = kResponseTypeBase + 3,
|
||||
kFileNotFound = kResponseTypeBase + 4,
|
||||
kFileOpenFailed = kResponseTypeBase + 5,
|
||||
kFileWriteError = kResponseTypeBase + 6,
|
||||
kFileReadError = kResponseTypeBase + 7,
|
||||
kInvalidFileSize = kResponseTypeBase + 8,
|
||||
kHashComputationFailed = kResponseTypeBase + 9,
|
||||
kFileHashMismatch = kResponseTypeBase + 10,
|
||||
kFileParseError1 = kResponseTypeBase + 11,
|
||||
kFileParseError2 = kResponseTypeBase + 12,
|
||||
kUnknownLicenseState = kResponseTypeBase + 13,
|
||||
kIncorrectFileType = kResponseTypeBase + 14,
|
||||
kIncorrectFileVersion = kResponseTypeBase + 15,
|
||||
kLicenseNotPresent = kResponseTypeBase + 16,
|
||||
};
|
||||
|
||||
struct CdmUsageData {
|
||||
|
||||
Reference in New Issue
Block a user