Commit Graph

437 Commits

Author SHA1 Message Date
Adam Dobrowolski
3343f02809 [MOS-266] Call StateMachine implementation
With some tests, documentation and so on
2022-05-02 15:54:33 +02:00
Bartosz Cichocki
e7444ff39f [MOS-263] Fix DTMF handling in Pure
By accident, I've broke DTMF handling via Pure's keyboard
This was because of non strict description of API method.
Now, it has been unified to use ASCII code
2022-05-02 11:57:09 +02:00
Bartosz Cichocki
55bd8c0951 [MOS-263] Add HFP DTMF handling
Added handling of HFP DTMF code sending,
fixed DTMF sending in cellular's code
2022-04-28 17:49:36 +02:00
Bartosz Cichocki
d59ac56d51 [MOS-347] Separate A2DP from HFP in ProfileManager
Now, both profiles can operate separately. Additonally, minor
fixes has been applied to allow calling via car audio system.
Some infotainment systems still don't work though.
2022-04-25 10:26:38 +02:00
Kuba
106440c78d [MOS-326] Change call logic removed from call window
Call logic is now removed from call window and call app.
There was spaghetti logic mixed in window and app, now
call logic is based on notificatins from service cellular.
2022-04-22 12:59:29 +02:00
Adam Dobrowolski
1cb4da819d [MOS-307] Application and Service example and docs
Working example of application and service ready to copy from
with minimum documentation
Apply suggestions from code review
Co-authored-by:
* Paweł Olejniczak <58421550+pawel-mudita@users.noreply.github.com>
* Paweł Joński <79840715+paweljonskim@users.noreply.github.com>
* Bartosz Cichocki <sp2fet@gmail.com>
2022-03-28 08:17:39 +02:00
Marek Niepieklo
e65959b19c [MOS-45] Invalid number decoding
Added UT case for failing phone number
Fixed decimal semi-octet decoding (AKA ascii combination)
2022-03-25 11:33:11 +01:00
Paweł Joński
e833690c8f [MOS-288] Add community build
Add community build
Add targets for community fonts
2022-03-22 12:40:15 +01:00
Adam Dobrowolski
053f270655 [MOS-282] Librarisation of services and test service
* options work a bit better ,now services and apps are
  selectable by option in cmake
* test service example added
* major documentation for module-services
* documentation for project configs and logs

Co-authored-by: Bartosz Cichocki <sp2fet@gmail.com>
Co-authored-by: Mateusz Piesta <mateusz.piesta@mudita.com>
2022-03-18 08:06:21 +01:00
Maciej Janicki
2b2bb13a49 [MOS-296] Merge remote-tracking branch 'origin/stable'
Merge stable Harmony branch into merge wip branch
2022-03-09 19:27:50 +01:00
Adam Dobrowolski
30487c6008 [MOS-110] Statistics api for system
Gets data from freertos and prints on frequency change depending
if it's important. Gathering is not costly, printing is though.
For less intrusive checks I would rather disable names gathering
as in worst case scenario it hangs rtos context switching till
thread id is found.
2022-02-17 16:46:56 +01:00
Alek Rudnik
60bdca5243 [MOS-104] Fix calllog responsivness with large number of contacts
Determined 3 reasons of lag
1. each calllog app opening is sending db::query::calllog::SetAllRead
which marks all calllog database entries as read and send CRUD
notification to application and hence the list view is rebuilt at least
twice for each app opening.
After deeper investigation it seems like dead feature (at least not
covered in GUI) and I am going to disable it.

2. DBServiceAPI::MatchContactByPhoneNumber requested for empty string
(private number) take really long time (above 1s).

3. DBServiceAPI::MatchContactByPhoneNumber took about time 150-200ms

This patch fixes only issues 1. and 2. Number 3. requires further
investigation and is consider as separate issue.

