summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager
Commit message (Collapse)AuthorAgeFilesLines
* Changed ParsePTString() to return the calculated content lengthhotfix/fix_request_header_typo_and_content_length_calculationJackLivio2016-07-011-1/+1
|
* Fix "Content-Length" Spelling and CalculationJackLivio2016-06-231-1/+1
| | | | | | | | Content-Length was using an underscore instead of a Hyphen. Android was throwing an exception because there was no "Content-Length" key supplied in the request header. Fixed the way the Content-Length is calculated. Android removes the extra backslashes before sending the request to sdl server so I have Content-Length calculated first before "ParsePTString()" is called. Then contentLength is sent to ParsePtString to be adjusted if characters are removed from the parsed policy table string (ie '\n' the newline character). Tested on android and ios.
* ParsePTString to Modify string, instead of returning a copyhotfix/add_escape_characters_during_ptu_header_constructionJackLivio2016-06-201-1/+1
|
* Parse PT String for HTTP Request BodyJackLivio2016-06-081-0/+1
| | | | | | The "body" portion of the httprequest needs to be a valid string. Before this fix, the policy table content of the request did not have properly escaped double quotes and was causing the JSON received by the mobile side to be considered invalid. The new method "ParsePtString()" adds an escaped backslash during every occurance of a double quote or other escaped backslash. This method also removes any newlines located in the policy table string.
* Fixes retry sequence implementationAnton Hrytsevich2016-05-131-11/+12
| | | | | | Adopts changes done originally regaring issue: [APPLINK-19543] Closes-bug: APPLINK-24295
* Fixes setting of default HMI level during application registrationAndrey Oleynik2016-05-134-1696/+1698
| | | | | | | | | During registration default HMI level must be set before sending of any RPCs to mobile side since every RPC must be validated by policy. These changes have been taken from develop branch and were originally related to APPLINK-20111. Closes-bug: APPLINK-24294
* Wrapped extended policy logic with ifdef, code beautified.Andrey Oleynik2016-04-112-32/+35
| | | | | | | Implements: APPLINK-22313 Conflicts: src/components/application_manager/src/commands/hmi/on_received_policy_update.cc
* Adds HTTP header to message being sent with OnSystemRequestAndrey Oleynik2016-04-111-6/+15
| | | | | | | | | | SDL must to add HTTP header which provides policy snapshot data within that header along with timeouts and message size. Implements: APPLINK-22313 Conflicts: src/components/application_manager/src/commands/mobile/on_system_request_notification.cc
* Adds new logic of GetURLs processing for extended policy modeAndrey Oleynik2016-04-111-1/+22
| | | | | | | | | | SDL must pick an application and send appropriate URL in GetURLs response. Implements: APPLINK-22313 Conflicts: src/components/application_manager/src/commands/hmi/get_urls.cc
* Adds sending of BC.PolicyUpdate to systemAndrey Oleynik2016-04-111-3/+1
| | | | | | | | | | In case of EXTENDED_POLICY enabled SDL must send BC.PolicyUpdate to system instead of direct OnSystemRequest sending. Implements: APPLINK-22313 Conflicts: src/components/application_manager/src/policies/policy_handler.cc
* More style changesAndrey Oleynik2016-04-064-7/+7
|
* Code style changesAndrey Oleynik2016-04-052-2/+2
|
* Adds implementation of DialNumber RPCAndrey Oleynik2016-04-045-2/+245
| | | | | | | DialNumber allows to initiate call from user's device trough device attached to the system. Implements: APPLINK-11266
* Fixes issue with SDL data resetting during MASTER_RESETAndrey Oleynik2016-03-111-0/+5
| | | | | | | | | | | | | | | | | | | | There were two deadlocks during unregistering of all apps because of MASTER_RESET: - ApplicationManagerImpl::UnregisterAllApplications vs ConnectionHandler::CloseSessionServices - ApplicationManagerImpl::UnregisterApplication vs ApplicationManagerImpl::RemoveAppFromTTSGlobalPropertiesList That was causing reset flow blocking and data had not been cleaned up completely. Closes-bug: APPLINK-22117 Conflicts: src/components/application_manager/include/application_manager/application_manager_impl.h src/components/application_manager/src/application_manager_impl.cc src/components/connection_handler/include/connection_handler/connection_handler_impl.h src/components/connection_handler/src/connection_handler_impl.cc
* Merge remote-tracking branch 'genivi-upstream/release/4.0.0'4.0.1Artem Nosach2015-12-142-2/+7
|\
| * Merge pull request #284 from LuxoftSDL/hotfix/Core_dump_if_make_MASTER_RESETAGaliuzov2015-12-071-2/+2
| |\ | | | | | | Hotfix/core dump if make master reset
| | * Fix core crash during MASTER_RESETdtrunov2015-12-011-2/+2
| | | | | | | | | | | | | | | | | | Forbid processing message from mobile if Core begins stopping of work. Closes-bug: APPLINK-17367
| * | Fix deadlocks in AM when stopping SDL and log socket endless blockingAsen Kirov2015-11-301-0/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we stop AM we unregister apps and call StopSavePersistentDataTimer(). If the timer callback by chance is active at this moment we can have a deadlock between AM and ResumeController. To prevent it limit the lifetime of ApplicationListAccessor and allow ResumeController to finish his job. Another option is to move resume_controller().OnSuspend() call before unregitering apps. Another deadlock problem arises when while destroying AM an app tries to register (3 seconds before that actually). Then AM tries to destroy ResumeController, but RC is in ApplicationResumptiOnTimer() callback and tries to get AM instance, and blocks on AM singleton's lock. The fix is to StopRestoreHmiLevelTimer() before destroyng AM. A third reason for SDL not stopping normally is when a logger is writing on a socket, but the client on the other side is not reading (and is not closing the socket neither). Then write() blocks and logger, and therefore SDL, cannot be stopped. The fix is to put timeout option to the socket.
* | Send policy app id during application registrationagaliuzov2015-11-191-1/+1
|/ | | | | | | | There was the bug in notification parameter naming the SmartObject has removed invalid parameter `policyAppId` the proper name for the parameter is `policyAppID`. Closes-Bug: [APPLINK-18660](https://adc.luxoft.com/jira/browse/APPLINK-18660)
* Fix race condition in Singleton and Application Manager failure to stopAsen Kirov2015-10-221-0/+6
| | | | | | | | | | | | | | | | | When SDL is started, but the HMI is not, and we try to register a mobile app (RegisterAppInterfaceRequest), then in this situation SDL can't be stopped with ctrl+C - it enters in an endless cycle. The reason for the problem is that we can't delete the AM, because the RequestController thread of AM is still running (waiting in a cycle for the HMI to respond). Also a second AM is created, because in the Singleton we set to 0 the instance pointer before deleting it and someone calls instance() before destroy() finishes, because there is no common lock. The separate locks create a race condition. The fix is to use a single mutex for the Singleton methods, introduce a is_stopping_ flag in AM, set it to true in AM's Stop() method, and also destroy RequestController's thread pool there. Then check stop flag in RegisterAppInterfaceRequest::Run() and exit the HMI waiting cycle there.
* Merge pull request #205 from smartdevicelink/hotfix/change-device-info-to-stringAGaliuzov2015-09-251-1/+1
|\ | | | | Changed device_info id to string and mac_address
| * Changed device_info id to string and mac_addresshotfix/change-device-info-to-stringJack Byrne2015-08-281-1/+1
| |
* | Adds sending of SDL and SW versions within RAI.Andrey Oleynik2015-08-311-0/+2
| | | | | | | | | | | | | | | | | | | | SDL will send request to get SW version from vehichle and also will provide SDL and SW version within RAI response for each application. Implements: APPLINK-11284 Conflicts: src/components/application_manager/src/application_manager_impl.cc
* | APPLINK--11284 Return SDL & System Software Version In RAIDmitriy Klimenko2015-08-311-0/+19
|/ | | | | | | | | Conflicts: src/appMain/smartDeviceLink.ini src/components/application_manager/include/application_manager/hmi_capabilities.h src/components/application_manager/src/commands/hmi/get_system_info_response.cc src/components/application_manager/src/hmi_capabilities.cc src/components/config_profile/src/profile.cc
* Merge pull request #201 from LuxoftSDL/hotfix/HMI_language_codes_convertion_fixAGaliuzov2015-08-281-0/+8
|\ | | | | Fixes conversion of language codes coming from HMI
| * Fixes conversion of language codes coming from HMIAndrey Oleynik2015-08-281-0/+8
| | | | | | | | | | | | | | | | | | | | Due to wrong conversion some languages couldn't be found in policy DB. Also some recently added languages haven't been processed. Fixes: APPLINK-15726 Conflicts: src/components/policy/src/policy/src/cache_manager.cc
* | App is not unregistered by REQUEST_WHILE_IN_NONE_HMI_LEVEL reasonAleksei Lambin2015-08-172-2/+14
|/ | | | | | | hmi_level member of RequestInfo objects was not used. It caused problem when counting requests with specific hmi_level. Closes-bug: APPLINK-14320
* Fixed comments after reviewdtrunov2015-07-171-1/+15
|
* Fixed core crash after resuming audio/video streamingdtrunov2015-07-172-5/+26
|
* Wake up streaming correctly.Artem Nosach2015-06-231-1/+3
|
* Update CreateInteractionRequest timeout after each VRAddCommandResponse.Artem Nosach2015-06-231-5/+12
|
* Remove notification sending from UnregisterApplication().Artem Nosach2015-06-231-1/+0
|
* Do not resume malformed messaging application.Artem Nosach2015-06-231-1/+2
|
* Merge pull request #129 from LuxoftSDL/hotfix/fixed_setting_preloaded_flagAGaliuzov2015-06-131-0/+1
|\ | | | | Hotfix/fixed setting preloaded flag
| * [RTC 602452] [APPLINK] FUN-REQ-134502/B-Diagnostic Message - Request ProcessingDmitriy Klimenko2015-06-011-0/+1
| |
* | Merge pull request #125 from ↵AGaliuzov2015-06-131-3/+5
|\ \ | | | | | | | | | | | | LuxoftSDL/hotfix/Fix_wrong_unexpectedDisconnect_flag_setting_on_app_unauthorized APPLINK-12868. Fixed wrong unexpectedDisconnect flag setting.
| * | APPLINK-12868. Fixed wrong unexpectedDisconnect flag setting.Andrey Oleynik2015-05-251-3/+5
| |/ | | | | | | | | | | | | | | | | Fixed unexpectedDisconnect flag on application unauthorizing during PTU processing. Conflicts: src/components/application_manager/src/application_manager_impl.cc src/components/connection_handler/include/connection_handler/connection_handler.h
* | Merge branch 'hotfix/AppManagerTestFix' into release/4.0.0Alexandr Galiuzov2015-06-131-1/+1
|\ \
| * | APPLINK-12833 Fix timeout in requestsAlexander Kutsan2015-05-141-1/+1
| |/ | | | | | | | | | | Conflicts: src/components/application_manager/src/commands/mobile/create_interaction_choice_set_request.cc src/components/application_manager/test/request_info_test.cc
* | Merge branch 'hotfix/APPLINK-11998' into release/4.0.0Aleksandr Galiuzov2015-06-122-0/+43
|\ \
| * | APPLINK-11998: Need to Add HMICapabiltiesDmitriy Klimenko2015-05-052-0/+43
| |/ | | | | | | | | | | Conflicts: src/components/application_manager/src/commands/hmi/ui_get_capabilities_response.cc src/components/interfaces/MOBILE_API.xml
* | Merge branch 'hotfix/APPLINK-11782' into release/4.0.0Aleksandr Galiuzov2015-06-122-0/+12
|\ \
| * | APPLINK-11782: OnAppRegistered: SDL must provide the transport type informationDmitriy Klimenko2015-04-302-0/+12
| |/ | | | | | | | | | | | | | | Conflicts: src/components/application_manager/src/message_helper.cc src/components/application_manager/test/mock/include/application_manager/application_manager_impl.h src/components/interfaces/HMI_API.xml src/components/transport_manager/test/include/mock_transport_adapter.h
* | Merge branch 'hotfix/AllowStresamingBeforeHMIResponse' into release/4.0.0Aleksandr Galiuzov2015-06-125-44/+75
|\ \
| * | Remove Video stream retry timer, move logic to request.Alexander Kutsan2015-04-274-28/+51
| | |
| * | Remove AudioStreamRetryTimer, move logic to requestAlexander Kutsan2015-04-273-9/+17
| | |
| * | Rename some methods for better understantingAlexander Kutsan2015-04-273-11/+11
| |/ | | | | | | | | Conflicts: src/components/application_manager/src/application_manager_impl.cc
* | Merge branch 'hotfix/Subscribe_buttons_after_resumption' into release/4.0.0Aleksandr Galiuzov2015-06-121-2/+15
|\ \
| * | Post review changes.Artem Nosach2015-04-271-3/+11
| | |
| * | Add SendOnSubscribeButtonNotifications() to MessageHelper.Artem Nosach2015-04-271-2/+7
| |/