28 Commits

Author SHA1 Message Date
armdebug
ab2c03f8de sm8150-common: parts: Switch to brightness nodes for popup LEDs
Switching to brightness node allows the PopupCameraService to have
direct control over the LED state, ensuring the lights turn on
instantly and turn off reliably when the handler expires.

Change-Id: I634f64656a016688f28d481be1a36436e9272e67
2026-02-02 12:29:32 +01:00
armdebug
08d362480a sm8150-common: parts: Update popup camera setting icon from Material Icons
Change-Id: I40d0b2ea32bce7690d5d340727abe114fba9086d
2026-02-02 12:17:04 +01:00
armdebug
3387a8b45b sm8150-common: parts: Drop redundant WAKE_LOCK and GET_TASKS permissions
Change-Id: Id6a1b13978b12e6178f58f272441ce726353a2f5
2026-02-02 12:16:50 +01:00
basamaryan
5933954e4a sm8150-common: parts: Move popupcamera strings to devicesettings
Change-Id: I5378f2527068fd64ca3551a7666826e7b8a3816f
2026-02-02 12:16:37 +01:00
armdebug
4bc08feacb sm8150-common: parts: Use SimpleSummaryProvider for ListPreference
Setting the summary with string formatting (%s) is deprecated.

Reference: https://developer.android.com/develop/ui/views/components/settings/customize-your-settings#summaries
Change-Id: I70b186738814bdab486e3f1892f34a9ab3a48e46
2026-02-02 12:16:23 +01:00
Bruno Martins
03ad842f1e sm8150-common: parts: Apply Expressive theme
Change-Id: I03c814b97c8401428f2b358d065a99503df9d1cc
2026-02-02 12:16:09 +01:00
Bruno Martins
6886935e1a sm8150-common: parts: Convert for M3E support
Change-Id: Ib4d1088f5be3fc2b5c2ff90d5cd1b86603551037
2026-02-02 12:15:58 +01:00
Bruno Martins
22612fcbe7 sm8150-common: parts: Fully migrate to AndroidX
Change-Id: I873a18de1b7382ee9dc0be4da0ff53192a99b1db
2026-02-02 12:15:43 +01:00
Bruno Martins
22decdfedc sm8150-common: parts: Clean up imports
Change-Id: I483a137865e0e558ecadfb1ed25d0f46daf0f3b2
2026-02-02 12:15:31 +01:00
53f0356512 sm8150-common: parts: Move to PreferenceFragmentCompat
PreferenceFragment was deprecated in API level 28.

https://developer.android.com/jetpack/androidx/releases/preference#1.1.0

Change-Id: Ie8a4b04bd588afbbbc5882349ddbc05f988f80bf
2026-02-02 12:15:18 +01:00
Michael Bestas
e094abf162 sm8150-common: parts: Convert to SwitchPreferenceCompat
Change-Id: Ic1cbaba37d499da1855af9c3930f2df426e2d3af
2025-10-30 14:21:32 +00:00
Peter Kalauskas
9d2c099eef sm8150-common: parts: Enable use_resource_processor for all sysui deps
This will make the build faster

Test: m checkbuild
Bug: 295208392
Change-Id: I0c1bd901429bbe3bf81c1530e156735f8637a96e
2024-03-31 17:00:20 +02:00
Micheal
7af27d7598 sm8150-common: parts: Add an exported flag in manifest
Targeting S+ (version 31 and above) requires that an explicit value
for android:exported be defined when intent filters are present

