Widevine drm aidl: address API review
Interface update in change 16810770 Bug: 214410088 Test: atest VtsAidlHalDrmTargetTest Change-Id: I19da51ef75952f5ff6c7c02e0393f574e69ee30b
This commit is contained in:
@@ -22,12 +22,9 @@
|
||||
#include <binder/ProcessState.h>
|
||||
|
||||
#include "WVCreatePluginFactories.h"
|
||||
#include "WVCryptoFactory.h"
|
||||
#include "WVDrmFactory.h"
|
||||
|
||||
using ::wvdrm::hardware::drm::widevine::createCryptoFactory;
|
||||
using ::wvdrm::hardware::drm::widevine::createDrmFactory;
|
||||
using ::wvdrm::hardware::drm::widevine::WVCryptoFactory;
|
||||
using ::wvdrm::hardware::drm::widevine::WVDrmFactory;
|
||||
|
||||
int main(int /* argc */, char** /* argv */) {
|
||||
@@ -41,13 +38,5 @@ int main(int /* argc */, char** /* argv */) {
|
||||
CHECK(status == STATUS_OK)
|
||||
<< "Failed to add Widevine Factory HAL, status=" << status;
|
||||
|
||||
std::shared_ptr<WVCryptoFactory> cryptoFactory = createCryptoFactory();
|
||||
const std::string cryptoInstance =
|
||||
std::string(WVCryptoFactory::descriptor) + "/widevine";
|
||||
status = AServiceManager_addService(cryptoFactory->asBinder().get(),
|
||||
cryptoInstance.c_str());
|
||||
CHECK(status == STATUS_OK)
|
||||
<< "Failed to add Widevine Crypto HAL, status=" << status;
|
||||
|
||||
ABinderProcess_joinThreadPool();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user