Commit Graph

66 Commits

Author SHA1 Message Date
Radoslaw Wicik
9d8eff64fc [EGD-5860] Fix build packages
Merging and cleaning cmakes requred cleaning.
2021-02-26 14:20:11 +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
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
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
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
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
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
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
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
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
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
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
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
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
Lucjan Bryndza
3780b4844c [EGD-5074] Add native fscore for emulator
This is a first commit when the emulator uses
the new filesystem core.

libiosyscall library read environment variable

IOSYSCALS_REDIRECT_TO_IMAGE

When  IOSYSCALS_REDIRECT_TO_IMAGE=1 all syscalls
are redirected to the image. If env is not defined
or set to 0 only paths are translated and redirected
to the native linux syscalls

[EGD-5074] Remove free rtox library

Remove unneeded fat library from the freertos

[EGD-5074] Fix freertos mutex as unique

Add freertos mutex in the unique_ptr for avoid inclusion of the
freertos.h

[EGD-5074] Remove frertos-fat submodule

Remove uneeded fat freertos submodule

[EGD-5074] Add handle types in the vfs_subsystem

Add handle types in the vfs subsystem

[EGD-5074] Add submodule for hashmap

Add submodule for hashmap

[EGD-5074] Add support for dirent

Add support for dirent for new filesystem

[EGD-5074] Fix mutex class

Remove mutex in header

[EGD-5074] Remove old vfs from file indexer

File indexer should be fixed for use new vfs

[EGD-5074] Fix unit test vfs

Remove unit tests vfs for clas

[EGD-5074] Add Posix implementation with new fs

Add posix implementation with new fs core

[EGD-5074] Fix stdio syscalls

Fix all stdio syscalls

[EGD-5074] Fix iosyscalls scan family

Fix iosyscalls scan family

[EGD-5074] Fix native API

Fix native api

Work in progress some minor fixes

[EGD-5074] Fix lib stdio

Fix lib stdio

[EGD-5074] fix lseek return value in fat driver

Fix lseek return value in the fat driver

[EGD-5074]  Unit test fix

Unittest fixes

