summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Refactoring no functional changesfeature/webengine_projection_modeAleksandr Kutsan2020-07-032-21/+22
| | | | Use setters instead of direct access to app_hmi_type bool var
* Close connection after RESOURCE_CONSTRAINTAleksandr Kutsan2020-07-032-4/+2
| | | | | RESOURCE_CONSTRAINT unregister reason will close connection for all applications, but not only Web engine projection
* Add missed loggingAndriy Byzhynar (GitHub)2020-07-035-3/+20
|
* Add test case for WEP app in resuming modeAndriy Byzhynar (GitHub)2020-07-031-45/+183
|
* Make code more clear & easy for debugAndriy Byzhynar (GitHub)2020-07-031-3/+9
|
* Add WEP media/nonmedia apps registration for HMI state checksAndriy Byzhynar (GitHub)2020-07-031-0/+205
| | | | | | | | | | | | | Added unit test cases for WEP media and non-media applications, which allow to check HMI Level, system context, audio and video streaming states calculation after the following actions: - Initial HMI state after registration - HMI state after app activaion - HMI State after app deactivation - HMI state after app exit Note: HMI state includes HMI level, audio, video streaming state, system context
* Move function to iface class to allow its testingAndriy Byzhynar (GitHub)2020-07-033-7/+14
|
* Add WEP media & nonmedia to general test casesAndriy Byzhynar (GitHub)2020-07-031-3/+43
|
* Remove redundant codeAndriy Byzhynar (GitHub)2020-07-031-9/+1
|
* Add Unit test for OnAppInterfaceUnregistedNotificationIgor Gapchuk2020-07-031-0/+140
|
* Update ProtocolHandlerImpl::OnTMMessageSendFailedIgor Gapchuk2020-07-031-0/+18
|
* Add web socket connection closing on RESOURCE_CONSTRAINTIgor Gapchuk2020-07-0313-81/+125
|
* Add new application exit reason RESOURCE_CONSTRAINTMykhailo Vorobiov (GitHub)2020-07-033-12/+24
| | | | | Add RESOURCE_CONSTRAINT to HMI API and its processing to OnExitApplicationNotification, update unit tests
* Implement HMI states management for WEP appsAndriy Byzhynar (GitHub)2020-07-031-9/+19
|
* Add Unit tests for RAI request testIgor Gapchuk2020-07-031-25/+253
|
* Update Unit tests related to app registrationIgor Gapchuk2020-07-033-0/+146
| | | | | | Add the new one case to check app registration with AppHMItype WEB_VIEW Update existing Application Manager UTs with the new methods for WEB_VIEW Update Application Mock
* Add app registration support of the hmi type WEB_VIEWsniukalov2020-07-035-46/+156
|
* Update HMI API for the new App HMI type WEB_VIEWsniukalov2020-07-031-0/+1
|
* Update Mobile API for the new App HMI type WEB_VIEWsniukalov2020-07-031-0/+0
|
* Temporary commit. Changes rpc_spec submodule reference.Igor Gapchuk2020-07-031-1/+1
| | | | NOTE: should be removed before merge
* Fix 3119 bug:App gets REJECTED instead of UNSUPPORTED_RESOURCE to ↵Jim-Nexty2020-06-301-1/+1
| | | | | ChangeRegistration with not supported language (#3427) Co-authored-by: zhangwenqin <zhangwenqin@iauto.com>
* Fix/sdl 491 apt support formats (#2184)Sho Amano2020-06-3012-41/+192
| | | | | | | | | | | | | | | | | | | | * Move definitions of SamplingRate / AudioCaptureQuality / AudioType to public header * Transfer AudioPassThru configuration to adapter * fix: apply AudioPassThru config to GStreamer pipeline * Update media manager test to remove deprecated method * Reflect code review comments - Update Doxygen comment format - Add description of create_caps_string() method * Fix style issue in from_mic_recorder_adapter.h * Update MediaManager to use Mobile API audio related enums Reflecting review comments.
* Add check for already existed subscriptions during resumption in ↵Yana Chernysheva (GitHub)2020-06-251-9/+31
| | | | | VehicleInfoPlugin (#3355) * Add check for already existed subscriptions
* add DEPRECATED notice to OnFindApplications (#3451)Collin2020-06-231-0/+1
|
* Fixes race condition in messagemeter.h (#3377)Alexander Kutsan (GitHub)2020-06-221-1/+24
| | | | | | | | | | SDLCORE-373 Unprotected critical section accessed by two different threads, timing_map was being modified by clearing the map identifiers causing a crash in boost::date_time Review: Change RWLock to Lock, Added FrequencyImpl private method Co-authored-by: Mario Godinez <mgodine6@ford.com>
* Add Destructor to BluetoothTransportAdapter (#3442)Collin2020-06-192-7/+0
| | | prevent override of bluetooth destructor so that the default transport adapter destructor impl will be called
* Fix potential deadlock in PolicyHandler (#3383)Alexander Kutsan (GitHub)2020-06-181-6/+10
| | | | | | | | | | | | | | | | | | | | | | | SYNC-10345 There was a vulnerability in the PolicyHandler which causes a mutex deadlock. For example - MessageLoop thread of RpcService handles incoming messages. In case when SDL receives AllowSDLFunctionality notification, this thread calls OnAllowSDLFunctionalityNotification inside PolicyHandler. At some point of time this function captures accessor from AM which holds applications_list_lock_ there. At this moment thread AM Pool 0 of RequestController processes some RPC from queue and captures policy_manager_lock_ in PolicyHandler. After that at some moment thread AM Pool 0 tries to get application shared pointer from AM and locks itself as this mutex are already locked with thread MessageLoop. Also, MessageLoop thread at some moment tries to acquire policy_manager_lock_ and locks itself as this mutex are already locked with thread AM Pool 0, which is waiting for applications_list_lock_ to unlock. As a result we have a classical thread deadlock after which SDL stuck forewer. To avoid such situations, there was analyzed all bottlenecks related to applications_list_lock_ and its accessors. Accessors were scoped in several places to avoid similar deadlocks in future. Co-authored-by: Elvis Kuliiev <ekuliiev@luxoft.com>
* Fix Handshake Flow issues (#3441)Jacob Keeler2020-06-184-27/+30
| | | | | | | | | * Fix issue with External PTU timeout When attempting to start an encrypted service, the mobile proxy would not receive a response if the PTU timed out. This is because the retry count is based on the number of OnSystemRequests received from the HMI. Since that number would never exceed the number of retries, `IsAllowedRetryCountExceeded` would never return false. This will now return false after the final retry times out. * Add error code check in ProcessInternalError If the proxy responds with NOT_SUPPORTED or SSL_INVALID_DATA, Core will mark the handshake as failed.
* Revert "remove hci_inquiry call"collin2020-06-171-0/+31
| | | | This reverts commit 1e5d115dd5c12b15c5667961c24737f08691b988.
* remove hci_inquiry callcollin2020-06-171-31/+0
|
* Fix deadlock in timer.cc (#3379)fix/sdl_build_problemsAlexander Kutsan2020-06-161-1/+0
| | | | | | | | | SDLCORE-458 Fix deadlock in timer.cc call lock two times for Lock, second lock was removed, cause using of it hadn't any benefits. Regarding of Helgrind report. Co-authored-by: Maksym Shvaiko <MShvaiko@luxoft.com>
* only set language in rai response if it is valid (#3435)Collin2020-06-151-4/+12
|
* Update to filter unknown enums (#3436)JackLivio2020-06-158-27/+59
| | | | | | | | | | | | | * Add HMI warnings response for filtered enums * Only filter enums with valid typing Invalid types with an enum schema item were being silently filtered, so we need to look for a specific result code from validate() instead of looking for a general failure. * Fix source for messages from hmis * Fix unit tests Co-authored-by: jacobkeeler <jacob.keeler@livioradio.com>
* clean up choice_set_map_ in DynamicApplicationDataImpl destructor (#3420)Collin2020-06-151-0/+5
|
* Filter unknown enums when removing unknown parameters (#3385)Jacob Keeler2020-06-1038-138/+696
| | | | | | | | | * Add enum filtering step to applySchema This step is triggered when `remove_unknown_parameters` is enabled * Add unit tests * Pass warning info to message response after processing
* Fix style (#3432)Jacob Keeler2020-06-101-2/+1
|
* Merge pull request #3417 from smartdevicelink/feature/daemon_scriptJacob Keeler2020-06-097-30/+187
|\ | | | | Add SDL Core Daemon Script
| * Fix usage logJacob Keeler2020-06-091-1/+1
| |
| * Remove debug logJacob Keeler2020-06-091-1/+0
| |
| * Add daemon.sh to unify scripts for external and regularfeature/daemon_scriptjacobkeeler2020-06-084-196/+155
| |
| * Fix missing -H flag in policy server dependency stepJacob Keeler2020-06-081-1/+1
| |
| * Add start.sh which uses the new core.shjacobkeeler2020-06-082-0/+22
| |
| * Address commentsjacobkeeler2020-06-082-43/+43
| |
| * Fix broken return code in core_stopjacobkeeler2020-06-022-2/+2
| |
| * Add features to make the daemon script more reliablejacobkeeler2020-06-023-32/+154
| | | | | | | | | | | | | | Create dedicated PID file directory Check running processes before starting or stopping Core Add `kill` command to destroy all running instances of Core Change main SDL thread to be identifiable by name
| * First version of daemon script from proposaljacobkeeler2020-05-215-30/+85
| |
* | fix build error in http unit tests (#3422)Collin2020-06-091-1/+3
| | | | | | | | | | * fix build error in http unit tests * fix style
* | Sdl must store onWayPointChange internally (#2490)Pavel Zhdanov (GitHub)2020-06-088-11/+93
| | | | | | | | | | | | | | | | | | | | | | | | * Add saving way points during notification - When OnWayPointNotification appeared the wayPoint is saving - When new app subscribing on wayPointNotification stored way points are sending to app * Add unit tests * fix style, update to remove (uint32_t) overload of SubscribeAppForWayPoints Co-authored-by: collin <collin+i@collinmcqueen.com>
* | Bugfix/protocol handler memory issues (#2270)Sho Amano2020-06-064-8/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix: memory leak in ProtocolHandlerImpl::NotifySessionStarted() This is detected by valgrind. * fix: buffer over-run in ProtocolPayloadTest This is an issue of unit test implementation and only affects unit testing. * fix: invalid memory accesses in ProtocolHandlerImplTest These affect unit testing only. Invalid memory accesses occurred because the mock class didn't configure protocol version field properly. * fix: valgrind warning in IncomingDataHandlerTest This is not actually an issue. valgrind reported a warning since the memory area was not initialized. Co-authored-by: Collin <iCollin@users.noreply.github.com>
* | fix: memory leaks in data_resumption_test (#2273)Sho Amano2020-06-062-1/+37
| | | | | | | | | | This issue only affects unit testing. Co-authored-by: Collin <iCollin@users.noreply.github.com>