summaryrefslogtreecommitdiff
path: root/src/components/application_manager/test/hmi_capabilities.json
Commit message (Collapse)AuthorAgeFilesLines
* [SDL 0249] Feature/persisting hmi capabilities (#3397)Yevhenii Dementieiev2020-07-171-731/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Replace raw pointers with shared pointers * Save UI.GetCapabilities, UI.GetLanguage, UI.GetSupportedLanguages responses into the file specified by ini file If ini file contains an empty path to the cache file, this feature will be disabled and SDL will work as before. SDL will save each response only first time, after that file will not be overwritten. On master reset SDL will remove the cache file. SDL will read default hmi capability values from the cache file on each system boot up * Fix doxygen * Define HMI interfaces aliases * Implement caching for VR, TTS, Buttons, VehicheInfo and RC capabilities * Fix default capabilities structure according to the HMI API * Send requests to get capabilities from HMI in case any capability is missing in cache * Refactor RC capabilities storing and retrieving. Fix related UTs. * Created implementation and unit tests for HMI capabilities persistence after SW update * Created implementation for save and received MetaInfo * Increase unit tests coverage on persistence HMI capabilities * Do not rewrite MetaInfo in case invalid BC.GetSystemInfo response from HMI * Read pcm_stream_capabilities from HMI and save to the cache * Refactor hmi capabilities test * Fix wrong convert PrerecordedSpeech and added unit test for check * Suspend response to RAI requests until HMI has responded to all the HMI capabilities * Request appropriate capabilities if they are not present in the cache and the default capabilities as well * fixup! Send requests to get capabilities from HMI in case any capability is missing in cache * Remove hm_capabilities.json test file It should be removed because during UT building the real hmi_capabilities.json file is copying to the test directory * Re-factor HMICapabilitiesImpl and add the new one method Make changes in the next places: - GetRequestsRequiredForCapabilities method rename to IsRequestsRequiredForCapabilities and return value change to bool. This commit provides the next implementation: the method checks if specified request should be sent to the HMI; - in the save_hmi_capability_field_to_json method remove redundant section in the json node to save; - JsonCapabilitiesGetter: GetInterfaceJsonMember method rename to IsInterfaceJsonMemberExists. Return value change to bool; - Add the new one function GetInterfaceGetter: returns the JsonCapabilitiesGetter according to specified interface name; - Parsing the capabilities cache file wrapped to the try/catch construction; - Add AddRequiredRequestsForCapabilities method; - Remove MatchesCCPUVersion method as redundant; - Rework PrepareXXXJsonValueForSaving methods; - Add new Unit tests for HMICapabilitiesImpl; - Update existing Unit tests according to the appropriate changes; * Update CCPU Version max value parameter (regular and external policies) * Minor updates: - Remove input parameter for the GetSystemInfo method, move the OnSoftwareVersionReceived method out of GetSystemInfo method; - UIGetCapabilitiesResponse: retrieve reference for a specific section from a message instead of using the whole path to needed section; - OnTTSLanguageChangeNotification: add saving cached capabilities for VR; - OnVRLanguageChangeNotification: update log info; - VRGetCapabilitiesResponse: retrieve reference for a specific section from a message instead of using the whole path to needed section; - VRGetSupportedLanguagesResponse: update log info; - CacheManager (regular and external policies): add doxygen description for the SetPreloadedPtFlag method; move back meta info out of "for" loop; * Minor changes for the Unit tests * Fix SDL Core crash during getting RC capability There the case when RC capability didn't initialized yet and rc_capability() method is calling and returns invalid pointer to the RC capability. This commit provides the next changes: - Add check for returned pointer to rc_capability; - Add the new one capabilitiesStatus parameter "kInvalidStatus" for return value for the GetModuleDataCapabilities method; - Update capabilitiesStatus parameter names according to the coding style; * fixup! Re-factor HMICapabilitiesImpl and add the new one method * fixup! Re-factor HMICapabilitiesImpl and add the new one method * fixup! Re-factor HMICapabilitiesImpl and add the new one method * Remove "system_display_capabilities" smart key * Add to the RequestToHMI the RequestCapabilities method The "RequestCapabilities" methos is common for the all *IsReady requests. Because of that it was moved to the base class with common logic. * Re-factor all *IsReady request. The logic for getting capabilities from HMI is common for the all *IsReady request. This logic is implemented in the base RequestToHMI class. So, this logic should be removed from each request and the method of the base class should be used. * fixup! Re-factor all *IsReady request. Co-authored-by: LitvinenkoIra <ilytvynenko@luxoft.com> Co-authored-by: Igor Gapchuk <igapchuck@luxoft.com> Co-authored-by: Yevhenii Dementieiev (GitHub) <ydementieiev@luxoft.com> Co-authored-by: sniukalov <sniukaov@luxoft.com>
* Update audioPassThruCapabilities in hmi_capabilities.json to arraySho Amano2019-07-251-2/+2
| | | | | Also, hmi_capabilities_impl.cc is updated to support both old and new formats of the json file.
* Add play_pause to hmi_capabilities test fileJackLivio2018-08-221-0/+6
|
* Merge remote-tracking branch 'origin/develop' into feature/add_display_namefeature/add_display_nameJackLivio2018-06-111-8/+24
|\ | | | | | | | | # Conflicts: # src/components/application_manager/src/commands/mobile/register_app_interface_request.cc
| * Fix unit test, add imageTypeSupportedJackLivio2018-06-111-0/+24
| |
| * Check if display capabilities struct is valid before setting valueJackLivio2018-06-071-8/+0
| |
* | DisplayName ImplementationJackLivio2018-05-231-0/+1
|/
* Add secondaryGraphic to ImageFieldName enumfeature/imagefieldname_for_secondaryimagejacobkeeler2018-05-021-1/+9
|
* Merge branch 'develop' into feature/sdl_remote_control_baselineAndrii Kalinich (GitHub)2017-09-051-2/+3
|\
| * Add hapticSpatialDataSupported into VideoStreamingCapabilityMasato Ogawa2017-08-231-2/+3
| |
* | Fixes after rebasing on developAndrey Oleynik2017-08-171-52/+162
| |
* | Implementation of system capabilitiesAlexander Kutsan2017-08-161-1/+145
|/
* Merge branch 'develop' into SDL-0076_Support_For_Additional_LanguagesJackLivio2017-08-151-406/+384
|\
| * Add unit tests for video streaming capabilitySho Amano2017-08-111-0/+15
| |
| * Unit Test: Load capabilities from fileJackLivio2017-07-191-412/+374
| |
* | Adding additional languages and unit tests:Scott Adam Betts (TNA)2017-07-241-1/+2
|/ | | | | EN-IN, TH-TH, EN-SA, HE-IL, HU-HU, RO-RO, UK-UA, ID-ID, VI-VN, MS-MY and HI-IN
* Add check for tts capabilities in unit testVeronica Veremjova2017-02-241-8/+8
|
* Revert "Inclusion of PLAY_PAUSE as a subscribable button"revert-766-feature/PLAY_PAUSE_implementationJacob Keeler2016-11-011-6/+0
|
* Inclusion of PLAY_PAUSE as a subscribable buttonJacob Keeler2016-10-311-0/+6
|
* Implement_PCM_Streaming_Capabilities_supportVProdanov2016-04-281-0/+6
| | | | | | | | | | | | | | | Add pcmStreamCapabilities in MOBILE_API.cml, hmi_capabilities.json, smart_object_keys.h, Add pcm_stream_capabilities_, pcm_stream_capabilities() in hmi_capabilities.h Add set_stream_pcm_capabilities() in hmi_capabilities.cc Add pcm_stream_capabilities response parameters in register_app_interface_request() Implement: APPLINK-23181
* Unit tests for application managerVeronica Veremjova2015-11-191-0/+460