bug: 12702350 Squashed commit of these CLs from the widevine cdm repo: Cast V2 cdm support https://widevine-internal-review.googlesource.com/#/c/9190/ Add CASTv2 Support to DrmPlugin https://widevine-internal-review.googlesource.com/#/c/9228/ Test for CastV2 authentication APIs https://widevine-internal-review.googlesource.com/9550 Change-Id: I6d66bc1bbd653db5542c68687b30b441dd20617f
35 lines
979 B
C++
35 lines
979 B
C++
//
|
|
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
//
|
|
|
|
#ifndef WV_ERRORS_H_
|
|
#define WV_ERRORS_H_
|
|
|
|
#include "media/stagefright/MediaErrors.h"
|
|
|
|
namespace wvdrm {
|
|
|
|
using android::ERROR_DRM_VENDOR_MIN;
|
|
using android::ERROR_DRM_VENDOR_MAX;
|
|
|
|
enum {
|
|
kErrorIncorrectBufferSize = ERROR_DRM_VENDOR_MIN,
|
|
kErrorCDMGeneric = ERROR_DRM_VENDOR_MIN + 1,
|
|
kErrorUnsupportedCrypto = ERROR_DRM_VENDOR_MIN + 2,
|
|
kErrorExpectedUnencrypted = ERROR_DRM_VENDOR_MIN + 3,
|
|
kErrorSessionIsOpen = ERROR_DRM_VENDOR_MIN + 4,
|
|
kErrorTooManySessions = ERROR_DRM_VENDOR_MIN + 5,
|
|
kErrorInvalidKey = ERROR_DRM_VENDOR_MIN + 6,
|
|
kErrorWVDrmMaxErrorUsed = ERROR_DRM_VENDOR_MIN + 6,
|
|
|
|
// Used by crypto test mode
|
|
kErrorTestMode = ERROR_DRM_VENDOR_MAX,
|
|
};
|
|
|
|
_STLP_STATIC_ASSERT(static_cast<uint32_t>(kErrorWVDrmMaxErrorUsed) <=
|
|
static_cast<uint32_t>(ERROR_DRM_VENDOR_MAX));
|
|
|
|
} // namespace wvdrm
|
|
|
|
#endif // WV_ERRORS_H_
|