summaryrefslogtreecommitdiffstats
path: root/automotive
diff options
context:
space:
mode:
authorAntonio Cortes Perez <antoniocortes@google.com>2017-03-08 23:26:01 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-03-08 23:26:01 +0000
commit2102b7e765e4963b066e90c1d3b4a1f6955615e7 (patch)
tree55caccbe563dd6949fabd2053bde5388027ae2bd /automotive
parent9dd2ca4eb3262901f0abd81f6f9b6d1d447a40c2 (diff)
parent10ccd94f7fe24e33f8d423c435eeec5046c867d6 (diff)
downloadandroid_hardware_interfaces-2102b7e765e4963b066e90c1d3b4a1f6955615e7.tar.gz
android_hardware_interfaces-2102b7e765e4963b066e90c1d3b4a1f6955615e7.tar.bz2
android_hardware_interfaces-2102b7e765e4963b066e90c1d3b4a1f6955615e7.zip
Merge "Placeholder for future implementation of VMS property in the default hal."
Diffstat (limited to 'automotive')
-rw-r--r--automotive/vehicle/2.1/default/impl/vhal_v2_1/DefaultVehicleHal.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/automotive/vehicle/2.1/default/impl/vhal_v2_1/DefaultVehicleHal.cpp b/automotive/vehicle/2.1/default/impl/vhal_v2_1/DefaultVehicleHal.cpp
index dc96bf978..d4eae7fe0 100644
--- a/automotive/vehicle/2.1/default/impl/vhal_v2_1/DefaultVehicleHal.cpp
+++ b/automotive/vehicle/2.1/default/impl/vhal_v2_1/DefaultVehicleHal.cpp
@@ -270,6 +270,11 @@ V2_0::StatusCode DefaultVehicleHal::set(
case V2_0::toInt(V2_1::VehicleProperty::OBD2_FREEZE_FRAME_CLEAR):
return clearObd2FreezeFrames(propValue);
break;
+ case V2_0::toInt(V2_1::VehicleProperty::VEHICLE_MAP_SERVICE):
+ // Placeholder for future implementation of VMS property in the default hal. For now, just
+ // returns OK; otherwise, hal clients crash with property not supported.
+ return V2_0::StatusCode::OK;
+ break;
default:
return mVehicleHal20->set(propValue);
}