summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* AM: create patch version 7.7.1 due to build problem with preceding 7.7.07.7.1Martin Koch2020-02-241-1/+1
| | | | Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
* AM: fix build problem from accidentally introduced new-line character in ↵Martin Koch2020-02-131-1/+1
| | | | | | VERSION file Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
* update version to 7.7.07.7Martin Koch2020-02-101-1/+1
| | | | Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
* Merge pull request #48 from GENIVI/LoggingArchitectureMartin Koch2020-02-1037-1052/+1836
|\ | | | | 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-1422-30/+35
| | | | | | | | | | | | | | | | | | | | | | | | 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-Test: exclude AmSocketHandlerTest from build if WITH_DLT is not enabledMartin Koch2020-01-141-1/+7
| | | | | | | | Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
| * AM_Utils: reduce CAmDltWrapper to legacy wrapper around new logging architectureMartin Koch2020-01-143-1021/+90
| | | | | | | | Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
| * AM-Utils: Introduce new logging architecture, providing separate classes for ↵Martin Koch2020-01-1412-0/+1704
| | | | | | | | | | | | each logging channel (DLT, file or stdout) and a channel-independent wrapper class. (first preparation step of AM for build without strong dependency to DLT library) Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
* | Merge pull request #49 from GENIVI/PluralPropertiesMartin Koch2020-02-1017-3/+281
|\ \ | |/ |/| Add plural form of set/get ..SoundProperty() and ..SystemProperty() to allow for simultaneous handling of multible, possibly interrelated attributes.
| * AM: add plural form of setSystemProperties for global configuration ↵Martin Koch2020-01-1717-1/+86
| | | | | | | | | | | | | | | | | | | | | | | | 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-1717-2/+195
|/ | | | | | | | | | | | | 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>
* Merge pull request #47 from mkoch-aditg/fixRemoveConnectionMartin Koch2019-12-161-3/+3
|\ | | | | Fix remove connection
| * AM database: correct implementation of ↵Martin Koch2019-10-171-3/+3
| | | | | | | | CAmDatabaseHandlerMap::removeMainConnectionDB()
* | Merge pull request #46 from mkoch-aditg/addNamespaceDocMartin Koch2019-12-161-0/+3
|\ \ | | | | | | Add namespace doc
| * | add a documentation to the global namespace 'am'Martin Koch2019-10-161-0/+3
| |/ | | | | | | | | - the presence of this documentation enables doxygen (as of version 1.8.11) to resolve \ref links not only for classes, but also for documented enums, typedefs and defines.
* | Merge pull request #45 from mkoch-aditg/masterMartin Koch2019-12-161-48/+0
|\ \ | |/ | | AM-Test: drop accidentally pushed backup file: AudioManagerCore/test/…
| * AM-Test: drop accidentally pushed backup file: ↵Martin Koch2019-10-161-48/+0
|/ | | | AudioManagerCore/test/AmRoutingInterfaceTest/CMakeLists.txt~
* Merge pull request #39 from GENIVI/genivi_impJens Lorenz2018-09-255-303/+375
|\ | | | | Minor improvements for DLT and Database handler.
| * Notifying observers of sound properties only by value changes.genivi_impJacqueline Molz2018-08-225-303/+375
|/ | | | | | | | | 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
* Merge pull request #35 from JensLorenz/issue_24_clean_up_whitespaceGENIVI Audio Manager Maintainer2018-07-1236-8827/+9785
|\ | | | | Issue #24 clean up whitespace
| * FOO: Issue #26 fix white space issues and apply new coding styleJens Lorenz2018-07-0335-8817/+9783
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * FOO: Remove missing logging files in uncrustify_files.cfgJens Lorenz2018-07-031-10/+2
|/ | | | | | Linked files are wrongly referenced. They will be provided in a later PR. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* Merge pull request #34 from JensLorenz/foo_beatifier_uncrustifyGENIVI Audio Manager Maintainer2018-07-0322-230/+442
|\ | | | | Clean up whitespace #24: Provide configuration files for the beautifier uncrustify
| * Foo: Initial proposal for the command line beautifier uncrustifyJens Lorenz2018-06-202-0/+257
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * codestyle: Remove empty single line c++ comments in ctor initializersJens Lorenz2018-06-2014-124/+124
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMCore: Rework of preprocessor defines to improve readabilityJens Lorenz2018-06-204-102/+57
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * CMAKE: Rename the input cmake file of audiomanagerconfig.hJens Lorenz2018-06-202-4/+4
|/ | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* Merge pull request #32 from JensLorenz/clean_pr26_utility_updatesGENIVI Audio Manager Maintainer2018-06-2010-573/+982
|\ | | | | Clean pr26 utility updates
| * AMUtil: Fix inconsistent fdPollingArrayJens Lorenz2018-06-123-116/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case someone removed a fd and closed it opened a new one and added it to the socket handler the container state of the object in map was changed from either REMOVE/CLOSE to UNINIT. This leads to the emplace call in the fdPollingArray vector and the fd is maintained twice. Over the entire runtime there will be zombie fds provided to ppoll functions which will race a POLLERR revent leading to 100% cpu load. Also the CLOSE state is now removed because only the application is aware if a fd has to be closed. For instance calling add/remove in a loop were start_listenting is not running will turn to a system issue were no fds can be provided by the operation system. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Test: Return in threads with NULLJens Lorenz2018-04-231-0/+6
| | | | | | | | 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>
| * AMUtil: No check callback needed for eventfd and signalfdJens Lorenz2018-04-091-5/+2
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Change log level of removeFDPoll from error to warningJens Lorenz2018-04-091-1/+1
| | | | | | | | | | | | | | It is not an error in case the requested fdpoll is not part of the internal database. I just worth to print a warning here. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Store signalfd as file descriptor instead of pollfd handleJens Lorenz2018-04-092-46/+21
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Wakeup of ppoll is now also triggered on addFdPollJens Lorenz2018-04-092-16/+17
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Fix startup sequence addFdPoll and removeFdPollJens Lorenz2018-04-092-4/+87
| | | | | | | | | | | | | | | | | | | | In case plugins add new fdpoll elements and directly removing them afterwards the state inside the structure will be changed to REMOVE. REMOVE will lead all the time to an erase which will not work in case the pointer is at .end() of vector or the element itself is not the correct one. Both cases will be fixed just by checking if the fd is the same. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Cleanup indents and whitespacesJens Lorenz2018-04-093-33/+34
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Rework of exception debug messagesJens Lorenz2018-04-091-13/+15
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: ONLY timers will be closed in worker threadJens Lorenz2018-04-092-9/+18
| | | | | | | | | | | | | | The removeFDPoll API is extended to allow applications to close the fd by the central worker thread. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Rework of socketHandler to avoid calls of invalidated objectsJens Lorenz2018-04-094-219/+505
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch tries to follow the idea raised in PR26. Following two patches have been reworked: commit: cfe0e77aaf87a0590ceea42f6afa62b0c7d95e80 commit: bc33226f59910a960f62d419ba10d4ea761e3724 The biggest change applies to the internal database. Instead of having a vector for all items which will be copied inside the worker thread the new approach aims a central map which allows to store the sh_poll elements in containers. By this a container is valid until it is remove from map. The remove of items inside a map is now centralized within the worker and only the worker is responsible to keep the ppoll list and the map in sync. This patch also extends the unit tests to stress different timer scenarios. Signed-off-by: Aleksandar Donchev <Aleksander.Donchev@partner.bmw.de> Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Change from mPipe to eventfdJens Lorenz2018-04-092-20/+41
| | | | | | | | | | | | This commit is the first commit of a rework of the CAmSochetHandler class. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Improve timer implementation and ensure that no fd leak happensJens Lorenz2018-04-092-48/+50
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Rework of listenToSignal and minor improvementsJens Lorenz2018-04-091-17/+15
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Improve actionPoll lambda implementation for signal and timerJens Lorenz2018-04-091-27/+45
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Test: Ensure that revents are tested in fire callbackJens Lorenz2018-04-091-2/+2
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Test: Lets check the return value of addTimerJens Lorenz2018-04-091-13/+14
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Test: Remove off-by-one problem for timer meas. and socket testsJens Lorenz2018-04-091-45/+39
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Test: Fix mExpected value range for 32-bitJens Lorenz2018-04-092-2/+2
| | | | | | | | | | | | | | The duration calculation for mExpected is not working. The playWithTimers oneshot test reported all times warnings. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * CMAKE: Update option messageAleksandar Donchev2018-03-271-3/+1
| | | | | | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
| * AMUtil: Test: Add macro to increase the loop count of serializer testsAleksandar Donchev2018-03-271-2/+5
| | | | | | | | Signed-off-by: Christian Linke <christian.linke@bmw.de>