Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature/new remote control modules #2077

Closed
wants to merge 62 commits into from

Conversation

LuxoftAKutsan
Copy link
Contributor

@LuxoftAKutsan LuxoftAKutsan commented Mar 21, 2018

Implements #1798 #1930 #1860

This PR is ready for review.

Risk

This PR makes major API changes.

Testing Plan

Tested with ATF : https://github.com/smartdevicelink/sdl_atf
Used ATF scripts from : smartdevicelink/sdl_atf_test_scripts#1854

Manual testing:

Used HMI from : smartdevicelink/sdl_hmi#52
Used mobile application SPT from HockeyApp 20180213-Nightly-Android

Summary

Implements proposals Proposals:
0099-new-remote-control-modules-and-parameters
0105-remote-control-seat
0106-remote-control-onRcStatus-notification

Other parts of delivery :

CLA

Ira Lytvynenko and others added 21 commits April 4, 2018 14:13
Fix commands UTs
Fix tests

Fix due to rebase

Fix unit tests in mobile commands

Fixed unit tests in next commands:
 - delete_command_request_test.cc
 - delete_sub_menu_test.cc
 - perform_audio_pass_thru_test.cc
 - reset_global_properties_test.cc
 - send_location_request_test.cc
 - set_global_properties_test.cc
Fix SendAudioPassThroughNotification

Rename Command Origin to Command Source
add Optional type

Fix compile warnings and use optional for returning plugin

Add descriptions to optional

Fix review issues

Fix header guards

Fix build with unit tests after commands factory refactoring

 - Change enum name from command origin to command source
 - Create Mock for command factory class
 - Fix mock_app_manager after refactoring
 - Fix failed unit test
Remove commands includes

Remove commands includes
Replace include path of the commands

Fix some things

Fixing compile of applicaiton manager

Move Commands interface part back to application_manager
Use unique ptr for plugin manager
Fix style in RPC services and factories
Remove redunsant includes of factories in application manager
Remove include of functional module
cory library to install dir

Fix build

Fix header guards

Fix namespaces

Fix build
Move notification and command implementation back to applicaiton manager

Copywriting added.

In 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/'
folder added copywriting for next files:
include/sdl_rpc_plugin/sdl_rpc_plugin.h
src/commands/hmi/navi_stop_stream_request.cc
src/commands/hmi/on_tts_reset_timeout_notification.cc
src/commands/mobile/get_system_capability_request.cc
src/commands/mobile/get_system_capability_response.cc
src/commands/mobile/get_way_points_request.cc
src/commands/mobile/get_way_points_response.cc
src/commands/mobile/subscribe_way_points_request.cc
src/commands/mobile/subscribe_way_points_response.cc
src/commands/mobile/unsubscribe_way_points_request.cc
src/commands/mobile/unsubscribe_way_points_response.cc
src/sdl_rpc_plugin.cc
In CommandImpl added rpc_service_, hmi_capabilities_ and policy_handler_
fields. Also changed constructors CommandImpl, CommandRequestImpl and
CommandResponseImpl.
In all mobile command added rpc_service_, hmi_capabilities_ and
policy_handler_ fields. Also changed all constructors.
In all hmi command added rpc_service_, hmi_capabilities_ and
policy_handler_ fields. Also changed all constructors.
Replaced all usages of passed parameters in implementation from
application manager proxy to indirect call

Add missed factories

Remove commands includes
 - Change enum name from command origin to command source
 - Create Mock for command factory class
 - Fix mock_app_manager after refactoring
 - Fix failed unit test

Fix unit test in progress

Add asser in plugin manager getter

Fixed UT Application manager impl

-Add method "SetRPCService" into the class ApplicationManagerImpl

Fixed UT Application manager impl

-Add method "SetRPCService" into the class ApplicationManagerImpl

Fixed UT Application manager impl

-Add method "SetRPCService" into the class ApplicationManagerImpl

Fixed UTs for hmi and mobile commands.
Add app extension

Add reaction on App registraion

fix notofying plugins about app registrtion
Implementation of resource allocaiton manager

Resource allocation manager tests

Fix unit test fo RA

Add logger in unit test target to have ability analyze unit tests run without debug

Init logger in tests
@@ -0,0 +1,143 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,64 @@
/*
* Copyright (c) 2015, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,124 @@
/*
* Copyright (c) 2014, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,121 @@
/*
* Copyright (c) 2017, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,62 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,62 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

void OnFindApplications::Run() {
LOG4CXX_AUTO_TRACE(logger_);

// TODO(PV): add UpdateAppsOnDevice to ApplicationManager

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// TODO(PV): add UpdateAppsOnDevice to ApplicationManager
is this finished yet?

@@ -0,0 +1,62 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,67 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,63 @@
/*
* Copyright (c) 2015, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,60 @@
/*
* Copyright (c) 2014, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,62 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,65 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,77 @@
/*
* Copyright (c) 2016, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,62 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,62 @@
/*
* Copyright (c) 2014, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,62 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,62 @@

/**
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,61 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,62 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,61 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,88 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,67 @@
/*
* Copyright (c) 2014, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,69 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,124 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@@ -0,0 +1,103 @@
/*
* Copyright (c) 2013, Ford Motor Company

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018

@LuxoftAKutsan
Copy link
Contributor Author

Not actual. Spitted to
#2250
#2207
#2208
#2209

@jacobkeeler jacobkeeler deleted the feature/new_remote_control_modules branch June 9, 2020 13:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
proposal Accepted SDL Evolution Proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants