summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/hmi_state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/hmi_state.cc')
-rw-r--r--src/components/application_manager/src/hmi_state.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/components/application_manager/src/hmi_state.cc b/src/components/application_manager/src/hmi_state.cc
index 3487116baf..07200af6cd 100644
--- a/src/components/application_manager/src/hmi_state.cc
+++ b/src/components/application_manager/src/hmi_state.cc
@@ -241,32 +241,6 @@ PhoneCallHmiState::PhoneCallHmiState(std::shared_ptr<Application> app,
const ApplicationManager& app_mngr)
: HmiState(app, app_mngr, STATE_ID_PHONE_CALL) {}
-mobile_apis::HMILevel::eType PhoneCallHmiState::hmi_level() const {
- using namespace mobile_apis;
- if (HMILevel::INVALID_ENUM == parent_hmi_level()) {
- return parent_hmi_level();
- }
- return std::max(parent_hmi_level(), max_hmi_level());
-}
-
-mobile_apis::HMILevel::eType PhoneCallHmiState::max_hmi_level() const {
- using namespace helpers;
- using namespace mobile_apis;
-
- if (WindowType::WIDGET == window_type()) {
- return std::max(HMILevel::HMI_FULL, parent_max_hmi_level());
- }
-
- auto expected = HMILevel::HMI_FULL;
- if (is_navi_app() || is_mobile_projection_app()) {
- expected = HMILevel::HMI_LIMITED;
- } else if (is_media_app()) {
- expected = HMILevel::HMI_BACKGROUND;
- }
-
- return std::max(expected, parent_max_hmi_level());
-}
-
SafetyModeHmiState::SafetyModeHmiState(std::shared_ptr<Application> app,
const ApplicationManager& app_mngr)
: HmiState(app, app_mngr, STATE_ID_SAFETY_MODE) {}