Commit Graph

34 Commits

Author SHA1 Message Date
Arian
3182cdfce9 sm6150-common: parts: Semantic fixes
Change-Id: I26ad700931e8b104ee21666eff1ce73eafbac56d
2021-12-29 10:11:12 +00:00
Arian
0a41f5cd2a
sm6150-common: parts: AodSensor: Remove useless SystemClock include
Change-Id: Iad54508f27fe2ef45af58e9b10655ee673d53ae1
2021-08-24 11:54:34 +02:00
Arian
18ee1a3486
sm6150-common: parts: Rename doze brightness to always on brightness
Change-Id: I0950ee3d5b4bae6ada1a8defcd6a13c20ae222a9
2021-07-12 18:26:36 +02:00
Arian
67e472edba
sm6150-common: parts: Ensure doze_mode is set to LBM when disabling AOD
* When setting the doze mode to HBM, disabling AOD and enabling it again
  the doze mode was still set to HBM but the listpreference was reset to
  LBM.

Change-Id: Ibd9682c97757335ac4df48a21c7b64f7b36dd585
2021-07-12 18:23:26 +02:00
Arian
7764bbddc7
sm6150-common: parts: Hide doze brightness if it is not supported
Change-Id: Ib88dd2db8c872ebb2d4daf3f3b0c996d766dfd9e
2021-07-03 21:36:12 +02:00
Arian
10f101e143
sm6150-common: parts: Enable doze_status on screen off
* This allows to enter the doze state faster when unlocking from lockscreen

Change-Id: I1900436c974a605555275ef67b283ead2cf720b5
2021-07-03 21:23:39 +02:00
Arian
dd8b25b294
sm6150-common: parts: Set default doze brightness icon
Change-Id: I9d6b4b045af4a0e3a8865e17fc88b72e93c9c711
2021-07-03 21:23:39 +02:00
Arian
8720bb5de8
sm6150-common: parts: Add support for zero brightness doze mode
Change-Id: I027f7d1b3787b5b7140315ca6dced19a1f93361c
2021-07-03 21:23:37 +02:00
Arian
727405d31d
sm6150-common: parts: Implement doze modes and auto brightness
Change-Id: I03888d1997b09cb539952dfed935a7ace5e3444c
2021-07-03 21:23:14 +02:00
Luca Stefani
c202629e95
sm6150-common: parts: Add local FileUtils
Change-Id: I5e06015c8ea65399bb3643183dd17641ca0d3ad7
2021-07-03 20:40:16 +02:00
Arian
93ca9d0fe5
sm6150-common: parts: Move doze gestures into a preference category
Change-Id: I9ab73bcc8c590e6f93106922ecf4830f558ffcb3
2021-07-03 20:40:00 +02:00
Arian
302ce901c0
sm6150-common: Strip popupcamera from parts
Change-Id: I379111b22be9062ee797979960feb3087299cffa
2021-04-25 15:23:51 +02:00
Bruno Martins
01ac282586
sm6150-common: parts: Use all shared resources from devicesettings
Change-Id: Icd7f381c574ea36eb4d797cefd60ba9f1a0941bd
2021-04-25 15:18:41 +02:00
Arian
472e0182dc
davinci: parts: Restore the LED's previous state after popup
* We are using the left led as notification LED and hence it
  could be breathing or shining while we open or close the
  camera. So we don't just set it's brightness to 0 but read
  and store the state of the LED before enabling it and
  restoring that afterwards.

* To ensure that the left LED is shining while the camera
  opens or closes we set it's breathing effect to 0 before
  enabling the LEDs.

