Commit Graph

255 Commits

Author SHA1 Message Date
Mateusz Piesta
0a9846e4a8 [MOS-694] Move DB initialization from OS to build scripts
* Switched to DB initialization at compile time
* Organized and cleaned up db files directories(not finished completely)
* Fixed DB related unit tests
* Minor improvements to CMake
* Small fixes for GCC12 build
2023-01-19 16:41:56 +01:00
Mateusz Piesta
150f1cfdef [CP-1560] New user directory structure
* New user directory implemented.
* Generate user directory structure at compile
time instead of at runtime(Pure/Harmony).
* Changed MTP root path to /storage
* FileIndexer: Minor refactor
* FileIndexer: Fixed handling incorrect/non-existing
scan directories.
* Updated Repository module to correctly handle
many assets paths.
* MultimediaDB: Minor unit tests refactor and fixed
some issues when using simulator.
* MultimediaDB: Added new queries and unit tests
* Harmony/Relaxation: Updated to correctly
use audio assets from more than one source.
* Harmony/Relaxation: Updated model and list items
provider.
* Harmony/Relaxation: Fixed stack overflow in audio service
2023-01-19 16:41:56 +01:00
rrandomsky
0342eb50c8 [MOS-737] Fix for adding a country code prefix to existing contact
Adding or removing country code from existing contacts number is
changing now number record itself, exactly when changed number
is placed in DB, instead to create new number record, to avoid
miss match during matching numbers.
2022-12-21 14:55:30 +01:00
rrandomsky
abdf9b7c45 [MOS-737] Revert "Fix for adding a country code prefix to existing ..."
This reverts commit 14d6d53ac8,
because it can cause critical error for SMS application.
2022-12-07 15:05:44 +01:00
rrandomsky
14d6d53ac8 [MOS-737] Fix for adding a country code prefix to existing contact
Adding or removing code country from contact's number creates a
new number record. Old number, which was connected witch contact
previously, is removed from the numbers table to avoid miss match
numbers. Changing country code only creates new number records,
without removing old ones. Old ones are temporary number from now.
2022-12-05 14:18:29 +01:00
Lefucjusz
255d03a5da [MOS-677] Fix crash on importing unprocessable contact
Fix of the issue that phone crashed when trying
to import contact with phone number that couldn't
be parsed.
Additionally minor code cleanup.
2022-09-06 10:38:53 +02:00
Adam Wulkiewicz
fe708cdf31 [MOS-670] Change clang-format AlwaysBreakTemplateDeclarations to Yes
Add --all and --fix-all options to style-check-hook
2022-08-26 15:22:39 +02:00
Pawel Olejniczak
f56b631eb6 [CP-563] Return correct threadID after adding new message
After adding new message via Messages EP API,
threadID field was always 0, which was incorrect.
2022-07-22 10:34:31 +02:00
Mateusz Piesta
0c246dc372 [BH-1533] Display battery charging state
Battery state during charging is always
displayed even if the state of charge
reached 100%.
Minor refactor of BellBattery class.
Removed unused includes.
2022-07-13 11:24:12 +02:00
Pawel Olejniczak
291b695282 [CP-1334] Return templateID after adding new one
No information about newly added message template
was returned. Now temaplateID helps to identify
newly added record.
2022-06-09 00:33:27 +02:00
Marcin Zieliński
00fd29f8bd [MOS-477] Add the call log erasing option
Add the call log erasing option
2022-05-25 10:55:14 +02:00
Adam Dobrowolski
3343f02809 [MOS-266] Call StateMachine implementation
With some tests, documentation and so on
2022-05-02 15:54:33 +02:00
Pawel Olejniczak
caed213fcd [CP-1085] Collect sms threads notifications in outbox ep
When thread record is modified during connection
with Mudita Center, notification of that action
should be collected in outbox endpoint to
keep contacts data synchronized between MuditaOS
and Mudita Center.
2022-04-14 16:51:31 +02:00
Pawel Olejniczak
c9e1ec419e [CP-1082] Collect sms notifications in outbox ep
When sms record is created/updated/removed during
connection with Mudita Center, notification of that
action should be collected in outbox endpoint to
keep contacts data synchronized between MuditaOS
and Mudita Center.
2022-04-14 16:51:31 +02:00
GravisZro
e59cd4036b [MOS-245] Fix errant spaces
It appears in the past a major edit was made but had used a regex to
change some text which resulted in an errant space between the
enumuneration/struct/class name and the scope resolution operator.
These errant spaces have been removed.
2022-02-24 08:47:20 +01:00
Marek Niepieklo
2f8cda20f5 [MOS-143] Fix notifications for unread message/missed calls
Added Notifications Decrement query
Fixed updating notifications on home/lock screen
2022-02-21 11:30:59 +01:00
Maciej Janicki
706a25df1d [BH-1125] Add file indexer
Add file indexer
2021-12-06 09:46:13 +01:00
Piotr Tański
2ac019017e [EGD-7993] Fixed contacts matching algorithm
number.isValid() always returns false if there is no national prefix.
2021-11-25 10:02:11 +01:00
Pawel Olejniczak
460858b2eb [CP-813] Fix issues with adding contacts via Mudita Center
There was an issue, when contact with a specific number was added,
then removed and added again via Mudita Center. Then
it was displayed without a name. This issue was caused by
another known issue with temporary contacts handling (EGD-79473).
This fix is a workaround to make adding contacts via MC work,
without the need to refactor temporary contacts handling.
2021-11-22 09:48: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
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
Przemyslaw Brudny
bc3e825b77 [EGD-7910] Text directory cleanup
Text directory cleanup. Removed old unused assets
directories.
2021-11-05 00:36:34 +01:00
Piotr Tański
7637eb0d29 [EGD-7907] Fixed contact editing
A contact could be removed during update process.
2021-11-04 10:41:25 +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
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
39718a08ea [BH-903] Pre-wake up frontlight
Implemented a frontlight handling for the pre-wake up.
Major clean-up of the frontlight implementation.
2021-10-13 19:28:53 +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
Adam Dobrowolski
857481e031 [EGD-7550] Fixed wrong count request
We should use Interface for information gathering
2021-10-07 08:51:51 +02:00
Piotr Tański
0f7ae9259c [EGD-7474] Contacts management fixes
Code review fixes.
2021-10-04 15:06:22 +02:00
Piotr Tański
9820a00cbc [EGD-7474] Contacts management fixes
Fixed managing contacts on the DB side.
2021-10-04 15:06:22 +02:00
Przemyslaw Brudny
7e26f5e014 [EGD-7670] Alarm toggle off all alarms
Added toggle all alarms handling with tests.
2021-09-28 12:54:39 +03:00
Maciej Gibowicz
c69fde01d4 [EGD-6630] Integration file indexer with music player
The list of music tracks is retrieved from the database,
where they are indexed beforehand,
instead of being searched in real time in the file system.
2021-09-23 20:29:14 +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
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
Paweł Joński
2ae306bd40 [BH-662] Handle alarm turn off and snooze
Handle alarm turn off and snooze
Music stop not included
2021-09-10 11:45:08 +02:00
Alek Rudnik
c9a41b4477 [EGD-7335] Integartion of file indexer with database
Integrated core file indexer with its database.
Modfied necessary queries.
Moved service file indexer to pure product specific
folder
2021-09-10 10:59:40 +02:00
Adam Dobrowolski
1156320af5 [EGD-7502] TimeService Alarms get returns total elements count
We require so that overall alarms count would be returned to properly
use ListView
2021-09-08 20:57:21 +02:00
Adam Dobrowolski
55b89278f1 [EGD-7527] Removed AlarmsEvent from the codebase
We have to use AlarmEventRecord not AlarmsEvent
2021-09-08 20:15:26 +02:00
Alek Rudnik
5e7457701e [EGD-6836] Add multimedia files database interface
Added all queries including listing songs for
selected artist or album
2021-09-03 19:49:32 +02:00
Paweł Joński
ba1a6f2527 [BH-691] Alarms handling
Handle alarms in service-time
2021-09-03 13:29:21 +02:00
Pawel Olejniczak
cdadee24cc [CP-388] Check for duplicates before adding contact
Prevent adding duplicate contact using service desktop API.
2021-08-26 11:56:04 +02:00
Paweł Joński
8175c564ec [BH-785] AlarmEventDBRepository
Add AlarmEventDBRepository
2021-08-20 12:10:36 +02:00
Paweł Joński
d2fcc30200 [BH-743] Add AlarmEvents
Add AlarmEvents to database
2021-08-19 10:52:59 +02:00
Paweł Joński
89518a0a9c [BH-743] Add EventRecord implementation
Add EventRecord implementation + tests
2021-08-17 14:45:08 +02:00
Paweł Joński
0802e8f954 [BH-687] Add Events to DB
Add Events table to sql database
Add EventsTable and EventsRecord
2021-08-10 14:44:52 +02:00
Paweł Joński
45a7216cec [EGD-7217] Separate commonly used headers from application-calendar
Move dateCommon.hpp to module-utils/time
2021-08-10 11:49:14 +02:00
Pawel.Paprocki
757f0db958 [BH-690] Add interface for alarm and alarm repo
Definition of basic alarm structures and interfaces
2021-08-06 13:17:58 +02:00
Alistair Francis
92e92d3ef2 [EGD-6946] Fix build for GCC11
Fix build issues identified when building on Fedora 34 using GCC11.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2021-08-02 13:05:10 +02:00
Alek Rudnik
81c10ffbf5 [EGD-7143] Fix builds for GCC 11
Make sure our code base is buildable using GCC-11
Removed deprecated asan lib from Linux target.

Co-authored-by: Alek  <aleksander.rudnik@mudita.com>
Co-authored-by: Mateusz Piesta  <mateusz.piesta@mudita.com>
2021-08-02 13:05:10 +02:00
Przemyslaw Brudny
10f27328e8 [EGD-7215] Connected Sim contact import with backends
Connected Sim contact import with cellular contact read
and DB contacts write.
2021-07-29 23:31:04 +02:00