Commit Graph

225 Commits

Author SHA1 Message Date
basamaryan
04b6e81293
dolby: Fix build with kotlinc 1.9.0
Reformat the code while at it

Change-Id: I4f9fdc9d25eb57240612cff1b3bef3663014f9a8
2024-10-14 18:31:30 -04:00
Michael Bestas
ee3cc7643e
dolby: Convert to SwitchPreferenceCompat
Change-Id: Ic1cbaba37d499da1855af9c3930f2df426e2d3af
2024-10-14 18:31:30 -04:00
Chaohui Wang
f2017d95d5
dolby: Migrate to CompoundButton.OnCheckedChangeListener
Switch and SwitchCompat are both CompoundButton.

Using CompoundButton in Java will helps migration in the future.

Bug: 306658427 | AOSP | AOSP
Test: manual - check Settings pages
Test: m RunSettingsLibRoboTests
Change-Id: I85a70d4c504d8584030ea4a058f30d74206ab835
2024-10-14 18:31:30 -04:00
Peter Kalauskas
2cdf692dc9
dolby: Enable use_resource_processor for all sysui deps
This will make the build faster

Test: m checkbuild
Bug: 295208392
Change-Id: I0c1bd901429bbe3bf81c1530e156735f8637a96e
2024-10-14 18:31:30 -04:00
Adithya R
daec8b0c5b
dolby: Add intelligent equalizer setting
Move preference-related classes to a new package while we're at it,
to reduce code clutter.

Change-Id: I2430e8ab9b6758503ce1777ec985a3e400b55b8e
2024-10-14 18:31:30 -04:00
Adithya R
b10f3eefc6
dolby: Introduce graphical equalizer
Squashed:

dolby: Refresh preset name on main screen

Change-Id: I96783e2a03c384f031787f4cc9140f7d64dadb2f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>

Change-Id: I38ee6ce594e5671af42afc3d4bf0f004329482b9
2024-10-14 18:31:30 -04:00
Pranav Vashi
ab222058f5
dolby: Add launcher icon
Change-Id: I4d36842ca96048f9b55604d66cc7741759d657f3
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
[adithya2306: Add monochrome icon as well]
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-10-14 18:31:30 -04:00
Adithya R
27e3581dce
dolby: Restore current profile _after_ resetting profiles
Ensure to end the onBootCompleted routine with the correct profile set.

Change-Id: I2d5f74a7c0145af2f9d064cd98fa2dc70e5a7acd
2024-10-14 18:31:30 -04:00
Adithya R
15353f11fe
dolby: Do not set volume leveler amount
This value is set to zero in almost every known dax-default.xml,
including ours.
DaxService also doesn't mess with this value, instead only sets
VolumeLevelerEnabled.

Change-Id: Ib944728d478cff58aebc4f47128bcd5fe32ff9f6
2024-10-14 18:31:30 -04:00
Adithya R
5b0e5a2afc
dolby: Restore all settings upon bootup
Dolby often messes up restoring profile-specific settings after a reboot.
"Fine. I'll do it myself."

Change-Id: Ic255c6922eabae0b522c05110f87e2c10a97fb6c
2024-10-14 18:31:30 -04:00
Adithya R
d5620a07ee
dolby: Rewrite in Kotlin
Some cleanup and restructuring while we're at it.

Change-Id: I2f1fc53c202d91421c7b6af68c814c25398a62e4
2024-10-14 18:31:30 -04:00
Adithya R
6a00b38d83
dolby: Revert "Re-enable speaker virtualization after bootup"
No longer necessary

Change-Id: Iac820eafa71ea3e4ccaad2bfa0fb76c37279a22a
2024-10-14 18:31:30 -04:00
Adithya R
975856cac5
xiaomi: Introduce Dolby Atmos
Moved from marble/sm8450-common

History:

commit 82fe03168c0402e4cb10d25859c3b398c0ef654a
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date:   Thu Mar 21 21:35:36 2024 +0530

    marble: parts: Restore dolby profile on audio changes

    Something keeps resetting back at random times, from what I observed,
    after resuming media or on a device change, lets workaround that.

    Change-Id: Id065f2482636194655c2399f0c35ad56b8e7a29d