After mentioned fixes calllog is pretty responsive but requires ~2s
for each app start or page change.
2022-02-14 09:45:19 +01:00
Marek Niepieklo
a4a00312fe [CP-1073] Stack overflow in utils::filesystem::generateRandomId
Allocating large objects on heap
Moved out generateRandomId() to utils namespace
2022-02-09 15:47:53 +01:00
Mateusz Piesta
aca0bb93e4 [BH-1383] Battery scaling table
Fixed battery SOC scaling.
2022-02-01 15:20:12 +01:00
Mateusz Piesta
c1391090c6 [BH-1389] Catch2 unit tests optimization
Removed redundant recompilation of catch2 main
resulted in over 20% speed up of unit tests compilation.
2022-01-26 15:04:23 +01:00
Mateusz Piesta
1946d53efa [BH-1333] Battery subsystem refactor
Interfaces clean up.
Fixed logic flow.
Fixed various bugs.
2022-01-21 13:48:10 +01:00
Pawel Olejniczak
999ca7a67f [EGD-8124] Allow to use dashes, parenthesis and dots in phone numbers
Phone number validation in input field was too restrictive,
which caused error during attempt to save correctly
formatted phone numbers.
2022-01-20 10:55:41 +01:00
Pawel Olejniczak
f1465ed3b2 [EGD-8055] Sort language list
Language selection list is now sorted alphabetically.
2022-01-13 17:01:20 +01:00
Alek Rudnik
9cf11913a1 [EGD-8129] Add atexit functionality
Added atexit functionality. All global destructors and functions
registered with atexit() should be called at program exit.
It was possbile to reuse original newlib implementation with
MALLOC_PROVIDED flag set.

Made sure logger destructructor is called as last one.

Due to mudita OS legacy, it was not possible to simply fix dependencies
in global objectes and hence there are neither global objects
destructors nor functions registered with atexit() called when exit()
is called.
Possibly it will be changed later.
2022-01-05 13:59:51 +01:00
Adam Dobrowolski
0ec9428917 [EGD-7773] Popups stack poc
Stack plus minimum tests added
Updated to master
Removed useless or adressed TODOS
Constants name applied
Renamed searchModel to searchRequestModel
Review applied
We should remove legacy window names
Bell names fixes
2022-01-04 13:01:23 +01:00
Mateusz Piesta
3b591c1a92 [BH-1332] I18n update
i18n correctly loads languages
with special characters.
2022-01-03 16:20:13 +01:00
Mateusz Piesta
1ae0f91a22 [BH-1288] Special characters support
Added support for special chars to i18n.
2021-12-16 15:32:45 +01:00
Adam Dobrowolski
76c924fd5e [EGD-8002] Added SSP, fixed some minor issues, removed obsolete code
ssp seems working
minor crash fixups
copy lacks patched
obsolete code removed
Devicei tests added for added code and cleanup
Added missing tests for new functions
Code cleaned up a bit - mostly moved to cpp
2021-12-09 12:42:33 +01:00
Przemyslaw Brudny
376bbf3df7 [EGD-7922] Added InputEvents Debug option
Added Debug flag for InputEvents in EvtManager and Application.
2021-12-06 15:39:10 +01:00
Kuba
c720ce543a [EGD-8001] Fix enable cellular logs
It will be possible to debug cellular now.
2021-11-24 12:18:49 +01:00
Przemyslaw Brudny
7cc452503e Merge remote-tracking branch 'origin/stable'
# Conflicts:
#	products/BellHybrid/apps/application-bell-settings/models/TimeUnitsModel.cpp
2021-11-17 00:19:59 +01:00
Przemyslaw Brudny
5398907b6f [EGD-7158] Added text paste into Phonebook
Added text paste into Phonebook. Added save
verification.
2021-11-16 18:47:49 +01:00
Alek Rudnik
65d67e2690 [EGD-7948] Extend log dumping
Log are now dumped:
* on system shutdown including hard faults and aborts
* every 5 minutes

