Commit Graph

173 Commits

Author SHA1 Message Date
Lucjan Bryndza
0014dae259 [EGD-3854] Removing goto's from the code (#797)
It is generic cleanup task for removing all goto files

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-10-08 08:58:49 +02:00
Krzysztof Móżdżyński
a0956f06a9 [EGD-3780] Fix emoji insertion 2020-10-07 14:38:44 +02:00
Jakub Pyszczak
2df98eea48 [EGD-3841] Add audio vibration and enable sound option 2020-10-06 17:06:34 +02:00
Tomas Rogala
b89d6cca41 [EGD-3700] Time display on rt1051 - rework 2020-10-06 09:35:14 +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
Adam
f5f27d642f EGD-2955 EGD-3588 Timers fully refactored & updated (#721)
* Timers now are Application thread safe
* Timers now have consistent API independend of Application (no more c style timers)
* Timers can have either: callback or override onTimer() method - this
  way we can create more complicated timers or just use existing ones
* gui::Timer added via adapter class GuiTimer to decouple sys::Timer
  with gui::Timer
* Fixed race in wrapper
* Updated docs
* fixed using std and cpp_freertos and DataReceivedHandler hidden in Application.hpp
2020-10-02 14:04:57 +02:00
alek
50cf5f1137 [EGD-3813] magic enums as submodule + update to 0.6.6 release 2020-09-24 15:32:57 +02:00
Adam
07b243a084 Egd-3408 Rich text (#712)
* EGD-3408 gui::Text Rich text parser added with pugixml tree & tree walker

* EGD-3408 Fitted code in
2020-09-23 21:03:57 +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
Maciej Gibowicz
a9985de158 [EGD-2369] sprintf clean up (#677) 2020-09-21 11:18:13 +02:00
Piotr Tanski
9447da6585 [EGD-2870] Message drafts feature implemented. (#704)
- Save unsent messages as drafts on thread view window close.
- Queries for SMS add and update introduced.
- Fix for windows IDs all being zeroes across the GUI.
2020-09-21 10:25:00 +02:00
Tomas Rogala
65b4e9ad0f [EGD-3469] PR changes 2020-09-17 13:10:19 +02:00
Hubert Chrzaniuk
6e9bdb3dc1 [EGD-3468] Fix metadata of audio files 2020-09-14 16:55:17 +02:00
Hubert Chrzaniuk
ee3167c165 [EGD-3035] unify time formatting functions 2020-09-08 13:53:45 +02:00
Tomasz Sobkowiak
45773ddfdf [EDG-3415] Handle new line when entering text 2020-09-04 13:12:02 +02:00
Bartek Cichocki
9095333b2c [EGD-3502] PR fixes 2020-09-02 17:26:01 +02:00
Bartek Cichocki
9eeeb6ae92 [EGD-3502] reworked endpoints and handlers
added endpoint listener to query
2020-09-02 17:26:01 +02:00
mozdzyk
81e14554c5 [EGD-3476] Fixed font parser and utf8 decode function for 3-byte and 4-byte characters (emojis etc.). 2020-09-01 12:03:19 +02:00
Tomas Rogala
1e603d820d [EGD-3470] Review changes 2020-08-13 23:22:40 +02:00
Roman Kubiak
8dcb54721b removed sbini
changed boot.ini -> boot.json
replaced sbini code to json11 code (needs ecoboot 1.0.3)
2020-08-10 13:26:09 +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
Marcin Smoczyński
705fc39d93 build: optimize third party in debug
To minimize size footprint and to be able to fit in the RT1051 target,
add optimization options in debug configuration for third party modules
which are directly added to the sources.

This behaviour is controlled by the THIRD_PARTY_DEBUG_OPTIMIZE boolean
option.

Add extra warning supressing option for the protobuf sources as its
build was starting to failing on newer compiler.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-07-31 11:03:13 +02:00
Bartek Cichocki
794a2bd35f [EGD-3436] Reimplemented parser, removed TinyFSM
added unit tests, cleaned up code

added changelog entry
2020-07-28 10:51:37 +02:00
Tomas Rogala
9e26444368 [EGD-3305] PR changes. 2020-07-21 15:00:57 +02:00
alek
212a32d0e3 remove UNIT_TESTS from log.hpp 2020-07-21 14:09:12 +02:00
pholat
2aee3c9588 FIX: memleak & out of boundary text access (#540) 2020-07-16 09:58:20 +02:00
Pawel Olejniczak
4b16eafa2e Fix typo 2020-07-08 17:07:31 +02:00
Bartek Cichocki
39d24d1420 [EGD-3379] fixed build flags, suppressed warnings for protobuf, sbini and port.c in module-os 2020-07-08 14:09:42 +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
pholat
fb586cb4e9 EGD-3229 (#497)
* EGD-3229 text helper classes added with tests - used in tests, plus misc utils needed

No major actual functionality changed - TextClasses added with this PR
are used in tests only in this commit.
* classes needed to rewrite gui::Text added
* some utilities needed to rewrite gui::Text added
* tests added
2020-07-06 16:19:41 +02:00
Szymon Mroczek
0422c43dfe [EGD-3290] Update submodule to head 2020-07-03 14:08:07 +02:00
Szymon Mroczek
e53da88758 [EGD-3290] Changelog update. 2020-07-03 14:08:07 +02:00
pholat
938cbc186a Gui text pr1 utils and fixes (needed for gui::Text rewrite mostly) (#485)
* EGD-3229 [FIX] UTF8 fixed uint32_t range error

* EGD-3229 [util] gui::Item Navigation switch case moved to function

Needed to not copy senslessly NavigationDirection enum switch case
* gui::Item Navigation switch case moved to function
* added NavigationDirection::None enum value
* cleaned up Navigation.hpp/cpp

* EGD-3229 [util] gui: InputEvent - str() for logging added & is...() check methods

* EGD-3229 [util] removed notorious log on unknown glyph

* EGD-3229 [util] InputMode - added is(Mode) method, input Profile added default definition

* is() method addded to check instead of `==` comparison
* added default to Profile instead of `== 0` use

* [FIX] ARM GCC 10.1.0 - build fixed

fixed include in wrong place

* PR style fix

* Review applied
2020-07-01 13:14:07 +02:00
Roman Kubiak
82c4791cd3 updated sbini (memleak detected and fixed) 2020-06-26 12:04:30 +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
rkubiak01
9cc941d8d2 [EGD-2857] vfs fixes (#439)
* changed microtar and sbini to c++

* VFS: fixes for absolute paths, fprintf wrappers

* Create sys/user during database tests

* review: removed parenthesis around return values in VFS

* changelog updated

* module update

* module updates
2020-06-18 12:27:53 +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
Przemyslaw Brudny
8e6d4b284e [EGD-3094] Cleanups, proper erase widget from list. 2020-06-03 19:23:16 +02:00
Przemyslaw Brudny
d2d97160e2 [EGD-3094] Basic Phonebook contact list migration to new ListView. 2020-06-03 19:23:16 +02:00
Roman Kubiak
142b71a6a6 sbini module update 2020-06-02 11:28:53 +02:00
Radoslaw Wicik
f9791b76d7 [EGD-3246] Repair crash on Sunday 2020-06-01 09:25:44 +02:00
Radoslaw Wicik
22d003ad61 [EGD-3233] Make log messages finish with linux line end. 2020-05-28 17:23:52 +02:00
alek
aa5999b070 [EGD-2830] Dialog extended for multiple options.
One dialog window in sms app instead of mulitple ones.
Notifictaions about  No SIM card inserted.
2020-05-28 14:13:12 +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
kkleczkowski
b70ad6c5fc Egd 3196 small cellular refactor (#365)
* [EGD-3196] Fixed fatals in cellular.

* [EGD-3196] Fixed sms sending.

* [EGD-3196] Fixed timeout in ConfProcedure.

* [EGD-3196] Board type moved to Event Manager.

* [EGD-3196] Event Manager API renamed.

* [EGD-3196] Misiing files.

* [EGD-3196] Fixed modem status message, return code in magnetometer driver, case in modem init procedure.

* [EGD-3196] PR suggestions applied.

* [EGD-3196] Style fix.

* [EGD-3196} GetBoardName -> c_str();

* [EGD-3196] Style fix.

* [EGD-3196] PR suggestions added.

* [EGD-3196] Style fix...

* [EGD-3196] Style fix again.

Co-authored-by: Kuba Kleczkowski <dd>
2020-05-21 16:56:24 +02:00
Marcin Smoczyński
a4a8315b97 fix empty calllog list item
Fix empty calllog title when number comes in national format. The
problem was caused by:
 1. making assumption that every number from cellular network comes in
 e164 format which is not true,
 2. using e164 number when looking for contact matching calllog entry
 without checking if e164 exists for calllog entry.
Fix problem by:
a.d.1 - replacing `PhoneNumber::viewFromE164` with less strict
`PhoneNumber::Parse` method which basically is a convenience method
which creates `PhoneNumber` entity and uses it to create a `View`.
a.d.2 - instead of fetching e164 directly introduce `getNonEmpty` method
of a View, which returns e164 number if it is present and entered number
otherwise.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-05-18 17:31:57 +02:00