summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* livedisplay: sdm: Do not create intermediate stringHEADlineage-17.1Ethan Chen2020-04-111-1/+1
| | | | | | | | * hidl_string can be constructed from a C-string, don't bother creating an intermediate object. * Addresses a possible crash due to string construction. Change-Id: I28fdf53fcd4dc6dbc97a22acf4d40526788a0548
* livedisplay: sdm: Default initialize objects created with newEthan Chen2020-04-111-2/+2
| | | | | | * new does not initialize memory. Change-Id: I20c24002a5972372f78f53b6344a089806d2c047
* livedisplay: clang-format all filesLuK13372020-01-0727-104/+109
| | | | Change-Id: Ia7f7f7acdecc8d407f53bf6a7ea1e0a2e63c5fe7
* livedisplay: Replace clang-format with symlink.Steven Moreland2020-01-071-24/+1
| | | | | | | | Automatic consistency. Bug: 122835115 Test: manual Change-Id: I6583f9f7923a822aa11f1839fbf375c1063a89c6
* livedisplay: Take into account new SDM lib namingTheScarastic2020-01-071-8/+20
| | | | Change-Id: I1badaef0622d87deb5b4844bc70705b6946e0672
* sdm: Fix restoring default mode when using prebuilt vendorlineage-17.0lineage-16.0TheScarastic2019-06-011-0/+9
| | | | | | | | | This conditionally reverts d84525d3e7a5f4ccf3833d9bc62a1681843b7c8b for devices that build system variant of livedisplay hal since most OEM's set vendor.display.enable_default_color_mode=0 in vendor causing livedisplay modes to reset on boot. Change-Id: I37c56c79c7792932ddf4ca38d12d3b0e82ea8194
* Revert "livedisplay: sdm: Fix restoring default mode"dianlujitao2019-02-221-7/+0
| | | | | | | | | This reverts commit 62d6ecd2d47aadf92cc4885eaa31ce0f07d4e07d. The proper fix is setting vendor.display.enable_default_color_mode=1 as advertised by CAF. Change-Id: Ic443eb9e6164a59549dca221959e6fa98c408be8
* livedisplay: sysfs: Wire it upPaul Keith2019-02-1016-163/+460
| | | | Change-Id: I8e8e222f94bcf86d4ded3d8dc57cc6c70ee7634a
* livedisplay: sysfs: Remove unused HALsPaul Keith2019-02-077-366/+0
| | | | Change-Id: I599dbbda3c2367979dbe9241c3f693d90d3ee850
* livedisplay: sysfs: Add LineageOS copyrightsPaul Keith2019-02-0719-36/+338
| | | | | | * Change namespace to sysfs while we're at it Change-Id: Ibc5879dbbca8320e8b6f90e7a9568aef4d7ca4d6
* livedisplay: sysfs: Add autogenerated codePaul Keith2019-02-0719-0/+738
| | | | Change-Id: I03a75f90b41948cec9ffd048f868c35acf7e2e43
* livedisplay: sdm: Fix restoring default modePaul Keith2019-02-071-0/+7
| | | | | | | | | | * It turns out that some sdm devices need this to be manually set to the default mode in order for the correct mode to be set * This partially reverts 950336a which was merged too early, but also fixes a bug in the if check for the modeId, since the modeId can be greater than *or equal to* 0 Change-Id: Ie2c0e9d496ad850104886cd59d82f78be2510db6
* livedisplay: sdm: Fix isSupported() checksPaul Keith2019-02-071-1/+1
| | | | | | | | * Remove check for ab->isSupported() to check if the backend is up because ab->isSupported() returns the value of a prop, so checking it to see if the backend is up might cause false positives here Change-Id: I3674fea55ab96654c51c71f356bcc91585f83af7
* livedisplay: The module isn't proprietarydianlujitao2019-02-072-2/+2
| | | | Change-Id: Ieb5e3a845b38330caad94aa611ffbff326cf8bc0
* livedisplay: Nuke color balancedianlujitao2019-02-078-398/+2
| | | | | | | * The isSupported() method always returns false here, and there are currently no plans to fix it at this time Change-Id: I45cec0542219b42009f7e4f2a1ab2a1fe0d06ede
* livedisplay: Minor code cleanupPaul Keith2019-02-072-24/+8
| | | | | | | | | * Don't set display mode in constructor, this is handled by the backend when we don't have any non-backend handled modes * Move delete[] tmp[i].name outside of the loop, since it needs to be deleted whether or not we get anything from the backend Change-Id: I3ecac94a0affdbf9b587074879aa9a00ca8587c9
* livedisplay: Fix racy initPaul Keith2019-02-075-3/+13
| | | | | | | | * It turns out moving this to class main doesn't work as well as some had thought it would, so restore the previous logic to use class hal, and restart if the backend isn't up yet Change-Id: Ib8b417d89108dcf80d0d159e8d84e5327944b2a1
* livedisplay: Use 1 threadPaul Keith2019-02-042-33/+2
| | | | Change-Id: If06ce832d67197da313241920a71b358ab7654d1
* livedisplay: sdm: Wire it upPaul Keith2019-02-0416-116/+978
| | | | | | * Utils.cpp/h partially borrowed from livedisplay@1.0 Change-Id: Icc8714a46637545877bf821404af0f25ed54a01c
* livedisplay: sdm: Remove unused HALsPaul Keith2019-02-0411-532/+0
| | | | Change-Id: I60cd6eee2dfae77be3e6e013582da8ccd3e4cfab
* livedisplay: legacymm: Wire it upPaul Keith2019-02-0411-92/+672
| | | | Change-Id: Ic580ceb333c361444d4e009db1a34ccca8fbbbfc
* livedisplay: legacymm: Remove unused HALsPaul Keith2019-02-0313-636/+0
| | | | Change-Id: I04e7daef205d78aa619f5461a2c36c1cb910fd8b
* livedisplay: Add clang-format from hardware/interfacesdianlujitao2019-02-031-0/+24
| | | | Change-Id: I5ce5af6fa53ac7f895167040144c89ed12430b06
* livedisplay: Split impls into legacymm and sdmPaul Keith2019-01-2638-36/+1076
| | | | | | | * Since we're no longer approaching this as a @1.0 wrapper, we need separate impls for sdm and legacymm Change-Id: I413349de5d2331cf9cf60199999c34614224fe42
* livedisplay: qti: Add LineageOS copyrightsPaul Keith2019-01-2619-36/+338
| | | | Change-Id: Ie0aaba053dbee4cd806ee62764d26e8fa1810d6c
* livedisplay: Update for new .hal definitionsPaul Keith2019-01-193-3/+2
| | | | | | * This is no longer going to depend on @1.0 Change-Id: Ib74b30482106d200815d5d7ea7ce42340bff8ef6
* livedisplay: Add initial code generated from hidl-genPaul Keith2018-08-2219-0/+739
Change-Id: I2fffa3be545336f74f21a06762a93f1f158ab607