Commit Graph

427 Commits

Author SHA1 Message Date
Michał Kamoń
0f3fb7c152 [EGD-6736] Add app's state dependent autoLock mechanism
This PR provides the implementation of the auto-locking mechanism that
is dependent on an application's current auto-locking policy. Three
auto-lock policies have been introduced:

* DetermineByWindow
* DetermineByAppState
* PreventPermanently

Also changed the AutoLockWindow set/get auto-lock time value to the
message-based approach.
2021-05-26 08:31:33 +02:00
Radoslaw Wicik
80dc483c5d [BH-422] Fix CMake in service GUI - post review update 01
Update after review.
2021-05-13 13:51:08 +02:00
Radoslaw Wicik
8b24846b92 [BH-422] Fix CMake in service GUI
Refactor CMakeLists.txt for cleaner and simpler code.
2021-05-13 13:51:08 +02:00
Michał Kamoń
0bad6d643b [EGD-6657] ApplicationDesktop clean-up
This PR cleans-up `ApplicationDesktop` after recent changes in
home screen notifications handling.
2021-05-07 15:41:14 +02:00
Przemyslaw Brudny
9a17c5fc3c [EGD-6676] PhoneLock handling with ServiceDesktop
Replaced old PhoneLock handler in ServiceDesktop with new
interactions with Application Manager PhoneLockHandler.
2021-05-05 13:55:14 +02:00
Wiktor S. Ovalle Correa
cc0a76f2c7 [EGD-6485] Remove Cellular message types from global
Domain-specific message types should not pollute global space.
2021-04-20 17:31:36 +02:00
Wiktor S. Ovalle Correa
14a01945b6 [EGD-6485] ServiceDB cleanup
Remove old unused ServiceDB API and deprecate its remains still being
in use.
2021-04-12 13:35:51 +02:00
Kuba Kleczkowski
b88b8fc438 [EGD-6121] Add offline mode in service cellular
Adds entering and leaving ito offline mode in sevice
cellular. Outgoin SMS and calls are blocked Proper popups
are shown in applications Call and Messages.
2021-04-01 19:32:07 +02:00
Marcin Smoczyński
b890bcd6e3 [EGD-5260] Add A2DP playback to audio
Add basic playback capability using Bluetooth A2DP profile.
Only stereo/44100/16bit files are supported at the moment

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-03-25 01:01:35 +01:00
Michał Kamoń
46b8914054 [EGD-5945] Bluetooth-harness API messages
This PR:
* provides Bluetooth-Harness API messages definition [EGD-5944]
* provides Bluetooth-Harness API messages implementation
* provides Bluetooth-Harness API usage on harness side [EGD-5946]
* provides Bluetooth-Harness tests [EGD-5947]
2021-03-19 10:27:29 +01:00
Wojtek Rzepecki
e69576aa60 [EGD-6192] Add torch hw control v2
Change behavior of torch
control according to newest
design.
2021-03-18 08:53:19 +01:00
RobertPiet
39e6f1b18a [EGD-5902] Phone Modes Windows
Windows for phone modes created.
Offline:FightMode/messages only ServiceCellularApi created.
ConnectionFrequency and DND options settings throught AppSettings.
2021-03-11 17:38:44 +01:00
SP2FET
da27b16dcc [EGD-6100] Add BT device turn off handling
After BT device disconnects (e.g. because of shutdown) Pure is now
aware of this
2021-03-11 10:33:51 +01:00
SP2FET
66db7b0841 [EGD-5512] Usb security refactor and devices pairing
Move all security related functionality to single security endpoint
Paired devices can be added to avoid further passcode requests
2021-03-11 08:46:18 +01:00
Mateusz Grzegorzek
898de0540c [EGD-5932] Create Quotes agent
- add Quotes agent,
- implement get all quotes
  and get all categories queries,
- extract PagedData from ListDirData
  and reuse it in QuotesMessages,
- unify naming in Quotes and FileIndexer,
- add Quotes agent unit tests
2021-03-09 16:43:22 +01:00
Wojtek Rzepecki
ef63ee267c [EGD-5304] Add new way of system close
Unified method of closing
the system orchestrated by
system manager
2021-03-04 15:55:55 +01:00
Tomasz Langowski
e8f7a57219 [EGD-5758] Restore auto locking timer in ApplicationManager
Restore auto-locking functionality
2021-03-03 11:37:47 +01:00
Wiktor S. Ovalle Correa
622a7141e0 [EGD-5926] Unmount VFS partitions on close
There is no shutdown procedure reflecting sysInit,
but filesystems can be unmounted directly before returning
from main()
2021-03-02 10:07:45 +01:00
Tomasz Sobkowiak
0022da5e37 [EGD-5204] Show passcode screen only when PC is connected
USBConfigured event is not fired when powerbank, charger is connected.