Fixed some logs
2021-11-16 17:56:28 +01:00
Marek Niepieklo
b5749912a9 [CP-825] Interrupted transfer to FS endpoint may corrupt the filesystem
Using std::fstream for file I/O at every file access in FileContext.
Reworked file opening/closing to happen on each file chunk
read/write, so that a file isn’t left open in case of an error
or transfer cancelation.
Separeted RxID and TxID for reliable cancelation of stalled xfers.
2021-11-16 10:50:54 +01:00
Piotr Tański
8038df5d69 [EGD-7828] Phone number match performance fixes
Fixed performance of the number matcher.
2021-10-29 17:39:42 +02:00
Paweł Joński
1220a09025 [BH-1067] Snooze countdown
Add Snooze countdown
2021-10-28 13:58:44 +02:00
Maciej Janicki
bd79db0504 [BH-1073] Add missing asset debug flag
Because Harmony uses Pure components,
a lot of debug infromation is generated
with missing assets. Therefore, we need mechanism
to stop those messages for release before refactor
of shared window components is done.
2021-10-27 11:49:59 +02:00
Wojtek Rzepecki
d0772ab0b7 [EGD-7798] Fix alarms backend with new format
New format of alarm time in database and processing
2021-10-18 12:14:36 +02:00
Piotr Tański
30eeb362d0 [EGD-7789] Sort timezones by their UTC offset
Currently, timezones are sorted alphabetlically.
2021-10-14 08:54:56 +02:00
Piotr Tański
1d2f5cf7a4 [EGD-7754] Dates bumped in disclaimers
Dates bumped from 2020 to 2021.
2021-10-11 19:08:26 +02:00
Alek Rudnik
1490158034 [EGD-7725] Tune up file system io access
Increasd io stream buffers:
- 64kB for big files with short lifetime scope
- 16kB for big files with long lifetime scope
- 1kB - dont changes default forr the rest
2021-10-08 10:28:38 +02:00
Adam Dobrowolski
d1d34e558b [CP-688] Changed cmake so that it would accept version as parameter
We are guessing verion in scripts, when we should take it as parameter
2021-10-05 17:36:34 +02:00
Piotr Tański
ea21091bc2 [EGD-7721] Removed ical utils
ICal utils removed as not used anymore.
2021-10-05 08:49:51 +02:00
Jakub Pyszczak
d492c3646e [EGD-7548] Crash dump rotate
Added dumps rotation. Maximum count of the files set to 5.
The oldest dumps are removed if there're more than 5 of them.
Comparison is taken by the date.
Unified log and crash dumps rotators.
2021-10-04 16:32:34 +02:00
Wojtek Rzepecki
d316899330 [EGD-7739] Fix recurrent alarms
Alarms fixes for recurrence rules application
2021-10-04 14:36:15 +02:00
Wojtek Rzepecki
bc6b79fea6 [EGD-7673] Fix adding alarm before actual time
Fixed adding of an alarm before actual
system time
2021-10-01 10:59:48 +02:00
Marek Niepieklo
22a02078cd [CP-162] Implement Logs directory
Added listing of log/crash dump files
Reorg'ed log/crash dump files locations
Added harness api/device_info
Updated test and tool scripts
2021-09-29 10:37:58 +02:00
Mateusz Piesta
0b08fd0be9 [BH-670] Wake up greeting
Added random wake up greeting text.
2021-09-28 08:20:53 +02:00
Marcin Smoczyński
1f9109b924 [BH-819] Fix illegal dependencies in bsp
Break circular dependencies in the BSP module. Fix some missing
dependencies which surfaced after fixing BSP.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-27 17:27:21 +02:00
Bartosz Cichocki
7274f691d7 [EGD-7405] Connect HFP with audio system
Connected HFP with audio system so 2-way audio transmission is
possible
2021-09-24 13:25:07 +02:00
Marcin Smoczyński
bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +02:00
Przemyslaw Brudny
45c27c2f48 [EGD-7156] Fix alarm time set
Fixed alarm time set.
2021-09-23 15:04:05 +03:00
Przemyslaw Brudny
e3a057e15c [EGD-7310] Alarm GUI and features update
Updated AlarmOptionsItem to use UTF8Spinner.
Created specialized widgets to cover options
sets. Updated GenericSpinner to handle Pure
navigation and content swap. Updated Alarm
RRule code to work with Custom Days selection
and new widgets. Added Tests. General GUI
stylistic fixes. Increased app Alarm Clock
and service Time stack sizes.
2021-09-21 14:11:21 +03:00
Adam Dobrowolski
5e919448eb [EGD-7501] Rrules presenter added
- handles most of our rrule manipulation needs for alarm
- unittests for transformations
2021-09-15 13:08:54 +02:00
Paweł Joński
4ec2d6a1f4 [BH-622] Fix next alarm logic and queries
Simplify recurring between dates query
Round all events dates to full minutes
2021-09-13 16:13:06 +02:00