summaryrefslogtreecommitdiffstats
path: root/media/java
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue 2472495: Phone cannot be set to silent mode via volume keys while ↵Eric Laurent2010-03-221-49/+88
| | | | | | | | | | | | | | | | | Driveabout is taking. The problem is that AudioService.adjustStreamVolume() only handles the ringer mode change when the STREAM_RING volume changes from 1 to 0 or 0 to 1. If another stream is soloed, the STREAM_RING stream volume is forced to 0 and then never transits from 0 to 0 when volume down key is pressed. The fix consists in considering the saved value instead of current value when ajusting or setting the volume of a muted stream: only the saved value is adjusted too, leaving the stream muted but updating the value that will be restored when it will be unmuted. Also changed implementation of stream volume control by setRingerModeInt() to use stream mute feature instead of direct volume control. Change-Id: Id85d76450b36d61a0fe8195eb4bffe63ffbd427c
* Unhide the MediaButton receiver API in android.media.AudioManagerJean-Michel Trivi2010-03-221-27/+0
| | | | Change-Id: Ic9222b0bf6e2ff481c6aa5f16ac0259fa7a52355
* Update MediaRecorder.java documentation to mention it does not work on the ↵James Dong2010-03-221-0/+1
| | | | | | | | emulator yet. bug - 2532726 Change-Id: If6dbf0d89c4681a647419e1911213a4c22dc3dab
* Merge "Fix two AudioFocus issues: - if a focus owner abandons audio focus ↵Jean-Michel Trivi2010-03-191-15/+52
|\ | | | | | | during a call, the next focus owner in the stack was never notified - if a focus owner requests the focus while alread owning it, and the type of focus request changes, the previous focus owner was not notified that the type of focus loss had changed."
| * Fix two AudioFocus issues:Jean-Michel Trivi2010-03-191-15/+52
| | | | | | | | | | | | | | | | | | | | - if a focus owner abandons audio focus during a call, the next focus owner in the stack was never notified - if a focus owner requests the focus while alread owning it, and the type of focus request changes, the previous focus owner was not notified that the type of focus loss had changed. Change-Id: Iee6c6e17bcdd3c225a4b600f40ba434294870f17
* | Unhide new constants used in AudioFocus API to denote a situationJean-Michel Trivi2010-03-191-9/+11
|/ | | | | | | where a new focus owner signals it allows other audio apps to keep playing by ducking their audio streams. Change-Id: I1109f44546f3cbcff8ad33ee21cfff50f4f12177
* Merge "We should pass null for the album artist if it was not set, instead ↵Marco Nelissen2010-03-191-6/+6
|\ | | | | | | of a copy of the artist, since the media provider needs to know whether the album artist was actually set."
| * We should pass null for the album artist if it was not set, instead of a copyMarco Nelissen2010-03-191-6/+6
| | | | | | | | | | | | | | of the artist, since the media provider needs to know whether the album artist was actually set. Change-Id: I29b885c8293609299a55babadf9ca2a30e20e5bd
* | Fix SDK build Remove links to hidden constant in javadoc.Jean-Michel Trivi2010-03-181-3/+0
| | | | | | | | Change-Id: I21495f0ef64b3dc154ce0e0ca2d44686afd752e9
* | Attempt to fix the SDK build.Eric Laurent2010-03-181-1/+1
| | | | | | | | Change-Id: I024df1b513da117057a21c27e6c0cd134cdd8023
* | Support focus requests where ducking of the loser of audio focusJean-Michel Trivi2010-03-182-30/+43
| | | | | | | | | | | | is acceptable for the new audio focus owner. Change-Id: I965483f12eeb717115a8f6992d8f1ab7fafa4e45
* | Unhide AudioManager API to control bluetooth SCO audio connection.Eric Laurent2010-03-181-17/+1
| | | | | | | | | | | | | | Needed for issue 2416481 in order to allow unbundled applications to play and record audio to/from a bluetooth SCO headset while not in call. Change-Id: Ie1f96ded991e65da538c2c4a58bfa1e548d58a01
* | Merge "Include "album artist" when inserting items in the media provider."Marco Nelissen2010-03-181-1/+5
|\ \ | |/
| * Include "album artist" when inserting items in the media provider.Marco Nelissen2010-03-181-1/+5
| | | | | | | | Change-Id: Ic34e2d54557409866dc35c29ee397afdfe874762
* | Issue 2416481: Support Voice Dialer over BT SCO.Eric Laurent2010-03-183-1/+326
|/ | | | | | | | | Added public methods to AudioManager API so that unbundled applications can use bluetooth SCO audio when the phone is not incall. Without this change, the only way to activate and use bluetooth SCO is via the BluetoothHeadset API which is not public yet. Change-Id: Ia1680f219ea1d0943092d475d5be7d6638983ebb
* Fix bug where the ID stored for an OnAudioFocusChangeListener is anJean-Michel Trivi2010-03-171-4/+1
| | | | | | | empty string when audio focus is requested or abandonned with a null listener. Change-Id: I7709b75c6092aefc002806343298bc679d42d6c6
* Merge "Implementation of the policing of transport control key press events ↵Jean-Michel Trivi2010-03-173-21/+223
|\ | | | | | | among multiple applications competing for the remote control focus. AudioManager defines a new API for applications to use in order to register their BroadcastReceiver for the media button as the one to receive the corresponding intent, but all applications at the same time (in an ordered broadcast). AudioService handles a stack of remote control focus owners. It traps ACTION_MEDIA_BUTTON intents and sends a new intent to the remote control focus owner."
| * Implementation of the policing of transport control key pressJean-Michel Trivi2010-03-173-21/+223
| | | | | | | | | | | | | | | | | | | | | | | | | | | | events among multiple applications competing for the remote control focus. AudioManager defines a new API for applications to use in order to register their BroadcastReceiver for the media button as the one to receive the corresponding intent, but all applications at the same time (in an ordered broadcast). AudioService handles a stack of remote control focus owners. It traps ACTION_MEDIA_BUTTON intents and sends a new intent to the remote control focus owner. Change-Id: I3c109221ecfb160cbb1ec0e40a71b241aad73812
* | Fix #2509370 ThumbnailUtils.createThumbnailFromEXIF crashes media provider.Ray Chen2010-03-151-1/+1
| | | | | | | | Change-Id: Ia2cd00fb0fbdb32e9fb89b4d33ad3c1410eb40d3
* | Add GPSProcessingMethod tag to ExifInterface.Ray Chen2010-03-111-0/+2
|/ | | | Change-Id: I7575ae3195dc510e7020368794a66bb064839104
* Avoid overriding DATE_TAKEN by unreliable file time. MediaProvider will ↵Ray Chen2010-03-091-4/+0
| | | | | | calculate it if needed. Change-Id: I05cb8628f2333c26de5c05ee1c7676b8f79a5e9a
* Fix bug 2329540Jean-Michel Trivi2010-03-091-29/+18
| | | | | | | | | | | | | | Part 1 of the fix: when the user doesn't elect to use the car dock for music and media, the APM was not aware of the device being docked. This is fixed by dissociating the notification for the APM of the docking to the dock from the sink state change of the A2DP device. Also missing was forcing the volumes to be reevaluated whenever the device is docked or undocked, as volumes for docks may differ, even when the same output device is being used. Change-Id: If5314e27821a71adbd6df6fdf887c45208241d96
* Unhide API additions to AudioManager for AudioFocus support.Jean-Michel Trivi2010-03-091-22/+0
| | | | Change-Id: Ifc7d764703632eb91db11587675ae70ec14510e8
* Unhide CamcorderProfile and CameraProfile Java APIJames Dong2010-03-042-2/+0
| | | | bug - 2375978
* Remove native options.Ray Chen2010-03-051-32/+7
|
* Clean up MediaRecorder for public Java SDKJames Dong2010-03-031-46/+63
| | | | | | - update comments and fix a check in setAudioChannels() bug - 2362412
* Fix issue 2456968: Alarm rings in "silent mode and when Alarm in silent mode ↵Eric Laurent2010-03-031-11/+25
| | | | | | | | | | | is turned off". The problem is that even if silent mode is active, changing the alarm volume will change current alarm stream volume. This is true for other stream types affected by ringer mode (ring, notification...) but the UI design is such that it is not possible to change these volumes while in silent mode. The fix consists in modifying AudioService.setStreamVolumeInt() so that when a stream is affected by ringer mode and we are in silent mode, only the saved volume value is modified, current value remaining to unchanged (0).
* First implementation of the audio focus management as an extensionJean-Michel Trivi2010-03-024-1/+501
| | | | of AudioManager and AudioService.
* New vibrate/silent mode behavior.Daniel Sandler2010-02-261-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In earlier versions of Android, "vibrate mode" (in which only alarms and media produce sound, but notifications may operate the vibe motor) was only accessible by adjusting the ringer volume (via the device's volume rocker) down until the "vibrate" icon appeared (between the lowest ring volume and silent mode). Many users prefer that "silent mode" always allow vibration. Others prefer Android's historical behavior, in which silent mode stops the vibes as well. To accommodate these two distinct usage patterns, we now allow the user to decide whether vibration is allowed in "silent mode", a user interface abstraction that now spans both AudioManager.RINGER_MODE_VIBRATE and AudioManager.RINGER_MODE_SILENT. To minimize API impact (and therefore maximize backward compatibility), RINGER_MODE_VIBRATE and RINGER_MODE_SILENT remain unchanged. What has changed is what happens when the user activates silent mode, either via Settings, GlobalActions (longpress on power), volume rocker, or the keyguard tab. In essence, there is now only one "silent" position in these controls, and whether RINGER_MODE_VIBRATE or RINGER_MODE_SILENT is actually set on the AudioService is determined by a new one-off setting (System.VIBRATE_IN_SILENT). This new setting isn't meant to be a long-term API, however: in the future we hope to replace and extend this design with a much more sophisticated set of systemwide feedback profiles. ETA TBD. Related changes: * I09ad7d69 (GlobalActions and keyguard) * I22ba7bcf (Settings app) Bug: 2457183 Change-Id: I14cf91b0910261ffdfd1bf302423f41ec747d057
* Merge "Make AsyncPlayer.startSound catch all exceptions instead of only a ↵Marco Nelissen2010-02-261-3/+1
|\ | | | | | | few. Two reasons for this: - it's used in the system process - it's run in a separate thread, so the user of AsyncPlayer cannot catch these exceptions"
| * Make AsyncPlayer.startSound catch all exceptions instead of only a few.Marco Nelissen2010-02-261-3/+1
| | | | | | | | | | | | Two reasons for this: - it's used in the system process - it's run in a separate thread, so the user of AsyncPlayer cannot catch these exceptions
* | Merge "Image encoding settings java API through xml configuration file"James Dong2010-02-252-1/+64
|\ \ | |/ |/|
| * Image encoding settings java API through xml configuration fileJames Dong2010-02-242-1/+64
| | | | | | | | | | | | - I decided to completely remove jpeg decoding related stuff from this change I think that setting is better off if it is specified by the system properties. We don't have to include MediaProfiles.h header in skia files
* | Merge "Replace system property retrieval calls with DecoderCapabilities Java ↵James Dong2010-02-231-3/+27
|\ \ | |/ |/| | | API calls."
| * Replace system property retrieval calls with DecoderCapabilities Java API calls.James Dong2010-02-171-3/+27
| |
* | The MediaScanner is way too obsessed with restricting the files to be scanned.Andreas Huber2010-02-191-19/+1
| | | | | | | | related-to-bug: 2326148
* | Unhide new SoundPool API's. Bug 2415373.Dave Sparks2010-02-171-8/+0
| |
* | Merge "Fix issue 2440226: Car dock volume synchronization."Jaikumar Ganesh2010-02-172-9/+20
|\ \
| * | Fix issue 2440226: Car dock volume synchronization.Eric Laurent2010-02-162-9/+20
| | | | | | | | | | | | | | | | | | AudioService now sends intent AudioManager.VOLUME_CHANGED_ACTION when the volume is changed on any stream type (previously the intent was sent only for STREAM_BLUETOOTH_SCO stream). A new extra for previous volume value is added to the intent.
* | | Merge "Add SoundPool API to pause and resume all active streams. Bug 2426531."Dave Sparks2010-02-161-0/+22
|\ \ \ | |_|/ |/| |
| * | Add SoundPool API to pause and resume all active streams. Bug 2426531.Dave Sparks2010-02-161-0/+22
| |/
* | Merge "Support decoder queries from media profiles xml configuration file"James Dong2010-02-161-0/+84
|\ \ | |/ |/|
| * Support decoder queries from media profiles xml configuration fileJames Dong2010-02-121-0/+84
| |
* | New API on java's MediaPlayer to suspend/resume a session.Andreas Huber2010-02-121-0/+47
| | | | | | | | related-to-bug: 2231576
* | Fix issue 2418668: AudioManager isWiredHeadsetOn() always returns false for ↵Eric Laurent2010-02-121-0/+2
| | | | | | | | headset without mic.
* | Add support for "album artist" tag.Marco Nelissen2010-02-111-2/+4
| |
* | Revise ThumbnailUtils API.Ray Chen2010-02-111-60/+45
|/
* Don't create a genre in the database for genre code 255 (unknown)Marco Nelissen2010-02-101-6/+14
|
* New external storage APIs.Dianne Hackborn2010-02-091-5/+81
| | | | | | | | | | | This implements the spec for external storage organization, and properly reflects how the media scanner organizes the files it finds. Also includes package manager support for removing app private files from external storage when the application is uninstalled. For the new APIs and paths, the main place to look is Environment and Context.
* Merge "Camcorder profile Java API support - Use Enum for Quality instead of ↵James Dong2010-02-041-0/+160
|\ | | | | | | int - Use static values() method from Enum, rather than if-else"