Skip to content

Conversation

@Jack-Byrne
Copy link
Collaborator

@Jack-Byrne Jack-Byrne commented Sep 15, 2021

Supported Specifications

Features

Bug Fixes

Miscellaneous Changes

Jack-Byrne and others added 30 commits April 14, 2021 12:04
The default constructor of Interger class assigns the min value
for the wrapped variable, hoowever it keeps the initialize state us
`Uninitialized`. So in case when latter user apply such operations as
`++`, `+=` the value will be changed but the state is not.

The commit adds ability to change initialize state for the class
after mentioned operations. So user does not have to call additionaly
`initialize` method.
* Reduce some logs to TRACE level

Each time SDL Core receives a video packet from mobile, it
generates a large amount of logs. Instead of completely removing
them, this commit decreases their levels to TRACE.
Head unit systems with video streaming feature can set log
output level to DEBUG (or higher) to get rid of the logs.

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
kDefaultHeartBeatTimeout = 5000ms

Co-authored-by: Anna Pipko (GitHub) <APipko@luxoft.com>
Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
* Update travis distro to 20.04

* Add cppcheck exclusions for false positives

* Fix cppcheck issues
…2502)

* SDL respond UNSUPPORTED_RESOURCE on SystemRequest (QUERY_APPS) if SDL is below version 4.0

* answer review comments

Co-authored-by: Collin <iCollin@users.noreply.github.com>
* replace applicable X++ with ++X

* replace applicable X-- with --X

* change for loop updates
…2582)

* SDL sends wrong OnHMIStatus for voice app in case of a phone call.

Once SDL received OnEventChanged(Phone_Call, true) from HMI, it should send
OnHMIStatusUpdate with new HMILevel. Expected HMILevel for voice
communication application is "LIMITED", but it is "FULL".

PhoneCallHmiState should take into account voice communication app
as an additional check.

* Fix for state_controller unit tests.

Due to changes in a logic for PhoneCallHmiState,
unit tests have to be updated as well.
ApplicationType enum is removed since it is not actual anymore.
As a result, PrepareHMIStateResults functions are modified according to
new application types and updated expected HMI states.

Tests for NaviStreaming HMI state are enabled.
NaviStreamingHmiState is used for these tests instead of VideoStreamingHmiState.

New tests for different application types are added.

* fix styling issues for state_controller_test

* Fix hmi state merge conflicts

* Revert test code

* Fix unit test

* Style

Co-authored-by: JackLivio <jack@livio.io>
* Add change to return response with requestType from the sample_policy_manager

* Remove unrequired logs
* fix respond on SDL.GetListOfPermission request

* Error response in case when we could not collect permissions

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
* fix: store app info JSON file in AppStorageFolder

* Update test cases to store app info JSON file in AppStorageFolder

Co-authored-by: Sho Amano <samano@xevo.com>
* fix crash in libusb callback handling

* Answer review; removing redundant logger

* Respond review comment, fixed logger.

* Removed usb_connection.cc.orig

* Update src/components/transport_manager/src/usb/libusb/usb_connection.cc

Co-authored-by: Collin <iCollin@users.noreply.github.com>

* Update src/components/transport_manager/src/usb/libusb/usb_connection.cc

Co-authored-by: Collin <iCollin@users.noreply.github.com>

Co-authored-by: yurii <ypostolov>
Co-authored-by: Collin <iCollin@users.noreply.github.com>
* parse all values from one ini file open

* wrap ini_read_value to open file for ini_file_test.cc

* update profile tests, fix handle leak

* refactor ini_parse_line

* Apply suggestions from code review

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>

* parse ini file in to smart object

* remove ini_file changes

* fix style

* small optimization, parse key first

* restore open/close config functions

* deprecate ini_file

* Revert "restore open/close config functions"

This reverts commit a03c694.

* move ini parsing to Profile::ParseConfiguration

* add DEPREACTED to ini_file

* don't print deprecated warnings from test file that is dedicated to deprecated methods

* add macros to ini_file.cc

* check style

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
* Implement 3rd-party Boost logger

