Loading drm/libmediadrm/CryptoHal.cpp +15 −6 Original line number Diff line number Diff line Loading @@ -118,15 +118,24 @@ Vector<sp<ICryptoFactory>> CryptoHal::makeCryptoFactories() { auto manager = ::IServiceManager::getService(); if (manager != NULL) { manager->listByInterface(ICryptoFactory::descriptor, manager->listByInterface(drm::V1_0::ICryptoFactory::descriptor, [&factories](const hidl_vec<hidl_string> ®istered) { for (const auto &instance : registered) { auto factory = ICryptoFactory::getService(instance); auto factory = drm::V1_0::ICryptoFactory::getService(instance); if (factory != NULL) { ALOGD("found drm@1.0 ICryptoFactory %s", instance.c_str()); factories.push_back(factory); } } } ); manager->listByInterface(drm::V1_1::ICryptoFactory::descriptor, [&factories](const hidl_vec<hidl_string> ®istered) { for (const auto &instance : registered) { auto factory = drm::V1_1::ICryptoFactory::getService(instance); if (factory != NULL) { ALOGD("found drm@1.1 ICryptoFactory %s", instance.c_str()); factories.push_back(factory); ALOGI("makeCryptoFactories: factory instance %s is %s", instance.c_str(), factory->isRemote() ? "Remote" : "Not Remote"); } } } Loading @@ -137,7 +146,7 @@ Vector<sp<ICryptoFactory>> CryptoHal::makeCryptoFactories() { // must be in passthrough mode, load the default passthrough service auto passthrough = ICryptoFactory::getService(); if (passthrough != NULL) { ALOGI("makeCryptoFactories: using default crypto instance"); ALOGI("makeCryptoFactories: using default passthrough crypto instance"); factories.push_back(passthrough); } else { ALOGE("Failed to find any crypto factories"); Loading drm/libmediadrm/DrmHal.cpp +15 −8 Original line number Diff line number Diff line Loading @@ -21,8 +21,6 @@ #include <binder/IPCThreadState.h> #include <binder/IServiceManager.h> #include <android/hardware/drm/1.0/IDrmFactory.h> #include <android/hardware/drm/1.0/IDrmPlugin.h> #include <android/hardware/drm/1.0/types.h> #include <android/hidl/manager/1.0/IServiceManager.h> #include <hidl/ServiceManagement.h> Loading Loading @@ -271,15 +269,24 @@ Vector<sp<IDrmFactory>> DrmHal::makeDrmFactories() { auto manager = hardware::defaultServiceManager(); if (manager != NULL) { manager->listByInterface(IDrmFactory::descriptor, manager->listByInterface(drm::V1_0::IDrmFactory::descriptor, [&factories](const hidl_vec<hidl_string> ®istered) { for (const auto &instance : registered) { auto factory = IDrmFactory::getService(instance); auto factory = drm::V1_0::IDrmFactory::getService(instance); if (factory != NULL) { ALOGD("found drm@1.0 IDrmFactory %s", instance.c_str()); factories.push_back(factory); } } } ); manager->listByInterface(drm::V1_1::IDrmFactory::descriptor, [&factories](const hidl_vec<hidl_string> ®istered) { for (const auto &instance : registered) { auto factory = drm::V1_1::IDrmFactory::getService(instance); if (factory != NULL) { ALOGD("found drm@1.1 IDrmFactory %s", instance.c_str()); factories.push_back(factory); ALOGI("makeDrmFactories: factory instance %s is %s", instance.c_str(), factory->isRemote() ? "Remote" : "Not Remote"); } } } Loading @@ -290,7 +297,7 @@ Vector<sp<IDrmFactory>> DrmHal::makeDrmFactories() { // must be in passthrough mode, load the default passthrough service auto passthrough = IDrmFactory::getService(); if (passthrough != NULL) { ALOGI("makeDrmFactories: using default drm instance"); ALOGI("makeDrmFactories: using default passthrough drm instance"); factories.push_back(passthrough); } else { ALOGE("Failed to find any drm factories"); Loading media/libmedia/include/media/CryptoHal.h +5 −3 Original line number Diff line number Diff line Loading @@ -20,14 +20,16 @@ #include <android/hardware/drm/1.0/ICryptoFactory.h> #include <android/hardware/drm/1.0/ICryptoPlugin.h> #include <android/hardware/drm/1.1/ICryptoFactory.h> #include <media/ICrypto.h> #include <utils/KeyedVector.h> #include <utils/threads.h> using ::android::hardware::drm::V1_0::ICryptoFactory; using ::android::hardware::drm::V1_0::ICryptoPlugin; using ::android::hardware::drm::V1_0::SharedBuffer; namespace drm = ::android::hardware::drm; using drm::V1_0::ICryptoFactory; using drm::V1_0::ICryptoPlugin; using drm::V1_0::SharedBuffer; class IMemoryHeap; Loading media/libmedia/include/media/DrmHal.h +3 −2 Original line number Diff line number Diff line Loading @@ -18,10 +18,11 @@ #define DRM_HAL_H_ #include <android/hardware/drm/1.0/IDrmFactory.h> #include <android/hardware/drm/1.0/IDrmPlugin.h> #include <android/hardware/drm/1.1/IDrmPlugin.h> #include <android/hardware/drm/1.0/IDrmPluginListener.h> #include <android/hardware/drm/1.0/IDrmFactory.h> #include <android/hardware/drm/1.1/IDrmFactory.h> #include <android/hardware/drm/1.1/IDrmPlugin.h> #include <media/DrmMetrics.h> #include <media/IDrm.h> Loading Loading
drm/libmediadrm/CryptoHal.cpp +15 −6 Original line number Diff line number Diff line Loading @@ -118,15 +118,24 @@ Vector<sp<ICryptoFactory>> CryptoHal::makeCryptoFactories() { auto manager = ::IServiceManager::getService(); if (manager != NULL) { manager->listByInterface(ICryptoFactory::descriptor, manager->listByInterface(drm::V1_0::ICryptoFactory::descriptor, [&factories](const hidl_vec<hidl_string> ®istered) { for (const auto &instance : registered) { auto factory = ICryptoFactory::getService(instance); auto factory = drm::V1_0::ICryptoFactory::getService(instance); if (factory != NULL) { ALOGD("found drm@1.0 ICryptoFactory %s", instance.c_str()); factories.push_back(factory); } } } ); manager->listByInterface(drm::V1_1::ICryptoFactory::descriptor, [&factories](const hidl_vec<hidl_string> ®istered) { for (const auto &instance : registered) { auto factory = drm::V1_1::ICryptoFactory::getService(instance); if (factory != NULL) { ALOGD("found drm@1.1 ICryptoFactory %s", instance.c_str()); factories.push_back(factory); ALOGI("makeCryptoFactories: factory instance %s is %s", instance.c_str(), factory->isRemote() ? "Remote" : "Not Remote"); } } } Loading @@ -137,7 +146,7 @@ Vector<sp<ICryptoFactory>> CryptoHal::makeCryptoFactories() { // must be in passthrough mode, load the default passthrough service auto passthrough = ICryptoFactory::getService(); if (passthrough != NULL) { ALOGI("makeCryptoFactories: using default crypto instance"); ALOGI("makeCryptoFactories: using default passthrough crypto instance"); factories.push_back(passthrough); } else { ALOGE("Failed to find any crypto factories"); Loading
drm/libmediadrm/DrmHal.cpp +15 −8 Original line number Diff line number Diff line Loading @@ -21,8 +21,6 @@ #include <binder/IPCThreadState.h> #include <binder/IServiceManager.h> #include <android/hardware/drm/1.0/IDrmFactory.h> #include <android/hardware/drm/1.0/IDrmPlugin.h> #include <android/hardware/drm/1.0/types.h> #include <android/hidl/manager/1.0/IServiceManager.h> #include <hidl/ServiceManagement.h> Loading Loading @@ -271,15 +269,24 @@ Vector<sp<IDrmFactory>> DrmHal::makeDrmFactories() { auto manager = hardware::defaultServiceManager(); if (manager != NULL) { manager->listByInterface(IDrmFactory::descriptor, manager->listByInterface(drm::V1_0::IDrmFactory::descriptor, [&factories](const hidl_vec<hidl_string> ®istered) { for (const auto &instance : registered) { auto factory = IDrmFactory::getService(instance); auto factory = drm::V1_0::IDrmFactory::getService(instance); if (factory != NULL) { ALOGD("found drm@1.0 IDrmFactory %s", instance.c_str()); factories.push_back(factory); } } } ); manager->listByInterface(drm::V1_1::IDrmFactory::descriptor, [&factories](const hidl_vec<hidl_string> ®istered) { for (const auto &instance : registered) { auto factory = drm::V1_1::IDrmFactory::getService(instance); if (factory != NULL) { ALOGD("found drm@1.1 IDrmFactory %s", instance.c_str()); factories.push_back(factory); ALOGI("makeDrmFactories: factory instance %s is %s", instance.c_str(), factory->isRemote() ? "Remote" : "Not Remote"); } } } Loading @@ -290,7 +297,7 @@ Vector<sp<IDrmFactory>> DrmHal::makeDrmFactories() { // must be in passthrough mode, load the default passthrough service auto passthrough = IDrmFactory::getService(); if (passthrough != NULL) { ALOGI("makeDrmFactories: using default drm instance"); ALOGI("makeDrmFactories: using default passthrough drm instance"); factories.push_back(passthrough); } else { ALOGE("Failed to find any drm factories"); Loading
media/libmedia/include/media/CryptoHal.h +5 −3 Original line number Diff line number Diff line Loading @@ -20,14 +20,16 @@ #include <android/hardware/drm/1.0/ICryptoFactory.h> #include <android/hardware/drm/1.0/ICryptoPlugin.h> #include <android/hardware/drm/1.1/ICryptoFactory.h> #include <media/ICrypto.h> #include <utils/KeyedVector.h> #include <utils/threads.h> using ::android::hardware::drm::V1_0::ICryptoFactory; using ::android::hardware::drm::V1_0::ICryptoPlugin; using ::android::hardware::drm::V1_0::SharedBuffer; namespace drm = ::android::hardware::drm; using drm::V1_0::ICryptoFactory; using drm::V1_0::ICryptoPlugin; using drm::V1_0::SharedBuffer; class IMemoryHeap; Loading
media/libmedia/include/media/DrmHal.h +3 −2 Original line number Diff line number Diff line Loading @@ -18,10 +18,11 @@ #define DRM_HAL_H_ #include <android/hardware/drm/1.0/IDrmFactory.h> #include <android/hardware/drm/1.0/IDrmPlugin.h> #include <android/hardware/drm/1.1/IDrmPlugin.h> #include <android/hardware/drm/1.0/IDrmPluginListener.h> #include <android/hardware/drm/1.0/IDrmFactory.h> #include <android/hardware/drm/1.1/IDrmFactory.h> #include <android/hardware/drm/1.1/IDrmPlugin.h> #include <media/DrmMetrics.h> #include <media/IDrm.h> Loading