[EGD-5074] Emulator syscalls

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-01-04 16:04:33 +01:00
jimmorrisson
14918dc4f9 [EGD-4925] Change new filesystem handling implementation in module-gui. (#1193)
Due to vfs deprecation there is need to remove all vfs calls from code. This PR covers module gui. There are some modifications in other modules included which are necessary because of build system issues.
2020-12-16 15:23:11 +01:00
jimmorrisson
6711e02bad [EGD-4446] Change: new filesystem handling implementation in module db. (#1052)
Due to vfs deprecation there is need to remove all vfs calls from code. This PR covers module database. It also contains minor fixes in module-db.
2020-12-05 10:40:27 +01:00
Krzysztof Mozdzynski
0ef0d615f3 [EGD-4150] Change filename i18 to i18n (#1108)
Change filename of internationalization files from i18 to i18n.

I18n should stand for internationalization, not i18. That's why I changed in 'module-utils' name of the folder 'i18' and both .cpp and .hpp files to 'i18n'.
2020-11-27 18:31:00 +01:00
Krzysztof Mozdzynski
d48d2d8b0d [EGD-4167] Add n display languages loaded from files (#1047) 2020-11-27 02:21:14 +01:00
KacperLewandowski
ccc49c7b9c [EGD-3698] Add UT for TimeRangeParser. (#750)
Move TimeRangeParser to module-utils.
2020-11-26 14:40:07 +01:00
Hubert Chrzaniuk
d205264c4d [EGD-4491] MMI call forwarding full support (#1069)
* support for Basic Service Group and time
   parameter of call forwarding
 * fix RequestFactory, previously regex
   checking loop may have been left too early
2020-11-26 09:18:45 +01:00
tomaszrogala
84e08c242f [EGD-3512] Create ICS Parser (#892)
-Create application desktop endpoints for calendar events
-Modify Calendar Database Interface
-Create ParserICS lib
-Create calendar events endpoints test
-Create UT for ParserICS
2020-11-25 11:05:46 +01:00
Krzysztof Mozdzynski
691c2926b9 [EGD-3360] Input and display language separation, input language setting implementation (#920) 2020-11-06 12:05:29 +01:00
jimmorrisson
04fd5dfaf0 [EGD-3147] SMS incoming ASCII characters (#939) 2020-11-04 14:37:38 +01:00
KacperLewandowski
f0fb9f51ef [EGD-4103] Fix phone hanging when pressing '=' in calculator (#891)
Crush was caused when using std::to_string() on rt1051 to convert double (result from equation) to string.
Other methods f.e. using std::stringstream, sprintf also do not work.
Add own floating point converter to string.
2020-11-04 13:02:09 +01:00
Hubert Chrzaniuk
a607871f76 [EGD-3839] Cellular - get time zone (#903) 2020-10-29 10:41:34 +01:00
jimmorrisson
958e304ba2 [EGD-4121] UCS2 32 bit support (#897) 2020-10-27 14:02:51 +01:00
Mateusz Grzywacz
70a4b21c33 [EGD-3045] Magnetometer driver (#788)
* [EGD-3045] magnetometer driver - timer polling approach
- magneto pin mux
- magneto reg structs
- magneto irq skeleton
- bluetooth irq handler moved
- dedicated i2c methods
- bitfields parsed and populated explicitly
* [misc] big endian ↔ long conversion in Utils + UT
2020-10-22 15:41:54 +02:00
Lucjan Bryndza
bf2609524c [EGD-4075] Use FATFS in the Linux builds (#843)
* [EGD-4075] Use FAT fs in the emulator

Add script for genrate base phone image

* [EGD-4075] Use FreeRTOS-FAT in emulator initial commit

* [EGD-4075] Thread local storage fix

Fixing thread local storage when running on the
Linux platform in the test mode

* [EGD-4075] Improve image generation

Improve image generation script on the linux platform

* [EGD-4075] Fix all test with FAT fs image

Fix all tests with fatfs image

* [EGD-4075] Fix calculator utility test

* [EGD-4075] Image dependencies fix

* Remove uneeded comments

* Missing headers in CR

* [EGD-4075] Fixed whitespaces

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-10-22 10:34:12 +02:00
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Piotr Tanski
f5aec0444a [EGD-3838] Introduced a meditation progress bar with simple implementation of meditation application. (#783) 2020-10-09 14:14:40 +02:00
Jakub Pyszczak
2df98eea48 [EGD-3841] Add audio vibration and enable sound option 2020-10-06 17:06:34 +02:00
Marcin Smoczyński
d7d132ed66 [EGD-3798] remove utf8 test output (#775)
Test result parsers are failing due to excessive output of one of utf8's
tests.
2020-10-05 11:03:22 +02:00
Marcin Smoczyński
4c30d4442b [EGD-3797] change default country to unknown
Can't assume that user is in Poland if number origin is unknown.

Fix related unit tests.
2020-09-22 17:57:01 +02:00
Hubert Chrzaniuk
ee3167c165 [EGD-3035] unify time formatting functions 2020-09-08 13:53:45 +02:00
pholat
ef170c0d27 EGD-3393 UTF8 Unicode fixup for ostry cień mgły (#587)
EGD-3393 UTF8 Unicode fixup for ostry cień mgły

* We are working in little endian, string notation doest't care
* UTF8 cleanup - removed reinterpret casts, removed unused code, and added {}
* added forward declaration for ostream and moved operator<< to cpp
* Removed dead code
* Fixed crash on out of memory access in Renderer on draw char
* Fixed tests failing - there was no test for operator==
* Added changelog
2020-08-07 09:12:27 +02:00
kkleczkowski
e46d2a2829 Egd 3244 antenna manager (#490)
* [EGD-3244] Service antenna + utils State.

* [EGD-3244] CellularAPI + at::response.

* [EGD-3244-antenna-manager] Changes in application Antenna.

* [EGD-3244-antenna-manager] Changes in antenna app ( antenna switch multicast ).

* [EGD-3244-antenna-manager] Changed Antenna app GUI.

* [EGD-3244-antenna-manager] Basic algorithm.

* [EGD-3244-antenna-manager] Fixes in algorithm.

* [EGD-3244-antenna-manager] Small fixes + service blocking.

* [EGD-3244-antenna-manager] Little cleanup.

* [EGD-3244-antenna-manager] Restored Cellular call in Application Antenna.

* [EGD-3244-antenna-manager] Style fix.

* [EGD-3244-antenna-manager] Sewrvice antenna disabled.

* [EGD-3244-antenna-manager] PR suggestions + linux buil fixed.

* [EGD-3244-antenna-manager] Updated changelog

* [EGD-3244-antenna-manager] Style fix.

* [EGD-3244-antenna-manager] Fixed submodule.

* [EGD-3244-antenna-manager] PR suggestions + toNumeric UT.

* [EGD-3244-antenna-manager] PR suggstions again.

Co-authored-by: Kuba Kleczkowski <dd>
2020-07-07 10:54:47 +02:00
Marcin Smoczyński
a9cb37d7f4 tests: add proper catch2 handling
Add proper catch2 support:
 - add catch2 as a submodule
 - add cmake function to add test easily
 - discover each test in test binary
 - remove copies of catch.hpp
 - do not try to process tests for rt1051

Do not test internals of utf8, only public interface (nasty bugs could
occur otherwise).

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-06-24 10:38:14 +02:00
Marcin Smoczyński
737e586dde [EGD-3300] allow empty e164 on parsing
Do not throw on empty e164 while parsing number records.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-06-19 15:06:46 +02:00
Marcin Smoczyński
0936930063 [EGD-2593] improved matching contact by numbers
Introduced format aware phone number comparison to allow improved
matching phone numbers with contacts.

Phone numbers are also displayed formatted on a phonebook/calllog
list view and on detailed contact info view.

Entered and e164 number are verified to match each other during
processing db request.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-06-17 14:01:38 +02:00
Marcin Smoczyński
4c4c7e93ff [EGD-3234] tests: rename time tests
Reserve 'unittest' prefix for fully automated Catch2 tests.
2020-05-27 10:41:17 +02:00
Marcin Smoczyński
d5cb13d956 [EGD-3234] tests: fix utf8 tests
Convert utf8 tests which were written with gtest help to catch2
framework.

Fix broken index operator test (index operator decodes to UTF-32).

Remove dead gtest dependency
2020-05-27 10:41:17 +02:00
Marcin Smoczyński
bfc630b96a [EGD-3234] tests: rename utf8 tests 2020-05-27 10:41:17 +02:00
Marcin Smoczyński
c3e5ef9f15 [EGD-3234] tests: rename log tests
Log tests are not unit tests because they do not provide binary
information about status - they are manual tests.
2020-05-27 10:41:17 +02:00