Commit Graph

33 Commits

Author SHA1 Message Date
Lukasz Mastalerz
d9a1194e6f [BH-1688] Create a standard for logs
* Adding document describing how to use logger
* Adjusting logs to follow a new guide
* Change order in log header:
  line number is now before function name
2023-10-23 15:17:44 +02:00
Lefucjusz
ebcd139412 [CP-1962] Add Harmony color detection
* Added serial number based Harmony color
detection.
* Unified serial number handling for both
products.
2023-06-06 14:37:52 +02:00
Mateusz Piesta
5af5c740d4 [MOS-807] Removed read code
Removed dead code
Fixed Harmony relaxation app assets path
2023-01-19 16:41:56 +01:00
Mateusz Piesta
0a9846e4a8 [MOS-694] Move DB initialization from OS to build scripts
* Switched to DB initialization at compile time
* Organized and cleaned up db files directories(not finished completely)
* Fixed DB related unit tests
* Minor improvements to CMake
* Small fixes for GCC12 build
2023-01-19 16:41:56 +01:00
Mateusz Piesta
7cbfd6a984 [BH-1356] Meditation stats backend
Added meditation statc backend.
Added temporary widget for testing
purposes and corresponding modules
(meditation stats presenter, window,model).
2022-07-25 09:05:05 +02:00
Mateusz Piesta
2f42cd5e73 [BH-1424] FreeRTOS update
Updated FreeRTOS source code to 10.4.6.
Moved FreeRTOS sources to the third-party directory.
Added necessary changes to the CMake configuration.
Split FreeRTOSConfig.h. From now, each board has its own.
Added missing log headers.
Minor refactor of the module-os cmake.
Fixed stack overflows in bell application main and time service.
2022-04-07 13:31:28 +02:00
Alek Rudnik
1666429e07 [EGD-7584] Fix OS factory reset
There was an issue that we were deleting files which were still open.
Added removed of FI .indexed file.
2021-11-02 16:45:04 +01:00
Mateusz Piesta
58b8297b99 [BH-660] Alarm tone playback
Implemented tone playback handler.
Added product specific databases.
Fixed minor issues with CMake.
Minor refactor of alarm handlers.
2021-09-07 08:24:22 +02:00
Jakub Pyszczak
c494f5c1b4 [EGD-7006] Removed sensitive data from db
Sensitive data removed from logs in module db and service db.
2021-06-30 15:52:47 +02:00
Jakub Pyszczak
e2863061e0 [EGD-6932] Small cellular refactor
Refactor regarding https://github.com/mudita/MuditaOS/pull/2226.
2021-06-15 12:50:44 +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
Przemysław Brudny
e71a044bd3 [EGD-6019] Revert of two commits
This reverts commit b6416b15da.
This reverts commit e2f3882d8a.
2021-05-14 09:54:36 +02:00
Adam Dobrowolski
b6416b15da [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
2021-05-13 18:22:44 +02:00
Tomasz Sobkowiak
b39dd15bf3 [EGD-6519] Initialize settings database with factory data
Put factory values from personalization.json into settings db
2021-04-22 19:13:45 +02:00
Michał Kamoń
a4e67c780e [EGD-4410] Fix passcode change causing unlocking problem
This PR solves problem with unlocking and invalidity of password
after password change. It also refactors `SettingsAgent` implementation
to reduce unnecessary data copying.
2021-03-03 10:33:50 +01:00
RobertPiet
57705abc58 [EGD-5995] Settings entry path parser fixed
Fixed: get value from setting when creating cache
Fixed: path parsing
Fixed: request settings value from db
Fixed: sql init script
2021-03-03 09:53:45 +01:00
RobertPiet
00fde83a0a [EGD-5808] Introduce cache for Settings
Settings Cache introduced
2021-02-25 18:28:31 +01:00
Piotr Tański
bc4d32c7d8 [EGD-5158] Change access to the bus methods
The bus is now accessible only via Service object.
2021-02-08 16:56:42 +01:00
Radoslaw Wicik
bb496101b2 [EGD-4763] Add check if all Unit Tests where run
Catch2 doesn't report some errors in test, and some test are
disabled on porpoise this commit adds set of scripts and changes to CI
that will clearly mark what test haven't been run.
2021-02-04 16:45:50 +01:00
RobertPiet
cd1012669c [EGD-5118] Settings api tests dependencies updated
Temporary test for ASAN error.
Stub Database introduced to cut the connection SettingsAgent to
sqlite for UT.
Settings ut moved to other directory - new target.
File_indexer UT fixed.
Alarms, Notes and Query UT missing initialization of vfs.
2021-02-04 16:45:50 +01:00
RobertPiet
b6a46e879d [EGD-4960] registerVariableChange moved to Init section of apps 2021-01-22 10:11:37 +01:00
RobertPiet
fb36efb873 [EGD-4960] Settings Interface added parameter do distinguish global/app settings
[EGD-4960] global/local setting determined by enum value, unregister all variables in one call, ut updated
[EGD-4960] SettingsScope usage in SettingsMessages
2021-01-22 10:11:37 +01:00
jimmorrisson
6ce0dc4df3 [EGD-4751] Change: new filesystem handling implementation in module services. (#1151)
Due to vfs deprecation there is need to remove all vfs calls from code. This PR covers module services. It also contains minor fixes in module-services.
2020-12-10 21:04:51 +01:00
RobertPiet
6b66737b13 [EGD-4354] settings starting script moved to two separated scripts (#1067) 2020-11-27 11:38:40 +01:00
RobertPiet
5d3ee6b275 [EGD-4383] Settings moved from namespace Settings to namespace settings (#1007)
* [EGD-4383] Settings moved from namespace Settings to namespace settings
2020-11-20 12:33:45 +01:00
RobertPiet
5a8ae75844 [EGD-4448] ssettings variable register fixed (#1045) 2020-11-19 12:41:59 +01:00
Lucjan Bryndza
707b31ac3e [EGD-4264] directory reordering (#1001)
* [EGD-4264] VFS directory reordering

Currently VFS uses flat directory structure
for disc manager I need more sofisticated directory layout

* [EGD-4264] Remove redundant -Wno

* [EGD-4261] New purefs API

* [EGD-4264] Unittest fixes

* [EGD-4264] Directory relativity

* [EGD-4264] Relative path fixes

* [EGD-4264] Fix RT1051 compile errors

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-11-16 12:11:24 +01:00
Radoslaw Wicik
998ceac48e [EGD-4217] Convert service-db to library 2020-11-13 12:18:33 +01:00
Piotr Tanski
22102c4ba5 [EGD-4200] Message handling refactored. (#974) 2020-11-06 15:24:59 +01:00
RobertPiet
58068535d9 [EGD-4053] unit tests framework for Settings (#864)
[EGD-4053] update queries

[EGD-4053] connect Settings, SettingsAgent, SettingsMessages and queries

[EGD-4053] change settings interface to async

[EGD-4053] mock-logs.cpp commented out -duplicated symbol in linking

[EGD-4053] review issues solved
2020-10-30 15:14:08 +01:00
Radosław Wicik
d5de12f7ce [EGD-3852] clean include in service (#928) 2020-10-28 15:19:24 +01:00
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Pawel Olejniczak
daa953176f [EGD-3793] Add DatabaseAgent base class and SettingsAgent
[EGD-3793] Update SettingsWorker to make it work.

[EGD-3793] Rename worker to agent
2020-10-06 10:21:18 +02:00