commit c4400bd1326f65aeac1d0f26bb830ce7fd079773
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date:   Fri Feb 2 09:29:08 2024 +0530

    marble: parts/keyhandler: Guard debug logging

    Change-Id: I246941f26cd1f71b696eb3c996794c9baa5dbc00

commit f11b70a98a11d0b89673d73002996aed9f11fbd7
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date:   Sun Dec 31 20:36:52 2023 +0530

    marble: parts: Re-enable speaker virtualization after bootup

    For whatever reason, speaker virtualization isn't automatically
    restored at bootup unlike the other parameters. It was reported to be
    fixed by connecting and disconnecting headphones or disabling and
    enabling the toggle, so let's just automate that at bootup.

commit abcff4fb947c89b69c1d25bd290fd91b7873af6a
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date:   Fri Oct 20 06:49:19 2023 +0530

    marble: parts: Implement profile-specific Dolby settings

    Some refactoring and cleanup while we're at it.

commit dc54f9ddeff212d017b0cba16e56516e99335bb3
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date:   Mon Oct 9 21:58:58 2023 +0530

    marble: parts: Remove play/pause hack while toggling Dolby

    Not required with/fixed by:
    35217: audioflinger: Do not allow DAP effect to be suspended | https://gerrit.aospa.co/c/AOSPA/android_frameworks_av/+/35217

commit dd2acc8e0c10d05f86ff229412cc9f72ea242b44
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date:   Wed Sep 13 21:41:20 2023 +0530

    marble: parts: Set proper summary for dolby settings

    Show the current status in Settings > Sound as well as the QS tile.

commit 92d341ba3d22f323eded525487db4289d6edc0fe
Author: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Date:   Fri Aug 25 10:26:53 2023 +0200

    marble: parts: Always refresh playback if status changed

     * otherwise dolby would stay active even if you disable its setting

    Change-Id: If59d8081fa12da2aa67e5149db97965c0805d76e

commit b1944744649b6fddcb7bc3864b92f298b6e78821
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date:   Mon Aug 21 13:21:18 2023 +0530

    marble: parts: Introduce Dolby Atmos

    Based on existing dirac implementation and observing stock
    sound effects app and daxservice.

    Thanks to jhenrique09 for the hack from old dirac parts
    "Pause/play music stream to get effects applied".

    TODO: bring back misound (same as stock)

    Co-authored-by: Henrique Silva <jhenrique09.mcz@hotmail.com>

Change-Id: I79841c045fe7b92c438177916f756faab72ff0e9
2024-10-14 18:31:30 -04:00
Adithya R
808de56c02
vintf: Add more hals to fcm
Change-Id: I6645216d2665ab1d51f789b9f4f80acf411e875c
2024-10-14 18:31:30 -04:00
basamaryan
76ed4f4cee
xiaomi: Drop megvii stubs
They do not work properly on all devices (such as breaking face detection).
Since we already ship face unlock and aren't bound by the Lineage Charter, drop them.

