diff options
author | Steven Moreland <smoreland@google.com> | 2017-06-23 17:23:57 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-06-23 17:23:57 +0000 |
commit | 5e2d6e2959553b347a4b69a9b7189baf1f491e64 (patch) | |
tree | e84ec21630f7b445d3f41306605f524dd326853c /automotive | |
parent | a539931f3f49b270e3831919bf270c2e90a32570 (diff) | |
parent | 990b0768336caaa7ce69646ceeb7db7a13528af3 (diff) | |
download | android_hardware_interfaces-5e2d6e2959553b347a4b69a9b7189baf1f491e64.tar.gz android_hardware_interfaces-5e2d6e2959553b347a4b69a9b7189baf1f491e64.tar.bz2 android_hardware_interfaces-5e2d6e2959553b347a4b69a9b7189baf1f491e64.zip |
Merge "Remove toString methods in Vehicle HAL." into oc-dev-plus-aosp
am: 990b076833
Change-Id: If04916713fd01e6b0b98f24d72ce684e83a3dfd0
Diffstat (limited to 'automotive')
-rw-r--r-- | automotive/vehicle/2.0/default/tests/VehicleHalTestUtils.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/automotive/vehicle/2.0/default/tests/VehicleHalTestUtils.h b/automotive/vehicle/2.0/default/tests/VehicleHalTestUtils.h index 28e1a5a55..2a064175a 100644 --- a/automotive/vehicle/2.0/default/tests/VehicleHalTestUtils.h +++ b/automotive/vehicle/2.0/default/tests/VehicleHalTestUtils.h @@ -222,54 +222,6 @@ inline std::string vecToString(const hidl_vec<T>& vec) { return ss.str(); } -inline std::string toString(const VehiclePropValue &v) { - std::stringstream ss; - ss << "VehiclePropValue {n" - << " prop: " << hexString(v.prop) << ",\n" - << " areaId: " << hexString(v.areaId) << ",\n" - << " timestamp: " << v.timestamp << ",\n" - << " value {\n" - << " int32Values: " << vecToString(v.value.int32Values) << ",\n" - << " floatValues: " << vecToString(v.value.floatValues) << ",\n" - << " int64Values: " << vecToString(v.value.int64Values) << ",\n" - << " bytes: " << vecToString(v.value.bytes) << ",\n" - << " string: " << v.value.stringValue.c_str() << ",\n" - << " }\n" - << "}\n"; - - return ss.str(); -} - -inline std::string toString(const VehiclePropConfig &config) { - std::stringstream ss; - ss << "VehiclePropConfig {\n" - << " prop: " << hexString(config.prop) << ",\n" - << " supportedAreas: " << hexString(config.supportedAreas) << ",\n" - << " access: " << enumToHexString(config.access) << ",\n" - << " changeMode: " << enumToHexString(config.changeMode) << ",\n" - << " configFlags: " << hexString(config.configFlags) << ",\n" - << " minSampleRate: " << config.minSampleRate << ",\n" - << " maxSampleRate: " << config.maxSampleRate << ",\n" - << " configString: " << config.configString.c_str() << ",\n"; - - ss << " areaConfigs {\n"; - for (size_t i = 0; i < config.areaConfigs.size(); i++) { - const auto &area = config.areaConfigs[i]; - ss << " areaId: " << hexString(area.areaId) << ",\n" - << " minFloatValue: " << area.minFloatValue << ",\n" - << " minFloatValue: " << area.maxFloatValue << ",\n" - << " minInt32Value: " << area.minInt32Value << ",\n" - << " minInt32Value: " << area.maxInt32Value << ",\n" - << " minInt64Value: " << area.minInt64Value << ",\n" - << " minInt64Value: " << area.maxInt64Value << ",\n"; - } - ss << " }\n" - << "}\n"; - - return ss.str(); -} - - } // namespace V2_0 } // namespace vehicle } // namespace automotive |