summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix variable usage in OnVehicleDataNotificationfix/on_vehicle_data_policiesjacobkeeler2020-12-151-3/+3
|
* Merge pull request #3590 from smartdevicelink/fix/vehicle_data_params_omittedJacob Keeler2020-12-101-9/+16
|\ | | | | Handle omitted parameter permissions properly in OnVehicleData notification
| * Fix stylefix/vehicle_data_params_omittedjacobkeeler2020-12-091-2/+1
| |
| * Handle omitted parameter permissions properly in OnVehicleData notificationjacobkeeler2020-12-021-9/+17
| |
* | Add OnWayPointChange handling for NAVIGATION app services (#3573)Jacob Keeler2020-12-0924-102/+406
|/ | | | | * Add OnWayPointChange handling for NAVIGATION app services * Only send OnWayPointChange to mobile from active waypoints provider
* allow all OnSystemRequest types to contain binary data (#3575)Collin2020-11-191-20/+14
|
* close namespace (#3574)Collin2020-11-191-0/+1
|
* Merge pull request #3578 from ↵Jacob Keeler2020-11-181-2/+1
|\ | | | | | | | | smartdevicelink/fix/gpcd_consumer_friendly_messages Re-add messages field in policy table json
| * Re-add messages field in policy table jsonfix/gpcd_consumer_friendly_messagesjacobkeeler2020-11-171-2/+1
|/ | | | consumer_friendly_messages.messages was being omitted from the policy table json rather than just the snapshot, this reintroduces this field (this field is still cleared out when generating the snapshot in `CheckSnapshotInitialization`)
* Fix policy validation of OnVehicleData message (#3568)Jacob Keeler2020-11-162-3/+38
| | | | | | | * Fix policy validation of OnVehicleData message * Fix unit tests Co-authored-by: Mykola Korniichuk <mkorniichuk@luxoft.com>
* Merge pull request #3572 from smartdevicelink/fix/fix_session_heartbeat_startingJackLivio2020-11-1311-21/+92
|\ | | | | Fix session heartbeat starting
| * Fix unit testsJackLivio2020-11-133-15/+12
| |
| * Fix errors from merge conflictsfix/fix_session_heartbeat_startingJackLivio2020-11-124-6/+6
| |
| * Merge remote-tracking branch 'origin/develop' into ↵JackLivio2020-11-104650-587187/+266946
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | fix/fix_session_heartbeat_starting # Conflicts: # src/components/connection_handler/include/connection_handler/heartbeat_monitor.h # src/components/connection_handler/src/connection.cc # src/components/connection_handler/src/heartbeat_monitor.cc # src/components/protocol_handler/src/protocol_handler_impl.cc
| * | Added check if HB tracking for session is already enabledAKalinich-Luxoft2017-12-2210-8/+74
| | | | | | | | | | | | | | | This prevents SDL from starting HB session tracking every time SDL receives HB request from mobile.
| * | Fix starting of the session HeartbeatAKalinich-Luxoft2017-12-223-12/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the current implementation SDL starts session heartbeat right after application registration. However the correct behavior is to start session heartbeat after first heartbeat request from mobile app. Following changes were done: - Removed starting session heartbeat on app registration - Added session heartbeat start on frist heartbeat request from mobile app - Added check to prevent starting of session heartbeat if it was disabled in settings
* | | Cover connection handler and policy handler with unit tests (#2682)Mykola Korniichuk (GitHub)2020-11-129-153/+1553
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Cover connection handler and policy handler with unit tests Few tests added to connection_handler_impl_test.cc and to connection_test.cc There were 2 mocks for telemetry observer. So, one is removed (src/components/include/test/protocol_handler/mock_telemetry_observer.h) Fixed mock_telemetry_observer.h (src/components/protocol_handler/ test/include/protocol_handler/mock_telemetry_observer.h) Added tests to protocol_handler_tm_test.cc set_hash_id and get_hash_id are covered with unit tests. set_hash_id, get_hash_id, ConvertPacketDataToString, get_protocol_observers_count declarations are added to protocol_handler_impl.h under BUILD_TEST flag. Resolves: #2449 * fix according to comments * Unit test for get_hash_id and set_hash_id Removed declarations for internal functions get_hash_id and set_hash_id ConvertPacketDataToString moved to convert_utils as ConvertBinaryDataToString Fixed unit tests for get_hash_id and set_hash_id * replace dcheck or return to if in ConvertBinaryDataToString due to issue in smoke tests * minor UT fixes * Update doxygen for convert_utils * Address comments and fix UT Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
* | Merge remote-tracking branch 'origin/master' into developJackLivio2020-11-05225-3896/+3302
|\ \
| * \ Merge pull request #3551 from smartdevicelink/release/7.0.07.0.0JackLivio2020-11-051095-106525/+50935
| |\ \ | | | | | | | | 7.0.0 Release
| | * | Update rpc_spec tag for 7.0.0JackLivio2020-11-051-0/+0
| | | |
| | * | ensure apps receive default HMI status before activated status (#3559)7.0.0-RC2release/7.0.0Collin2020-10-2910-15/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove cloud app exception from StateControllerImpl::OnApplicationRegistered * Fix/ Postpone application activation if registration is not complete yet (#3557) * Postpone application activation if registration is not complete yet * fixup! Postpone application activation if registration is not complete yet * fixup! Postpone application activation if registration is not complete yet Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com> * fix style * fix unit tests Co-authored-by: Ira Lytvynenko (GitHub) <ILytvynenko@luxoft.com> Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
| | * | remove possibility for invalid choice ID to be sent to mobile (#3555)Collin2020-10-291-10/+15
| | | |
| | * | Fix a/v streaming retry sequence issues (#3552)Andrii Kalinich (GitHub)2020-10-264-60/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were noticed two issues related to a/v streaming: 1. Due to object self destruction after TerminateRequest() call any attempt to access member field of that object may cause an undefined behavior - it might be a core crash or corrupted value sometimes. In this particular case, SDL tries to access `message_` field through `application_id()` function after object destruction. As a result, sometimes SDL crashes and sometimes this function just returns 0. Because of that, SDL was not able to find application by zero id and broke the retry sequence. This causes random failures of some ATF scripts. To avoid that issue, all retry logic was extracted into the separate function and `TerminateRequest` was moved after that function. This will guarantee that there is no attempts to access object fields after its destruction. 2. There was noticed that SDL makes one redundant retry attempt. That was because of late retry value increment. To fix that issue, increment has been placed before retry amount check.
| | * | Bugfix 2808 copy (#3546)JackLivio2020-10-262-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix issue 2808:SDL Crash seen in SDL upon receiving rpc - OnEmergencyEvent with enabled:true * change code stype * Fix conflicts * Fix log * Fix crash * Address comments Co-authored-by: zhangwenqin <zhangwenqin@iauto.com>
| | * | Fix sdl sends unexpected disconnect with resource constraint (#3516)Serhii Niukalov (GitHub)2020-10-2314-13/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rework processing of the OnExitApplication (RESOURCE_CONSTRAINT) notification * Update UTs according to changes Co-authored-by: sniukalov <sniukaov@luxoft.com> Co-authored-by: Aleksandr Kutsan <AKutsan@luxoft.com> Co-authored-by: jacobkeeler <jacob.keeler@livioradio.com> Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
| | * | Fix formatting for logs after logger overhaul (#3554)Jacob Keeler2020-10-2341-264/+134
| | | | | | | | | | | | | | | | | | | | * Fix formatting for logs after logger overhaul Co-authored-by: Shobhit Adlakha <ShobhitAd@users.noreply.github.com>
| | * | Add missed NACK reasons (#3545)Yana Chernysheva (GitHub)2020-10-2317-201/+204
| | | | | | | | | | | | * Add missed NACK reasons, update UTs and add minor changes
| | * | Fix application activation after resumption (#3550)Yana Chernysheva (GitHub)2020-10-225-28/+18
| | | | | | | | | | | | | | | | | | | | * Set is_resuming flag to false * Change return value in RestoreAppHMIState and StartAppHmiStateResumption
| | * | Add defvalue to policy table schema (#3530)Jacob Keeler2020-10-2215-62/+246
| | | | | | | | | | | | * Add defvalue to policy table schema
| | * | Merge pull request #3548 from smartdevicelink/hotfix/mobile_api_link_readmeJacob Keeler2020-10-211-1/+1
| | |\ \ | | | | | | | | | | Fix broken Mobile API link in README
| | | * | Fix broken Mobile API link in READMEhotfix/mobile_api_link_readmeJacob Keeler2020-10-211-1/+1
| | |/ / | |/| |
| | * | Keep FULL for apps after conflict resolution (#3538)Andrii Kalinich (GitHub)2020-10-201-1/+5
| | | |
| | * | Add check for non-existent parent ID to AddSubMenuRequest (#3534)Yana Chernysheva (GitHub)2020-10-202-3/+38
| | | | | | | | | | | | | | | | | | | | * Add check for non-existent parent ID to AddSubMenuRequest * fixup! Add check for non-existent parent ID to AddSubMenuRequest
| | * | Fix synchronization in WaypointsPendingResumptionHandler (#3531)Yana Chernysheva (GitHub)2020-10-193-137/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a problem with duplicate subscriptions to shared data due to time gap between check for already subscribed apps in SDLRPCPlugin and further processing of corresponding requests in WayPointsPendingResumptionHandler. That's why this check was moved to WayPointsPendingResumptionHandler. Also refactoring of some methods WayPointsPendingResumptionHandler class was done to make their logic clearer and easier to understand.
| | * | Add error handling for failed hmi message send (#3537)JackLivio2020-10-144-6/+29
| | | |
| | * | remove unlock of lock that isn't locked (#3536)7.0.0-RC1Collin2020-10-081-1/+0
| | | |
| | * | Fix/Add DialNumber RPC to preloaded pt (#3533)Shobhit Adlakha2020-10-071-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add the DialNumber RPC to the Base-4 and Base-6 functional groups * Move DialNumber into a separate functional group * Fix added functional group
| | * | Fix/usb handler thread safe stop (#3492)Andrii Kalinich (GitHub)2020-10-063-5/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Wait for UsbHandler thread end in UsbHandler dtor The Thread dedicated for handling libusb events should exit successfully on it's own. This guarantees that `libusb_close()` being called on all devices, as well as `libusb_exit()` call is properly sequenced. Thread exits in recommended by libusb doc way: 1. set exit flag 2. deregister hotplug callbacks, which will wake up `libusb_handle_events()` once again. But this commit changes the way the Thread being joined. It ensures that `join()` is called with `kNoStop` flag, which prevents force stop using `pthread_cancel()`. * Using atomic bool for shutdown_requested_ flag Making UsbHandler::shutdown_requested_ flag atomic to guarantee mutual access to it. exchange() call is needed for helgrind to feel sure that there is no data race. * Remove redundant DCHECK This assertion has been exposed by the current fix
| | * | use less common port in websocket connection tests (#3529)Collin2020-10-061-1/+1
| | | |
| | * | Re-order rai logic for plugins (#3526)JackLivio2020-10-065-8/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Re-order rai logic for plugins * style * Add mock method * Add method descriptions * Add timing content
| | * | Bugfix 3173 (#3528)JackLivio2020-10-064-1/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix 3173 bug:multi-thread access one pointer at same time caused a wild pointer problem in HMICapabilitiesImpl class * modify test code for 3173 * fix Unit tests * Fix merge conflicts Co-authored-by: zhangwenqin <zhangwenqin@iauto.com>
| | * | Fix dead lock in usb connection (#3494)Andrii Kalinich (GitHub)2020-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | In a while called method locks mutex for protecting data and if USB connection is failed it means that method will call and will try to lock the same mutex again. That's why this mutex should be recursive.
| | * | Add check for already processed resumptions (#3525)Yana Chernysheva (GitHub)2020-10-053-142/+61
| | | |
| | * | Fix streamer activity in case of suspend (#3488)Andrii Kalinich (GitHub)2020-10-0516-130/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix streamer activity in case of suspend The problem of the current implementation is that SDL kills streaming thread responsible for sending a/v streaming data to HMI when streaming timeout expires. This issue is observed when mobile app dumps 10-seconds audio file to SDL during 2 seconds and after that app does not send any data. In that case HMI will play audio file during 2 seconds + timeout = 5 seconds. At the 5th second SDL just kills streaming thread with all pending messages, however audio service is still open. As a result not a whole audio file is played. The correct behavior from SDL side in that case is not kill streaming thread when streaming timeout was expired. SDL should kill streaming thread only when service is actually stopped. Current SDL behavior was updated to align with a correct behavior described above. * Adjust fix to work with audio socket streaming * Revert "[WIP] initial fix of socket streaming by guessing playback time (#3057)" This reverts commit 7c442abce73c462e7724a64b3ce037bcb8e9093e. * Remove unused code after revert * Fix style issues
| | * | Fix deadlock in policy handler (#3497)Igor Gapchuk (GitHub)2020-10-053-356/+460
| | | |
| | * | Fix GetInteriorVehicle request wrong processes result codes from HMI (#3519)Igor Gapchuk (GitHub)2020-10-022-6/+68
| | | | | | | | | | | | | | | | GetInteriorVehicle request RPC should process the next result codes as success: WRONG_LANGUAGE, RETRY, SAVED.
| | * | Use weak_ptr<WebsocketSession> instead of raw ptrs (#3490)Andrii Kalinich (GitHub)2020-10-023-141/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes no functional or insecure changes. It only prevents possible SIGSEGVs. Don't use raw pointers to WebsocketSession in almost all cases. For function arguments, pointers changed to references for preventing null pointer occurrence. For containers pointers changed to weak_ptr for preventing expired references. Removed wrong inheritance for CMessageBroker
| | * | Merge pull request #3449 from ↵Jacob Keeler2020-10-0224-776/+100
| | |\ \ | | | | | | | | | | | | | | | | | | | | LuxoftSDL/fix/move_duplicate_conversion_functions_to_message_helper Move duplicate conversion functions to Message Helper
| | | * | Delete module_types_str_mappingYana Chernysheva2020-10-021-9/+1
| | | | |
| | | * | Merge branch 'release/7.0.0' into ↵Yana Chernysheva2020-10-02123-1555/+993
| | | |\ \ | | | |/ / | | |/| | | | | | | fix/move_duplicate_conversion_functions_to_message_helper