| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Part of functionality were moved out from CommandRequestImpl base
class to this helper. Moved functions were updated.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There was found a problem that general info message in case of disallowed
by policies params is not applicable for all RPCs. For example
SubscribeVehicleData/UnsubscribeVehicleData has own specific format of
info message in this case.
To fix that following changes were done:
- Added virtual function AddSpecificInfoToResponse() which could be overriden
in child RPCs in case custom info message required
- Removed hardcoded checks of function_id from command_request_impl - all this
checks will be done using polymorphism inside aproriate RPCs
- Fixed affected UT expectation. Invalid unit test was replaced with actual one.
|
|
|
|
| |
Also fixed some unstable tests
|
|
|
|
|
|
| |
There was missed logic to check notification parameters according
policy table for notifications. Was added similar functions as for
requests.
|
|
|
|
|
|
|
|
| |
There was a problem that asBool() function of smart object
returns false for string/array/object types so this params
will no be included to params check list and will not be
cutted off after that. This check was replaced to ignore
only null/ivalid smart object types.
|
|
|
|
|
|
|
|
| |
Added generating of info message depending on check permissions
result:
- for disallowed rpc
- for all disallowed params in rpc
- for partially disallowed params in rpc
|
|
|
|
|
|
|
|
|
| |
Added new values for more detailed CheckPermissions result
description. This values will be used in AM layer for
generating info message string.
Also there was added missed logic for checking RPC params
and returning correct PermitResult code and params lists.
|
|
|
|
|
|
| |
Added new values for more detailed CheckPermissions result
description. This values will be used in AM layer for
generating info message string.
|
|
|
|
|
|
|
|
|
|
|
| |
subscription
- Fixed response to mobile when app tries to subscribe to already
subscribed param
- Fixed response to mobile when request contains parameter disallowed by
policies
- Added some logging
- Fixed mistake in function name
|
| |
|
|\
| |
| | |
Implementation of transport switching from iAP2 Bluetooth to iAP2 USB
|
| |
| |
| |
| |
| | |
Fixed difference in device id hash generation
which was different for SDL built with unit-tests and without
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Replaced #pragma once usage with header guards
Added wrappers for deprecated functions
Fixed related unit tests
Fixed coding style in places related to code chages
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Added wrappers for some deprecated methods
Grouped iface checks in SendRegisterAppInterfaceResponseToMobile
Removed duplicated "if" statement
Improved readability
|
| | |
|
| |
| |
| |
| |
| |
| | |
This reverts commit 866dfe849471157d6d0b414cfb013198a879a51f.
Returning false in case of inner app_id fields update failed causes many
issues on exisiting logic and ATF scripts.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
New implementation considers external switching flow triggering so no
implementation includes separate thread which manages incoming signals
and starts the flow. Also ACK is being sent back to the system.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Fixes mock classes interfaces, unit tests and build after changes
related to making iAP2 switching triggered externally and using of
Bluetooth MAC/USB serial instead of UUID for internal device management.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
These changes update switching flow so now instead of automatic
switching start in case of same UUID is detected SDL will wait for
external signal from the system to start this flow.
Also due to UUID is reliable only while device remains connected (at
least on certain systems) SDL now uses Bluetooth MAC and USB serial to
manage devices and UUID is used only for detection of devices able to
switch their transports. Currently only iAP2 Bluetooth to USB support is
implemented.
|
| |
| |
| |
| |
| | |
On new device connection SDL has to skip devices already known for the
same adapter from update device list update process.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
To be able to check iAP2 transport switch feature these adapters are
implemented. Implementation is done in the way of emulating iAP
transport over TCP since there is no available iAP library for open
source. Since it is just emulation not a real transport is will be built
only with other unit tests i.e. with BUILD_TESTS = ON
|
| |
| |
| |
| | |
While adding data from AddCommand/AddSubMenun msg_params are added itself so we have directly address internal fields w/o accessing 'msg_params'
|
| |
| |
| |
| |
| |
| | |
In case app_id is used for way points subscription it being invalidated
on transport switch and SDL can't unsubscribe same application after
switch is done.
|
| | |
|
| |
| |
| |
| |
| |
| | |
In case app has been just registrered in previous session and didn't
sent any data to resume later and then re-registers over new transport
due to switch there is nothing to resume so RAI result should be SUCCESS
|
| |
| |
| |
| |
| |
| | |
After StopDevice call BT device channel is not usable anymore, so to
talk back to system USB channel is used.
Fixes unit test as well.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Issue was happening due to
- resume data restoring thread was acquiring app subscription lock and
then application list lock
- transport switching thread was acquiring application lock and was
saving resume data and trying to get subscription lock
Now after filtering switching application from application list its lock
will be released
|
| |
| |
| |
| | |
Also typedefs used, typo in description fixed, minor code changes
|
| | |
|