Change-Id: If46ca4ed656ca87a5ff9f9d917d64481aacf7507
2024-10-14 18:31:30 -04:00
Sebastiano Barezzi
40728c3a73
interfaces: fx.tunnel: Fixup
Change-Id: I7f8a8b1ab7fda8bf7f35bb12a2cee97f3a9f3763
2024-10-14 18:06:42 +02:00
basamaryan
cdc6694adc
hidl: biometrics: fingerprint: Run clang-format
Change-Id: Ia1a05b3975fba530f5a8c2cc6304c4147c1df2d3
2024-10-10 11:55:16 -04:00
Arian
4b8b52d599 sensors: Implement udfps long press sensor
Change-Id: I49773535f47c538b1ff210245109dd63c18d32cb
2024-09-29 20:18:03 +02:00
Arian
b5ae2b09f2 sensors: Implement single tap sensor
Change-Id: I838121ffc627fb8091ce16e0ec4499f5f44bc446
2024-09-29 17:21:57 +02:00
Cosmin Tanislav
55b7558c79 sensors: Implement double tap sensor
Change-Id: I6c217c994d6e4d5ae062a31a44fffc9f097a7f6f
2024-09-29 17:21:57 +02:00
Arian
0fb685b768 sensors: Let the reading of poll fd be configurable
Change-Id: I554a238c11a87d89687b60d3f39446c8f2ff7e2a
2024-09-29 17:21:47 +02:00
bengris32
2064bd02d4 hidl: sensors: 2.1: Add additional pick-up sensor name
Change-Id: I1f6216cfca6a3bd1c223eb2ba26afa33082fe261
Co-authored-by: LinkBoi00 <linkdevel@protonmail.com>
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-09-28 12:50:17 +01:00
bengris32
66ebac4090 hidl: sensors: 1.0: Add additional pick-up sensor name
Change-Id: I83caf59c0e4857f108819238b006b377fda985be
Co-authored-by: LinkBoi00 <linkdevel@protonmail.com>
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-09-28 11:49:18 +00:00
Hadad
5f470c822a vintf: Merge FPC fingerprint HIDL interfaces altogether
Separating version 1.0-3.0 is not necessary.

Change-Id: I5ff8edebe7e22b3f34e9283c5f72e69d594c3bd3
2024-09-28 11:47:32 +00:00
Hadad
bdb82fc5f3 vintf: Add legacy Goodix to FCM.
This commit is following changes of:

* interfaces: Add vendor.goodix.hardware.fingerprint@1.0
  Change-Id: I29c39a8652c5e71174324fa2c12d1a578245c429

Change-Id: I6a7f497c0e39ae3321805b01a842db78e3a38a7a
2024-09-28 11:47:32 +00:00
Hadad
51bb87379b vintf: Add FPC 2.0 version to FCM.
This commit following changes of:

 * interfaces: Add fingerprints extension 2.0
   Change-Id: I56038622e2e9b4ca7de9ee2e05eaa9fade853fa8

Change-Id: Ib1281a6725aaa1e26b32d1234bb56cdec0ec930a
2024-09-28 11:47:32 +00:00
Giovanni Ricca
9356e8d208 interfaces: Add vendor.goodix.hardware.fingerprint@1.0
Change-Id: I29c39a8652c5e71174324fa2c12d1a578245c429
2024-09-28 11:47:32 +00:00
Dhina17
613dfc6690 interfaces: Add fingerprints extension 2.0
Change-Id: I56038622e2e9b4ca7de9ee2e05eaa9fade853fa8
2024-09-28 11:47:32 +00:00
Dhina17
9929c6a01f interfaces: Move fingerprints extension@1.0 types to types.hal
Change-Id: Ica449d8f22d2988027abc1ac4b29cccff096268b
2024-09-28 11:47:32 +00:00
bengris32
1f09af7a5a interfaces: fxtunnel: Add fxtunnel 1.0 interface
Change-Id: I8bb9afc727213c7b9e74497d44ffb2bf95bd5a5f
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-09-28 11:11:27 +00:00
bengris32
91af720f56 interfaces: mfidoca: Add mfidoca 1.0 interface
Change-Id: If7e002ee448c417290ccc68ac15da2b4772e25fe
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-09-28 11:11:27 +00:00
bengris32
5a88d8559b interfaces: mtdservice: Add mtdservice 1.3 interface
Change-Id: I24df98f5f206fb85480c57ad50a8368ede97a0a5
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-09-28 11:11:27 +00:00
ralph950412
fff59ed344 Drop 2.1 sensors HIDL
Change-Id: I9df77e2634e2c7559094caf1c45fbff3b3774479
2024-09-28 11:10:33 +00:00
Cosmin Tanislav
e743eba68a aidl: sensors: Standardize xiaomi pickup sensor
* use standard sensor type
* ignore non-wakeup sensor variant
* ignore events that do not properly match a pickup

