summaryrefslogtreecommitdiff
path: root/AudioManagerCore/src
Commit message (Collapse)AuthorAgeFilesLines
* AMCore: correct behavior regarding registration of early connectionsMartin Koch2020-07-014-11/+25
| | | | | | - modify enterConnectionDB() and enterMainConnectionDB() to accept also connections using reserved (peeked-only) sources and/or sinks Signed-off-by: Martin Koch <martin.koch@ese.de>
* AMCore: remove handle after unsuccessful asyncTransferConnection()Martin Koch2020-07-011-1/+6
| | | | Signed-off-by: Martin Koch <martin.koch@ese.de>
* AM: add missing forwarding function for cbAckTransferConnection()Martin Koch2020-07-011-0/+6
| | | | Signed-off-by: Martin Koch <martin.koch@ese.de>
* AM: fix const handle in transferConnection family of functionsMartin Koch2020-07-012-2/+7
| | | | Signed-off-by: Martin Koch <martin.koch@ese.de>
* AM: change handling or registerEarlyConnectionMartin Koch2020-07-013-13/+39
| | | | | | | | - use type am_Route_s for announcement from routing side - register also main connection internally - forward route details to controller Signed-off-by: Martin Koch <martin.koch@ese.de>
* AM: add parameter domainID to asyncTransferConnection()Martin Koch2020-07-011-1/+1
| | | | Signed-off-by: Martin Koch <martin.koch@ese.de>
* Add support for announcement and handling of pre-established audio ↵Martin Koch2020-07-015-17/+158
| | | | | | | | | | | | | | | | | | | connections through routing side As the complete initialization of the cockpit system takes some time, a few use-cases exist where information needs to be audible (or visible) right before the system is fully started. Here we mainly have: - system alerts + door open + seat belt missing + engine faults - parking assistant warnings + rear view camera screen + beeps if distance goes below limit Both routing- and control-side are extended to allow notifying about such connections Signed-off-by: Martin Koch <martin.koch@ese.de>
* Null Point Handling PatchDaeduek Cho2020-06-181-36/+59
| | | | | Null Point Handling Patch Detected by static analysis
* typo changDomainStateDB > changeDomainStateDBdaduki2020-05-111-1/+1
| | | typo changDomainStateDB > changeDomainStateDB
* typo changDomainStateDB > changeDomainStateDBdaduki2020-05-111-1/+1
| | | typo changDomainStateDB > changeDomainStateDB
* Merge pull request #48 from GENIVI/LoggingArchitectureMartin Koch2020-02-108-8/+8
|\ | | | | AM-Utils: Introduce new logging architecture, providing a common DLT-independant wrapper for the 3 logging channels (DLT, file and stdout)
| * AM: Reorganize daemon, core, utilities and tests to make use of the new ↵Martin Koch2020-01-148-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | logging architecture. - Known side-effect: CAmSerializer.h and TAmPluginTemplate.h no longer indirectly include dlt_user.h. Thus macros like DLT_DECLARE_CONTEXT and DLT_IMPORT_CONTEXT may be undefined in application code unless CAmDltWrapper.h or dlt_user.h is included explicitly. - Since the DLT functionality is now encapsulated inside a dedicated class, such declaration is usually superfluous and can be dropped. Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
* | AM: add plural form of setSystemProperties for global configuration ↵Martin Koch2020-01-175-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | attributes to command and control interface - implement plural form of requests and acknowledgments in core - provide empty default implementations in interfaces to ensure backward compatibility with older plugins - accommodate extension in module tests Main purpose of this extension is to allow for one-shot (uninterrupted), consistent change of multiple, possibly interrelated configuration attributes. Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
* | AM: add plural form of set...SoundProperties for sources and sinks to ↵Martin Koch2020-01-175-0/+121
|/ | | | | | | | | | | | | command and control interface - implement plural form of requests and acknowledgments in core - provide empty default implementations in interfaces to ensure backward compatibility with older plugins - accommodate extensions in module tests - leave existing singular form untouched Main purpose of this extension is to allow for one-shot (uninterrupted), consistent change of multiple, possibly interrelated sound properties. Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
* AM database: correct implementation of ↵Martin Koch2019-10-171-3/+3
| | | | CAmDatabaseHandlerMap::removeMainConnectionDB()
* Notifying observers of sound properties only by value changes.genivi_impJacqueline Molz2018-08-221-23/+52
| | | | | | | | | Fix infinite loop in CAmDltWrapper by logging out enum values exceeding the boundaries. Minor changes: Pull request 36 changed implementation to database macros (review comments) added option "WITH_DATABASE_CHANGE_CHECK" to audiomanagerconfig.h.in whitespace cleanup in test/AmMapHandlerTest/CAmMapHandlerTest.cpp additional cast to uint in DB_UPDATE call in function removeMainConnectionDB to solve error in macro expansion
* FOO: Issue #26 fix white space issues and apply new coding styleJens Lorenz2018-07-039-3684/+4093
| | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* codestyle: Remove empty single line c++ comments in ctor initializersJens Lorenz2018-06-208-80/+80
| | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AMCore: Rework of preprocessor defines to improve readabilityJens Lorenz2018-06-201-2/+2
| | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AMCore: Test: Initialize file descriptors of pipe with '-1' in ctorJens Lorenz2018-04-231-1/+2
| | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AMCore: remodel ctor Sender in Command and RoutingGuerra Mattia2017-09-292-223/+236
| | | | | | | | | Moving plugin opening to a separate function, this gets rid of a memory writer behavior on ARM64 platforms, otherwise leading to a this pointer of lambda functions severely corrupted (only when compiling optimizations are enabled). Signed-off-by: Guerra Mattia <mguerra@de.adit-jv.com>
* AMUtil: Fix for destroy controller on rundownJens Lorenz2017-09-291-11/+14
| | | | | | | | | On rundown the controller will be unloaded. In case the controller wasn't loaded successfully or the controller doesn't implement the destroy function the rundown of AudioManager crashed. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AM: Destroy plugin implementation.Kapildev Patel2017-09-291-3/+13
| | | | | | | With these changes AudioManager would call destroy function of the controller plugin at the time of shutdown. Signed-off-by: Kapildev Patel <kpatel@jp.adit-jv.com>
* The primary signals SIGINT and SIGQUIT are handled on top level inAleksandar Donchev2017-07-101-1/+1
| | | | | | | | | contrast to secondary signals SIGHUP, SIGTERM, SIGCHLD, which are handled in the SocketHandler. Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I8c5d3c436ac9fcd61c76a26145c731b427cab1e6
* The database observer reverse pointer to the handler is initialized in ↵Aleksandar Donchev2017-05-021-9/+7
| | | | | | | registerObserver. Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I5a1c23436ac9bcc37c76a12245c731f327cab0d4
* CAmSerializer interface extended to support std::function. Aleksandar Donchev2017-05-021-21/+23
| | | | | Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I8b4c2c436ac9fbc37c76a21145c731f327cab0e4
* AMCore: Fix connection state notification on remove connectionJens Lorenz2017-04-111-4/+7
| | | | | | | The CS_DISCONNECTED was notified even in case WITH_DATABASE_CHANGE_CHECK flag was activated and the main connection was already disconnected by controller. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AMCore: Start dynamic resources range from DYNAMIC_ID_BOUNDARYJens Lorenz2017-04-111-7/+7
| | | | | | | Currently the DYNAMIC_ID_BOUNDARY value is not part of static nor dynamic section. Every element like a source which is registered with this value is not addressable. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AMCore: Fix parameter names of increaseID & getNextConnectionIDJens Lorenz2017-04-111-15/+15
| | | | | | The functions are used in a generic way which should be covered by the parameter names. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* * if needed the routing graph will be re-created from getRoute after aRouter_adaptionsAleksandar Donchev2017-02-201-875/+897
| | | | | database change has been observed. Signed-off-by: Christian Linke <christian.linke@bmw.de>
* handle overflow of handles correctlyChristian Linke2017-02-201-9/+24
| | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* * many database observers can be registred now by the database handler.Aleksandar Donchev2017-02-205-490/+424
| | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* * CAmRouterTest adoptions.Aleksandar Donchev2017-02-201-10/+6
| | | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* * Max count of the returned routes tweaked up.Aleksandar Donchev2017-02-201-13/+12
| | | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* * Max count of the returned routes and max allowed domain cyclesAleksandar Donchev2017-02-201-207/+311
| | | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* Return all routes with all possible connection formatsChristian Linke2017-02-201-74/+65
| | | | | | | Removed obsolete sqlite interface handling Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I380f6d4ce1dab2efa47620164e72a30fa144afdd
* AMCore: Fix deamon to update interrupt state of source.Jens Lorenz2016-11-252-1/+19
| | | | Signed-off-by: Toshiaki Isogai <tisogai@jp.adit-jv.com>
* logging beautifyingChristian as GENIVI Maintainer2016-10-186-270/+281
| | | Signed-off-by: Christian as GENIVI Maintainer <genivi-maint-audiomanager@genivi.org>
* remove telnet server from AudiomanagerChristian as GENIVI Maintainer2016-10-183-1696/+0
| | | Signed-off-by: Christian as GENIVI Maintainer <genivi-maint-audiomanager@genivi.org>
* Change error in databasehandler into warningChristian as GENIVI Maintainer2016-09-281-2/+2
| | | Signed-off-by: Christian as GENIVI Maintainer <genivi-maint-audiomanager@genivi.org>
* wrong error messageChristian Linke2016-09-021-2/+2
|
* some test fixesChristian Linke2016-08-301-1/+1
| | | | Change-Id: I22ea9682756dd36f6442241951ec6678f3c3f7ae
* Improved the changes. Cleared wrongly issued errors.Christian Linke2016-08-303-12/+29
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* Changed error to warning in database if data is receivedChristian Linke2016-07-291-31/+31
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* some updates of the fixChristian Linke2016-06-213-67/+65
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* cleanup routing interface to add clean abort and resend possibilities7.5Christian Linke2016-06-174-653/+785
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* Fix enter gateway issueChristian Linke2016-05-201-24/+0
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* close pipes after useChristian Linke2016-05-171-0/+2
| | | | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de> Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* fix exitsSourcebug for databasehandler.Christian Linke2016-04-131-1/+1
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* Remove assert from database and replace by error handlingChristian Linke2016-04-112-141/+420
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>