~aleteoryx/muditaos

958ce4906c5386ad8aaa0e7e72697be7388ca9ef — Marcin Smoczyński 4 years ago 5f03b91
[BH-897] Split module-sys

Split system module to better manage dependencies between system
components.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
124 files changed, 480 insertions(+), 221 deletions(-)

M module-apps/application-antenna/ApplicationAntenna.cpp
M module-apps/application-antenna/include/application-antenna/ApplicationAntenna.hpp
M module-apps/application-call/ApplicationCall.cpp
M module-apps/application-call/include/application-call/ApplicationCall.hpp
A module-apps/application-clock/ApplicationClock.cpp
A module-apps/application-clock/ApplicationClock.hpp
M module-apps/apps-common/ApplicationCommon.cpp
M module-apps/apps-common/CallbackStorage.hpp
M module-apps/apps-common/GuiTimer.cpp
M module-apps/apps-common/GuiTimer.hpp
M module-apps/apps-common/locks/handlers/PhoneLockHandler.cpp
M module-apps/apps-common/locks/handlers/PhoneLockHandler.hpp
M module-apps/apps-common/locks/handlers/PhoneLockSubject.hpp
M module-apps/apps-common/locks/handlers/SimLockHandler.cpp
M module-apps/apps-common/locks/handlers/SimLockHandler.hpp
M module-apps/apps-common/locks/handlers/SimLockSubject.hpp
M module-apps/apps-common/popups/TetheringConfirmationPopup.cpp
M module-apps/apps-common/popups/WindowWithTimer.hpp
M module-apps/apps-common/popups/data/BluetoothModeParams.hpp
M module-apps/apps-common/popups/data/PhoneModeParams.hpp
M module-apps/apps-common/popups/data/PopupRequestParams.hpp
M module-apps/apps-common/popups/presenter/PowerOffPresenter.cpp
M module-bsp/board/linux/watchdog/software_watchdog.cpp
M module-bsp/bsp/vibrator/vibrator.hpp
M module-gui/gui/widgets/Item.hpp
M module-services/service-antenna/ServiceAntenna.cpp
M module-services/service-antenna/include/service-antenna/ServiceAntenna.hpp
M module-services/service-appmgr/include/service-appmgr/Controller.hpp
M module-services/service-audio/ServiceAudio.cpp
M module-services/service-bluetooth/service-bluetooth/BluetoothDevicesModel.cpp
M module-services/service-cellular/CellularRequestHandler.cpp
M module-services/service-cellular/handler/RawATHandler.cpp
M module-services/service-cellular/handler/RawATHandler.hpp
M module-services/service-cellular/service-cellular/ServiceCellular.hpp
M module-services/service-cellular/service-cellular/connection-manager/ConnectionManager.hpp
M module-services/service-db/test/test-settings-Settings/test-settings-Interface.cpp
M module-services/service-desktop/ServiceDesktop.cpp
M module-services/service-desktop/endpoints/developerMode/DeveloperModeHelper.cpp
M module-services/service-evtmgr/screen-light-control/ScreenLightControl.hpp
M module-services/service-evtmgr/service-evtmgr/BatteryMessages.hpp
M module-services/service-evtmgr/service-evtmgr/KbdMessage.hpp
M module-services/service-evtmgr/vibra/Vibra.cpp
M module-services/service-time/AlarmRepository.hpp
M module-services/service-time/include/service-time/AlarmServiceAPI.hpp
M module-services/service-time/service-time/RTCCommandInterface.hpp
M module-services/service-time/service-time/TimeMessage.hpp
M module-sys/CMakeLists.txt
A module-sys/PhoneModes/CMakeLists.txt
M module-sys/PhoneModes/Observer.cpp
M module-sys/PhoneModes/Subject.cpp
R module-sys/PhoneModes/{ => include}/PhoneModes/Common.hpp
R module-sys/PhoneModes/{ => include}/PhoneModes/Observer.hpp
R module-sys/PhoneModes/{ => include}/PhoneModes/Subject.hpp
M module-sys/Service/BusProxy.cpp
A module-sys/Service/CMakeLists.txt
M module-sys/Service/CpuSentinel.cpp
M module-sys/Service/Message.cpp
M module-sys/Service/Service.cpp
M module-sys/Service/Worker.cpp
M module-sys/Service/details/bus/Bus.cpp
M module-sys/Service/details/bus/Bus.hpp
R module-sys/Service/{ => include}/Service/BusProxy.hpp
R module-sys/Service/{ => include}/Service/Common.hpp
R module-sys/Service/{ => include}/Service/CpuSentinel.hpp
R module-sys/Service/{ => include}/Service/Mailbox.hpp
R module-sys/Service/{ => include}/Service/Message.hpp
R module-sys/Service/{ => include}/Service/MessageForward.hpp
R module-sys/Service/{ => include}/Service/Service.hpp
R module-sys/Service/{ => include}/Service/ServiceCreator.hpp
R module-sys/Service/{ => include}/Service/ServiceForward.hpp
R module-sys/Service/{ => include}/Service/ServiceManifest.hpp
R module-sys/Service/{ => include}/Service/ServiceProxy.hpp
R module-sys/Service/{ => include}/Service/SystemReturnCodes.hpp
R module-sys/Service/{ => include}/Service/Watchdog.hpp
R module-sys/Service/{ => include}/Service/Worker.hpp
M module-sys/Service/tests/test-system_messages.cpp
A module-sys/SystemManager/CMakeLists.txt
M module-sys/SystemManager/CpuGovernor.cpp
M module-sys/SystemManager/CpuStatistics.cpp
M module-sys/SystemManager/DependencyGraph.cpp
M module-sys/SystemManager/DeviceManager.cpp
M module-sys/SystemManager/PowerManager.cpp
M module-sys/SystemManager/SystemManagerCommon.cpp
R module-sys/SystemManager/{ => include}/SystemManager/Constants.hpp
R module-sys/SystemManager/{ => include}/SystemManager/CpuGovernor.hpp
R module-sys/SystemManager/{ => include}/SystemManager/CpuStatistics.hpp
R module-sys/SystemManager/{ => include}/SystemManager/DependencyGraph.hpp
R module-sys/SystemManager/{ => include}/SystemManager/DeviceManager.hpp
R module-sys/SystemManager/{ => include}/SystemManager/PowerManager.hpp
R module-sys/SystemManager/{ => include}/SystemManager/SystemManagerCommon.hpp
R module-sys/SystemManager/{ => include}/SystemManager/messages/CpuFrequencyMessage.hpp
R module-sys/SystemManager/{ => include}/SystemManager/messages/DeviceRegistrationMessage.hpp
R module-sys/SystemManager/{ => include}/SystemManager/messages/RequestCpuFrequencyMessage.hpp
R module-sys/SystemManager/{ => include}/SystemManager/messages/SentinelRegistrationMessage.hpp
R module-sys/SystemManager/{ => include}/SystemManager/messages/SystemManagerMessage.hpp
R module-sys/SystemManager/{ => include}/SystemManager/messages/TetheringQuestionRequest.hpp
R module-sys/SystemManager/{ => include}/SystemManager/messages/TetheringStateRequest.hpp
A module-sys/SystemWatchdog/CMakeLists.txt
M module-sys/SystemWatchdog/SystemWatchdog.cpp
R module-sys/SystemWatchdog/{ => include}/SystemWatchdog/SystemWatchdog.hpp
A module-sys/Timers/CMakeLists.txt
M module-sys/Timers/SystemTimer.cpp
M module-sys/Timers/TimerFactory.cpp
M module-sys/Timers/TimerHandle.cpp
R module-sys/Timers/{ => include}/Timers/SystemTimer.hpp
R module-sys/Timers/{ => include}/Timers/Timer.hpp
R module-sys/Timers/{ => include}/Timers/TimerFactory.hpp
R module-sys/Timers/{ => include}/Timers/TimerHandle.hpp
R module-sys/Timers/{ => include}/Timers/TimerMessage.hpp
M products/BellHybrid/alarms/src/actions/PlayToneAction.hpp
M products/BellHybrid/apps/application-bell-main/presenters/HomeScreenPresenter.cpp
M products/BellHybrid/apps/application-bell-main/presenters/HomeScreenPresenter.hpp
M products/BellHybrid/services/appmgr/include/appmgr/messages/AlarmMessage.hpp
M products/BellHybrid/services/evtmgr/EventManager.cpp
M products/BellHybrid/services/evtmgr/screen-light-control/ScreenLightControl.cpp
M products/BellHybrid/sys/include/sys/SystemManager.hpp
M products/PurePhone/services/appmgr/ApplicationManager.cpp
M products/PurePhone/services/evtmgr/screen-light-control/ScreenLightControl.cpp
M products/PurePhone/services/service-fileindexer/include/service-fileindexer/StartupIndexer.hpp
M products/PurePhone/sys/SystemManager.cpp
M products/PurePhone/sys/include/sys/SystemManager.hpp
M products/PurePhone/sys/include/sys/messages/PhoneModeRequest.hpp
M products/PurePhone/sys/include/sys/messages/TetheringPhoneModeChangeProhibitedMessage.hpp
M products/PurePhone/test/test-settings/test-service-db-settings-api.cpp
M module-apps/application-antenna/ApplicationAntenna.cpp => module-apps/application-antenna/ApplicationAntenna.cpp +1 -1
@@ 13,7 13,7 @@
#include <windows/ScanModesWindow.hpp>
#include <windows/AlgoParamsWindow.hpp>
#include <module-cellular/at/response.hpp>
#include <module-sys/Timers/TimerFactory.hpp>
#include <Timers/TimerFactory.hpp>
#include <service-cellular/CellularServiceAPI.hpp>
#include <ticks.hpp>