Change-Id: Ibe2f9fee1551da613713d40c1b8d0a26d38a93ae
Signed-off-by: ralph950412 <ralph950412@gmail.com>
2024-09-28 11:10:33 +00:00
Cosmin Tanislav
da9e56f0ae aidl: sensors: Avoid target name conflicts
Change-Id: Ib6426caf68fe1a7a7f637bdc5c4f0036866f8b78
Signed-off-by: ralph950412 <ralph950412@gmail.com>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2024-09-28 11:10:33 +00:00
Arian
67564b7de5 aidl: sensors: Change default applicable license to Android-Apache-2.0
hardware_interfaces_license is not available here.

Change-Id: I8c8d00cdeda2739c3e4419f979f1fbf0ef66fc0a
2024-09-28 11:10:33 +00:00
ralph950412
895ee9099e aidl: sensors: Import 2.X sensors hal proxy
* From android-14.0.0_r15

Change-Id: Id6f37920db2869574ca1b8e04c10e6ec3268ad4b
Signed-off-by: ralph950412 <ralph950412@gmail.com>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2024-09-28 11:10:33 +00:00
ralph950412
b8298ba75f aidl: sensors: Import aidl sensors MultiHal
* From android-14.0.0_r15

Change-Id: Id7d8dfae1290bdba84d5a9f4c6583d54a2769ba8
Signed-off-by: ralph950412 <ralph950412@gmail.com>
2024-09-28 11:10:33 +00:00
hipexscape
e5858d50ed vintf: Add vendor.goodix.hardware.cap.biometrics.fingerprint to FCM
Change-Id: I10bbe59456ec0174cb13271710e44800fe29ad61
2024-08-31 13:57:19 +00:00
Sebastiano Barezzi
424428e9b5 ir: Stop setting duty cycle
Change-Id: Ibafc8877123abf26d8007ffdb2a7b3c9cfead2c8
2024-08-31 12:12:17 +00:00
Sebastiano Barezzi
5a47da0c4f Drop HIDL IR HAL
Change-Id: Ic0805a38470afae5506602ac6ccdafb58d1c7cb9
2024-08-31 12:12:08 +00:00
Sebastiano Barezzi
a271b57c99 Rewrite IR HAL in AIDL
Change-Id: Ie27056c065766ab802ee337ced921876726de5cb
2024-08-31 12:10:28 +00:00
Arian
1f819b04da sensors: Create v{1,2} subdirectories for respective subhals
Change-Id: Ieda99f54e448690c7b2e6bcf1233a27233c63822
2024-08-31 09:58:45 +00:00
Chris Kuiper
edb5655662 hidl: sensors: 2.1: HalProxy: Forward 'lshal debug' options.
Bug: 262655635
Test: Temporarily added logs to verify option arguments are correctly
      forwarded.

Change-Id: Idef9b3371c332b8578cbfa88ba7d4bf4c68155e3
2024-08-29 19:28:20 +00:00
Aditya Chitnis
2d14c1f3be hidl: sensors: 2.1: Adding suport for multiple multihal config files
Bug: 259450346
Test: Presubmits
Change-Id: Ic7b113e6b8bf94e0c0ffe539f965232b24bdf66d
2024-08-29 19:28:20 +00:00
Cosmin Tanislav
06ea5c2c31 sensors: Create sysfs polling one shot sensor
Change-Id: Ie78d7729201836bacd65a57f76e22adb61159192
2024-08-29 19:20:47 +00:00
Cosmin Tanislav
a42b3ba35a sensors: Fix locking around setOperationMode and activate
Change-Id: I9a09f45f012662c8f92fa40da3a4b9dd691a1b2c
2024-08-29 19:20:47 +00:00
Cosmin Tanislav
baface41a9 sensors: Move one shot sensor out of main class
Change-Id: Ib7ac0c55409f2dc7f8fb114167e9f4b2e8859223
2024-08-29 19:20:47 +00:00
Cosmin Tanislav
644a807b49 sensors: Make sensor set mode operation function virtual
Change-Id: I62c94a6ad250417162cfc9eaca8cb490ce650d9c
2024-08-29 19:20:47 +00:00
Cosmin Tanislav
b4ec0abb94 sensors: Make sensor flush function virtual
Change-Id: I46532fc726d9e0c2073100ff1f6008fcde9e821c
2024-08-29 19:20:47 +00:00