display: Add API to set display animation
CRs-Fixed: 2141089
Change-Id: I0c2ae5b69db092db257e53c5498dbba87ad8169d
diff --git a/display/config/1.1/Android.bp b/display/config/1.1/Android.bp
new file mode 100644
index 0000000..586b95e
--- /dev/null
+++ b/display/config/1.1/Android.bp
@@ -0,0 +1,90 @@
+// This file is autogenerated by hidl-gen. Do not edit manually.
+
+filegroup {
+ name: "vendor.display.config@1.1_hal",
+ srcs: [
+ "IDisplayConfig.hal",
+ ],
+}
+
+genrule {
+ name: "vendor.display.config@1.1_genc++",
+ tools: ["hidl-gen"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hidl:system/libhidl/transport -rvendor:vendor/qcom/opensource/interfaces vendor.display.config@1.1",
+ srcs: [
+ ":vendor.display.config@1.1_hal",
+ ],
+ out: [
+ "vendor/display/config/1.1/DisplayConfigAll.cpp",
+ ],
+}
+
+genrule {
+ name: "vendor.display.config@1.1_genc++_headers",
+ tools: ["hidl-gen"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hidl:system/libhidl/transport -rvendor:vendor/qcom/opensource/interfaces vendor.display.config@1.1",
+ srcs: [
+ ":vendor.display.config@1.1_hal",
+ ],
+ out: [
+ "vendor/display/config/1.1/IDisplayConfig.h",
+ "vendor/display/config/1.1/IHwDisplayConfig.h",
+ "vendor/display/config/1.1/BnHwDisplayConfig.h",
+ "vendor/display/config/1.1/BpHwDisplayConfig.h",
+ "vendor/display/config/1.1/BsDisplayConfig.h",
+ ],
+}
+
+cc_library_shared {
+ name: "vendor.display.config@1.1",
+ defaults: ["hidl-module-defaults"],
+ generated_sources: ["vendor.display.config@1.1_genc++"],
+ generated_headers: ["vendor.display.config@1.1_genc++_headers"],
+ export_generated_headers: ["vendor.display.config@1.1_genc++_headers"],
+ vendor_available: true,
+ shared_libs: [
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "android.hidl.base@1.0",
+ "vendor.display.config@1.0",
+ ],
+ export_shared_lib_headers: [
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "libutils",
+ "android.hidl.base@1.0",
+ "vendor.display.config@1.0",
+ ],
+}
+
+cc_library_shared {
+ name: "vendor.display.config@1.1_vendor",
+ defaults: ["hidl-module-defaults"],
+ generated_sources: ["vendor.display.config@1.1_genc++"],
+ generated_headers: ["vendor.display.config@1.1_genc++_headers"],
+ export_generated_headers: ["vendor.display.config@1.1_genc++_headers"],
+ vendor: true,
+ shared_libs: [
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "android.hidl.base@1.0",
+ "vendor.display.config@1.0",
+ ],
+ export_shared_lib_headers: [
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "libutils",
+ "android.hidl.base@1.0",
+ "vendor.display.config@1.0",
+ ],
+}
diff --git a/display/config/1.1/IDisplayConfig.hal b/display/config/1.1/IDisplayConfig.hal
new file mode 100644
index 0000000..d6987bd
--- /dev/null
+++ b/display/config/1.1/IDisplayConfig.hal
@@ -0,0 +1,43 @@
+/*
+* Copyright (c) 2017 The Linux Foundation. All rights reserved.
+*
+* Redistribution and use in source and binary forms, with or without
+* modification, are permitted provided that the following conditions are
+* met:
+* * Redistributions of source code must retain the above copyright
+* notice, this list of conditions and the following disclaimer.
+* * Redistributions in binary form must reproduce the above
+* copyright notice, this list of conditions and the following
+* disclaimer in the documentation and/or other materials provided
+* with the distribution.
+* * Neither the name of The Linux Foundation. nor the names of its
+* contributors may be used to endorse or promote products derived
+* from this software without specific prior written permission.
+*
+* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
+* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
+* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+package vendor.display.config@1.1;
+
+import @1.0::IDisplayConfig;
+
+interface IDisplayConfig extends @1.0::IDisplayConfig {
+ /*
+ * Set display animating property.
+ *
+ * @return one of the hwc2 errors
+ */
+ @callflow(next="*")
+ setDisplayAnimating(uint64_t displayId, bool animating) generates (int32_t error);
+};
+
diff --git a/display/config/Android.bp b/display/config/Android.bp
index 36d9b01..8926b48 100644
--- a/display/config/Android.bp
+++ b/display/config/Android.bp
@@ -1,4 +1,5 @@
// This is an autogenerated file, do not edit.
subdirs = [
"1.0",
-]
\ No newline at end of file
+ "1.1",
+]