Commit Graph

280 Commits

Author SHA1 Message Date
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
Mateusz Grzegorzek
8f0797218f [EGD-5312] Add Time selection window
- add ChangeDateAndTimeWindow,
- extract EventTimeItem to common widgets folder
  and rename it to TimeWidget,
- extract EventDateItem to common widgets folder
  and rename it to DateWidget,
- replace timeWidget with common TimeWidget
  in NightshiftWindow,
- refactor time setting in
  DesktopMainWindow and TopBar,
- Remove dead code from EventManager
  (GetNextAlarmTimestamp and HandleAlarmTrigger)
2021-02-23 15:59:51 +01:00
Krzysztof Móżdżyński
ba8f0ac32d [EGD-5448] Add EULA window
Added EULA window required for onBoarding procedure.
Onboarding settings added.
2021-02-19 14:53:14 +01:00
breichel
1a165ee797 [EGD-5692] Change URC parsing mechanism
Improved the mechanism for processing URC messages
so that long messages and those containing end of line
inside messages can be handled also if income
in more than one data chunk.
2021-02-18 16:38:54 +01:00
Wiktor S. Ovalle Correa
18198ffa80 [EGD-5737] Fix filesystem unit tests
Remove old VFS and utils::filesystem calls
Update unittest lists
2021-02-18 14:48:52 +01:00
Wojtek Rzepecki
465159ed15 [EGD-5805] Fix not charging icon
Fix icons behavior in topbar.
When plugged and no charging
regular dischrging icon is
displayed.
2021-02-18 12:06:50 +01:00
Wiktor S. Ovalle Correa
c7b7cc4c27 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:10:32 +01:00
Wiktor S. Ovalle Correa
3b141041e9 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:09:37 +01:00
Wiktor S. Ovalle Correa
4614846d38 [EGD-5590] Fix boot config procedure
Boot config procedure was outdated and didn't actually work
2021-02-17 17:08:18 +01:00
Lucjan Bryndza
a53bd826c6 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:08:06 +01:00
Tomek Sobkowiak
be66c10888 [EGD-5347] Replace filelength with file_size
Replace use of filelenght with std::filesystem::file_size
sqlite3vfs is using file descriptors so filelength is just renamed
2021-02-17 17:07:41 +01:00
Borys Jelenski
0f0192a8b4 [EGD-5072] Refactor legacy VFS functions
Functions were refactored and renamed for better readability.
Some of them were moved to different files. In stat_vfs function
the order of member initializations was corrected.
2021-02-17 17:07:41 +01:00
Lucjan Bryndza
46f9cc7e10 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:07:23 +01:00
Lucjan Bryndza
9269d9c72e [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:06:50 +01:00
Lucjan Bryndza
dcc72e0bec [EGD-5332] Fix heap size and other merge fixes
After merge with master we are unable to run any application
It was caused by the insufficent heap size
2021-02-17 17:06:49 +01:00
Lucjan Bryndza
067ca94835 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:06:30 +01:00
Jakub Pyszczak
ff5ed529d3 [EGD-5163] Fix UT module-db
Convert module database tests to run natively on linux.
2021-02-17 17:05:31 +01:00
Lucjan Bryndza
37aee3901c [EGD-5165] Fix emulator crash on lfs and fat
Disk access was not protected by the mutex and race contition
occurs when multiple access was made for lfs and fat.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-02-17 17:05:31 +01:00
Jakub Pyszczak
5ad8a9bc65 [EGD-5145] Fix remove vfs include from UT
Deprecated vfs is no more accessible. Deleted old includes.
2021-02-17 17:02:15 +01:00
Lucjan Bryndza
32de9ec671 [EGD-5102] Fix compile on rt1051 platform
It is initial commmit which fix compilation after
vfs. global object removal. It still need implementation
newlib syscalls.
2021-02-17 17:02:15 +01:00
Lucjan Bryndza
bb06380ca1 [EGD-5737] Merge with master
Keep experimental up to date with changes from master
2021-02-17 17:02:01 +01:00
Lucjan Bryndza
6c4c4e8aef [EGD-5098] Fix and remove old vfs class
Fix and remove global vfs object remove all old data
included in the vfs.hpp class
2021-02-17 16:06:33 +01:00
Jakub Pyszczak
7e36ee7c19 [EGD-5088] Change new filesystem implementation
Removed deprecated vfs calls from all applications.
2021-02-17 16:06:23 +01:00
Piotr Tański
08e102303d [EGD-5697] Add helper functions for phone modes
They make it easier to write a code dependent on phone modes.
2021-02-16 14:05:42 +01:00
mkamonMdt
19a897cf65 [EGD-4604] Fix incorrect message UCS2 decode
The problem could be noticed in a incoming message that contained
emojis. All emojis we pushed to the front of a message, due to
separation on decoding of `uint32_t` chars 'larger' than `0xffff`
2021-02-12 08:09:27 +01:00
Przemyslaw Brudny
d0200de5d5 [EGD-5398] Added onBoarding application first version
Created first version of onBoarding application. Added welcome
window, configuration start window and adopted language
window. Small Icon GUI refactor. AppManager language copy removed.
2021-02-11 16:37:51 +01:00
Mateusz Grzegorzek
0b75c6299d [EGD-4873] Add colors to rt1051 logs
Bring back possibility to get colorful logs from rt1051.
Colored logs can be now turned on in runtime using
Logger::enableColors method.
2021-02-10 18:19:32 +01:00
breichel
f7a742d488 [EGD-4386] Add VoLTE on/off functionality
Modem setup so that VoLTE connection is possible,
as long as there is LTE coverage
and the operator allows it.
2021-02-10 13:33:08 +01:00
Maciej-Mudita
ec56afc933 [EGD-5381] Add Low Power Drivers
Peripherals clock synchronization dependent on PLL2
2021-02-10 08:46:13 +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
Radoslaw Wicik
49548152b6 [EGD-4763] Fix Unit Tests
First attempt, move vfs to be init in tests
2021-02-04 16:45:50 +01:00
Mateusz Grzegorzek
d87c69479f [EGD-5311] Create Date&Time main window
- add DateAndTimeSettings class and
  dateAndTimeSettings global var
  (cache for storing date and time related settings),
- add DateAndTimeChangeRequest messages and proper
  methods in app::manager::Controller for sending them,
- handle DateAndTimeChangeRequest messages in ApplicationManager,
- add SettingRightItem::Text case for OptionSettings
  to provide possibility to add text
  on the right side of particular option,
- rename fields in db (settings_tab table):
  gs_time_format_12 to gs_time_format
  and
  gs_time_date_format to gs_date_format
- create only main Date&Time window.
  Sub windows will be added in separate task.
2021-02-03 10:11:56 +01:00
Przemyslaw Brudny
fbfd08cfea [EGD-5523] ListView OnPageElement and Options refresh
Added new OnPageElement listView rebuild type. Created new
options refresh. Refactored DisplayLight Setting. BarGraph rector.
Added step render limit for small radius arcs.
2021-02-03 09:57:21 +01:00
Marcin Smoczyński
f1fc9df152 [EGD-4977] Reduce audio lag during voice call
Reduce audio delay by reducing audio buffer size in router operation.
Audio streams are now created directly in the operations, not in the
audio service, which gives more flexibility.

Audio Buffer size is calculated based on endpoints (source, sink) and
operation capabilities. This commit also enables allocations in a
non-cacheable region of OCRAM for endpoints that use DMA for data
transport.

Introduce power-of-two operations that use built-in functions and
possibly dedicated hardware instructions of an MCU. These operations
are required by the audio stream buffer size calculation algorithm.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-02-01 22:22:12 +01:00
Marcin Smoczyński
ac9ab97cbb [EGD-4753] Disable broken unit tests
After fixing log mocking for unit tests, it turned out that some tests
were not executed in the CI and as a result they were broken during
development.

Disable broken tests until they're fixed to unblock valid PRs.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-02-01 21:05:27 +01:00
Adam Dobrowolski
5995cfa6ff [EGD-5451] Cleaned i18n header from vfs
internationalization is included nearly everywhere in system it
should not be polluted with include which is to be removed
2021-01-31 11:24:37 +01:00
Radoslaw Wicik
d14e40d378 [EGD-4831] Add license headers to c, h and sql files
Add license headers to `h`, `c` and `sql` files as this files haven't
been checked previously, script now to automatically updates current
year in existing licenses.
2021-01-28 14:41:33 +01:00
Piotr Tański
9c922727d2 [EGD-5462] SML library introduced
Introduced SML library for further state machines development.
2021-01-28 14:37:25 +01:00
KacperLewandowski
9ff089462e [EGD-5073] Add UI modifications in Calendar after review
Changes mainly concern margins, positions, sizes etc of items in:
- Custom repeat window,
- New/Edit event window,
- No events window.
2021-01-28 12:09:00 +01:00
Tomas Rogala
80768bf4a5 [EGD-4708] Add backend of multiday events handling
-sql req for multiday events handling
-Add UT
-Add markEventsInDays method
-Add new query for day filter
2021-01-26 06:34:12 +01:00
Mateusz Grzegorzek
3fd237c1e4 [EGD-5181] Add Circular and Logger buffers
Add RandomStringGenerator class.
Implement Circular and Logger buffers.
Add UTs for LoggerBuffer.
2021-01-22 13:02:50 +01:00
Hubert Chrzaniuk
fc5ab3a70c [EGD-5325] Remove using namespace directives from headers
"Using namespace" directive should not be added in headers
because this practice pollutes source files.
2021-01-22 11:25:45 +01:00
KacperLewandowski
c2cd94a6f2 [EGD-4417] Fix operations in calculator
1. Fix possibility to write illogical operations.
2. Fix possibility to write multiple '0' when it is not needed.
3. Add scientific notation when result do not fit on screen.
2021-01-20 21:57:09 +01:00
Maciej Janicki
976d75952f [EGD-5250] Change time format on home screen and status bar
This commit changes time format displayed on home screen 
and on status bar by adding new locale for 12H format, 
which excludes am/pm suffix.
The new locale is set as new default format for time string.

Minor: Grammar typo fixed.
2021-01-20 09:36:11 +01:00