diff --git a/tests/extension/light/2.0/default/Light.cpp b/tests/extension/light/2.0/default/Light.cpp
index d941e73e0068b4bcec4d25d84d8d32334833f354..9df79248a775dcb2740b99e306219185c008aeae 100644 (file)
namespace implementation {
// Methods from ::android::hardware::light::V2_0::ILight follow.
-Return<Status> Light::setLight(Type type, const LightState& state) {
+Return<Status> Light::setLight(Type type, const OldLightState& state) {
// Forward types for new methods.
- ExtLightState extState {
- .state = state,
- .interpolationOmega =
- static_cast<int32_t>(Default::INTERPOLATION_OMEGA),
- .brightness = // ExtBrightness inherits from Brightness
- static_cast<ExtBrightness>(state.brightnessMode)
- };
+ LightState extState{.state = state,
+ .interpolationOmega = static_cast<int32_t>(Default::INTERPOLATION_OMEGA),
+ .brightness = // Brightness inherits from Brightness
+ static_cast<Brightness>(state.brightnessMode)};
- return setExtLight(type, extState);
+ return setLightExt(type, extState);
}
Return<void> Light::getSupportedTypes(getSupportedTypes_cb _hidl_cb) {
}
// Methods from ::android::hardware::example::extension::light::V2_0::ILight follow.
-Return<Status> Light::setExtLight(Type /* type */,
- const ExtLightState& /* state */) {
-
+Return<Status> Light::setLightExt(Type /* type */, const LightState& /* state */) {
// ******************************************************
// Note: awesome proprietary hardware implementation here
// ******************************************************