Loading light/2.0/default/service.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -23,5 +23,5 @@ using android::hardware::light::V2_0::ILight; using android::hardware::defaultPassthroughServiceImplementation; int main() { return defaultPassthroughServiceImplementation<ILight>("light"); return defaultPassthroughServiceImplementation<ILight>(); } light/2.0/vts/functional/light_hidl_hal_test.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -34,15 +34,13 @@ using ::android::hardware::Return; using ::android::hardware::Void; using ::android::sp; #define LIGHT_SERVICE_NAME "light" #define ASSERT_OK(ret) ASSERT_TRUE(ret.isOk()) #define EXPECT_OK(ret) EXPECT_TRUE(ret.isOk()) class LightHidlTest : public ::testing::Test { public: virtual void SetUp() override { light = ILight::getService(LIGHT_SERVICE_NAME); light = ILight::getService(); ASSERT_NE(light, nullptr); LOG(INFO) << "Test is remote " << light->isRemote(); Loading Loading
light/2.0/default/service.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -23,5 +23,5 @@ using android::hardware::light::V2_0::ILight; using android::hardware::defaultPassthroughServiceImplementation; int main() { return defaultPassthroughServiceImplementation<ILight>("light"); return defaultPassthroughServiceImplementation<ILight>(); }
light/2.0/vts/functional/light_hidl_hal_test.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -34,15 +34,13 @@ using ::android::hardware::Return; using ::android::hardware::Void; using ::android::sp; #define LIGHT_SERVICE_NAME "light" #define ASSERT_OK(ret) ASSERT_TRUE(ret.isOk()) #define EXPECT_OK(ret) EXPECT_TRUE(ret.isOk()) class LightHidlTest : public ::testing::Test { public: virtual void SetUp() override { light = ILight::getService(LIGHT_SERVICE_NAME); light = ILight::getService(); ASSERT_NE(light, nullptr); LOG(INFO) << "Test is remote " << light->isRemote(); Loading