* Add boost log config file

* Implement log filtering and formatting for the different sinks

* Fix Timestamp calculation

* Fix function trace string

* Implement setting to disable particular sinks

* Add append option to file sinks

* Telnet logger configuration

* Add cmake flag to switch beetween loggers

* Remove log4cxx appender include

* Style fix

* Modify BoostLogConfig file for tests to match the log4cxx properties file

* Exclude log4cxx related libraries

* Address review comments

* Add changes to only install boost log if the correct LOGGER_NAME is set

* Fix implementation for removing disabled sinks

* Add note for isEnabledFor function

* Address review comment

* Fix smartobject linking error

* Address review comments
…2601)

* Fix core prematurely sends success for DeleteInteractionChoiceSet.

DeleteInteractionChoiceSetRequest was contain implementation, according
to that, SDL never not waits for HMI response and sends to Mobile response (success = true, resultCode = "SUCCESS").
This PR provides changes, that remove that implementation.
Also, according to requirements, when at-least on of HMI VR_DeleteCommand
response will contains any ERROR result code, except WARNINGS,
SDL has to send response with that error code and success_result as false.
And if on of HMI VR_DeleteCommand response will contains at-least one
WARNINGS resulst_code, SDL has to send to Mobile response with WARNINGS
and success_result as true.

* Address review comments

* fixup! Address review comments

* Update src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/delete_interaction_choice_set_request.cc

Co-authored-by: Collin <iCollin@users.noreply.github.com>

Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
Co-authored-by: Collin <iCollin@users.noreply.github.com>
* Add mobile responce with disallowed by user params

* Answer PR comments

* Answer PR comments

* Update fix according to new hierarchy

* fixup! Update fix according to new hierarchy

* fixup! Update fix according to new hierarchy

Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
Co-authored-by: Dmitriy Boltovskiy <dboltovskyi@luxoft.com>
* Deprecated redundant code

* Remove unit tests for deprecated methods

Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
)

* Fixed SDL sends appName in vrSynonyms and ttsName in case of lower and upper bound values in json file

* Update src/components/application_manager/src/application_manager_impl.cc

Co-authored-by: Shobhit Adlakha <ShobhitAd@users.noreply.github.com>

* Update src/components/application_manager/src/application_manager_impl.cc

Co-authored-by: Shobhit Adlakha <ShobhitAd@users.noreply.github.com>

* ttsName is defined as array

Co-authored-by: Dmitriy Boltovskiy <dboltovskyi@luxoft.com>
Co-authored-by: Shobhit Adlakha <ShobhitAd@users.noreply.github.com>
Co-authored-by: yurii <ypostolov>
* only call Json::Value::operator[] if it is object type

* short object check

* validate value[data].isArray()
* Append LD_LIBRARY_PATH in daemon.sh

* Update src/appMain/daemon.sh

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
sliderPosition was set to 0 (an invalid value) in the mobile response if an ABORTED result was received from the HMI without this parameter.
* when non-existant app sends request reply app not registered

* fix unit tests
`EndpointProperty.version` is defined as an optional value, but was being used as a mandatory one. Also makes `service` property unique in `endpoint_properties` to prevent duplicate entries
* Test github action

* Build Core

* Fix path

* Add submodules

* Move path

* Debug policy cmake paths

* Debug lines

* Change build directory

* Print sources

* Change core path

* ls debug

* Log cmake version

* Try ubuntu 18

* Set Cmake version

* Change cmake depdency

* Remove version wildcard

* Debug collect sources

* More debug messages

* Check filtered files

* Remove bad policy path exclude

* Try caching 3rd party

* Fix env var

* Update 3rd party path

* Fix path

* Remove env var

* Fix space

* Update path

* Update core path

* Fix boost install path

* Add 3rd party arch path

* Set LD_LIBRARY_PATH

* Add check style

* Fix cache path

* Update README badge status

* Move 3rd party build path

* Remove Travis

* Move cache call earlier

* Fix syntax

* Conditional mkdir

* Add debug line

* Add logs

