From a0b44e644a89b1ab6712c549256828fb22820ccc Mon Sep 17 00:00:00 2001 From: Jeff Tinker Date: Wed, 5 Apr 2017 08:05:28 -0700 Subject: [PATCH] Change drm/crypto service names to "default" bug: 36371166 Test: vts drm hidl test Change-Id: Iae98708c4f9b58dc697fb54c9f9b67d99e7ed0cf --- drm/1.0/default/service.cpp | 4 ++-- drm/1.0/vts/functional/drm_hal_clearkey_test.cpp | 6 ++---- drm/1.0/vts/functional/drm_hal_vendor_test.cpp | 6 +++--- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/drm/1.0/default/service.cpp b/drm/1.0/default/service.cpp index a112aafda7..823f39e3b7 100644 --- a/drm/1.0/default/service.cpp +++ b/drm/1.0/default/service.cpp @@ -32,11 +32,11 @@ int main() { ALOGD("android.hardware.drm@1.0-service starting..."); configureRpcThreadpool(8, true /* callerWillJoin */); android::status_t status = - registerPassthroughServiceImplementation("drm"); + registerPassthroughServiceImplementation(); LOG_ALWAYS_FATAL_IF( status != android::OK, "Error while registering drm service: %d", status); - status = registerPassthroughServiceImplementation("crypto"); + status = registerPassthroughServiceImplementation(); LOG_ALWAYS_FATAL_IF( status != android::OK, "Error while registering crypto service: %d", status); diff --git a/drm/1.0/vts/functional/drm_hal_clearkey_test.cpp b/drm/1.0/vts/functional/drm_hal_clearkey_test.cpp index e97ac10cdf..4dd98ceaed 100644 --- a/drm/1.0/vts/functional/drm_hal_clearkey_test.cpp +++ b/drm/1.0/vts/functional/drm_hal_clearkey_test.cpp @@ -94,12 +94,10 @@ class DrmHalClearkeyFactoryTest : public ::testing::VtsHalHidlTargetTestBase { test_info->name()); drmFactory = - ::testing::VtsHalHidlTargetTestBase::getService( - "drm"); + ::testing::VtsHalHidlTargetTestBase::getService(); ASSERT_NE(drmFactory, nullptr); cryptoFactory = - ::testing::VtsHalHidlTargetTestBase::getService( - "crypto"); + ::testing::VtsHalHidlTargetTestBase::getService(); ASSERT_NE(cryptoFactory, nullptr); } diff --git a/drm/1.0/vts/functional/drm_hal_vendor_test.cpp b/drm/1.0/vts/functional/drm_hal_vendor_test.cpp index 5945c0553b..93e6d46930 100644 --- a/drm/1.0/vts/functional/drm_hal_vendor_test.cpp +++ b/drm/1.0/vts/functional/drm_hal_vendor_test.cpp @@ -114,14 +114,14 @@ class DrmHalVendorFactoryTest : public testing::TestWithParam { string name = vendorModule->getServiceName(); drmFactory = VtsTestBase::getService(name); if (drmFactory == nullptr) { - drmFactory = VtsTestBase::getService("drm"); + drmFactory = VtsTestBase::getService(); } ASSERT_NE(drmFactory, nullptr); - // Dot the same for the crypto factory + // Do the same for the crypto factory cryptoFactory = VtsTestBase::getService(name); if (cryptoFactory == nullptr) { - VtsTestBase::getService("crypto"); + VtsTestBase::getService(); } ASSERT_NE(cryptoFactory, nullptr); }