summaryrefslogtreecommitdiffstats
path: root/media
Commit message (Collapse)AuthorAgeFilesLines
* am d440ca76: am f3a5323c: am 6d8f5b75: libdrm: fix bad strncpy / snprintf callsNick Kralevich2013-04-292-7/+43
|\ | | | | | | | | * commit 'd440ca76029ab6f0909fdd9495941e04b90e5da7': libdrm: fix bad strncpy / snprintf calls
| * am f3a5323c: am 6d8f5b75: libdrm: fix bad strncpy / snprintf callsNick Kralevich2013-04-292-7/+43
| |\ | | | | | | | | | | | | * commit 'f3a5323cc685fd78e7c4a7d7474b79cd34a4cf52': libdrm: fix bad strncpy / snprintf calls
| | * am 6d8f5b75: libdrm: fix bad strncpy / snprintf callsNick Kralevich2013-04-292-7/+43
| | |\ | | | | | | | | | | | | | | | | * commit '6d8f5b755b133b308204b84145d773d401cdcd52': libdrm: fix bad strncpy / snprintf calls
| | | * libdrm: fix bad strncpy / snprintf callsNick Kralevich2013-04-292-7/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the following bugs reported by IOActive: * GOOGLE-AN01 - Android libdrm drm_parseDM.c Boundary-CRLF Buffer Overflow * GOOGLE-AN02 - Android libdrm 'drm_parseDM.c' contentType-CRLF Buffer Overflow * GOOGLE-AN03 - Android libdrm drm_parseDM.c contentID-CRLF Buffer Overflow * GOOGLE-AN04 - Android libdrm 'parser_dcf.c' Multiple Headers Buffer Overflow * GOOGLE-AN05 - Android libdrm 'parser_dcf.c' ContentType Buffer Overflow Bug: 8727221 (cherry picked from commit 25619b2c6b3fd584affe20f34bfbf164a5ddbe7d) Change-Id: I9a99c9b8a63c8b9efb3b2b650c735467b77120f2
* | | | Doc update: PlaybackCompleted valid state 4 pausekmccormick2013-03-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | "Bug: 7962402" Change-Id: Ie41d7085373794e98208d8815010b3ca1d81378c
* | | | am 3f72bf32: Merge "Refactoring the media recorder stress test. Added test ↵Jason Noguchi2013-01-072-175/+224
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | cases for: - record & playback @ 1080p - record & playback @ 720p - record & playback @ 480p - record & playback @ custom Plus extending the record duration to a full minute." into jb-mr1-dev * commit '3f72bf323f977b367ceaee5ace321098cb7b74f4': Refactoring the media recorder stress test. Added test cases for: - record & playback @ 1080p - record & playback @ 720p - record & playback @ 480p - record & playback @ custom Plus extending the record duration to a full minute.
| * | | Merge "Refactoring the media recorder stress test. Added test cases for: - ↵Jason Noguchi2013-01-072-175/+224
| |\ \ \ | | | | | | | | | | | | | | | record & playback @ 1080p - record & playback @ 720p - record & playback @ 480p - record & playback @ custom Plus extending the record duration to a full minute." into jb-mr1-dev
| | * | | Refactoring the media recorder stress test.Jason Noguchi2013-01-032-175/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added test cases for: - record & playback @ 1080p - record & playback @ 720p - record & playback @ 480p - record & playback @ custom Plus extending the record duration to a full minute. Change-Id: I294714811606c1ae57907d6ef6a7052044b6247c
* | | | | am 7b4e597f: Merge "Adding camera scene mode stress test." into jb-mr1-devJason Noguchi2013-01-071-54/+135
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '7b4e597faff3c469bdd5e7837155a5fc5ea036bc': Adding camera scene mode stress test.
| * | | | Adding camera scene mode stress test.Jason Noguchi2013-01-021-54/+135
| |/ / / | | | | | | | | | | | | Change-Id: I3f9afef4edc6ea1f659263bf2dbd8ca247039ce0
* | | | Make it clear that non-optional MediaFormat keys are requiredAndreas Huber2012-12-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also mark KEY_CHANNEL_MASK optional. Change-Id: I569087f564dc60a89b15a3440a9b1c538927f610 related-to-bug: 7623602
* | | | Merge "AudioService: improve initial safe volume delay" into jb-mr1.1-devEric Laurent2012-11-301-61/+97
|\ \ \ \
| * | | | AudioService: improve initial safe volume delayEric Laurent2012-11-291-61/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AudioService relies on a valid mmc in order to enforce the headset volume limitation or not. There is a timeout to enforce the limitation if no mcc is configured after boot. Until this timeout is reached or a valid SIM is detected the headset volume is not limited. This change makes that the last known volume limitation state (enforced or not) is persisted so that next time we boot, last known state is applied until a new mcc is configured if any. In most cases, the mcc does not change from one boot to the next and we do the right thing. If teh mcc does change, the correct policy will be enforced when the mcc is detected or after the timeout. Also fix a bug where the volume panel was not displayed if the limitation mechanism is triggered at the first press on VOL+ key. Bug 7455275. Change-Id: Id0f2996d893d38c6a14f4f9e4a0e9e3be17ef127
* | | | | Clean up behavior of type arguments for MediaRouter#getSelectedRouteAdam Powell2012-11-281-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MediaRouter's policy so far has been around a single selected route, but when route types are entirely orthogonal this should not be the case. However we still don't want to get into a situation where we have multiple, very different routes selected for different types at the same time, we still want to have more of an element of predictability. Behavior of getSelectedRoute is now: * If the selected route matches at least one type with the requested type flags, it is still considered selected for that request. * If the caller specifically requested the selected user route and the currently selected route is not a user route, return null. * If the requested type flags do not match any types with the selected route, return the default system route. Note that this is "any" behavior instead of "all" - this matches existing usage of the method. We may consider adding an "all" variant later on. Bug 7588042 Change-Id: I3a79d8153ca6b882fd3ef6b9b1de8f538873dec2
* | | | | Fix audio focus evaluation order for display updateJean-Michel Trivi2012-11-201-8/+14
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change 1f9196a8e5de9b004e61afabc70b18caf7cf9c7e introduced an issue when trying to ignore audio focus entries in the stack that don't use the music stream, or are for transient audio focus gain, for remote control display updates. The bug was that the audio focus stack traversal was not starting from the top, as it should. It was using the iterator order, which, in the case of a stack, starts with the bottom-most entry. The fix consists in traversing the stack from the top, i.e. from the last element of the vector used to hold the stack entries. Bug 7311023 Change-Id: I0c1900dbf98599a621a420ab55531a3eee838fe5
* | | | Clarify that MediaFormat.KEY_IS_ADTS only applies to decoding AAC audio contentAndreas Huber2012-11-141-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and cannot be used to configure the _encoder_ to emit ADTS content. Change-Id: I47177099b204027b726b2c7ec9b93be6835d88f6 related-to-bug: 7542186
* | | | Merge "Support Wifi display devices that rename themselves." into jb-mr1.1-devCraig Mautner2012-11-131-1/+1
|\ \ \ \
| * | | | Support Wifi display devices that rename themselves.Jeff Brown2012-11-071-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some Wifi display devices like to rename themselves after a connection completes (or at other times). Make sure to update the name of the display when we detect that it changed in our scan results. This problem is somewhat complicated by the fact that we remember the display name persistently, so we need to update our list of remembered displays too. Improve the state machine to avoid redundant attempts to disconnect or cancel connection. Bug: 7478895 Change-Id: I35a9e2c6a8deadbe892dacd5e3b4a5a2b12d6cf0
* | | | AudioService: undock audio glitch - DO NOT MERGEEric Laurent2012-11-081-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | merge from master: "AudioService: improve low end dock audio control Low end docks have a menu to enable use of audio for media: automatically enabling/disabling use of audio when the dock is connected/disconnected is useless and can be the source of audio glitches. Bug 7463620." Change-Id: I3b7e7ebe660bb3f0e4367d2a3ed63ee76f78fe58
* | | | audio service fix dock after crash - DO NOT MERGEEric Laurent2012-11-081-0/+7
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | merge from master: "audio service: set dock use on mediaserver restart Restore forced usage of dock audio for media according to current setting when media server restarts." Bug 7485250. Change-Id: Ie67b80ede1ed92d223dd96de83c1beb985dfba06
* | | Merge "audio service: make dock audio is off by default" into jb-mr1-devEric Laurent2012-10-291-1/+1
|\ \ \
| * | | audio service: make dock audio is off by defaultEric Laurent2012-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is better to turn dock audio off by default if the user has not yet explicitly turned it on from the settings menu. There is a discoverability issue with current implementation as we do not launch the settings menu at first dock insertion. Having audio routed to the dock by default would make the tablet silent for media content when docked and users will not be directed to the settings menu. As the dock audio enable setting is for low end docks only (analog connection and no jack detection) disabling audio for low end docks by default does not impact manta and prime docks. Bug 7302106. Change-Id: I571f361d41940cfb811f038442ae9ba9c6361d1d
* | | | No playback and music widget from other user on user switchJean-Michel Trivi2012-10-291-2/+34
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On user switch: - make the current audio focus owner loose audio focus - clear the remote control display Bug 7205290 Bug 7307156 Change-Id: I6ebcb94d1d2bae8c57ab98dd7e795b239a981d28
* | | Merge "add settings for dock audio enabled" into jb-mr1-devEric Laurent2012-10-271-1/+37
|\ \ \
| * | | add settings for dock audio enabledEric Laurent2012-10-261-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add settings dock_audio_media_enabled indicating if dock audio is enabled for media for docks that do not implement jack detection. Bug 7302106. Change-Id: I75766b606ceb870b3f89979c4e3cca88ed197aaf
* | | | Add MediaRouter API to get presentation display.Jeff Brown2012-10-251-5/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new API makes it possible for an application to ask on which Display it should show a Presentation based on the currently selected media route. Also added a new API on DisplayManager to query displays that support a certain category of uses. Improved the documentation of the Presentation class to explain how to choose an appropriate Display for presentation. Bug: 7409073 Change-Id: Iab451215e570ae55f3718fc228303143c800fe51
* | | | Merge "Add text representation of ROUTE_TYPE_LIVE_VIDEO (for debugging)" ↵Bryan Mawhinney2012-10-251-0/+3
|\ \ \ \ | |/ / / |/| | | | | | | into jb-mr1-dev
| * | | Add text representation of ROUTE_TYPE_LIVE_VIDEO (for debugging)Bryan Mawhinney2012-10-241-0/+3
| | | | | | | | | | | | | | | | Change-Id: Id8fa45aefde85e2ba2b57694b91485ef25e2e5f2
* | | | AudioService: add fix for corrupted settingsEric Laurent2012-10-231-0/+6
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added correction of MODE_RINGER_STREAMS_AFFECTED setting in case it is inconsistent when read from the database: ringtone, notification and system streams are always affected by ringer mode. A corruption of this setting persists accross reboots and propagates via backup/restore causing devices to play notification and ringtones in silent mode. Bug 7384750. Change-Id: I23170413d01e6a8e34ef514f1516d7b9ab8bc656
* | | More migration to Global settings.Jeff Sharkey2012-10-181-3/+4
| | | | | | | | | | | | | | | Bug: 7375796 Change-Id: I3954ce141ad30073896090a28eee743ba15fd736
* | | Append the test case name in the beginningYu Shan Emily Lau2012-10-171-0/+1
| | | | | | | | | | | | | | | | | | of the test log. Change-Id: I621286274d84bfff474f1cc1e01353b3fd66dc23
* | | Merge "Fix the NPE for the memwriter." into jb-mr1-devYu Shan Emily Lau2012-10-171-5/+4
|\ \ \
| * | | Fix the NPE for the memwriter.Yu Shan Emily Lau2012-10-171-5/+4
| | | | | | | | | | | | | | | | Change-Id: Id3a5c8f29b0f6be994ea95eb62f1a0eec8fe75b5
* | | | Merge "Use device availability to start WFD audio routing" into jb-mr1-devJean-Michel Trivi2012-10-152-16/+6
|\ \ \ \ | |/ / / |/| | |
| * | | Use device availability to start WFD audio routingJean-Michel Trivi2012-10-112-16/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't use the force_use mechanism to start WFD audio routing, but rather only the availability of the remote submix audio device. This is matched by a change in the audio policy manager. Bug 7318180 Change-Id: I756f032d8ca0375c3dbeddb7c321261c497539bc
* | | | Rewind buffer before copying into it.Marco Nelissen2012-10-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | b/7334897 Change-Id: I83f795cb662d0845314bfb80b9a27ae45b2a0517
* | | | Ensure MediaRouter correctly handles renamed Wifi displays.Jeff Brown2012-10-111-15/+7
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a couple of bugs that cause MediaRouter to disconnect from the current Wifi display whenever it is renamed. Added an extra check in WifiDisplayAdapter for identity renames. The Settings app already handles this case but it's good to have the service check for it as well so we don't store unnecessary aliases. Bug: 7310777 Change-Id: I8fddd32ca59f9b798ee31b467b81457508c345f8
* | | Merge "Don't play notifications during speech recognition" into jb-mr1-devJean-Michel Trivi2012-10-102-0/+17
|\ \ \
| * | | Don't play notifications during speech recognitionJean-Michel Trivi2012-10-102-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for querying AudioManager to know whether speech recognition is currently underway. Don't play a notification if speech recognition is underway. Bug 7314859 Change-Id: I1bd013a3168cfe1a6b6dcfd28565e1c3c512eb6a
* | | | Fix MediaRouter prioritization around a2dp devicesAdam Powell2012-10-101-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most recently connected audio output gets priority. Wifi display will dominate over everything. Bug 7324334 Change-Id: I29b59570a2e9b5352be436dc5b7a0a6861dfae6b
* | | | Merge "Instead of collecting the procmem output in the test, change it as ↵Yu Shan Emily Lau2012-10-092-38/+41
|\ \ \ \ | |/ / / |/| | | | | | | optional. This is to avoid the tool breakage will block the whole memory test sutie." into jb-mr1-dev
| * | | Instead of collecting the procmem output inYu Shan Emily Lau2012-10-092-38/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the test, change it as optional. This is to avoid the tool breakage will block the whole memory test sutie. Change-Id: Ia7425531ca2151230d7fd98eb710f282e166b4f7
* | | | Merge "enforce camera sound according to country code" into jb-mr1-devEric Laurent2012-10-093-38/+182
|\ \ \ \
| * | | | enforce camera sound according to country codeEric Laurent2012-10-083-38/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use mcc config overlay mechanism to enforce camera shutter sounds in countries where it is mandatory. Property ro.camera.sound.forced is not needed anymore. When camera sound is forced, STREAM_SYSTEM_ENFORCED is removed from streams affected by ringer mode and its volume is maxed out. AudioSystem.FORCE_SYSTEM_ENFORCED is sent to audio policy manager to alter the routing policy for STREAM_SYSTEM_ENFORCED. Also fix streams being unmuted when settings are reloaded upon user switch while in silent mode. Add ringer mode to audio service dump. Bug 7032634. Change-Id: Iceea5bba3b8d3aabf8e42b222deb33a893dc8f38
* | | | | Don't do a wifi p2p scan in MediaRouter if we're already connectedAdam Powell2012-10-081-3/+8
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we're connected to a wifi display already, some configurations might hiccup or otherwise disrupt the media stream if we initiate a new scan. Block the MediaRouter's default scanning behavior if we start up while already connected to a wifi display. (A scan will still occur if the user opens the picker dialog.) Change-Id: I413efa883eec41fe0377da18bcb55bc72e2ac729
* | | | AudioService: fix settings for fixed volume deviceEric Laurent2012-10-071-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Force max volume for devices with fixed volume policy (HDMI, dock...) when reading the settings from DB. Otherwise, these devices would get the default volume which is not what we want. Also fix a problem related to ringer mode management when reloading the volume settings upon user switch that would cause a muted stream to be unmuted. Bug 7301563; Change-Id: I81cdb97125b845da584ed680181b93c7c1e5903f
* | | | MediaRouter/Wireless Display - correct initial stateAdam Powell2012-10-041-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure we get the right initial status for wifi displays when a new display route is first added to the MediaRouter. Bug 7289746 Change-Id: Id41f704fc88021bd4cdf21e9f4b3c810775e1aea
* | | | Throw an exception instead of crash when a surface does not have a binding ↵James Dong2012-10-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | surface texture o related-to-bug: 7270329 Change-Id: I498d72187968e89d9498d01b10719569e12be2af
* | | | Merge "AudioService: filter flags in volume methods" into jb-mr1-devEric Laurent2012-10-041-1/+3
|\ \ \ \ | |/ / / |/| | |
| * | | AudioService: filter flags in volume methodsEric Laurent2012-10-031-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Strip FIXED_VOLUME flag in setStreamVolume() and adjustStreamVolume() as this flag is reserved for framework use. Bug 4335692. Change-Id: I507582270f4c4cd631ee81fe50dca895bb6352b3