Commit Graph

4112 Commits

Author SHA1 Message Date
qctecmdr
1e64e1f122 Merge "DisplayConfig: Add support to notify idling." 2020-09-29 23:19:04 -07:00
qctecmdr
cd6544ad4c Merge "Display: Handle S3D format set/get correctly" 2020-09-28 23:54:39 -07:00
Pullakavi Srinivas
2ff0ad7075 DisplayConfig: Add support to notify idling.
CRs-Fixed: 2786504
Change-Id: Ibc48cde45063de616b8c65db856a2b3056efc55d
2020-09-28 05:11:24 -07:00
Rheygine Medel
528c691743 display: Add validations and logging on DisplayConfig
Change-Id: I60f4483acb050f94ddf4d81318d6baf5e2a22e03
2020-09-25 09:35:27 -07:00
Baldev Sahu
356869cea9 Display: Handle S3D format set/get correctly
Use vendor meta data status for S3D_FORMAT. This
support is only for legacy reason.

Change-Id: I451829dfe5501d8bd24fa5818cb336f077c5344e
2020-09-25 17:19:00 +05:30
qctecmdr
80d59575ba Merge "qdMetaData: Disable Gralloc4 for non-Android build" 2020-09-21 22:45:05 -07:00
Xiaoyu Huang
4ea69777ab qdMetaData: Disable Gralloc4 for non-Android build
Gralloc4 header is defined in Android framework and can't be
used by non-Android build. Add compile option to disable Gralloc4
for non-Android build.

Change-Id: I9f42f451c0105fd96776211d07724939665358da
2020-09-17 19:42:06 -07:00
Padmanabhan Komanduru
d08bb82222 displayconfig: perform hidl_cb for default switch case
Change-Id: Iff191b7278840e39aedd68f2436368e6453cdcd6
CRs-Fixed: 2777786
2020-09-16 12:03:01 -07:00
qctecmdr
7c6fc8e155 Merge "display: Add api to enable/disable Early Wake-up" 2020-09-06 00:06:30 -07:00
qctecmdr
e60e826686 Merge "display: Add video TS info metadata" 2020-09-06 00:06:30 -07:00
Sushil Chauhan
6121fdee4d display: Add api to enable/disable Early Wake-up
Add Display Extension api to enable or disable Early Wake-up on a
given display.

CRs-Fixed: 2765806
Change-Id: Iee3a73bb2ff18044772519cecc406aa59f2aa542
2020-09-03 10:43:18 -07:00
qctecmdr
7cb36a2bfe Merge "display: Add feature flag for Phase Offset Extension" 2020-09-03 00:16:09 -07:00
qctecmdr
cb4a416e2d Merge "displayconfig: Add RC Feature query support" 2020-09-03 00:16:09 -07:00
Shrikara B
21c0d729d6 display: Add video TS info metadata
Add support to pass new video timestamp info metadata
in gralloc buffer. Add support in both qdmetadata
and Gralloc4 interface.

CRs-Fixed: 2713472
Change-Id: Ica7776c6594ec3224f631f2eb23a1988f075313f
2020-09-03 10:59:32 +05:30
Mathew Joseph Karimpanal
fe080b5bce displayconfig: Add RC Feature query support
Add support to query if RC Feature is available.

CRs-Fixed: 2758787
Change-Id: I463382fba34cbfbddef13e976bb055a0a362eb14
2020-09-03 00:44:38 +05:30
Sushil Chauhan
2e089c5397 display: Add feature flag for Phase Offset Extension
Define the feature flag for Phase Offset Extension.

CRs-Fixed: 2754160
Change-Id: Iebf238a9d12db16f3cfc9b09dc6233f0551155b7
2020-09-02 00:00:13 -07:00
Venkat Thogaru
3053e37f77 display: Fix null pointer dereference
Change-Id: I9737741d066944e004f3e3a408fcb6ccd10282a3
2020-09-01 23:44:34 -07:00
qctecmdr
19349d7192 Merge "display: Add a check when registering a client" 2020-09-01 02:11:22 -07:00
Rheygine Medel
e5f2189f9c display: Add a check when registering a client
This change checks if the registered client has a valid callback and
hwc session.

Change-Id: I9758d6d59c7087e67e89318746cb48054255ab72
CRs-Fixed: 2749805
2020-08-20 16:55:30 -07:00
Sushil Chauhan
5f81e8d39c display: Add PhaseOffset Extension interface
Add PhaseOffset Extension interface to query advanced SF Offsets.

