Merge "Rename CarWindowService"
diff --git a/automotive/display/1.0/Android.bp b/automotive/display/1.0/Android.bp
index 25ff06a..cedf84e 100644
--- a/automotive/display/1.0/Android.bp
+++ b/automotive/display/1.0/Android.bp
@@ -7,7 +7,7 @@
         enabled: true,
     },
     srcs: [
-        "ICarWindowService.hal",
+        "IAutomotiveDisplayProxyService.hal"
     ],
     interfaces: [
         "[email protected]",
diff --git a/automotive/display/1.0/ICarWindowService.hal b/automotive/display/1.0/IAutomotiveDisplayProxyService.hal
similarity index 97%
rename from automotive/display/1.0/ICarWindowService.hal
rename to automotive/display/1.0/IAutomotiveDisplayProxyService.hal
index e785e42..dde71f5 100644
--- a/automotive/display/1.0/ICarWindowService.hal
+++ b/automotive/display/1.0/IAutomotiveDisplayProxyService.hal
@@ -18,7 +18,7 @@
 
 import [email protected]::IGraphicBufferProducer;
 
-interface ICarWindowService {
+interface IAutomotiveDisplayProxyService {
     /**
      * Gets an IGraphicBufferProducer instance from the service.
      *
diff --git a/automotive/display/1.0/vts/functional/VtsHalAutomotiveDisplayV1_0TargetTest.cpp b/automotive/display/1.0/vts/functional/VtsHalAutomotiveDisplayV1_0TargetTest.cpp
index f407b16..3576bda 100644
--- a/automotive/display/1.0/vts/functional/VtsHalAutomotiveDisplayV1_0TargetTest.cpp
+++ b/automotive/display/1.0/vts/functional/VtsHalAutomotiveDisplayV1_0TargetTest.cpp
@@ -17,7 +17,7 @@
 #define LOG_TAG "VtsHalAutomotiveDisplayTest"
 #include <android-base/logging.h>
 
-#include <android/frameworks/automotive/display/1.0/ICarWindowService.h>
+#include <android/frameworks/automotive/display/1.0/IAutomotiveDisplayProxyService.h>
 #include <android/hardware/graphics/bufferqueue/2.0/IGraphicBufferProducer.h>
 #include <utils/Log.h>
 
@@ -34,39 +34,39 @@
 public:
     virtual void SetUp() override {
         // Make sure we can connect to the service
-        mCarWindowService = ICarWindowService::getService(GetParam());
-        ASSERT_NE(mCarWindowService.get(), nullptr);
+        mDisplayProxy = IAutomotiveDisplayProxyService::getService(GetParam());
+        ASSERT_NE(mDisplayProxy.get(), nullptr);
     }
 
     virtual void TearDown() override {}
 
-    sp<ICarWindowService> mCarWindowService;    // Every test needs access to the service
+    sp<IAutomotiveDisplayProxyService> mDisplayProxy;    // Every test needs access to the service
 };
 
 TEST_P(AutomotiveDisplayHidlTest, getIGBP) {
     ALOGI("Test getIGraphicBufferProducer method");
 
-    sp<IGraphicBufferProducer> igbp = mCarWindowService->getIGraphicBufferProducer();
+    sp<IGraphicBufferProducer> igbp = mDisplayProxy->getIGraphicBufferProducer();
     ASSERT_NE(igbp, nullptr);
 }
 
 TEST_P(AutomotiveDisplayHidlTest, showWindow) {
     ALOGI("Test showWindow method");
 
-    ASSERT_EQ(mCarWindowService->showWindow(), true);
+    ASSERT_EQ(mDisplayProxy->showWindow(), true);
 }
 
 TEST_P(AutomotiveDisplayHidlTest, hideWindow) {
     ALOGI("Test hideWindow method");
 
-    ASSERT_EQ(mCarWindowService->hideWindow(), true);
+    ASSERT_EQ(mDisplayProxy->hideWindow(), true);
 }
 
 INSTANTIATE_TEST_SUITE_P(
     PerInstance,
     AutomotiveDisplayHidlTest,
     testing::ValuesIn(
-        android::hardware::getAllHalInstanceNames(ICarWindowService::descriptor)
+        android::hardware::getAllHalInstanceNames(IAutomotiveDisplayProxyService::descriptor)
     ),
     android::hardware::PrintInstanceNameToString
 );