Commit Graph

15 Commits

Author SHA1 Message Date
Lefucjusz
181feb4f40 cleanup 2024-08-20 15:40:34 +02:00
Lefucjusz
df6d7848f5 [BH-2056] Add bedside lamp settings
Added possibility to customize
brightness and activity time
of bedside lamp functionality.
2024-08-19 15:58:30 +02:00
Adam Wulkiewicz
fe708cdf31 [MOS-670] Change clang-format AlwaysBreakTemplateDeclarations to Yes
Add --all and --fix-all options to style-check-hook
2022-08-26 15:22:39 +02:00
wojtekrzepecki
8513eaaef5 [EGD-7900] Fix backlight behavior
Cumulated fixes for both screen and keypad light
2021-11-23 09:15:45 +01:00
Piotr Tański
39718a08ea [BH-903] Pre-wake up frontlight
Implemented a frontlight handling for the pre-wake up.
Major clean-up of the frontlight implementation.
2021-10-13 19:28:53 +02:00
Marcin Smoczyński
958ce4906c [BH-897] Split module-sys
Split system module to better manage dependencies between system
components.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-21 16:11:59 +02:00
Michał Kamoń
ce0cb23abd [EGD-6794] Fix display light settings
This commit provides the flowing fixes in display light functionality:
 - Settings-path bug causing lack of display light settings on "fresh"
 image. Solved with proper paths definition
 - Invalid settings after phone restart. Solved with proper handling
 of enums and booleans on the Event manager side.
 - No turning off light just after turning on light functionality with
 manual brightness setting in ApplicationSettings bug (required
 another key press to start timer that turns off the light after 5s).
 Solved by starting timer explicitly on Action::turnOn
 - No turning off light just after turning on the phone bug (required
 --as above --). Solved by starting timer explicitly on `Settings
 ValueChange` callback with Action::turnOn.
 - No autoMode until user entered `AppSettings::DisplayLight` Window.
 Bug caused by curve parameters being provided by the window rather
 than on the functionality back-end initialization.

 Commit also provides some code cleanup
2021-05-31 10:43:26 +02:00
Adam Dobrowolski
b38adceced [EGD-6019] Minimum settings ownership lifetime fixups
added weakptr link to settings and checks
    it wont crash on deinitialized setings now
Pseuto UT are passing
Added:
    - deregistration on Settings destrution
    - weak referencing of Service to not crash Settings on missuse
    - Proxy as initialization parameter to Settings
Unused code removed
Enabled tests to be written for Settings
Removed dependency from freertos in test global file
EntryPath tests updated and compilation slimed
2021-05-18 13:25:54 +02:00
Jakub Pyszczak
b823992837 [EGD-6655] Screen light when active
Added enabling screen light if there was any key pressed
and screen light controler is in the automatic mode.
Added screen light disabling after 5 seconds of timeout
without any key being pressed.
2021-05-14 11:42:43 +02:00
Pawel.Paprocki
9ae8d0f156 [EGD-6313] Fix Display backlight settings are not presistent
Add global scope to settings db function calls
2021-04-20 16:17:08 +02:00
Piotr Tański
efef7dcf7f [EGD-6111] Timers refactored
Deep refactor of system timers.
2021-03-19 14:09:35 +01:00
Wojtek Rzepecki
7513629c0c [EGD-5028] Add batt critical level db
Battery critical level sotred in
database.
2021-02-16 14:59:43 +01:00
Tomek Sobkowiak
edb144eba1 [EGD-5347] Save/load brightness mode
Properly display mode as OnOff switch on screen.
2021-01-21 17:51:36 +01:00
Przemyslaw Brudny
9645fbc278 [EDG-4717] Add screen for brightness control
Window for manual and automatic screen brightness control.
2021-01-19 12:09:36 +01:00
wojtekrzepecki
a63628adcd [EGD-4657] screen light control test (#1186)
* [EGD-4654] Light control first working

* [EGD-4654] Extended interface with custom brightness function

* [EGD-4654] Extended set of actions

* [EGD-4654] Fixed timer issue + cleanup

* [EGD-4654] Improving switch-case logic

* [EGD-4654] Moved keypad light control to previous state

* [EGD-4654] Refactor in screen light message

* [EGD-4654] Documentation work

* [EGD-4654] Extension of docu

* [EGD-4654] Typo fixing

* [EGD-4654] More improvements in doc

* [EGD-4654] Doxy generation fixes

* [EGD-4654] Pre pr cleanup

* [EGD-4654] PR comments pt 1

* [EGD-4654] Docu small change

* [EGD-4657] Added tests and fixes

* [EGD-4657] Tests refactor

* [EGD-4657] Proper destruction of timers

* [EGD-4657] Spelling fixes

* [EGD-4657] pre pr cleanup

* [EGD-4657] Build fix

* [EGD-4657] Pr changes pt 1

* [EGD-4657] PR refactor - extracted control algorithm to separate module

* [EGD-4657] Adapted tests to new structure

* [EGD-4657] Cleanup

Co-authored-by: Wojtek Rzepecki <wojtek.rzepecki@mudita.com>
2020-12-14 15:41:02 +01:00