diff options
author | Keun-young Park <keunyoung@google.com> | 2017-08-25 11:35:38 -0700 |
---|---|---|
committer | Keun-young Park <keunyoung@google.com> | 2017-08-25 11:35:38 -0700 |
commit | 19ca13264ca757d3494c58357d5e49fe11bf9a2d (patch) | |
tree | 15751cc47bd7d93842b5de9498332b52eb94df6d /tests/vehiclehal_test | |
parent | 5bac9229446498860036aefada7e932d75a5cba4 (diff) | |
download | Car-19ca13264ca757d3494c58357d5e49fe11bf9a2d.tar.gz |
remove 2.1 vhal usage
- 2.1 vhal is removed and only 2.0 should be used.
bug: 64303350
Test: build
Change-Id: I2dfcd9b76cb3ec6f4429361138e55419d1169711
Diffstat (limited to 'tests/vehiclehal_test')
-rw-r--r-- | tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Utils.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Utils.java b/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Utils.java index 0442080f10..0a54853fdf 100644 --- a/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Utils.java +++ b/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Utils.java @@ -85,10 +85,9 @@ final class Utils { static IVehicle getVehicle() throws RemoteException { IVehicle service; try { - service = android.hardware.automotive.vehicle.V2_1.IVehicle.getService(); + service = IVehicle.getService(); } catch (NoSuchElementException ex) { - Log.d(TAG, "Couldn't connect to vehicle@2.1, connecting to vehicle@2.0..."); - service = IVehicle.getService(); + Log.d(TAG, "Couldn't connect to vehicle@2.0"); } Log.d(TAG, "Connected to IVehicle service: " + service); return service; |