diff options
author | JackLivio <jack@livio.io> | 2019-10-01 14:25:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 14:25:25 -0400 |
commit | f71311bd5d74457906b89bf084f615f541afc2bf (patch) | |
tree | 12e943ef47d6de201a3578e020e865cc6521f9cd /src | |
parent | 8994b210fe5346d533c780993053fb9aa0b0d8f4 (diff) | |
download | sdl_core-f71311bd5d74457906b89bf084f615f541afc2bf.tar.gz |
Add HMICapabilities Params (#3058)
* Add appServices param to HMICapabilities
* Add hmiCapabilities params
Diffstat (limited to 'src')
4 files changed, 18 insertions, 0 deletions
diff --git a/src/components/application_manager/include/application_manager/smart_object_keys.h b/src/components/application_manager/include/application_manager/smart_object_keys.h index 2ee8b96b0a..19dd6fbe3b 100644 --- a/src/components/application_manager/include/application_manager/smart_object_keys.h +++ b/src/components/application_manager/include/application_manager/smart_object_keys.h @@ -222,6 +222,8 @@ extern const char* endpoint; extern const char* display_capabilities; extern const char* policy_type; extern const char* property; +extern const char* displays; +extern const char* seat_location; // PutFile extern const char* sync_file_name; diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc index 14eed6b137..14a94fd1a2 100644 --- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc +++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc @@ -642,6 +642,11 @@ void FillUIRelatedFields(smart_objects::SmartObject& response_params, hmi_capabilities.video_streaming_supported(); response_params[strings::hmi_capabilities][strings::remote_control] = hmi_capabilities.rc_supported(); + response_params[strings::hmi_capabilities][strings::app_services] = true; + // Apps are automatically subscribed to the SystemCapability: DISPLAYS + response_params[strings::hmi_capabilities][strings::displays] = true; + response_params[strings::hmi_capabilities][strings::seat_location] = + hmi_capabilities.seat_location_capability() ? true : false; } void RegisterAppInterfaceRequest::SendRegisterAppInterfaceResponseToMobile( diff --git a/src/components/application_manager/src/smart_object_keys.cc b/src/components/application_manager/src/smart_object_keys.cc index 488f9c9d36..fe0f878e6c 100644 --- a/src/components/application_manager/src/smart_object_keys.cc +++ b/src/components/application_manager/src/smart_object_keys.cc @@ -189,6 +189,8 @@ const char* endpoint = "endpoint"; const char* display_capabilities = "displayCapabilities"; const char* policy_type = "policyType"; const char* property = "property"; +const char* displays = "displays"; +const char* seat_location = "seatLocation"; // PutFile const char* sync_file_name = "syncFileName"; diff --git a/src/components/interfaces/MOBILE_API.xml b/src/components/interfaces/MOBILE_API.xml index dd8cefe71a..8927a46ffc 100644 --- a/src/components/interfaces/MOBILE_API.xml +++ b/src/components/interfaces/MOBILE_API.xml @@ -2457,6 +2457,15 @@ <param name="remoteControl" type="Boolean" mandatory="false" since="4.5"> <description>Availability of remote control feature. True: Available, False: Not Available</description> </param> + <param name="appServices" type="Boolean" mandatory="false" since="6.0"> + <description>Availability of App Services functionality. True: Available, False: Not Available</description> + </param> + <param name="displays" type="Boolean" mandatory="false" since="6.0"> + <description>Availability of displays capability. True: Available, False: Not Available</description> + </param> + <param name="seatLocation" type="Boolean" mandatory="false" since="6.0"> + <description>Availability of seat location feature. True: Available, False: Not Available</description> + </param> </struct> <struct name="MenuParams" since="1.0"> |