CRs-Fixed: 2754160
Change-Id: I8cef870d6576be60f57a019fc0ffebd8833a49db
2020-08-12 14:09:04 -07:00
qctecmdr
6879d90872 Merge "displayconfig: Add API to query supported refresh rates from HAL" 2020-08-10 00:54:48 -07:00
Dhruv Kaushik
c07e3c8f88 displayconfig: Add API to query supported refresh rates from HAL
Add HIDL API to query supported refresh rates from Display HAL.
The API would return a vector of supported fps in the current
config group.

Change-Id: I27640114963a97c96738387fe502b802a48837ba
CRs-Fixed: 2749264
2020-08-06 12:12:08 +05:30
Sushil Chauhan
a950c06481 display: Define EARLY_WAKEUP_FEATURE marco
Define EARLY_WAKEUP_FEATURE macro to avoid compilation dependency
in framework keystone changes.

CRs-Fixed: 2748826
Change-Id: I5261c5d4918c18c2067a6b562776148aa3d903cb
2020-08-05 10:54:34 -07:00
qctecmdr
1fa94ca731 Merge "display-config: Add a soong namespace for display commonsys" 2020-08-03 03:35:27 -07:00
Venkat Thogaru
6b511cd1d2 display: Fix array out of bound
Change-Id: Ic560d36efad6a6b2a98a6c190abca6542ef91d91
2020-07-28 14:56:38 +05:30
Naseer Ahmed
425870053d display-config: Add a soong namespace for display commonsys
This is required for targets which may not have displayconfig
available.

Change-Id: I905ad2763c7ef1e6fb3f19ac9446887641b45581
2020-07-17 15:19:17 -07:00
Sushil Chauhan
4e71033d00 display: Add interface to support Early Wake-up
Add interface to support Early Wake-up notification feature.

CRs-Fixed: 2727498
Change-Id: I888a953f48c4ffb445d7309f8590ae23258164b7
2020-07-15 11:47:41 -07:00
Sushil Chauhan
c0a6e10304 display: Add support to query Display HW Id
Add support to query Display HW Id from HWC HAL of a given display.

CRs-Fixed: 2710899
Change-Id: I96e9cfe4f8f75b0c1cd23adab23e7abd2707ff59
2020-07-14 11:30:44 -07:00
Tharaga Balachandran
bcd39b9ab9 gralloc: Add metadata type buffer_type
CRs-Fixed: 2730864
Change-Id: I8f96b5dc905f1b8cedc498d3853be27a8f92ae58
2020-07-13 12:10:43 -04:00
Tharaga Balachandran
3981046acc display: Add reserved size and status check to MetaData_t
* Move from fixed array reserved region to variable reserved
  region size
* Add bool arrays to indicate whether metadata has been set using
  Gralloc4 indices
* Replace metadata->operation with bool arrays for
  gralloc4/qdMetaData compatibility

CRs-Fixed: 2730848
Change-Id: Id52aac70c23ee4b39db185861f951bb909831afb
2020-07-13 11:36:26 -04:00
Padmanabhan Komanduru
7f664a2f83 display: config: handle client destroy sequence gracefully
- Split the IDisplayConfigCallback implementation to a
  separate class.
- Notify the device when a client is getting destroyed
  and perform cleanup on device side.

Change-Id: I020a3a9cac7f31195e0072540e2145cdd3da274c
2020-07-09 10:44:02 +05:30
Ramkumar Radhakrishnan
4e1cfa2ec6 displayconfig: Add support to notify TUI transition events
Add support to notify TUI transition events to hwcomposer.

Change-Id: I56f8fa8c3432ebf4fff44b9cbf8c2ac5252b799a
2020-07-02 15:48:08 -07:00
wangling
fd0e54f9fd commonsys-intf: add split window interface.
Add an interface which allow users to get split window layers info.

Change-Id: Ifca373901498aaa3102d9a025ad79d1ffb4436e6
2020-06-23 03:58:37 -07:00
Venkat Thogaru
2583c250c2 display: Fix null pointer dereference
Change-Id: Iff047b79330854c2e2bd8fd07f18c842dec0bc2d
2020-06-16 04:37:08 -07:00
Padmanabhan Komanduru
cdb534d9cd config: add missing default initializations
Change-Id: I6a013136272ff2f9c4c5137d46d2058a08a8fcd8
2020-05-28 14:09:10 +05:30
qctecmdr
8cb30a8d1e Merge "display: Fix dependency compile error" 2020-05-27 15:26:11 -07:00
Mohamed Moussa
c3ddd69f44 display: Fix dependency compile error
When enforce product I/F for Native modules, system_ext module
cannot link to product module and vice versa.
When PRODUCT_PRODUCT_VNDK_VERSION := current, all native modules
in product partition are in the product variant. Adding system_ext_specific
and vendor_available will create system_ext variant and vendor variant.

