summaryrefslogtreecommitdiffstats
path: root/media/mediaserver
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'remotes/android-6.0.1_r52' into HEADJessica Wagantall2016-07-072-0/+7
|\ | | | | | | | | | | Ticket: CYNGNOS-3020 Change-Id: I7e8d69c5f7041b66893ea643c4bc19c3b7bcdda5
| * limit mediaserver memoryMarco Nelissen2016-05-272-0/+7
| | | | | | | | | | | | | | | | | | | | Limit mediaserver using rlimit, to prevent it from bringing down the system via the low memory killer. Default max is 65% of total RAM, but can be customized via system property. Bug: 28471206 Bug: 28615448 Change-Id: Ic84137435d1ef0a6883e9789a4b4f399e4283f05
* | mediaserver: conditionally launch ListenServiceKiran Kandi2015-11-122-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conditionally instantiate ListenService from MediaService. ListenServiceruns as a singleton in its own thread that calls AudioHAL which in turn accesses Listen Driver. It is the entry point from Application processes that want so execute Listen commands and receive Voice detection events. It manages Listen application resources and global states across all Listen applications. ListenService is similar to AudioFlinger. That is why it is instantiated from MediaServer. Listenservice talks to AudioHAL to deal with concurrent usage of mic. Change-Id: I71c346bb16e0ed3a7aae9c908e03c7f1c694fe0a
* | camera: add ability for a device to specify MAX_CAMERASDan Pasanen2015-10-301-0/+4
|/ | | | Change-Id: I3db99ea4eff63aab3448efe7b2eb51366c658c03
* Switch to using shared over local code for initializing ICUNeil Fuller2015-06-114-70/+3
| | | | | | | A static library now exists in external/icu/android_utils. Bug: 21730722 Change-Id: I8302b585d3c87fd1a975301ceca4ceebaccbcac9
* mediaserver : Initialize ICU on startup.Narayan Kamath2015-06-104-1/+72
| | | | | | | | | | In change 2b29e461c in external/icu, we stopped hardcoding the ICU data path at compile time to avoid two sets of mappings in zygote forked processes. This means we'll have to tell ICU where its data is if the process in question isn't forked from the zygote. bug: 21705078 Change-Id: I829d9fa34fe8209aa8a6d55145ca26fdf0d934e8
* media: use ResourceManagerService with MediaCodecRonghua Wu2015-04-141-0/+2
| | | | | Bug: 19620911 Change-Id: I235a97e5195b28645b7834dda0dd77307d93f4a8
* TimestretchBufferProvider integration with Sonic LibraryRicardo Garcia2015-04-131-1/+2
| | | | | | | | Using Sonic as backbone for time stretching algorithm. Adding libsonic to needed makefiles. bug: 19196501 Change-Id: I1ea9221d2f56e4e79fba8746ce0ad350b5079e82
* Split ManagerDefault into manager and engineFrançois Gaffie2015-04-011-0/+2
| | | | | | | | | | | This patch defines an interface for a new component: policy engine. The APIs found under this interface are the one we may want to customize and to configure easily. This patch also split the current manager code into manager and engine to provide a default version of the policy engine. Change-Id: I97cf59760b53d248fe9efe466ae5e73bd7e5cc06 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
* Split ManagerDefault into Manager and ManagerDefinitionsFrançois Gaffie2015-04-011-1/+2
| | | | | | | | | | | | This patch splits the managerdefault into a manager and a manager defintion library that contains all pillar elements of a policy manager. It renames the file with the name of the main class they contains. It splits the AudioPort into AudioPort and AudioPatch. Change-Id: I992cf0b8aed895805cc003ba0980d2c9e92c985b Signed-off-by: François Gaffie <francois.gaffie@intel.com>
* media: add ResourceManagerServiceRonghua Wu2015-03-231-0/+2
| | | | | Bug: 19620911 Change-Id: Iea173d310d31781bc50effe3d9bd6553cb5139eb
* radio service initial implementationEric Laurent2015-03-102-2/+6
| | | | | | | | | | | | First implementation of broadcast radio service. This native service runs in mediaserver process and controls broadcast radio hardware modules. There is one ihardware module per broadcast radio class. The service allows serveral clients to control tuners on hardware modules and manages resource conflicts. Change-Id: I21469a084c7ccd65042b8ac5f724d060044c45ab
* Refactor AudioPolicyManagerJean-Michel Trivi2015-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AudioPolicyManager implementation is now split into the following files: files managerdefault/Gains.* class AudioGain class VolumeCurvePoint class StreamDescriptor files managerdefault/Devices.* class DeviceDescriptor class DeviceVector files managerdefault/Ports.* class AudioPort class AudioPortConfig class AudioPatch files managerdefault/IOProfile.* class IOProfile files managerdefault/HwModule.* class HwModule files managerdefault/AudioInputDescriptor.* class AudioInputDescriptor files managerdefault/AudioOutputDescriptor.* class AudioOutputDescriptor All files for libaudiopolicyservice are moved under service/ All files for libaudiopolicymanager are moved under manager/ Change-Id: I43758be1894e37d34db194b51a19ae24461e066e
* Cleanup annoying whitespace that causes red markersGlenn Kasten2015-01-021-1/+1
| | | | Change-Id: I0b1be110b0e0a9606d272c4d023f40ff93522725
* add sound trigger native serviceEric Laurent2014-06-042-2/+6
| | | | Change-Id: I0cd954c1c7d28a334e786d0004431d4f6a1227ec
* Merge "audio policy: split audio policy library"Eric Laurent2014-05-221-1/+1
|\
| * audio policy: split audio policy libraryEric Laurent2014-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split audio policy library into a service part and a policy part. This will allow OEMs to customize the policy part: - libaudiopolicyservice for the service. - libaudiopolicymanager for the policy. Two build options can be defined in device make file to select the policy library: - USE_LEGACY_AUDIO_POLICY = 1: this will use the legacy policy in hardware/libhardware_legacy implemented by AudioPolicyManagerBase class. This policy is loaded as a harware module and exposes the audio policy HAL defined in include/hardware/audio_policy.h and is in a library called audio_policy.XXX.so (e.g audio_policy.default.so) The legacy HAL will not be updated with new features. If USE_LEGACY_AUDIO_POLICY is not defined, the policy is implemented by a class named AudioPolicyManager exposing an interface defined in AudioPolicyInterface.h. The corresponding library is libaudiopolicymanager.so. New features will be added only to AudioPolicyInterface.h The default implementation is provided here in file AudioPolicyManager.cpp OEMs wanting to cutomize the policy can implement the AudioPolicyManager class and provide the libaudiopolicymanager.so library. In this case the device make file should define: - USE_CUSTOM_AUDIO_POLICY = 1 For now, USE_LEGACY_AUDIO_POLICY = 1 is forced in audio policy service make file. This will be removed when the new audio policy is enabled. Change-Id: I066799dacc9b182b468a43d48ff7798c9109a414
* | Pass stereo gains as packed minifloatGlenn Kasten2014-05-191-1/+2
|/ | | | | | | | | | This will allow (eventually) a greater dynamic range for gains. However there are still a few remaining places in effects and mixer that will also need to be changed in order to get the full benefit. Also fixes a minor bug: was not checking for NaN in AudioTrack C++. Change-Id: I63bce9e82e0a61546d8ff475fb94bcb700d99c96
* Merge "move audio policy service to a separate library"Eric Laurent2014-03-181-0/+2
|\
| * move audio policy service to a separate libraryEric Laurent2014-03-111-0/+2
| | | | | | | | Change-Id: Ibc3ef07aa9860b7fd4f9aaff27b0dbe0dcbf1cbf
* | resolved conflicts for merge of 3c780188 to masterGlenn Kasten2014-03-141-0/+1
|\ \ | |/ |/| | | Change-Id: Ic579d346c27ff05ea6444faaa60fa6caaec86fbf
| * mediaserver and associated services are 32-bit onlyGlenn Kasten2014-03-121-0/+1
| | | | | | | | | | | | also 32-bit only command-line apps Change-Id: I9ac557a8d02bbf6986a9b5c3cdce23d400b306a3
| * Add liblogYing Wang2013-04-091-0/+1
| | | | | | | | | | Bug: 8580410 Change-Id: If493d87d60d71be664ad75b140c62acadb75b0d0
| * Permit conditional registry of mediaserver extensionsGlenn Kasten2013-02-204-0/+57
| | | | | | | | Change-Id: I94dc0d038e702dfe1779a50a1de0fae9bad15057
| * Add media.log service based on NBLogGlenn Kasten2013-01-252-9/+101
| | | | | | | | Change-Id: Ie45093df6ac9a739d05c8d408fab52a9a8a27e7f
| * Remove obsolete audioflinger referenceGlenn Kasten2013-01-181-3/+1
| | | | | | | | Change-Id: I9ae754c908f3b0102c3828c71d6f542851a74341
| * Ignore SIGPIPE during write() to broken pipeGlenn Kasten2012-10-171-0/+1
| | | | | | | | | | | | | | This happens occasionally when taking a bugreport. Bug: 6447319 Change-Id: Ia6531a4a3658461f8fd3f7106e7996da7cc5933a
* | Fix unused parameter warnings in audioGlenn Kasten2014-02-031-1/+1
| | | | | | | | Change-Id: I665ba3358dd9502f0adec70d486e7bf8a2e1b0fe
* | Fix build. Missing vendor_tag header.Ruben Brunk2014-01-171-0/+1
| |
* | Add liblogYing Wang2013-04-091-0/+1
| | | | | | | | | | Bug: 8580410 Change-Id: If493d87d60d71be664ad75b140c62acadb75b0d0
* | Permit conditional registry of mediaserver extensionsGlenn Kasten2013-02-204-0/+57
| | | | | | | | Change-Id: I94dc0d038e702dfe1779a50a1de0fae9bad15057
* | Add media.log service based on NBLogGlenn Kasten2013-01-252-9/+101
| | | | | | | | Change-Id: Ie45093df6ac9a739d05c8d408fab52a9a8a27e7f
* | Remove obsolete audioflinger referenceGlenn Kasten2013-01-181-3/+1
| | | | | | | | Change-Id: I9ae754c908f3b0102c3828c71d6f542851a74341
* | Ignore SIGPIPE during write() to broken pipeGlenn Kasten2012-10-171-0/+1
|/ | | | | | | This happens occasionally when taking a bugreport. Bug: 6447319 Change-Id: Ia6531a4a3658461f8fd3f7106e7996da7cc5933a
* Add NOTICE and MODULE_LICENSE_APACH2 to libs build under /frameworks/av/James Dong2012-06-132-0/+190
| | | | | Change-Id: I0a3af3e2abdedebd5934f3d941d01c32cfc75e26 related-to-bug: 6647465
* AV Android make files changesJames Dong2012-03-281-4/+4
| | | | | | | o plus a few file relocation: ActivityManager.cpp/h, SoundPool.h, etc o remove some runtime dependencies to libandroid, libandroid_runtime, etc Change-Id: I047a47c5fb361dd5cf85cd98798c39f629a75d10
* Merge "Prepare frameworks/native/services/audioflinger"Glenn Kasten2012-03-141-5/+5
|\
| * Prepare frameworks/native/services/audioflingerGlenn Kasten2012-03-131-5/+5
| | | | | | | | | | | | Part of this change will be reverted after the move is complete. Change-Id: Ie7f6355368258f2b1344f4ef754da9151a06e41d
* | Use correct syntax for #include <> ""Glenn Kasten2012-03-131-4/+6
|/ | | | Change-Id: I943137108668ae66f8eba18dafe069a7951bcd8f
* Merge "Fix missing tag in mediaserver ServiceManager: log"Glenn Kasten2012-01-111-0/+2
|\
| * Fix missing tag in mediaserver ServiceManager: logGlenn Kasten2012-01-061-0/+2
| | | | | | | | Change-Id: I2d5525ffee0b66c0bc361a02b313ec4dd61e6552
* | Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-041-1/+1
|/ | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
* Delete obsolete includesGlenn Kasten2011-12-121-6/+0
| | | | Change-Id: I960a179a026ff8d710b43b64cb358f18ee04de16
* move native services under services/Mathias Agopian2010-07-141-2/+2
| | | | | | | | moved surfaceflinger, audioflinger, cameraservice all native services should now reside in this location. Change-Id: Iee42b83dd2a94c3bf5107ab0895fe2dfcd5337a8
* Fix issue 1795088 Improve audio routing codeEric Laurent2009-07-231-0/+2
| | | | | | | Initial commit for review. Integrated comments after patch set 1 review. Fixed lockup in AudioFlinger::ThreadBase::exit() Fixed lockup when playing tone with AudioPlocyService startTone()
* move libbinder's header files under includes/binderMathias Agopian2009-05-201-3/+3
|
* checkpoint: split libutils into libutils + libbinderMathias Agopian2009-05-201-1/+2
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-032-0/+67
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-032-67/+0
|
* Initial ContributionThe Android Open Source Project2008-10-212-0/+67