* Fix syntax

* Fix syntax

* Remove log lines

* Use boost logger

* Update cache

* Remove -j

* Top level boost include

* Adjust boost includes

* Remove boost logger

* Invalidate cache

* Update CMakeLists.txt

* Update CMakeLists.txt

* Update CMakeLists.txt

* Update CMakeLists.txt

* Update sdl_core_github_ci.yml

* Update CMakeLists.txt

* Update CMakeLists.txt

* Update CMakeLists.txt

* Add pull request action
iCollin and others added 3 commits September 9, 2021 14:25
* clear any parent reference to the state being erased even when it is the begin state

* Apply suggestions from code review

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
* WebSocketServerTransportAdapter::Store write to last state

* hold lock until we set dict or decide not to
* Add missing internal error codes to security manager

* Add internal error notification to SSL handshake failure

* Remove unused handshake result

* Add unit tests for new error codes

Co-authored-by: JackLivio <jack@livio.io>
@Jack-Byrne Jack-Byrne temporarily deployed to Coverity September 15, 2021 20:24 Inactive
@iCollin iCollin temporarily deployed to Coverity September 28, 2021 18:44 Inactive
@jacobkeeler jacobkeeler temporarily deployed to Coverity September 29, 2021 14:33 Inactive
#3784)

* Check specifically for invalid HMI level before suspending notifications

Checking for main window ID caused a very rare race condition where the notification was not suspended when necessary
@jacobkeeler jacobkeeler temporarily deployed to Coverity October 6, 2021 21:01 Inactive
@jacobkeeler jacobkeeler temporarily deployed to Coverity October 11, 2021 17:35 Inactive
* Fix wrong behavior of RCOnRemoteControlSettingsNotification

Looks like `kAllowed` parameter was swithing on/off the RC functionality
even if it was not present and previous value should be taken.
Processing of `kAllowed` and `kAccessMode` was split on two separate
and independent functions make it really isolated.
Processing of both parameters was aligned, so now core does not perform
extra actions if one of parameter is missing.
@jacobkeeler jacobkeeler temporarily deployed to Coverity October 12, 2021 18:33 Inactive
There was found a misprint for a VR interface in
`ChangeRegistration` request. Because of that,
there might be a situations when HMI responds to one
part of request faster than another part was actually
sent.
All required ordering and checks were updated.
@Jack-Byrne Jack-Byrne temporarily deployed to Coverity October 13, 2021 19:46 Inactive
* Added RC plugin extension after PTU

* Add new event `kAppHmiTypesChanged`

Co-authored-by: OlhaVorobiova <olha.vorobiova@dxc.com>
@jacobkeeler jacobkeeler temporarily deployed to Coverity October 14, 2021 20:48 Inactive
* Fix early IsRegistered state of application

Mark application as registered only when app registration
was finalized and all corresponding requests were sent to
HMI. This prevents data races in case when language has been
changed by HMI and application is in intermediate registration
state yet.

* fixup! Fix early IsRegistered state of application
@iCollin iCollin temporarily deployed to Coverity October 14, 2021 21:25 Inactive
#3785)

* Removed the unit that interrupted the sequence of closing the connection to the device via usb

* Update logic for USB in transfer

* fixup! Update logic for USB in transfer

Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
@iCollin iCollin temporarily deployed to Coverity October 15, 2021 17:21 Inactive
* Add initial states for pending applications

This would prevent crashes for cases when app will be
attempted to be activated.

* Fix UpdateAppList content

* Fix checks in SDL.ActivateApp

* Fix unit tests
@iCollin iCollin temporarily deployed to Coverity October 21, 2021 14:31 Inactive
@Jack-Byrne Jack-Byrne temporarily deployed to Coverity October 27, 2021 14:05 Inactive
@Jack-Byrne Jack-Byrne merged commit 68f0821 into master Oct 27, 2021
@Jack-Byrne Jack-Byrne deleted the release/8.0.0 branch October 27, 2021 15:15
@iCollin iCollin restored the release/8.0.0 branch October 27, 2021 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.