M module-apps/application-antenna/include/application-antenna/ApplicationAntenna.hpp => module-apps/application-antenna/include/application-antenna/ApplicationAntenna.hpp +1 -1
@@ 5,7 5,7 @@

#include <windows/AppWindow.hpp>
#include <apps-common/ApplicationCommon.hpp>
#include <module-sys/Timers/TimerHandle.hpp>
#include <Timers/TimerHandle.hpp>
#include <service-cellular/CellularServiceAPI.hpp>

namespace app

M module-apps/application-call/ApplicationCall.cpp => module-apps/application-call/ApplicationCall.cpp +1 -1
@@ 12,7 12,7 @@
#include <apps-common/windows/DialogMetadata.hpp>
#include <log/log.hpp>
#include <module-apps/application-phonebook/data/PhonebookItemData.hpp>
#include <module-sys/Timers/TimerFactory.hpp>
#include <Timers/TimerFactory.hpp>
#include <PhoneNumber.hpp>
#include <service-appmgr/Controller.hpp>
#include <service-appmgr/data/MmiActionsParams.hpp>

M module-apps/application-call/include/application-call/ApplicationCall.hpp => module-apps/application-call/include/application-call/ApplicationCall.hpp +1 -1
@@ 6,7 6,7 @@
#include "Application.hpp"
#include "CallState.hpp"

#include <module-sys/Timers/TimerHandle.hpp>
#include <Timers/TimerHandle.hpp>
#include <service-cellular/CellularMessage.hpp>
#include <service-evtmgr/Constants.hpp>
#include <service-evtmgr/EVMessages.hpp>

A module-apps/application-clock/ApplicationClock.cpp => module-apps/application-clock/ApplicationClock.cpp +97 -0
@@ 0,0 1,97 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

// module-gui
#include "AppWindow.hpp"
#include "gui/widgets/Window.hpp"

// module-utils
#include <log.hpp>
#include <service-evtmgr/EVMessages.hpp>
#include <service-evtmgr/EventManagerCommon.hpp>
#include <Timers/TimerFactory.hpp>
// MessageType
#include "MessageType.hpp"
// this module
#include "windows/ClockMainWindow.hpp"
#include "ApplicationClock.hpp"

namespace app
{
    ApplicationClock::ApplicationClock(std::string name,
                                       std::string parent,
                                       sys::phone_modes::PhoneMode phoneMode,
                                       sys::bluetooth::BluetoothMode bluetoothMode,
                                       StartInBackground startInBackground,
                                       uint32_t stackDepth,
                                       sys::ServicePriority priority)
        : Application(name, parent, phoneMode, bluetoothMode, startInBackground, stackDepth, priority)
    {
        timerClock = sys::TimerFactory::createPeriodicTimer(
            this, "Clock", std::chrono::milliseconds{1000}, [&](sys::Timer &) { timerClockCallback(); });
        timerClock.start();
    }

    void ApplicationClock::timerClockCallback()
    {
        auto win = reinterpret_cast<gui::ClockMainWindow *>(windowsStack.get(gui::name::window::main_window));
        win->incrementSecond();
        win->updateLabels();
        render(gui::RefreshModes::GUI_REFRESH_FAST);
    }

    // Invoked upon receiving data message
    sys::MessagePointer ApplicationClock::DataReceivedHandler(sys::DataMessage *msgl, sys::ResponseMessage *resp)
    {

        auto retMsg = Application::DataReceivedHandler(msgl);
        // if message was handled by application's template there is no need to process further.
        if (reinterpret_cast<sys::ResponseMessage *>(retMsg.get())->retCode == sys::ReturnCodes::Success) {
            return retMsg;
        }

        // this variable defines whether message was processed.
        bool handled = false;
        // if keyboard message received

        if (handled)
            return std::make_shared<sys::ResponseMessage>();
        else
            return std::make_shared<sys::ResponseMessage>(sys::ReturnCodes::Unresolved);
    }

    // Invoked during initialization
    sys::ReturnCodes ApplicationClock::InitHandler()
    {

        auto ret = Application::InitHandler();
        if (ret != sys::ReturnCodes::Success)
            return ret;

        createUserInterface();

        setActiveWindow("MainWindow");

        return ret;
    }

    sys::ReturnCodes ApplicationClock::DeinitHandler()
    {
        timerClock.stop();
        return Application::DeinitHandler();
    }

    void ApplicationClock::createUserInterface()
    {
        windowsFactory.attach(gui::name::window::main_window, [](ApplicationCommon *app, const std::string &name) {
            return std::make_unique<gui::ClockMainWindow>(app, name);
        });

        attachPopups(
            {gui::popup::ID::Volume, gui::popup::ID::Tethering, gui::popup::ID::PhoneModes, gui::popup::ID::PhoneLock});
    }

    void ApplicationClock::destroyUserInterface()
    {}

} /* namespace app */

A module-apps/application-clock/ApplicationClock.hpp => module-apps/application-clock/ApplicationClock.hpp +51 -0
@@ 0,0 1,51 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once
#include "Application.hpp"
#include "Service/Message.hpp"
#include "gui/widgets/Label.hpp"
#include "gui/widgets/Image.hpp"
#include "gui/widgets/ProgressBar.hpp"
#include "Timers/TimerHandle.hpp"

namespace app
{
    const inline std::string name_clock = "ApplicationClock";

    class ApplicationClock : public Application
    {
        sys::TimerHandle timerClock;
        void timerClockCallback();

      public:
        explicit ApplicationClock(std::string name                            = name_clock,
                                  std::string parent                          = {},
                                  sys::phone_modes::PhoneMode phoneMode       = sys::phone_modes::PhoneMode::Connected,
                                  sys::bluetooth::BluetoothMode bluetoothMode = sys::bluetooth::BluetoothMode::Disabled,
                                  StartInBackground startInBackground         = {false},
                                  uint32_t stackDepth                         = 4096,
                                  sys::ServicePriority priority               = sys::ServicePriority::Idle);

        sys::MessagePointer DataReceivedHandler(sys::DataMessage *msgl, sys::ResponseMessage *resp) override;
        sys::ReturnCodes InitHandler() override;
        sys::ReturnCodes DeinitHandler() override;

        sys::ReturnCodes SwitchPowerModeHandler(const sys::ServicePowerMode mode) override final
        {
            return sys::ReturnCodes::Success;
        }

        void createUserInterface() override;
        void destroyUserInterface() override;
    };

    template <> struct ManifestTraits<ApplicationClock>
    {
        static auto GetManifest() -> manager::ApplicationManifest
        {
            return {
                {manager::actions::Launch, manager::actions::PhoneModeChanged, manager::actions::BluetoothModeChanged}};
        }
    };
} /* namespace app */

M module-apps/apps-common/ApplicationCommon.cpp => module-apps/apps-common/ApplicationCommon.cpp +5 -5
@@ 2,11 2,11 @@
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "ApplicationCommon.hpp"
#include "Common.hpp"                         // for RefreshModes
#include "GuiTimer.hpp"                       // for GuiTimer
#include "Item.hpp"                           // for Item
#include "MessageType.hpp"                    // for MessageType
#include "module-sys/Timers/TimerFactory.hpp" // for Timer
#include "Common.hpp"              // for RefreshModes
#include "GuiTimer.hpp"            // for GuiTimer
#include "Item.hpp"                // for Item
#include "MessageType.hpp"         // for MessageType
#include "Timers/TimerFactory.hpp" // for Timer
#include "StatusBar.hpp"
#include "status-bar/Time.hpp"
#include "Translator.hpp"                // for KeyInputSim...

M module-apps/apps-common/CallbackStorage.hpp => module-apps/apps-common/CallbackStorage.hpp +1 -1
@@ 5,7 5,7 @@

#include "AsyncTask.hpp"

#include "module-sys/Service/Message.hpp"
#include "Service/Message.hpp"

#include <memory>
#include <list>

M module-apps/apps-common/GuiTimer.cpp => module-apps/apps-common/GuiTimer.cpp +2 -2
@@ 6,8 6,8 @@

#include <apps-common/ApplicationCommon.hpp> // for Application

#include "module-sys/Timers/SystemTimer.hpp" // for Timer, Timer::Type, Timer::Ty...
#include "module-sys/Timers/TimerFactory.hpp"
#include "Timers/SystemTimer.hpp" // for Timer, Timer::Type, Timer::Ty...
#include "Timers/TimerFactory.hpp"

