Commit Graph

4128 Commits

Author SHA1 Message Date
Devanshi Bansal
5b6eff8fb6 displayconfig: Add support for AllowIdleFallback interface
Change-Id: Ibe07e550faa33bf68bc12bcd0ae5ffc1ffdf4a20
CRs-Fixed: 2928557
2021-04-21 22:12:41 -07:00
Rheygine Medel
bf1eb9996d config: Enable compilation for aidl libraries
This change will enable compilation of the IDisplayConfig AIDL
libraries.

Change-Id: I662fae44313a8297bca438f8eb0c30abc4cd3232
CRs-Fixed: 2910712
2021-04-06 09:34:31 -07:00
Ramakant Singh
df1244ab37 DisplayExtn: Extend interface to support async commit.
Change-Id: I70919add71d8bbdf7d6fd30041475a4d9419d6c2
2021-03-16 19:03:53 -07:00
Rheygine Medel
4bd6cb01ef display: Add IDisplayConfig Stable AIDL implementation
This change adds the IDisplayConfig HAL implementation using AIDL
interfaces.

Change-Id: I5244d4d7764fd5128a2cb1021b73364d0179cece
CRs-Fixed: 2871306
2021-02-14 17:38:15 -08:00
qctecmdr
50df48c0e0 Merge "gralloc: Define FSC HAL Pixel formats" 2021-02-08 06:29:54 -08:00
Ashish Kumar
fa070dee7b gralloc: Define FSC HAL Pixel formats
Change-Id: I44168444fb508f7571cbc85e6fc5451ad10f834f
2021-02-07 23:03:47 -08:00
ksrinath
4181cc8819 displayconfig: Add dummy display config API
Dummy display config API is added to check the backward
compatibility of IDisplayConfig2.0  with vendor freeze.

CRs-Fixed: 2855291
Change-Id: I4f3ddd5c1a9bb660ab252b9024650a9bd63a4ccf
2021-01-18 17:02:43 +05:30
Zube Molokwu
10c74ab436 display: Adds additional APIs for gralloc4 support
Adds gralloc4 support for QtiMapperExtensions APIs

Change-Id: I2728f7dd7286702ae19f6fa1c0548027a2e12437
2020-12-21 12:18:16 -08:00
Ravi Ranjan
d831a3d42e gralloc: Add flag PRIV_FLAGS_TILE_RENDERED
CRs-fixed: 2793240
Change-Id: I7f77e344649bda320bfcde01fb0f5ba276bc950b
2020-12-18 10:26:54 -08:00
Ramkumar Radhakrishnan
ea0145c72d Define hidl interface to query display type for TUI client
Add hidl interface to query display type information for a given
physical display id

Change-Id: Iebe1f243225d26c24584b57a02df2aef57ef1a4c
2020-12-02 14:40:39 -08:00
Zube Molokwu
058b55de20 display:Adds ColorSpace macros to support gralloc4
Change-Id: Ided5ac9548269adaf8f5414ba0dd86abadb51d9b
2020-11-09 10:18:23 -08:00
qctecmdr
9f824af494 Merge "display: Add feature flag for dynamic Early Wakeup config" 2020-10-16 04:51:33 -07:00
Rheygine Medel
29c60d75b1 display: Add checks on GetActiveConfig API
This change adds null pointer checks on the GetActiveConfig API.

Change-Id: Ic61507ab9fe083f85a7708e262ecdf7714cf9087
CRs-Fixed: 2784749
2020-10-14 14:26:07 -07:00
Sushil Chauhan
43d058155a display: Add feature flag for dynamic Early Wakeup config
Add feature flag for dynamic Early Wakeup configuration, where SF
can enable or disable the Early Wakeup notification for a display,
based on its Power mode.

CRs-Fixed: 2796511
Change-Id: If517483676b95e3484d65c2478ac32a03903e0a4
2020-10-13 11:33:48 -07:00
Rheygine Medel
7dd7b364b3 display: Add API to support config switch validation
This change adds a new API which will be called by SF whenever it
tries to switch the device's active config.

Change-Id: Iea57e4939ca1c2693605c623b3133b9203ccfdd1
CRs-Fixed: 2777628
2020-10-09 14:32:39 -07:00
Ravi Ranjan
c6de99d1f5 display: Fix 'Unused parameter' errors
Compilation throws 'Unused parameter' errors after including
client_interface.h/config_defs.h header in the client's source
file.

Change-Id: I3a892801264890a813ca5a63468c76ef770e641d
CRs-Fixed: 2762670
2020-10-06 09:42:36 +05:30
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