summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMahesh Aia <mahaia@codeaurora.org>2019-10-14 14:19:07 -0700
committerMahesh Aia <mahaia@codeaurora.org>2019-10-22 14:06:24 -0700
commit747f1e4ef63757319ed6b1f53fe5226e483f9bae (patch)
tree2d56a61ab1dec2e432f4e9b3f173cdcfac22db3d
parentf5d86d2a6771454221d740689b2c4246464974a5 (diff)
downloadandroid_vendor_qcom_opensource_interfaces-747f1e4ef63757319ed6b1f53fe5226e483f9bae.tar.gz
android_vendor_qcom_opensource_interfaces-747f1e4ef63757319ed6b1f53fe5226e483f9bae.tar.bz2
android_vendor_qcom_opensource_interfaces-747f1e4ef63757319ed6b1f53fe5226e483f9bae.zip
display: add APIs to check for async virtual display support
- Add API to query if asynchronous virtual display creation is supported. - Add API to create virtual display asynchronously. Change-Id: Iad98e9406f295bac2b97203ce5b4b603fd027f2c
-rw-r--r--display/config/1.13/IDisplayConfig.hal52
-rw-r--r--display/current.txt1
2 files changed, 53 insertions, 0 deletions
diff --git a/display/config/1.13/IDisplayConfig.hal b/display/config/1.13/IDisplayConfig.hal
new file mode 100644
index 0000000..a475a4c
--- /dev/null
+++ b/display/config/1.13/IDisplayConfig.hal
@@ -0,0 +1,52 @@
+/*
+ * Copyright (c) 2019 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.13;
+
+import @1.12::IDisplayConfig;
+
+interface IDisplayConfig extends @1.12::IDisplayConfig {
+ /*
+ * Query if asynchronous Virtual Display Creation is supported
+ * @return is_supported true if async Virtual display creation is supported
+ */
+ @callflow(next="*")
+ isAsyncVDSCreationSupported() generates (bool is_supported);
+
+ /*
+ * Creates Virtual Display based on width, height, format parameters.
+ *
+ * @param width Width of the virtual display.
+ * @param height Height of the virtual display.
+ * @param format Pixel format of the virtual display.
+ * @return error is NONE on successful creation of display
+ */
+ @callflow(next="*")
+ createVirtualDisplay(uint32_t width, uint32_t height, int32_t format) generates (int32_t error);
+};
diff --git a/display/current.txt b/display/current.txt
index 590a250..b7107bc 100644
--- a/display/current.txt
+++ b/display/current.txt
@@ -49,6 +49,7 @@ f78bba2991501438ad9ca1a0812f6a2a3991cb178bec4c00bd8eec841777d8d9 vendor.display.
50369a070405a1f0cac44648f39ca32864c1339896d6eb16524b32fff9e95f03 vendor.display.config@1.10::IDisplayCWBCallback
10a290fc22df7680d00c53370870d5e941b7d60afcb94e90d2dd03369e7ccebc vendor.display.config@1.11::IDisplayConfig
ec808064f9829b3c124edf70042b651aac29ec0c3ebc842626c42da4a327ff2c vendor.display.config@1.12::IDisplayConfig
+c3ee03cf51ea11b6093a67d78be71085f1b5208e4ffbdbced1013c02246edc96 vendor.display.config@1.13::IDisplayConfig
#HAL released in Android Q
72889f3c7812efb6e00cd59d17dca3ee392b029eef83622758d206e1e835722c vendor.qti.hardware.display.mapper@3.0::IQtiMapper