Commit Graph

324 Commits

Author SHA1 Message Date
Przemyslaw Brudny
06e876721c [EGD-6877] Fixed failing i18n tests
Fixed failing i18n tests caused by change in
setDisplayLanguage return value.
2021-06-01 15:49:15 +02:00
Lukasz Skrzypczak
40530e39aa [BH-399] Cleaning
Cleaned to match newest master
2021-05-28 19:29:04 +02:00
Artur Śleszyński
fbb820c284 [BH-357] Move protobuf to third-party dir
* Use the CMakeLists.txt from lib authors.
* Disable building libprotobuf in the all target.
* Disable warnings in the libprotobuf-lite target.
2021-05-28 15:00:31 +02:00
DariuszSabala
e6e9a79fa5 [BH-397] Move TPLIB parallel-hashmap
Changed submodule directory and changed way its linked,
in order to use target_link_libraries checkouted phmap
dependency to the newest revision which includes small
cmake fixes (see 031d214f2ce1973933abdf2a998d986ff8094d8e),
updated paths in PureCoverage script and Doxyfile
2021-05-28 13:51:49 +02:00
Pawel.Paprocki
b969442853 [BH-365] Move TPLIB (tinyexpr) to separate directory
Move library, amend CMAKE files
2021-05-28 13:05:32 +02:00
Alek Rudnik
93c4675d1d [EGD-6701] System time usage fixes
Fixed all calls to stdlib time.
Removed all redundant calls to Timestamp treated as time source.
2021-05-27 16:54:44 +02:00
Mateusz Grzegorzek
b4a40bd21c [BH-398] Move sml to a separate directory
Move sml to a separate directory
2021-05-27 10:11:24 +02:00
Jakub Pyszczak
d724442366 [EGD-5171] Utils to string fix
Fixed utils to string function to work with 8 bit integers.
Also nodiscard attribute added there.
2021-05-26 13:52:50 +02:00
DariuszSabala
2d164b9690 [BH-359] Move TPLIB pugixml to separate dir
Changed submodule directory and updated cmake scripts and include paths
2021-05-26 13:34:18 +02:00
Mateusz Grzegorzek
798a2fb45a [BH-361] Move date to separate directory
Move date to separate directory
2021-05-25 10:21:46 +02:00
Pawel.Paprocki
040550f3b7 [BH-356] Move TPLIB (microtar) to separate directory
Move microtar to lib, amend CMAKE files
2021-05-24 09:44:29 +02:00
Borys Jelenski
cbbd94719d [EGD-6605] Fix RTC time not retained between resets if set manually
When setting datetime from timestamp (manually, not from network),
SRTC is set in order to retain the RTC datetime between resets.

RTC handling was refactored in order to get rid of unnecesary
conversions and third-party code mixed with proprietary code
within a single file.
2021-05-24 04:54:02 +02:00
DariuszSabala
339f3d52fa [BH-364] Move TPLIB magic_enum to separate dir
Changed submodule directory and updated cmake scripts and include paths
2021-05-21 11:12:20 +02:00
Wiktor S. Ovalle Correa
b2ca227fd5 [EGD-6746] Use new SimCard implementation
Switch to SimCard implementation provided by previous commit
2021-05-20 17:52:48 +02:00
Lucjan Bryndza
9b2dedadf5 [EGD-5915] Fix parse boot.json
boot.json should't be modified by the MuditaOS
and it also causes issue with broken boot.json
after update

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-05-20 16:03:11 +02:00
Pawel.Paprocki
ce82aad981 [BH-358] Add Move TPLIB (CRC32) to separate directory
Change directory location and update CMAKE
2021-05-19 12:25:37 +02:00
Maciej Gibowicz
06fa920e20 [EGD-6768] Disable logs in interrupts
Temporarily disable logs in interrupts
for heap overwriting reasons
2021-05-19 09:05:16 +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
Przemyslaw Brudny
bcdaf15ed1 [EGD-6740] Availability and Change handled by PhoneLockHandler
Availability and Change in phoneLock handled by
PhoneLockHandler. Removed old implementation from
onBoarding and Settings. Cleared language assets.
2021-05-14 13:07:49 +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
Maciej Janicki
c88c82ae86 [EGD-6319] Refactor cellular modem directory
- Removed not used files from old implementations.
- Renamed some classes to follow naming convention.
- Renamed methods to use consistent styling.
- Restructured code.
2021-05-05 16:34:35 +02:00
Marcin Smoczyński
6c52780fdb [EGD-6496] Add basic sample rate transcoding
Add basic interpolator and decimator to change sample rates by a factor
of a prime number. Interpolator repeats samples forming a stair signal,
while decimator drops excessive samples.

Templates have been used to utilize fast integer operations contrary to
byte-by-byte operations for number of bit width vs channel count
combinations.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-04-28 12:44:30 +02:00
Maciej Janicki
ea27e68716 [EGD-5748] Remake Cellular flow
This commit remakes cellular data flow
introducing full error propagation.
2021-04-23 15:03:08 +02:00
Adam Dobrowolski
940989833f [EGD-6527] Internationalization API unification
Single api to rule i18n
all calls to localistaion in cpp files unified
cut off ass many dependencies in i18n header as possible
2021-04-20 20:07:44 +02:00
Wiktor S. Ovalle Correa
10a2c37969 [EGD-3649] Fix paths in UT
Reorganization of assets left path in UT outdated.
2021-04-20 16:45:27 +02:00
Jakub Pyszczak
6be93bef43 [EGD-6166] HSP ringing
Added HSP ring sound on incoming call event while
there's bluetooth connection active and HSP is
selected as the current profile.
Possibility of pick up/decline the call using
BT device buttons added.
Slightly changed HSP initialization according
to the UML-s added.
Changed call hangup handler in service cellular.
2021-04-20 10:29:30 +02:00
Marcin Smoczyński
332aed9365 [EGD-6507] Enable per-module testing
Add per-module:
 - test build
 - test execution
 - coverage reporting (xml/html).

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-04-13 15:16:59 +02:00
Marcin Smoczyński
8b21df135c [EGD-5742] Add audio format checking
Check if decoder's file format is supported by the sink audio device
before playing the sound. Add list of supported formats to each of audio
devices.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-04-12 10:00:00 +02:00
Marcin Smoczyński
763cdbf3a0 [EGD-5567] Add code coverage reporting
Add HTML and XML code coverage report generation with gcovr.