Change-Id: I12d27c23624eb5259da582b86ac1bd7572754f0c
2024-02-26 01:29:46 +01:00
Arian
17c41d1446 sm8150-common: parts: Target current sdk
Change-Id: Ia623282960775569325714ab3bff5ad027776352
2024-02-26 01:29:46 +01:00
Sebastiano Barezzi
a5c4bbe135 sm8150-common: parts: Drop doze related features
Change-Id: I01c86719c6a9608fef6c24504325f603af6f0d9e
2023-08-18 22:57:21 +02:00
Bruno Martins
787cf1f7a7 sm8150-common: parts: Fix compilation for QPR1 merge
Change-Id: I71ad7db85592ca18e3f0f8155bba5a472bfadbaa
2023-04-10 00:35:56 +02:00
Sebastiano Barezzi
cac09267bc sm8150-common: parts: popupcamera: Fixup calibration handling
* Don't call getMotorStatus() when we already got its result before
* Don't try to take back the motor if popup is jammed at boot
* Catch all exception in updateMotor() thread

Change-Id: I9ca8b9163a0cc8ab17c8f6465c155adf1bb204f2
2022-07-06 22:04:53 +02:00
Arian
9b9f6cc449 sm8150-common: parts: popupcamera: Delay creating MotorStatusCallback when the motor is opened
* Give the motor enough time to close in case it was
  still opened on boot without showing the error dialog.

Change-Id: Ibc00a999858f5067bbcf07bfecc779f1d0bf3664
2022-07-06 21:58:07 +02:00
Arian
b50bb55972 sm8150-common: parts: popupcamera: Directly takeback the motor if it's not closed on create
* using updateMotor does not make sense here because it
  would only close it when the state is MOTOR_STATUS_POPUP,
  but we explicitly also want to try to take it back when
  it's jammed.

Change-Id: I7594fe01266a514a9fd780d17a91b0c7f957a1e1
2022-07-06 21:58:07 +02:00
Arian
06827afc56 sm8150-common: parts: popupcamera: Quickly takeback the motor in free fall
Change-Id: Ib31f4cf5b1de4cd9366b3d15945749a53d260690
2022-07-06 21:58:07 +02:00
Sebastiano Barezzi
e18c031494 sm8150-common: parts: popupcamera: Fix missing title in popup settings
Change-Id: If179cbb1330c584dccc13101031353c53b26b932
2022-07-06 21:58:07 +02:00
Sebastiano Barezzi
64d68b4827 sm8150-common: parts: popupcamera: Remove unused strings
Change-Id: I315629264b84b268efc07e8d80316d2c301d629d
2022-07-06 21:58:07 +02:00
Sebastiano Barezzi
f57beb5122 sm8150-common: parts: popupcamera: Stop using proximity sensor
* raphael has an ultrasound proximity sensor

Change-Id: Iba2a4a61ca1a9d99c33544a5a75c884cabce69e8
2022-07-06 21:58:07 +02:00
Sebastiano Barezzi
4313a0266b sm8150-common: parts: popupcamera: Correct popup light nodes for raphael
Change-Id: Ib53e0144f06194be4681e932d3ddb644c947dc5d
2022-07-06 21:58:07 +02:00
Sebastiano Barezzi
089a736146 sm8150-common: parts: popupcamera: Simplify popup lights handling
Change-Id: Iec6cabeda716ad318135e1d90e48b1200e699751
2022-07-06 21:58:07 +02:00
Sebastiano Barezzi
9ace462bdb sm8150-common: parts: Don't explicitely set android:theme for activities
* Will use application one

Change-Id: Ic570765c3d922e95393198d001c722256f1334a0
2022-06-29 14:25:34 +02:00
Sebastiano Barezzi
b311b7c537 sm8150-common: parts: Remove onOptionsItemSelected
* Missed on I87af15f5e165aa7bcd556eb2b716c0ce624ca4e7
* Causes popup settings crash

Change-Id: I5e9288cbde60b09ba2fe9a0ada63466197d5783d
2022-06-29 14:25:34 +02:00
Sebastiano Barezzi
f6f8c4e56f sm8150-common: Import XiaomiParts from sm8250-common
* As of 3f51ae9799
* Minus thermal implementation

Change-Id: Ic48d1a02e875b2c7a5146608745a7d7a63499901
2022-06-23 17:43:14 +02:00