| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
LuxoftAKutsan/fix/activation_app_external_proprietary_fix
Fix/activation app external proprietary fix
|
| |
| |
| |
| |
| | |
Replaced all usaged of device handle with apropriate typedef
Assignment device handle to uint32_t leads to integer overflow
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
| |
Added consts for some methods.
Fixed typos in description.
Renamed some non informative variables names.
|
|
|
|
|
|
|
|
| |
Connection and its handler were extended with function
IsSessionServiceExists to check is specified service
exists in session. This function is needed for ProtocolHandler.
Also there was added check for session protocol version when
starting a new service.
|
|
|
|
|
|
|
|
| |
NotifySessionStartedResult function were updated to use
StartingSessionContext class for accessing to needed data
instead of tones of separate parameters.
Also in protocol handler some raw pointer data were replaced
with smart objects.
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Remove C style casts
Add comments for pragma directives
Remove redundant DEPRECATED macro usages
|
| |
|
|\
| |
| | |
hotfix connection list lock is not released
|
| | |
|
| |
| |
| |
| | |
Remove segfault in transport manager tests
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit includes following changes:
- Add session_key arg in
ConnectionHandler::NotifyServiceStartedResult()
- Use the session key to remember ServiceStartedContext
until NotifyServiceStartedResult() is called
Reflecting review comments.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit includes following changes:
- Add connection_id and session_id args in
ProtocolHandler::NotifySessionStartedResult()
- Use pair of connection_id and session_id to remember the
request packet until NotifySessionStartedResult() is called
Reflecting review comments.
|
| |
| |
| |
| | |
Reflecting review comments.
|
| | |
|
| |
| |
| |
| | |
EndService
|
| | |
|
|/
|
|
|
|
|
|
| |
Removed triggered event from TransportManager
UpdateDeviceList will be called from AddDevice, RemoveDevice
in ConnectionHandlerImpl
Fixed defect : APPLINK-30437
|
|
|
|
|
|
|
|
|
| |
Has been done:
- Fixed coding style;
- Fixed header guard naming;
- Fixed copyright comments.
Related to: APPLINK-24892
|
|
|
|
|
|
| |
Applaunch functionality in TransportMaanger and ConnectionHAndler implementation
Related issue : APPLINK-24892
|
|
|
|
|
|
|
|
|
|
| |
Required functionality to add the registered
application in the app_level table with
application name in column application_id.
Covered changes with unit tests.
Related issue: APPLINK-17802
|
|
|
|
|
|
|
|
|
|
| |
Formated all code in appMain, components, plugins to correct coding-style
Used clang-format-3.6
Used 2 commands :
find src/appMain/ -name "*.h" -o -name "*.cc" -o -name "*.hpp" -o -name "*.cpp" | xargs clang-format-3.6 -i -style=file
find src/components/ -name "*.h" -o -name "*.cc" -o -name "*.hpp" -o -name "*.cpp" | xargs clang-format-3.6 -i -style=file
find src/plugins/ -name "*.h" -o -name "*.cc" -o -name "*.hpp" -o -name "*.cpp" | xargs clang-format-3.6 -i -style=file
|
|\
| |
| |
| |
| | |
Kozoriz/hotfix/Fix_impl_and_tests_of_connection_after_megring_singletones
Fix impl and tests of connection after megring singletones
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Corrected impl of Connection class
* added initialization of heart_beat_timeout in Constructor
Corrected tests of Connection and ConnectionHandler
Added additional test case for connection.
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| | |
Correctives in src and tests for ConnectionHandler class
Related to : APPLINK-21440
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
During processing this defect I found 3 dead locks in
components: conection_handler, hearbeat_monitor.
First deadlock:
First thread:
Calls KeepConnectionAlive() from connection_handler
in this method thread locked connection_list_lock_,
after that calls method KeepAlive() from heartbeat_monitor
and thread tries to lock sessions_list_lock_ wich was locked by
second thread
Second thread:
Blocks sessions_list_lock_ in method Process() from heartbeat_monitor
after that sends hearbeat to mobile
and calls method SendHeartBeat() from protocol_handler.
In this method calls ProtocolVersionUsed() where thread
tries to lock connection_list_lock_ wich was locked by
first thread -> DEAD LOCK
I fixed this problem using RWLock().
Second and third dead locks were associated with
time of action of sessions_list_lock in method Process()
from heartbeat_monitor
I decreased time of action this lock in order to
fix this problem.
Closes-bug:[APPLINK-19632](https://adc.luxoft.com/jira/browse/APPLINK-19632)
|
| |
| |
| |
| |
| |
| |
| | |
Change in CloseSession const iterator to const reverse iterator.
Related:
APPLINK-20523
|
|\ \
| | |
| | | |
Make function handler checking to prevent main thread crash
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Move SendEndSession before return after find id. Find id can finish
unsuccessfully and than SendEndSession can't execute.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Make more wide if statment. It include map search.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Handler to observer can be set to null in any moment. Make check
before call handler.
Bug-fixes: [APPLINK-20011](https://adc.luxoft.com/jira/browse/APPLINK-20011)
|
|\ \ \
| | | |
| | | | |
Update logging for component
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Updated log4cxx.properties files
Issues: APPLINK-19597, APPLINK-19603
|
| |/ /
| | |
| | |
| | | |
Issues: APPLINK-19597, APPLINK-19603
|