Change-Id: Id8953a6c65b346a4762c9d9d89f7c6c26d80fdfa
2020-05-27 10:37:02 -07:00
qctecmdr
343cd2a44b Merge "gralloc: Use only 'data' member in GraphicsMetadata" 2020-05-23 23:38:40 -07:00
qctecmdr
7f213be79f Merge "gralloc: Change HAL_PIXEL_FORMAT_YCbCr_420_P010 macro" 2020-05-23 23:38:40 -07:00
Ravi Ranjan
c74a80eae0 gralloc: Use only 'data' member in GraphicsMetadata
- In gralloc3, first member 'size' in GraphicsMetadata struct was
  never unused in call to GetGraphicsMetadata. Get() call always
  returned 'data' member in GraphicsMetadata structure.

- Gralloc4 implementation introduced new encode/decode functions for
  GraphicsMetadata which are simultaneously used during set/get
  calls to encode/decode  metadata for caller and during storing/
  retrieving it from Metadata_t struct. Get() call returned
  GraphicsMetadata struct pointing to its first member 'size'
  instead of second member 'data'.

- Implement function to encode/decode GraphicsMetadataRaw to translate
  the metadata before calling mapper set/get.

- Update encodeGraphicsMetadata/decodeGraphicsMetadata functions to
  store/retrieve only 'data' member in GraphicsMetadata structure.

CRs-fixed: 2682060
Change-Id: I60c3dd2029ba21aa481dad35f9b4738b2d78957a
2020-05-22 01:37:06 -07:00
Dhruv Kaushik
fcc2e6ea0f gralloc: Change HAL_PIXEL_FORMAT_YCbCr_420_P010 macro
Use value 54 from system include for HAL_PIXEL_FORMAT_YCbCr_420_P010

Change-Id: I5a008141a857f4c7c3e4f116c78553f34030ae2f
Crs-fixed: 2688319
2020-05-20 23:47:39 -07:00
Dileep Marchya
b768004454 display: Add interface to set display attributes
- Add interface to set content fps on a display

CRs-Fixed: 2681693
Change-Id: Ic05459e91c84197490e978aa8c65af2f6a2b496e
2020-05-20 18:31:26 -07:00
qctecmdr
65a9ce9dae Merge "config: fix the signature to get getDebugProperty/getSupportedDsiBitClks" 2020-05-20 01:04:27 -07:00
Padmanabhan Komanduru
30f1b5d2ae config: fix the signature to get getDebugProperty/getSupportedDsiBitClks
Change-Id: I16e83341e708d4223be10da38363eab6e46c4b18
CRs-Fixed: 2686395
2020-05-14 11:37:59 +05:30
Venkat Thogaru
9bea0aaafa display: Fix null pointer dereference
Change-Id: I90236ee583a6862866b74f3645ff39e96673794a
2020-05-13 12:27:53 +05:30
qctecmdr
340e7f7cb0 Merge "display: add libdisplayconfig.qti to product packages" 2020-05-02 23:32:32 -07:00
qctecmdr
3fc2bc24e1 Merge "display: Add interface to get current frame rate from SmoMo" 2020-05-02 23:32:32 -07:00
qctecmdr
0ce7be9173 Merge "display: Fix dependency compile error" 2020-05-02 23:32:32 -07:00
Mohamed Moussa
192d186207 display: Fix dependency compile error
When enforce compile time product I/F, system_ext module
cannot link to product module and vice versa.
When PRODUCT_PRODUCT_VNDK_VERSION := current, all native modules
in product partition are in the product variant. Adding system_ext_specific
and vendor_available will create system_ext variant and vendor variant.
This will fix the following dependency compile 2 errors:
-Error: MMCapability.cpp:33:10: fatal error: 'qd_utils.h' file not found
libwfdsinksm.so [MMCapability.cpp], installed in SYSTEM_EXT partition
and depends on libqdMetaData [qd_utils.h], accessable in product partition.
Replacing product_specific with system_ext_specific, while enforcing product I/F
will install libqdMetaData in system_ext and variant in product partition

-Error: dependency "libgralloc.qti" of "libqdMetaData" missing variant
libqdMetaData now moved to system_ext. Need to install libgralloc.qti
in system_ext.

Change-Id: Ic4eb768173f2125cee2bb1fa69665b50e8708ea5
2020-04-27 13:07:10 -07:00
Padmanabhan Komanduru
a4348dcfe9 display: add libdisplayconfig.qti to product packages
Change-Id: Ic8a69bc5368f9d41c5958181ecb091e6d0d4ad05
2020-04-23 19:36:53 +05:30