Cleanup unittests list - add missing googletest-gui to the unittests
list; remove dead functional tests.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-04-08 23:48:22 +02:00
Artur Śleszyński
33d652c1a1 [EGD-6156] Create crash dumps
Integrate the CrashCatcher library in order to store phone state after
a fault occurs. The dumps are stored in the CrashCatcher hex format and
can be debugged using the CrashDebug stub built for x86_64 via the
'debug_crash_dump.sh' script.
2021-04-02 14:58:42 +02:00
Przemyslaw Brudny
3cb0a31904 [EGD-5913] Fixed language assets fallback load
Fixed language assets fallback load bug causing invalid
information display on startup.
2021-04-02 12:32:12 +02:00
Wojtek Rzepecki
232d0b4b2e [EGD-6101] Add low battery start prevention
Device will be shutdown after
startup if SOC will be below
shutdown level
2021-03-25 18:15:13 +01:00
Alek Rudnik
6e106deb29 [EGD-6455] Disable service audio debug loggs
They were too much of them
2021-03-23 18:17:01 +01:00
Adam Dobrowolski
f08acdcc78 [EGD-6079] Moved at factory from header to cpp file
- data moved to std::initializer_list no issue warned with tools
- GCC tools do not warn issues with memory now
2021-03-19 16:06:12 +01:00
Marcin Smoczyński
c16917ef2f [EGD-3819] Reduce taglib size
Reduce taglib size by cutting off support for file types that are not
supported by MuditaOS.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-03-19 12:48:54 +01:00
Mateusz Grzegorzek
16763ee2ef [EGD-4593] Add Logging Engine docs
Add Logging Engine docs
2021-03-19 11:03:27 +01:00
Michał Kamoń
dfcf9817b7 [EGD-5790] Fix end of line display in message thumbnail
Original problem was that '\n' character was displayed as `[]` in
message thumbnail. After consulting Design-Team thumbnail should not
display anything succeeding problematic character.
2021-03-18 09:50:32 +01:00
Mateusz Grzegorzek
a60e27fa4b [EGD-4593] Dump logs to file on timeout
- Dump logs to file every 10 sec.
- max file size is 50 MB
  (after reaching it, no more logs will be logged),
- Add `LockGuard` with locking mechanism
  supporting IRQ and use it in `Logger`.
- Fix minor style issues in `Logger`.
- Add `mount_user_lfs_partition.py` script for mounting LFS on Linux FS
  in order to get `MuditaOS.log` file from `user` partition
2021-03-17 16:33:02 +01:00
Adam Dobrowolski
ad136fbb84 [EGD-6078] Limited logs from Settings and Service messages
* Right now there is too much spam. These logs can be enabled with
  build flag
* Fixed clang-tidy warnings on Settings
2021-03-09 12:57:47 +01:00
Mateusz Grzegorzek
def5dbcfa9 [EGD-5908] Fix bug in Logger + add log unit test
Because `vsnprintf` return value means:
"
The number of characters that would have been
written if n had been sufficiently large,
not counting the terminating null character.
If an encoding error occurs, a negative number is returned.
"

`Logger` crashed when log msg was longer than LOGGER_BUFFER_SIZE.
Checking `vsnprintf` return value solves this issue.
2021-03-05 09:06:39 +01:00
Alek Rudnik
7ccc68c202 [EGD-5832] Status bar widgets refactor
Status bar SIM widget refactor
Status bar time widget recfactor
Status bar lock widget refactor
Separation of status bar time widget and desktop main window time widget
Fixed issue with wrong calculation of timezone based time
2021-03-03 13:37:11 +01:00
Adam Dobrowolski
30fde886e4 [EGD-5326] Fixed AT commands harness utility
We can now use test harness to send and check at commands
2021-03-02 14:49:50 +01:00
Adam Dobrowolski
324a40252d [EGD-5326] Fixed system messages logging crash
with messages debug utility and error on memory there  was crash
2021-03-02 14:49:50 +01:00
Lucjan Bryndza
194368db9d [EGD-5047] Add support for newlib time
Add support for newlib time standard syscalls.
2021-03-02 10:20:41 +01:00
Radoslaw Wicik
9d8eff64fc [EGD-5860] Fix build packages
Merging and cleaning cmakes requred cleaning.
2021-02-26 14:20:11 +01:00
Marcin Smoczyński
080a2bfe8f [EGD-5760] Add option to use minimal metadata
Add a possibility to use a minimal version of libphonenumber's metadata
to reduce firmware size in debug.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-02-24 20:17:51 +01:00
Wiktor S. Ovalle Correa
1d4ed26f41 [EGD-5870] Fix filesystem remounting
Skip remounting if a filesystem is already R/W
2021-02-24 16:36:51 +01:00
Wiktor S. Ovalle Correa
d16947c8b7 [EGD-5737] Fix compilation issues after merge
Master was using some fetures removed by new filesystem
2021-02-23 18:11:35 +01:00
Wiktor S. Ovalle Correa
fe72169338 [EGD-5737] Merge master into experimental
Synchronize with master before merging
2021-02-23 18:10:52 +01:00