mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Adapt change clearkey to Lazy hal
am: 0a50473369
Change-Id: I78be3e06995b60dbe9cca6fedbc93f4c26d8c770
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
#include <android/hardware/drm/1.0/types.h>
|
||||
#include <android/hardware/drm/1.1/types.h>
|
||||
#include <android/hidl/allocator/1.0/IAllocator.h>
|
||||
#include <android/hidl/manager/1.0/IServiceManager.h>
|
||||
#include <android/hidl/manager/1.2/IServiceManager.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <hidl/HidlSupport.h>
|
||||
#include <hidl/ServiceManagement.h>
|
||||
@@ -129,9 +129,9 @@ public:
|
||||
ALOGD("DrmHalClearkeyTest: Running test %s.%s", test_info->test_case_name(),
|
||||
test_info->name());
|
||||
|
||||
auto manager = android::hardware::defaultServiceManager();
|
||||
auto manager = android::hardware::defaultServiceManager1_2();
|
||||
ASSERT_NE(nullptr, manager.get());
|
||||
manager->listByInterface(IDrmFactory::descriptor,
|
||||
manager->listManifestByInterface(IDrmFactory::descriptor,
|
||||
[&](const hidl_vec<hidl_string> ®istered) {
|
||||
for (const auto &instance : registered) {
|
||||
sp<IDrmFactory> drmFactory =
|
||||
@@ -144,7 +144,7 @@ public:
|
||||
}
|
||||
);
|
||||
|
||||
manager->listByInterface(ICryptoFactory::descriptor,
|
||||
manager->listManifestByInterface(ICryptoFactory::descriptor,
|
||||
[&](const hidl_vec<hidl_string> ®istered) {
|
||||
for (const auto &instance : registered) {
|
||||
sp<ICryptoFactory> cryptoFactory =
|
||||
|
||||
Reference in New Issue
Block a user