[EGD-5204] Show passcode screen only when PC is connected

USBConfigured event is not fired when powerbank, charger is connected.
2021-02-25 10:28:08 +01:00
Piotr Tański
d5c3d41ca4 [EGD-5204] Secure USB communication
Secure all endpoints by returning 403(Forbidden) when USB is connected.
Request screen passcode to enable secured endpoints.
2021-02-24 19:49:07 +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
Kuba Kleczkowski
993235b7b7 [EGD-5740] Change cellular message handlers
Phone modes dependent message handlig is moved to separated
handlers.
2021-02-23 17:41:53 +01:00
Borys Jelenski
d9ae779a37 [EGD-5503] Add watchdog implementation
The system watchdog monitors whether there is message traffic
on the Bus. If no message was sent for an extended period of time,
a reset will occur. It should also protect against system-wide hangs.

On Linux, watchdog is simulated by a FreeRTOS task that will call exit
on timeout.
2021-02-19 11:32:12 +01:00
Lukasz Skrzypczak
a5d1fadf2e [EGD-3685] Vibra handling
Added driver & business logic. Responds to messages.
2021-02-18 17:27:54 +01:00
Adam Dobrowolski
f724d9074b [EGD-5701] Added DOM dump to harness
* Added generic handler to developerMode
* Added DOM message handling
2021-02-18 16:53:07 +01:00
Marek Niepieklo
042e5b6984 [EGD-4625] Fix update timeout timer
Moved timer handling to Service Desktop
Use message comm. to update timer state
2021-02-18 13:45:15 +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
06d0a276f5 [EGD-5463] Fix CI emulator log and timeout
Fix wrong log stream redirection in CI
Use real value from --timeout option and seto it to 30s
so emulator have enough time to start properly
2021-02-17 17:08:18 +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
Lucjan Bryndza
e6213e9407 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:02:21 +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
Wojtek Rzepecki
323786c4d2 [EGD-4797] Battery bar as widget
Battery bar now is present as
a separate widget in top bar.
Additionally refactored passing
battery status.
2021-02-15 13:05:56 +01:00
Maciej-Mudita
11aa4c7ffb [EGD-5382] Add LowPower CpuSentinels
In order to synchronize the Low Power mode, the services were
immediately informed about the frequency change,
so that they can update their resources (e.g. PWM filling)
and services may request the maximum CPU frequency in order
to perform a task (e.g. screen redraw, telephone conversation)
2021-02-12 09:40:36 +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
Piotr Tański
65119cb495 [EGD-5027] Services synchronization introduced
Dependencies between services are now supported.
2021-02-10 12:37:42 +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
mkamonMdt
fac27c747a [EGD-4955] Add on-off test harness for simulator
This PR provides CI test for turning on and off PurePhone
simulator.
2021-02-02 10:01:51 +01:00
Wojtek Rzepecki
01d1c84f25 [EGD-5390] Add keypad backlight to GUI
Added demo connection to keypad light
GUI window.
2021-02-01 16:55:00 +01:00
alek
82125e9357 [EGD-3247] Remove reminders of unused ping-pong feature
Feature was already removed some time ago but still some reminders
persist. This commit only removed mentioned reminders.
Some minor style fixes suggested by clang tidy were also applied.
2021-01-31 15:34:38 +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
Przemyslaw Brudny
9645fbc278 [EDG-4717] Add screen for brightness control
Window for manual and automatic screen brightness control.
2021-01-19 12:09:36 +01:00
Wojtek Rzepecki
b24f0bca20 [EGD-2501] Add gsm powerdown due to battery
Gsm model power state maintenance based on battery level.
2021-01-15 11:05:22 +01:00
pawpMudita
52ad797f25 [EGD-4737] Add VoLTE ON/OFF switch in Settings Network window
Add VoLTE ON/OFF switch in Settings Network window
2021-01-11 12:53:45 +01:00
breichel
a5f957823d [EGD-4628] Add APN settings and URC handler for PDP context
Classes supporting APN settings on modem and telephone
configuration (synchronization) have been constructed.
Possibility of asynchronous execution
of individual actions via ServiceCellularAPI.
Added message with information about deactivation of the
PDP context (URC) that the
application / service can listen on.
2021-01-10 10:01:30 +01:00
Wojtek Rzepecki
7e157e83a2 [EGD-5050] Add brownout detection
Brownout detectection realized through charger driver
2021-01-07 10:55:25 +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
Hubert Chrzaniuk
bb6989c2a8 [EGD-4978] Add Bluetooth virtual audio device
Bluetooth audio device requires different handling than other
audio devices. The commit adds proxy device that does not
handle requests itself but instead sends requests too Bluetooth
service.
2020-12-21 13:46:40 +01:00