(This is a merge of http://go/wvgerrit/14051) Adds support for passing a special provisioning response ("delete") to the provisioning API in order to unprovision the current origin. Note that the origin MUST be set or else this will fail. The existing, system-only unprovisionDevice() method is unaffected. Bug: 12247651 Change-Id: I16d296397d8e9e73c8f43e36c86838873318a398
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
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,
|
|
kErrorNoOriginSpecified = ERROR_DRM_VENDOR_MIN + 7,
|
|
kErrorWVDrmMaxErrorUsed = ERROR_DRM_VENDOR_MIN + 7,
|
|
|
|
// Used by crypto test mode
|
|
kErrorTestMode = ERROR_DRM_VENDOR_MAX,
|
|
};
|
|
|
|
static_assert(static_cast<uint32_t>(kErrorWVDrmMaxErrorUsed) <=
|
|
static_cast<uint32_t>(ERROR_DRM_VENDOR_MAX), "");
|
|
|
|
} // namespace wvdrm
|
|
|
|
#endif // WV_ERRORS_H_
|