#include <functional>


M module-apps/apps-common/GuiTimer.hpp => module-apps/apps-common/GuiTimer.hpp +2 -2
@@ 3,8 3,8 @@

#pragma once

#include "module-sys/Timers/Timer.hpp"       // for Timer
#include "module-sys/Timers/TimerHandle.hpp" // for TimerHandle
#include "Timers/Timer.hpp"       // for Timer
#include "Timers/TimerHandle.hpp" // for TimerHandle

#include <memory>
#include <string> // for string

M module-apps/apps-common/locks/handlers/PhoneLockHandler.cpp => module-apps/apps-common/locks/handlers/PhoneLockHandler.cpp +1 -1
@@ 8,7 8,7 @@
#include <service-appmgr/Controller.hpp>
#include <apps-common/popups/data/PopupRequestParams.hpp>
#include <module-services/service-db/agents/settings/SystemSettings.hpp>
#include <module-sys/Timers/TimerFactory.hpp>
#include <Timers/TimerFactory.hpp>
#include <time/time_conversion_factory.hpp>

namespace locks

M module-apps/apps-common/locks/handlers/PhoneLockHandler.hpp => module-apps/apps-common/locks/handlers/PhoneLockHandler.hpp +1 -1
@@ 8,7 8,7 @@
#include <locks/data/LockData.hpp>

#include <service-db/Settings.hpp>
#include <module-sys/Service/Service.hpp>
#include <Service/Service.hpp>
#include <Timers/TimerHandle.hpp>

namespace locks

M module-apps/apps-common/locks/handlers/PhoneLockSubject.hpp => module-apps/apps-common/locks/handlers/PhoneLockSubject.hpp +1 -1
@@ 4,7 4,7 @@
#pragma once

#include <locks/data/LockData.hpp>
#include <module-sys/Service/Service.hpp>
#include <Service/Service.hpp>

namespace locks
{

M module-apps/apps-common/locks/handlers/SimLockHandler.cpp => module-apps/apps-common/locks/handlers/SimLockHandler.cpp +4 -4
@@ 9,14 9,14 @@

#include <apps-common/popups/data/PopupRequestParams.hpp>
#include <EventStore.hpp>
#include <module-sys/Timers/TimerFactory.hpp>
#include <Timers/TimerFactory.hpp>
#include <service-cellular-api>

namespace locks
{
    constexpr unsigned int default_attempts           = 4;
    constexpr unsigned int max_input_size             = 8;
    constexpr unsigned int min_input_size             = 4;
    constexpr unsigned int default_attempts = 4;
    constexpr unsigned int max_input_size   = 8;
    constexpr unsigned int min_input_size   = 4;

    SimLockHandler::SimLockHandler(sys::Service *owner)
        : owner(owner), lock(Lock::LockState::Unlocked, default_attempts)

M module-apps/apps-common/locks/handlers/SimLockHandler.hpp => module-apps/apps-common/locks/handlers/SimLockHandler.hpp +2 -2
@@ 7,12 7,12 @@
#include <locks/data/SimLockMessages.hpp>
#include <locks/data/LockData.hpp>

#include <module-sys/Service/Service.hpp>
#include <Service/Service.hpp>
#include <Timers/TimerHandle.hpp>

namespace locks
{
    using StoredLockInput               = std::vector<unsigned int>;
    using StoredLockInput = std::vector<unsigned int>;

