Merge latest oemcrypto-v17 change
No-Typo-Check: Not related to this change. Bug: 161477208 Change-Id: I99e4780f6855b7045aa0cd5a49c13d2d0d51ed64
This commit is contained in:
committed by
Fred Gylys-Colwell
parent
c924960962
commit
642965c678
@@ -12,16 +12,6 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
|
||||
// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
|
||||
// DEPENDING ON IT IN YOUR PROJECT. ***
|
||||
package {
|
||||
// See: http://go/android-license-faq
|
||||
// legacy_by_exception_only (by exception only)
|
||||
default_applicable_licenses: ["vendor_widevine_license"],
|
||||
}
|
||||
|
||||
// Builds libwvdrmcryptoplugin_hidl
|
||||
//
|
||||
cc_library_static {
|
||||
@@ -36,8 +26,8 @@ cc_library_static {
|
||||
"vendor/widevine/libwvdrmengine/cdm/include",
|
||||
"vendor/widevine/libwvdrmengine/cdm/metrics/include",
|
||||
"vendor/widevine/libwvdrmengine/cdm/util/include",
|
||||
"vendor/widevine/libwvdrmengine/include_hidl",
|
||||
"vendor/widevine/libwvdrmengine/include",
|
||||
"vendor/widevine/libwvdrmengine/include",
|
||||
"vendor/widevine/libwvdrmengine/include_hidl",
|
||||
"vendor/widevine/libwvdrmengine/mediacrypto/include_hidl",
|
||||
"vendor/widevine/libwvdrmengine/oemcrypto/include",
|
||||
],
|
||||
|
||||
@@ -73,7 +73,7 @@ struct WVCryptoPlugin : public ::drm::V1_4::ICryptoPlugin {
|
||||
|
||||
// List this field first so it is destructed last; ensure logging uid
|
||||
// is cleared right before plugin is destructed.
|
||||
wvcdm::LoggingUidSetter mLoggingUidSetter;
|
||||
wvutil::LoggingUidSetter mLoggingUidSetter;
|
||||
|
||||
wvcdm::CdmSessionId mSessionId;
|
||||
std::map<uint32_t, sp<IMemory> > mSharedBufferMap GUARDED_BY(mSharedBufferLock);
|
||||
|
||||
@@ -58,7 +58,7 @@ using wvcdm::WvContentDecryptionModule;
|
||||
WVCryptoPlugin::WVCryptoPlugin(const void* data, size_t size,
|
||||
const sp<WvContentDecryptionModule>& cdm)
|
||||
: mCDM(cdm),
|
||||
mUserId(wvcdm::UNKNOWN_UID) {
|
||||
mUserId(wvutil::UNKNOWN_UID) {
|
||||
if (data != NULL) {
|
||||
mSessionId.assign(static_cast<const char *>(data), size);
|
||||
}
|
||||
@@ -70,8 +70,8 @@ WVCryptoPlugin::WVCryptoPlugin(const void* data, size_t size,
|
||||
}
|
||||
|
||||
WVCryptoPlugin::~WVCryptoPlugin() {
|
||||
if (wvcdm::UNKNOWN_UID != mUserId) {
|
||||
wvcdm::SetLoggingUid(mUserId);
|
||||
if (wvutil::UNKNOWN_UID != mUserId) {
|
||||
wvutil::SetLoggingUid(mUserId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -360,7 +360,7 @@ Status_V1_2 WVCryptoPlugin::attemptDecrypt(
|
||||
}
|
||||
|
||||
Return<void> WVCryptoPlugin::getLogMessages(getLogMessages_cb _hidl_cb) {
|
||||
const std::vector<wvcdm::LogMessage> &logs(wvcdm::g_logbuf.getLogs());
|
||||
const std::vector<wvutil::LogMessage> &logs(wvutil::g_logbuf.getLogs());
|
||||
_hidl_cb(::drm::V1_4::Status::OK, toHidlVec<::drm::V1_4::LogMessage>(logs));
|
||||
return Void();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user