Change-Id: Ibdfbff3072398bc77ec3257b60622cfc50e8d857
2020-12-17 23:30:59 +01:00
Arian
1db9129db8
davinci: parts: Allow to wake the screen instead of pulsing
Co-authored-by: Nauval Rizky <enuma.alrizky@gmail.com>
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I1e74f8eafa51843e77d2d8c514c646a4494327cd
2020-11-28 18:12:03 +01:00
Arian
fed308cae8
davinci: parts: clang-format everything
Change-Id: Iae92b7197a58b4353dafa7e24d67ebb5f096f2b5
2020-11-28 18:12:03 +01:00
Arian
a5fe3b11a6
davinci: parts: Always show the warning dialog
Change-Id: I979cc479ee928edf0e203489264df340326fbf5b
2020-11-28 18:12:03 +01:00
Arian
d738bb5729
davinci: parts: Add a warning dialog for manual calibrations
Change-Id: Id764e1cbe1a8c535c0039938097465d9a0dcd02b
2020-11-28 18:12:03 +01:00
Arian
cf282db685
davinci: parts: Add a setting to calibrate the motor
Change-Id: I9f76124759bf8497b5cd72293b5c36f85b4d1787
2020-11-28 18:12:03 +01:00
Arian
236c8747e3
davinci: parts: Quickly takeback the motor in free fall
Change-Id: Ib31f4cf5b1de4cd9366b3d15945749a53d260690
2020-11-28 18:12:03 +01:00
Arian
4f2af261f3
davinci: parts: 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
2020-11-28 18:12:03 +01:00
jhenrique09
027a842a58
davinci: parts: Implement popup motor calibration
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: If1f6c757cbf521fd27f7124284f40ea602f53ba8
2020-11-28 18:12:03 +01:00
Arian
169d43565e
davinci: parts: 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
2020-11-28 18:12:03 +01:00
Arian
4df3381a1d
davinci: parts: clang-format
Change-Id: I90c5c1f9529277821cd3a05ba4861588e8a6f323
2020-11-28 18:12:03 +01:00
Arian
358b4e7a2b
Revert "davinci: parts: Try to take the motor back on boot when opened"
This reverts commit b4dca743ea.
2020-11-28 18:12:03 +01:00
Arian
5c58f2e504
davinci: parts: Adjust for new led labels in kernel
Change-Id: I8ce322f58d2af6fee20f1a9eda91e68b0ec59b05
2020-11-28 18:12:02 +01:00
Arian
3df219168d
davinci: parts: Add icons for popup settings
Change-Id: I30dffa4f9e91d9b76a1d8daefd1da8449bac19bc
2020-08-05 14:03:31 +02:00
jhenrique09
b4dca743ea
davinci: parts: Try to take the motor back on boot when opened
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I36ff53e23221b6704f0fa5e108329722cf71f504
2020-08-05 14:03:31 +02:00
jhenrique09
619c58031f
davinci: parts: Check if motor is busy before doing any operation
Change-Id: I83e383d5f6d3d8e723259bc55945aab48e5acd6c
2020-08-05 14:03:31 +02:00
jhenrique09
65c44dd66e
davinci: parts: Add popup camera sound effects and LED toggle
Change-Id: Iaf66650ae68d2680fa0c9b933f2c4e634bc21e74
2020-08-05 14:03:31 +02:00
TheScarastic
932a2bcad0
davinci: parts: Add support for camera popup light
Change-Id: I531123cc6db5e823490c0c5bcf31bafe068a49f5
2020-08-05 14:03:31 +02:00
TheScarastic
89e3be0eee
davinci: Initial popup camera impl
Change-Id: I9b34ec87715febedfe173e9f9ef5ccdbf7521f35
2020-08-05 14:03:31 +02:00
arian
5d15a19de5
davinci: parts: Add icons for doze
Change-Id: Ibbb18065f97ed6f8f5376752495255aeafe1db82
2020-08-05 14:03:31 +02:00
Arian
8b5675114b
davinci: parts: Import from xiaomi_sdm845-common
e261035d91/parts

Change-Id: I442f48780ca020f3e420ee4ccaf8ac07b05457cb
2020-08-05 14:03:31 +02:00