    class SimLockHandler
    {

M module-apps/apps-common/locks/handlers/SimLockSubject.hpp => module-apps/apps-common/locks/handlers/SimLockSubject.hpp +1 -1
@@ 5,7 5,7 @@

#include <locks/data/LockData.hpp>

#include <module-sys/Service/Service.hpp>
#include <Service/Service.hpp>
#include <service-cellular-api>

namespace locks

M module-apps/apps-common/popups/TetheringConfirmationPopup.cpp => module-apps/apps-common/popups/TetheringConfirmationPopup.cpp +1 -1
@@ 5,7 5,7 @@
#include "DialogMetadataMessage.hpp"
#include "ApplicationCommon.hpp"

#include <module-sys/SystemManager/messages/TetheringQuestionRequest.hpp>
#include <SystemManager/messages/TetheringQuestionRequest.hpp>
#include <service-appmgr/Controller.hpp>

namespace gui

M module-apps/apps-common/popups/WindowWithTimer.hpp => module-apps/apps-common/popups/WindowWithTimer.hpp +1 -1
@@ 4,7 4,7 @@
#pragma once

#include "AppWindow.hpp"
#include <module-sys/Timers/TimerHandle.hpp>
#include <Timers/TimerHandle.hpp>

namespace gui
{

M module-apps/apps-common/popups/data/BluetoothModeParams.hpp => module-apps/apps-common/popups/data/BluetoothModeParams.hpp +1 -1
@@ 6,7 6,7 @@
#include "popups/Popups.hpp"

#include <service-appmgr/Actions.hpp>
#include <module-sys/PhoneModes/Common.hpp>
#include <PhoneModes/Common.hpp>

namespace gui
{

M module-apps/apps-common/popups/data/PhoneModeParams.hpp => module-apps/apps-common/popups/data/PhoneModeParams.hpp +1 -1
@@ 6,7 6,7 @@
#include "popups/Popups.hpp"

#include <service-appmgr/Actions.hpp>
#include <module-sys/PhoneModes/Common.hpp>
#include <PhoneModes/Common.hpp>

namespace gui
{

M module-apps/apps-common/popups/data/PopupRequestParams.hpp => module-apps/apps-common/popups/data/PopupRequestParams.hpp +1 -1
@@ 6,7 6,7 @@
#include "popups/Popups.hpp"

#include <service-appmgr/Actions.hpp>
#include <module-sys/PhoneModes/Common.hpp>
#include <PhoneModes/Common.hpp>
#include <module-audio/Audio/AudioCommon.hpp>
#include <locks/widgets/Lock.hpp>
#include <locks/data/LockData.hpp>

M module-apps/apps-common/popups/presenter/PowerOffPresenter.cpp => module-apps/apps-common/popups/presenter/PowerOffPresenter.cpp +1 -1
@@ 3,7 3,7 @@

#include "PowerOffPresenter.hpp"
#include <service-appmgr/messages/UserPowerDownRequest.hpp>
#include <module-sys/SystemManager/Constants.hpp>
#include <SystemManager/Constants.hpp>

namespace gui
{

M module-bsp/board/linux/watchdog/software_watchdog.cpp => module-bsp/board/linux/watchdog/software_watchdog.cpp +1 -1
@@ 4,7 4,7 @@
#include "software_watchdog.hpp"
#include <module-os/RTOSWrapper/include/critical.hpp>
#include <module-os/RTOSWrapper/include/ticks.hpp>
#include <module-sys/Service/Common.hpp>
#include <Service/Common.hpp>
#include <log.hpp>
#include <cstdlib>


M module-bsp/bsp/vibrator/vibrator.hpp => module-bsp/bsp/vibrator/vibrator.hpp +3 -3
@@ 1,6 1,6 @@
#pragma once

#include <module-sys/Timers/Timer.hpp>
#include <Timers/Timer.hpp>
#include <Utils.hpp>

#include <chrono>


@@ 10,8 10,8 @@ namespace bsp
{
    namespace vibrator
    {
        inline constexpr auto defaultVibraPulseMs = 1000;        /// default: 1000 ms vibra pulse
        inline constexpr auto defaultVibraPauseMs = 1000;        /// default: 1000 ms vibra pause between pulses
        inline constexpr auto defaultVibraPulseMs = 1000; /// default: 1000 ms vibra pulse
        inline constexpr auto defaultVibraPauseMs = 1000; /// default: 1000 ms vibra pause between pulses

        enum class Action
        {

M module-gui/gui/widgets/Item.hpp => module-gui/gui/widgets/Item.hpp +1 -1
@@ 16,7 16,7 @@
#include <utility>              // for move
#include <core/DrawCommandForward.hpp>
#include <module-gui/gui/widgets/visitor/GuiVisitor.hpp>
#include <module-sys/Timers/Timer.hpp>
#include <Timers/Timer.hpp>

namespace gui
{

M module-services/service-antenna/ServiceAntenna.cpp => module-services/service-antenna/ServiceAntenna.cpp +2 -2
@@ 10,7 10,7 @@
#include <EventStore.hpp>
#include <log.hpp>
#include <MessageType.hpp>
#include <module-sys/Timers/TimerFactory.hpp>
#include <Timers/TimerFactory.hpp>
#include <projdefs.h>
#include <service-cellular/CellularMessage.hpp>
#include <service-cellular/CellularServiceAPI.hpp>


@@ 352,7 352,7 @@ bool ServiceAntenna::bandCheckStateHandler(void)
        LOG_INFO("QNWINFO: %s", qnwinfo.c_str());
        const auto bandFrequency = at::response::qnwinfo::parseNetworkFrequency(qnwinfo);
        LOG_INFO("Band frequency: %" PRIu32, bandFrequency);
        constexpr uint32_t GHz = 1000;
        constexpr uint32_t GHz  = 1000;
        const bool isBandSubGHz = bandFrequency < GHz;
        if (currentAntenna == bsp::cellular::antenna::highBand) {
            LOG_INFO("High band antenna.");

M module-services/service-antenna/include/service-antenna/ServiceAntenna.hpp => module-services/service-antenna/include/service-antenna/ServiceAntenna.hpp +1 -1
@@ 8,7 8,7 @@
#include <bsp/cellular/bsp_cellular.hpp>
#include <Timers/TimerHandle.hpp>
#include <service-db/DBServiceName.hpp>
#include <module-sys/PhoneModes/Observer.hpp>
#include <PhoneModes/Observer.hpp>

namespace service::name
{

M module-services/service-appmgr/include/service-appmgr/Controller.hpp => module-services/service-appmgr/include/service-appmgr/Controller.hpp +1 -1
@@ 6,7 6,7 @@
#include <service-appmgr/Actions.hpp>
#include <service-appmgr/messages/Message.hpp>

#include <module-sys/Service/Service.hpp>
#include <Service/Service.hpp>
#include <SwitchData.hpp>

#include <i18n/i18n.hpp>

M module-services/service-audio/ServiceAudio.cpp => module-services/service-audio/ServiceAudio.cpp +1 -1
@@ 8,7 8,7 @@
#include <Audio/Operation/PlaybackOperation.hpp>
#include <Bluetooth/audio/BluetoothAudioDevice.hpp>
#include <module-audio/Audio/VolumeScaler.hpp>
#include <module-sys/SystemManager/messages/SentinelRegistrationMessage.hpp>
#include <SystemManager/messages/SentinelRegistrationMessage.hpp>
#include <service-bluetooth/BluetoothMessage.hpp>
#include <service-bluetooth/Constants.hpp>
#include <service-bluetooth/messages/AudioRouting.hpp>

M module-services/service-bluetooth/service-bluetooth/BluetoothDevicesModel.cpp => module-services/service-bluetooth/service-bluetooth/BluetoothDevicesModel.cpp +1 -1
@@ 2,7 2,7 @@
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "BluetoothDevicesModel.hpp"
#include <module-sys/Service/Service.hpp>
#include <Service/Service.hpp>
#include <service-bluetooth/messages/BondedDevices.hpp>

BluetoothDevicesModel::BluetoothDevicesModel(sys::Service *service) : service{service}

M module-services/service-cellular/CellularRequestHandler.cpp => module-services/service-cellular/CellularRequestHandler.cpp +3 -3
@@ 5,9 5,9 @@
#include "service-cellular/RequestFactory.hpp"
#include "service-cellular/ServiceCellular.hpp"

#include "Service/Message.hpp"
#include "module-sys/Timers/TimerHandle.hpp"
#include "module-sys/Timers/TimerFactory.hpp"
#include <Service/Message.hpp>
#include <Timers/TimerHandle.hpp>
#include <Timers/TimerFactory.hpp>

#include "service-cellular/requests/CallRequest.hpp"
#include "service-cellular/requests/SupplementaryServicesRequest.hpp"

M module-services/service-cellular/handler/RawATHandler.cpp => module-services/service-cellular/handler/RawATHandler.cpp +1 -1
@@ 3,7 3,7 @@

#include "RawATHandler.hpp"
#include <modem/ATCommon.hpp>
#include <module-sys/Service/Message.hpp>
#include <Service/Message.hpp>
#include <service-desktop/DeveloperModeMessage.hpp>
#include <endpoints/developerMode/event/ATRequest.hpp>


M module-services/service-cellular/handler/RawATHandler.hpp => module-services/service-cellular/handler/RawATHandler.hpp +1 -1
@@ 1,6 1,6 @@
#pragma once

#include <module-sys/Service/MessageForward.hpp>
#include <Service/MessageForward.hpp>

namespace at
{

M module-services/service-cellular/service-cellular/ServiceCellular.hpp => module-services/service-cellular/service-cellular/ServiceCellular.hpp +1 -1
@@ 24,7 24,7 @@
#include <bsp/common.hpp>
#include <utf8/UTF8.hpp>
#include <service-db/Settings.hpp>
#include <module-sys/PhoneModes/Observer.hpp>
#include <PhoneModes/Observer.hpp>
#include <service-db/DBServiceName.hpp>
#include <service-db/DBNotificationMessage.hpp>


M module-services/service-cellular/service-cellular/connection-manager/ConnectionManager.hpp => module-services/service-cellular/service-cellular/connection-manager/ConnectionManager.hpp +1 -1
@@ 5,7 5,7 @@

#include "ConnectionManagerCellularCommandsInterface.hpp"
#include "module-services/service-cellular/service-cellular/ServiceCellular.hpp"
#include <module-sys/PhoneModes/Observer.hpp>
#include <PhoneModes/Observer.hpp>
#include <functional>

// connection timer period is 1 minute, connect to network for 5 minutes

M module-services/service-db/test/test-settings-Settings/test-settings-Interface.cpp => module-services/service-db/test/test-settings-Settings/test-settings-Interface.cpp +1 -1
@@ 3,7 3,7 @@

#include <catch2/catch.hpp>
#include <memory>
#include <module-sys/Service/ServiceProxy.hpp>
#include <Service/ServiceProxy.hpp>

namespace sys
{

M module-services/service-desktop/ServiceDesktop.cpp => module-services/service-desktop/ServiceDesktop.cpp +4 -4
@@ 21,11 21,11 @@
#include <service-evtmgr/EventManagerCommon.hpp>
#include <service-evtmgr/EVMessages.hpp>
#include <purefs/filesystem_paths.hpp>
#include <module-sys/SystemManager/SystemManagerCommon.hpp>
#include <module-sys/Timers/TimerFactory.hpp>
#include <SystemManager/SystemManagerCommon.hpp>
#include <Timers/TimerFactory.hpp>

#include <module-sys/SystemManager/Constants.hpp>
#include <module-sys/SystemManager/messages/TetheringStateRequest.hpp>
#include <SystemManager/Constants.hpp>
#include <SystemManager/messages/TetheringStateRequest.hpp>

#include <sys/mount.h>
#include <sys/statvfs.h>

M module-services/service-desktop/endpoints/developerMode/DeveloperModeHelper.cpp => module-services/service-desktop/endpoints/developerMode/DeveloperModeHelper.cpp +2 -2
@@ 18,8 18,8 @@
#include <service-appmgr/Actions.hpp>
#include <messages/AppMessage.hpp>

#include <module-sys/SystemManager/messages/TetheringStateRequest.hpp>
#include <module-sys/SystemManager/Constants.hpp>
#include <SystemManager/messages/TetheringStateRequest.hpp>
#include <SystemManager/Constants.hpp>

#include <service-db/agents/settings/SystemSettings.hpp>
#include <service-db/DBServiceAPI.hpp>

M module-services/service-evtmgr/screen-light-control/ScreenLightControl.hpp => module-services/service-evtmgr/screen-light-control/ScreenLightControl.hpp +1 -1
@@ 5,7 5,7 @@

#include "ScreenLightControlParameters.hpp"
#include <memory>
#include <module-sys/Timers/TimerHandle.hpp>
#include <Timers/TimerHandle.hpp>
namespace settings
{
    class Settings;

M module-services/service-evtmgr/service-evtmgr/BatteryMessages.hpp => module-services/service-evtmgr/service-evtmgr/BatteryMessages.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include "module-sys/Service/Message.hpp"
#include "Service/Message.hpp"

#include <module-bsp/bsp/torch/torch.hpp>


M module-services/service-evtmgr/service-evtmgr/KbdMessage.hpp => module-services/service-evtmgr/service-evtmgr/KbdMessage.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include "module-sys/Service/Message.hpp"
#include "Service/Message.hpp"

#include <common_data/RawKey.hpp>


M module-services/service-evtmgr/vibra/Vibra.cpp => module-services/service-evtmgr/vibra/Vibra.cpp +2 -3
@@ 3,13 3,12 @@

#include "Vibra.hpp"
#include "SystemManager/Constants.hpp"
#include <module-sys/Timers/TimerFactory.hpp>
#include <Timers/TimerFactory.hpp>

namespace vibra_handle
{
    Vibra::Vibra(sys::Service *parent) : parent{parent}
    {
    }
    {}

    void Vibra::intPulse(bool repetitive)
    {

M module-services/service-time/AlarmRepository.hpp => module-services/service-time/AlarmRepository.hpp +3 -4
@@ 3,8 3,7 @@

#pragma once


#include <module-sys/Service/Service.hpp>
#include <Service/Service.hpp>
#include <time/dateCommon.hpp>

#include <ctime>


@@ 19,8 18,8 @@ struct AlarmEventRecord;
 */
namespace alarms
{
    using OnGetAlarmEventCallback          = std::function<void(AlarmEventRecord)>;
    using OnGetAlarmEventsCallback         = std::function<void(std::vector<AlarmEventRecord>)>;
    using OnGetAlarmEventCallback  = std::function<void(AlarmEventRecord)>;
    using OnGetAlarmEventsCallback = std::function<void(std::vector<AlarmEventRecord>)>;
    using OnGetAlarmEventsInRangeCallback =
        std::function<void(std::pair<std::vector<AlarmEventRecord>, std::uint32_t>)>;
    using OnAddAlarmEventCallback          = std::function<void(bool)>;

M module-services/service-time/include/service-time/AlarmServiceAPI.hpp => module-services/service-time/include/service-time/AlarmServiceAPI.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include <module-sys/Service/Service.hpp>
#include <Service/Service.hpp>

#include <time/dateCommon.hpp>


M module-services/service-time/service-time/RTCCommandInterface.hpp => module-services/service-time/service-time/RTCCommandInterface.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include <module-sys/Service/Service.hpp>
#include <Service/Service.hpp>

#include <ctime>


M module-services/service-time/service-time/TimeMessage.hpp => module-services/service-time/service-time/TimeMessage.hpp +1 -1
@@ 4,7 4,7 @@
#pragma once

#include <MessageType.hpp>
#include <module-sys/Service/Message.hpp>
#include <Service/Message.hpp>
#include <time/time_locale.hpp>

class TimeMessage : public sys::DataMessage

M module-sys/CMakeLists.txt => module-sys/CMakeLists.txt +13 -59
@@ 1,64 1,18 @@
project(module-sys VERSION 1.0
        DESCRIPTION "Core module library")
module_is_test_entity()

module_is_test_entity()
add_subdirectory(PhoneModes)
add_subdirectory(Service)
add_subdirectory(SystemManager)
add_subdirectory(SystemWatchdog)
add_subdirectory(Timers)

set(BUS_IMPL_SOURCES
        ${CMAKE_CURRENT_SOURCE_DIR}/Service/details/bus/Bus.cpp
)

set(SOURCES
        ${CMAKE_CURRENT_SOURCE_DIR}/Service/BusProxy.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/Service/Worker.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/Service/Message.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/Service/Service.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/Timers/SystemTimer.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/Timers/TimerHandle.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/Timers/TimerFactory.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/Service/CpuSentinel.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/PhoneModes/Subject.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/PhoneModes/Observer.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/SystemManager/SystemManagerCommon.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/SystemManager/DependencyGraph.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/SystemManager/PowerManager.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/SystemManager/CpuStatistics.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/SystemManager/DeviceManager.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/SystemManager/CpuGovernor.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/SystemManager/graph/TopologicalSort.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/SystemWatchdog/SystemWatchdog.cpp

        )

add_library(bus STATIC ${BUS_IMPL_SOURCES})
target_link_libraries(bus PRIVATE module-os)

target_compile_definitions(bus PRIVATE ${PROJECT_CONFIG_DEFINITIONS})
target_compile_definitions(bus PRIVATE ${PROJECT_TARGET})
target_include_directories(bus PRIVATE ${PROJECT_INCLUDES})

add_library(module-sys)
target_sources(module-sys PRIVATE ${SOURCES})
add_library(module-sys INTERFACE)

target_link_libraries(module-sys
    PRIVATE
        apps-common
        bus
        service-evtmgr
        messagetype
        magic_enum
        eventstore
    PUBLIC
        module-os
        module-bsp
    INTERFACE
        sys-service
        sys-timers
        sys-phonemodes
        sys-watchdog
        sys-manager
    )

# Board specific compilation definitions,options,include directories and features
target_compile_definitions(${PROJECT_NAME} PUBLIC ${PROJECT_CONFIG_DEFINITIONS})
target_compile_definitions(${PROJECT_NAME} PUBLIC ${PROJECT_TARGET})
target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_INCLUDES})
target_include_directories(${PROJECT_NAME} PUBLIC ../module-services )

if (${ENABLE_TESTS})
    add_subdirectory(SystemManager/tests)
    add_subdirectory(Service/tests)
endif()

A module-sys/PhoneModes/CMakeLists.txt => module-sys/PhoneModes/CMakeLists.txt +22 -0
@@ 0,0 1,22 @@
add_library(sys-phonemodes STATIC)

target_sources(sys-phonemodes
    PUBLIC
        include/PhoneModes/Common.hpp
        include/PhoneModes/Observer.hpp
        include/PhoneModes/Subject.hpp
        
    PRIVATE
        Observer.cpp
        Subject.cpp
)

target_include_directories(sys-phonemodes
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
)

target_link_libraries(sys-phonemodes
    PUBLIC
        sys-service
)

M module-sys/PhoneModes/Observer.cpp => module-sys/PhoneModes/Observer.cpp +2 -2
@@ 1,7 1,7 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "Observer.hpp"
#include <PhoneModes/Observer.hpp>

#include <Service/Service.hpp>



@@ 71,7 71,7 @@ namespace sys::phone_modes

    sys::MessagePointer Observer::handlePhoneModeChange(PhoneModeChanged *message)
    {
        phoneMode     = message->getPhoneMode();
        phoneMode = message->getPhoneMode();
        if (!onPhoneModeChangedCallback) {
            LOG_WARN("No subscriber on phone mode change.");
            return MessageNone{};

M module-sys/PhoneModes/Subject.cpp => module-sys/PhoneModes/Subject.cpp +1 -1
@@ 1,7 1,7 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "Subject.hpp"
#include <PhoneModes/Subject.hpp>

#include <Service/Service.hpp>


R module-sys/PhoneModes/Common.hpp => module-sys/PhoneModes/include/PhoneModes/Common.hpp +0 -0
R module-sys/PhoneModes/Observer.hpp => module-sys/PhoneModes/include/PhoneModes/Observer.hpp +2 -2
@@ 20,8 20,8 @@ namespace sys::phone_modes
      public:
        using OnPhoneModeChangedCallback = std::function<void(PhoneMode)>;
        using OnTetheringChangedCallback = std::function<void(Tethering)>;
        using OnCompleteCallback = std::function<void()>;
        using OnErrorCallback    = std::function<void(const std::exception &)>;
        using OnCompleteCallback         = std::function<void()>;
        using OnErrorCallback            = std::function<void(const std::exception &)>;
        struct OnFinishedCallbacks
        {
            OnCompleteCallback onComplete;

R module-sys/PhoneModes/Subject.hpp => module-sys/PhoneModes/include/PhoneModes/Subject.hpp +0 -0
M module-sys/Service/BusProxy.cpp => module-sys/Service/BusProxy.cpp +1 -1
@@ 1,7 1,7 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "BusProxy.hpp"
#include <Service/BusProxy.hpp>

#include "details/bus/Bus.hpp"


A module-sys/Service/CMakeLists.txt => module-sys/Service/CMakeLists.txt +45 -0
@@ 0,0 1,45 @@
add_library(sys-service STATIC)

target_sources(sys-service
    PUBLIC
        include/Service/BusProxy.hpp
        include/Service/Common.hpp
        include/Service/CpuSentinel.hpp
        include/Service/Mailbox.hpp
        include/Service/MessageForward.hpp
        include/Service/Message.hpp
        include/Service/ServiceCreator.hpp
        include/Service/ServiceForward.hpp
        include/Service/Service.hpp
        include/Service/ServiceManifest.hpp
        include/Service/ServiceProxy.hpp
        include/Service/SystemReturnCodes.hpp
        include/Service/Watchdog.hpp
        include/Service/Worker.hpp

    PRIVATE
        details/bus/Bus.cpp
        details/bus/Bus.hpp

        BusProxy.cpp
        CpuSentinel.cpp
        Message.cpp
        Service.cpp
        Worker.cpp
)

target_include_directories(sys-service
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
)

target_link_libraries(sys-service
    PUBLIC
        messagetype
        magic_enum::magic_enum
        module-os
)

if (${ENABLE_TESTS})
    add_subdirectory(tests)
endif()

M module-sys/Service/CpuSentinel.cpp => module-sys/Service/CpuSentinel.cpp +1 -1
@@ 1,7 1,7 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "CpuSentinel.hpp"
#include <Service/CpuSentinel.hpp>
#include "SystemManager/messages/RequestCpuFrequencyMessage.hpp"
#include "SystemManager/Constants.hpp"
#include <memory>

M module-sys/Service/Message.cpp => module-sys/Service/Message.cpp +2 -2
@@ 1,8 1,8 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "Message.hpp"
#include "Service.hpp"
#include <Service/Message.hpp>
#include <Service/Service.hpp>

namespace sys
{

M module-sys/Service/Service.cpp => module-sys/Service/Service.cpp +20 -19
@@ 1,26 1,26 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "Service.hpp"
#include <Service/Service.hpp>
#include "FreeRTOSConfig.h"    // for configASSERT
#include "MessageType.hpp"     // for MessageType, MessageType::MessageType...
#include "Service/Common.hpp"  // for BusChannels, ReturnCodes, ReturnCodes...
#include <Service/Common.hpp>  // for BusChannels, ReturnCodes, ReturnCodes...
#include "Service/Mailbox.hpp" // for Mailbox
#include "Service/Message.hpp" // for Message, MessagePointer, DataMessage, Resp...
#include <Service/Message.hpp> // for Message, MessagePointer, DataMessage, Resp...
#include "Timers/SystemTimer.hpp"
#include "module-sys/Timers/TimerHandle.hpp"  // for Timer
#include "module-sys/Timers/TimerMessage.hpp" // for TimerMessage
#include "log/debug.hpp"       // for DEBUG_SERVICE_MESSAGES
#include <log.hpp>             // for LOG_ERROR, LOG_DEBUG, LOG_FATAL
#include "mutex.hpp"           // for cpp_freertos
#include "portmacro.h"         // for UBaseType_t
#include "thread.hpp"          // for Thread
#include "ticks.hpp"           // for Ticks
#include <algorithm>           // for remove_if
#include <cstdint>             // for uint32_t, uint64_t, UINT32_MAX
#include <iosfwd>              // for std
#include <typeinfo>            // for type_info
#include <module-sys/SystemManager/Constants.hpp>
#include "Timers/TimerHandle.hpp"  // for Timer
#include "Timers/TimerMessage.hpp" // for TimerMessage
#include "log/debug.hpp"           // for DEBUG_SERVICE_MESSAGES
#include <log.hpp>                 // for LOG_ERROR, LOG_DEBUG, LOG_FATAL
#include "mutex.hpp"               // for cpp_freertos
#include "portmacro.h"             // for UBaseType_t
#include "thread.hpp"              // for Thread
#include "ticks.hpp"               // for Ticks
#include <algorithm>               // for remove_if
#include <cstdint>                 // for uint32_t, uint64_t, UINT32_MAX
#include <iosfwd>                  // for std
#include <typeinfo>                // for type_info
#include <SystemManager/Constants.hpp>

#if (DEBUG_SERVICE_MESSAGES > 0)
#include <cxxabi.h>


@@ 44,9 44,10 @@ void debug_msg(sys::Service *srvc, const sys::Message *ptr)
              srvc ? srvc->GetName().c_str() : "",
              status == 0 ? demangled ? demangled : realname : realname,
              std::string(*ptr).c_str(),
              status != 0 ? status == -1
                                ? "!mem fail!"
                                : status == -2 ? "name ABI fail" : status == -3 ? "arg invalid" : "other failure!"
              status != 0 ? status == -1   ? "!mem fail!"
                            : status == -2 ? "name ABI fail"
                            : status == -3 ? "arg invalid"
                                           : "other failure!"
                          : "");

    free(demangled);

M module-sys/Service/Worker.cpp => module-sys/Service/Worker.cpp +1 -1
@@ 1,7 1,7 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "Worker.hpp"
#include <Service/Worker.hpp>

extern "C"
{

M module-sys/Service/details/bus/Bus.cpp => module-sys/Service/details/bus/Bus.cpp +2 -2
@@ 3,8 3,8 @@

#include "Bus.hpp"

#include "module-sys/Service/Service.hpp"
#include "module-sys/SystemWatchdog/SystemWatchdog.hpp"
#include <Service/Service.hpp>
#include "SystemWatchdog/SystemWatchdog.hpp"
#include "module-os/CriticalSectionGuard.hpp"

#include "ticks.hpp"

M module-sys/Service/details/bus/Bus.hpp => module-sys/Service/details/bus/Bus.hpp +2 -2
@@ 3,8 3,8 @@

#pragma once

#include "module-sys/Service/Common.hpp"
#include "module-sys/Service/Message.hpp"
#include "Service/Common.hpp"
#include "Service/Message.hpp"

#include <cstdint>
#include <memory>

R module-sys/Service/BusProxy.hpp => module-sys/Service/include/Service/BusProxy.hpp +2 -2
@@ 30,7 30,7 @@ namespace sys
        void sendMulticast(std::shared_ptr<Message> message, BusChannel channel);
        void sendBroadcast(std::shared_ptr<Message> message);

        template <typename Msg, typename... Params> bool sendUnicast(Params &&... params)
        template <typename Msg, typename... Params> bool sendUnicast(Params &&...params)
        {
            static_assert(std::is_base_of<sys::msg::Request, Msg>::value,
                          "Only sys::msg::Request can be sent via Unicast<>");


@@ 38,7 38,7 @@ namespace sys
            return sendUnicast(msg, msg->target());
        }

        template <typename Msg, typename... Params> void sendMulticast(Params &&... params)
        template <typename Msg, typename... Params> void sendMulticast(Params &&...params)
        {
            static_assert(std::is_base_of<sys::msg::Notification, Msg>::value,
                          "Only sys::msg::Notification can be sent via Multicast<>");

R module-sys/Service/Common.hpp => module-sys/Service/include/Service/Common.hpp +0 -0
R module-sys/Service/CpuSentinel.hpp => module-sys/Service/include/Service/CpuSentinel.hpp +0 -0
R module-sys/Service/Mailbox.hpp => module-sys/Service/include/Service/Mailbox.hpp +0 -0
R module-sys/Service/Message.hpp => module-sys/Service/include/Service/Message.hpp +0 -0
R module-sys/Service/MessageForward.hpp => module-sys/Service/include/Service/MessageForward.hpp +0 -0
R module-sys/Service/Service.hpp => module-sys/Service/include/Service/Service.hpp +13 -13
@@ 10,19 10,19 @@
#include "Message.hpp" // for MessagePointer
#include "ServiceManifest.hpp"
#include "Watchdog.hpp"
#include "thread.hpp"                                   // for Thread
#include <module-sys/SystemWatchdog/SystemWatchdog.hpp> // for SystemWatchdog
#include <algorithm>                                    // for find, max
#include <cstdint>                                      // for uint32_t, uint64_t
#include <functional>                                   // for function
#include <iterator>                                     // for end
#include <map>                                          // for map
#include <memory>                                       // for allocator, shared_ptr, enable_shared_from_this
#include <string>                                       // for string
#include <typeindex>                                    // for type_index
#include <utility>                                      // for pair
#include <vector>                                       // for vector<>::iterator, vector
#include <typeinfo>                                     // for connect by type
#include "thread.hpp"                        // for Thread
#include <SystemWatchdog/SystemWatchdog.hpp> // for SystemWatchdog
#include <algorithm>                         // for find, max
#include <cstdint>                           // for uint32_t, uint64_t
#include <functional>                        // for function
#include <iterator>                          // for end
#include <map>                               // for map
#include <memory>                            // for allocator, shared_ptr, enable_shared_from_this
#include <string>                            // for string
#include <typeindex>                         // for type_index
#include <utility>                           // for pair
#include <vector>                            // for vector<>::iterator, vector
#include <typeinfo>                          // for connect by type

namespace sys
{

R module-sys/Service/ServiceCreator.hpp => module-sys/Service/include/Service/ServiceCreator.hpp +0 -0
R module-sys/Service/ServiceForward.hpp => module-sys/Service/include/Service/ServiceForward.hpp +0 -0
R module-sys/Service/ServiceManifest.hpp => module-sys/Service/include/Service/ServiceManifest.hpp +0 -0
R module-sys/Service/ServiceProxy.hpp => module-sys/Service/include/Service/ServiceProxy.hpp +0 -0
R module-sys/Service/SystemReturnCodes.hpp => module-sys/Service/include/Service/SystemReturnCodes.hpp +0 -0
R module-sys/Service/Watchdog.hpp => module-sys/Service/include/Service/Watchdog.hpp +0 -0
R module-sys/Service/Worker.hpp => module-sys/Service/include/Service/Worker.hpp +0 -0
M module-sys/Service/tests/test-system_messages.cpp => module-sys/Service/tests/test-system_messages.cpp +1 -1
@@ 2,7 2,7 @@
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include <catch2/catch.hpp>
#include "Service/Message.hpp"
#include <Service/Message.hpp>

class MockedMessageUID : public sys::MessageUID
{

A module-sys/SystemManager/CMakeLists.txt => module-sys/SystemManager/CMakeLists.txt +44 -0
@@ 0,0 1,44 @@
add_library(sys-manager STATIC)

target_sources(sys-manager
    PUBLIC
        include/SystemManager/DependencyGraph.hpp
        include/SystemManager/CpuStatistics.hpp
        include/SystemManager/Constants.hpp
        include/SystemManager/messages/TetheringQuestionRequest.hpp
        include/SystemManager/messages/RequestCpuFrequencyMessage.hpp
        include/SystemManager/messages/SentinelRegistrationMessage.hpp
        include/SystemManager/messages/DeviceRegistrationMessage.hpp
        include/SystemManager/messages/TetheringStateRequest.hpp
        include/SystemManager/messages/SystemManagerMessage.hpp
        include/SystemManager/messages/CpuFrequencyMessage.hpp
        include/SystemManager/SystemManagerCommon.hpp
        include/SystemManager/CpuGovernor.hpp
        include/SystemManager/PowerManager.hpp
        include/SystemManager/DeviceManager.hpp

    PRIVATE
        CpuGovernor.cpp
        CpuStatistics.cpp
        data/SystemManagerActionsParams.hpp
        DependencyGraph.cpp
        DeviceManager.cpp
        graph/TopologicalSort.cpp
        graph/TopologicalSort.hpp
        PowerManager.cpp
        SystemManagerCommon.cpp
)

target_include_directories(sys-manager
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
)

target_link_libraries(sys-manager
    PUBLIC
        sys-service
)

if (${ENABLE_TESTS})
    add_subdirectory(tests)
endif()

M module-sys/SystemManager/CpuGovernor.cpp => module-sys/SystemManager/CpuGovernor.cpp +1 -1
@@ 1,7 1,7 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "CpuGovernor.hpp"
#include <SystemManager/CpuGovernor.hpp>
#include <algorithm>
#include <log.hpp>


M module-sys/SystemManager/CpuStatistics.cpp => module-sys/SystemManager/CpuStatistics.cpp +1 -1
@@ 1,7 1,7 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "CpuStatistics.hpp"
#include <SystemManager/CpuStatistics.hpp>
#include <log.hpp>
#include <FreeRTOS.h>
#include <task.h>

M module-sys/SystemManager/DependencyGraph.cpp => module-sys/SystemManager/DependencyGraph.cpp +1 -1
@@ 1,7 1,7 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "DependencyGraph.hpp"
#include <SystemManager/DependencyGraph.hpp>

#include <algorithm>
#include <cassert>

M module-sys/SystemManager/DeviceManager.cpp => module-sys/SystemManager/DeviceManager.cpp +1 -1
@@ 1,7 1,7 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "DeviceManager.hpp"
#include <SystemManager/DeviceManager.hpp>
#include <algorithm>
#include <log.hpp>


M module-sys/SystemManager/PowerManager.cpp => module-sys/SystemManager/PowerManager.cpp +1 -1
@@ 3,7 3,7 @@

#include <log.hpp>

#include "PowerManager.hpp"
#include <SystemManager/PowerManager.hpp>

namespace sys
{

M module-sys/SystemManager/SystemManagerCommon.cpp => module-sys/SystemManager/SystemManagerCommon.cpp +6 -6
@@ 1,10 1,10 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "SystemManagerCommon.hpp"
#include <SystemManager/SystemManagerCommon.hpp>

#include <apps-common/ApplicationCommon.hpp>
#include "DependencyGraph.hpp"
#include <SystemManager/DependencyGraph.hpp>
#include "graph/TopologicalSort.hpp"

#include "thread.hpp"


@@ 20,10 20,10 @@
#include <service-desktop/Constants.hpp>
#include <service-appmgr/Constants.hpp>
#include <service-appmgr/Controller.hpp>
#include "messages/CpuFrequencyMessage.hpp"
#include "messages/DeviceRegistrationMessage.hpp"
#include "messages/SentinelRegistrationMessage.hpp"
#include "messages/RequestCpuFrequencyMessage.hpp"
#include <SystemManager/messages/CpuFrequencyMessage.hpp>
#include <SystemManager/messages/DeviceRegistrationMessage.hpp>
#include <SystemManager/messages/SentinelRegistrationMessage.hpp>
#include <SystemManager/messages/RequestCpuFrequencyMessage.hpp>
#include <time/ScopedTime.hpp>
#include "Timers/TimerFactory.hpp"
#include <service-appmgr/StartupType.hpp>

R module-sys/SystemManager/Constants.hpp => module-sys/SystemManager/include/SystemManager/Constants.hpp +0 -0
R module-sys/SystemManager/CpuGovernor.hpp => module-sys/SystemManager/include/SystemManager/CpuGovernor.hpp +0 -0
R module-sys/SystemManager/CpuStatistics.hpp => module-sys/SystemManager/include/SystemManager/CpuStatistics.hpp +0 -0
R module-sys/SystemManager/DependencyGraph.hpp => module-sys/SystemManager/include/SystemManager/DependencyGraph.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include "Service/ServiceCreator.hpp"
#include <Service/ServiceCreator.hpp>

#include <memory>
#include <vector>

R module-sys/SystemManager/DeviceManager.hpp => module-sys/SystemManager/include/SystemManager/DeviceManager.hpp +0 -0
R module-sys/SystemManager/PowerManager.hpp => module-sys/SystemManager/include/SystemManager/PowerManager.hpp +0 -0
R module-sys/SystemManager/SystemManagerCommon.hpp => module-sys/SystemManager/include/SystemManager/SystemManagerCommon.hpp +0 -0
R module-sys/SystemManager/messages/CpuFrequencyMessage.hpp => module-sys/SystemManager/include/SystemManager/messages/CpuFrequencyMessage.hpp +0 -0
R module-sys/SystemManager/messages/DeviceRegistrationMessage.hpp => module-sys/SystemManager/include/SystemManager/messages/DeviceRegistrationMessage.hpp +0 -0
R module-sys/SystemManager/messages/RequestCpuFrequencyMessage.hpp => module-sys/SystemManager/include/SystemManager/messages/RequestCpuFrequencyMessage.hpp +0 -0
R module-sys/SystemManager/messages/SentinelRegistrationMessage.hpp => module-sys/SystemManager/include/SystemManager/messages/SentinelRegistrationMessage.hpp +0 -0
R module-sys/SystemManager/messages/SystemManagerMessage.hpp => module-sys/SystemManager/include/SystemManager/messages/SystemManagerMessage.hpp +0 -0
R module-sys/SystemManager/messages/TetheringQuestionRequest.hpp => module-sys/SystemManager/include/SystemManager/messages/TetheringQuestionRequest.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include <module-sys/Service/Message.hpp>
#include <Service/Message.hpp>

#include <apps-common/popups/data/PopupRequestParams.hpp>


R module-sys/SystemManager/messages/TetheringStateRequest.hpp => module-sys/SystemManager/include/SystemManager/messages/TetheringStateRequest.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include <module-sys/PhoneModes/Common.hpp>
#include <PhoneModes/Common.hpp>

namespace sys
{

A module-sys/SystemWatchdog/CMakeLists.txt => module-sys/SystemWatchdog/CMakeLists.txt +22 -0
@@ 0,0 1,22 @@
add_library(sys-watchdog STATIC)

target_sources(sys-watchdog
    PUBLIC
        include/SystemWatchdog/SystemWatchdog.hpp

    PRIVATE
        SystemWatchdog.cpp
)

target_include_directories(sys-watchdog
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
)

target_link_libraries(sys-watchdog
    PUBLIC
        sys-service

    PRIVATE
        module-bsp
)

M module-sys/SystemWatchdog/SystemWatchdog.cpp => module-sys/SystemWatchdog/SystemWatchdog.cpp +1 -1
@@ 1,7 1,7 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "SystemWatchdog.hpp"
#include <SystemWatchdog/SystemWatchdog.hpp>
#include "Service/Common.hpp"
#include "critical.hpp"
#include "ticks.hpp"

R module-sys/SystemWatchdog/SystemWatchdog.hpp => module-sys/SystemWatchdog/include/SystemWatchdog/SystemWatchdog.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include <module-sys/Service/Watchdog.hpp>
#include <Service/Watchdog.hpp>
#include "thread.hpp"

namespace sys

A module-sys/Timers/CMakeLists.txt => module-sys/Timers/CMakeLists.txt +25 -0
@@ 0,0 1,25 @@
add_library(sys-timers STATIC)

target_sources(sys-timers
    PUBLIC
        include/Timers/SystemTimer.hpp
        include/Timers/TimerFactory.hpp
        include/Timers/Timer.hpp
        include/Timers/TimerMessage.hpp
        include/Timers/TimerHandle.hpp

    PRIVATE
        SystemTimer.cpp
        TimerFactory.cpp
        TimerHandle.cpp
)

target_include_directories(sys-timers
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
)

target_link_libraries(sys-timers
    PUBLIC
        module-os
)

M module-sys/Timers/SystemTimer.cpp => module-sys/Timers/SystemTimer.cpp +3 -3
@@ 1,9 1,9 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "SystemTimer.hpp"
#include "module-sys/Service/Service.hpp"
#include "TimerMessage.hpp"
#include <Timers/SystemTimer.hpp>
#include <Service/Service.hpp>
#include <Timers/TimerMessage.hpp>
#include <log.hpp>
#include <projdefs.h>
#include <memory>

M module-sys/Timers/TimerFactory.cpp => module-sys/Timers/TimerFactory.cpp +2 -2
@@ 1,9 1,9 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "TimerFactory.hpp"
#include <Timers/TimerFactory.hpp>

#include "SystemTimer.hpp"
#include <Timers/SystemTimer.hpp>

namespace sys
{

M module-sys/Timers/TimerHandle.cpp => module-sys/Timers/TimerHandle.cpp +1 -1
@@ 1,7 1,7 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "TimerHandle.hpp"
#include <Timers/TimerHandle.hpp>
#include <module-utils/log/log.hpp>

namespace sys

R module-sys/Timers/SystemTimer.hpp => module-sys/Timers/include/Timers/SystemTimer.hpp +1 -1
@@ 6,7 6,7 @@
#include "FreeRTOS.h"
#include "portmacro.h"                             // for TickType_t
#include <module-os/RTOSWrapper/include/timer.hpp> // for Timer
#include "Timer.hpp"
#include <Timers/Timer.hpp>
#include <functional> // for function
#include <string>     // for string
#include <atomic>

R module-sys/Timers/Timer.hpp => module-sys/Timers/include/Timers/Timer.hpp +0 -0
R module-sys/Timers/TimerFactory.hpp => module-sys/Timers/include/Timers/TimerFactory.hpp +0 -0
R module-sys/Timers/TimerHandle.hpp => module-sys/Timers/include/Timers/TimerHandle.hpp +0 -0
R module-sys/Timers/TimerMessage.hpp => module-sys/Timers/include/Timers/TimerMessage.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include "module-sys/Service/Message.hpp"
#include "Service/Message.hpp"

namespace sys
{

M products/BellHybrid/alarms/src/actions/PlayToneAction.hpp => products/BellHybrid/alarms/src/actions/PlayToneAction.hpp +1 -1
@@ 5,7 5,7 @@

#include "AbstractAlarmAction.hpp"
#include <service-db/Settings.hpp>
#include <module-sys/Timers/TimerHandle.hpp>
#include <Timers/TimerHandle.hpp>
#include <Service/Service.hpp>

namespace alarms

M products/BellHybrid/apps/application-bell-main/presenters/HomeScreenPresenter.cpp => products/BellHybrid/apps/application-bell-main/presenters/HomeScreenPresenter.cpp +2 -2
@@ 7,8 7,8 @@

#include <apps-common/ApplicationCommon.hpp>
#include <common/models/TimeModel.hpp>
#include <module-sys/Timers/SystemTimer.hpp>
#include <module-sys/Timers/TimerFactory.hpp>
#include <Timers/SystemTimer.hpp>
#include <Timers/TimerFactory.hpp>
#include <time/time_constants.hpp>
#include <service-db/DBNotificationMessage.hpp>


M products/BellHybrid/apps/application-bell-main/presenters/HomeScreenPresenter.hpp => products/BellHybrid/apps/application-bell-main/presenters/HomeScreenPresenter.hpp +2 -2
@@ 8,7 8,7 @@
#include <apps-common/BasePresenter.hpp>
#include <common/models/AbstractAlarmModel.hpp>
#include <gui/input/InputEvent.hpp>
#include <module-sys/Timers/TimerHandle.hpp>
#include <Timers/TimerHandle.hpp>
#include <module-utils/Temperature.hpp>
#include <time/time_locale.hpp>
#include <utf8/UTF8.hpp>


@@ 20,7 20,7 @@ namespace app
{
    class AbstractTimeModel;
    class ApplicationCommon;
}
} // namespace app

namespace gui
{

M products/BellHybrid/services/appmgr/include/appmgr/messages/AlarmMessage.hpp => products/BellHybrid/services/appmgr/include/appmgr/messages/AlarmMessage.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include <module-sys/Service/Message.hpp>
#include <Service/Message.hpp>
#include <popups/AlarmActivatedPopupRequestParams.hpp>
#include <popups/AlarmDeactivatedPopupRequestParams.hpp>
#include <service-appmgr/Actions.hpp>

M products/BellHybrid/services/evtmgr/EventManager.cpp => products/BellHybrid/services/evtmgr/EventManager.cpp +1 -1
@@ 7,7 7,7 @@
#include <evtmgr/EventManager.hpp>
#include <keymap/KeyMap.hpp>
#include <module-bsp/hal/temperature_source/TemperatureSource.hpp>
#include <module-sys/SystemManager/Constants.hpp>
#include <SystemManager/Constants.hpp>
#include <screen-light-control/ScreenLightControl.hpp>
#include <service-evtmgr/KbdMessage.hpp>
#include <service-evtmgr/ScreenLightControlMessage.hpp>

M products/BellHybrid/services/evtmgr/screen-light-control/ScreenLightControl.cpp => products/BellHybrid/services/evtmgr/screen-light-control/ScreenLightControl.cpp +1 -1
@@ 3,7 3,7 @@

#include <service-evtmgr/screen-light-control/ScreenLightControl.hpp>
#include <service-evtmgr/screen-light-control/ScreenLightControlParameters.hpp>
#include <module-sys/Timers/TimerFactory.hpp>
#include <Timers/TimerFactory.hpp>
#include <Service/Service.hpp>

namespace screen_light_control

M products/BellHybrid/sys/include/sys/SystemManager.hpp => products/BellHybrid/sys/include/sys/SystemManager.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include <module-sys/SystemManager/SystemManagerCommon.hpp>
#include <SystemManager/SystemManagerCommon.hpp>

namespace sys
{

M products/PurePhone/services/appmgr/ApplicationManager.cpp => products/PurePhone/services/appmgr/ApplicationManager.cpp +2 -2
@@ 10,8 10,8 @@
#include <apps-common/popups/data/PhoneModeParams.hpp>
#include <apps-common/popups/data/PopupRequestParams.hpp>
#include <module-db/queries/notifications/QueryNotificationsGetAll.hpp>
#include <module-sys/SystemManager/messages/TetheringQuestionRequest.hpp>
#include <module-sys/Timers/TimerFactory.hpp>
#include <SystemManager/messages/TetheringQuestionRequest.hpp>
#include <Timers/TimerFactory.hpp>
#include <service-appmgr/Constants.hpp>
#include <service-appmgr/messages/AutoLockRequests.hpp>
#include <service-appmgr/messages/GetAllNotificationsRequest.hpp>

M products/PurePhone/services/evtmgr/screen-light-control/ScreenLightControl.cpp => products/PurePhone/services/evtmgr/screen-light-control/ScreenLightControl.cpp +1 -1
@@ 3,7 3,7 @@

#include <service-evtmgr/screen-light-control/ScreenLightControl.hpp>
#include <service-evtmgr/screen-light-control/ScreenLightControlParameters.hpp>
#include <module-sys/Timers/TimerFactory.hpp>
#include <Timers/TimerFactory.hpp>
#include <Service/Service.hpp>

namespace screen_light_control

M products/PurePhone/services/service-fileindexer/include/service-fileindexer/StartupIndexer.hpp => products/PurePhone/services/service-fileindexer/include/service-fileindexer/StartupIndexer.hpp +1 -1
@@ 4,7 4,7 @@
#pragma once

#include <Service/Service.hpp>
#include <module-sys/Timers/TimerHandle.hpp>
#include <Timers/TimerHandle.hpp>
#include <filesystem>

namespace service::detail

M products/PurePhone/sys/SystemManager.cpp => products/PurePhone/sys/SystemManager.cpp +3 -3
@@ 6,9 6,9 @@
#include <sys/messages/TetheringPhoneModeChangeProhibitedMessage.hpp>

#include <evtmgr/EVMessages.hpp>
#include <module-sys/SystemManager/messages/SystemManagerMessage.hpp>
#include <module-sys/SystemManager/messages/TetheringQuestionRequest.hpp>
#include <module-sys/SystemManager/messages/TetheringStateRequest.hpp>
#include <SystemManager/messages/SystemManagerMessage.hpp>
#include <SystemManager/messages/TetheringQuestionRequest.hpp>
#include <SystemManager/messages/TetheringStateRequest.hpp>
#include <module-utils/EventStore/EventStore.hpp>
#include <service-appmgr/Constants.hpp>
#include <service-cellular/CellularMessage.hpp>

M products/PurePhone/sys/include/sys/SystemManager.hpp => products/PurePhone/sys/include/sys/SystemManager.hpp +2 -2
@@ 3,8 3,8 @@

#pragma once

#include <module-sys/PhoneModes/Subject.hpp>
#include <module-sys/SystemManager/SystemManagerCommon.hpp>
#include <PhoneModes/Subject.hpp>
#include <SystemManager/SystemManagerCommon.hpp>

namespace sys
{

M products/PurePhone/sys/include/sys/messages/PhoneModeRequest.hpp => products/PurePhone/sys/include/sys/messages/PhoneModeRequest.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include <module-sys/PhoneModes/Common.hpp>
#include <PhoneModes/Common.hpp>

namespace sys
{

M products/PurePhone/sys/include/sys/messages/TetheringPhoneModeChangeProhibitedMessage.hpp => products/PurePhone/sys/include/sys/messages/TetheringPhoneModeChangeProhibitedMessage.hpp +1 -1
@@ 3,7 3,7 @@

#pragma once

#include <module-sys/Service/Message.hpp>
#include <Service/Message.hpp>

#include <service-appmgr/Actions.hpp>
#include <service-appmgr/messages/ActionRequest.hpp>

M products/PurePhone/test/test-settings/test-service-db-settings-api.cpp => products/PurePhone/test/test-settings/test-service-db-settings-api.cpp +1 -1
@@ 10,7 10,7 @@

#include <db/ServiceDB.hpp>
#include <evtmgr/EventManager.hpp>
#include <module-sys/SystemManager/SystemManagerCommon.hpp>
#include <SystemManager/SystemManagerCommon.hpp>

#include <service-evtmgr/Constants.hpp>