summaryrefslogtreecommitdiffstats
path: root/media
Commit message (Collapse)AuthorAgeFilesLines
* MediaPlayer: remove obsolete function setPlaybackRate from comments.Wei Jia2015-10-131-5/+0
| | | | | | Bug: 24260668 Change-Id: I20733e52dbd2dab5eb10b4607a1c1aadb93a1332 (cherry picked from commit cd860ac06ca7a46e9638dd741ba731f066705eb5)
* Merge "BluetoothMidiDevice: change write type to support JamStik" into ↵Phil Burk2015-10-131-1/+9
|\ | | | | | | mnc-dr-dev
| * BluetoothMidiDevice: change write type to support JamStikPhil Burk2015-10-121-1/+9
| | | | | | | | | | | | | | | | | | | | Temporarily use a Request instead of a Command so that the JamStik will be properly enabled. Bug: 24207964 Change-Id: I3d11732958c46e6039405b5969d5af0db8032fb9 Signed-off-by: Phil Burk <philburk@google.com> (cherry picked from commit 95129f50c68c734c5ebdf32ff6b8b9c63cc1ada7)
* | BLE-MIDI: change binding for BluetoothMidiServicePhil Burk2015-10-134-10/+44
| | | | | | | | | | | | | | | | | | | | | | Add a remote call addBluetoothDevice() using AIDL. This was needed because onBind() is only called once. Bug: 23219556 Bug: 23760886 Change-Id: Id7554ca55d596352d11dbd6ae3e403138a29c864 Signed-off-by: Phil Burk <philburk@google.com> (cherry picked from commit 7cd06c0b9e087a555d2c5dd4cab5b7eac8497526)
* | media: ignore null InputStreamRonghua Wu2015-10-131-4/+8
| | | | | | | | | | Bug: 22854896 Change-Id: I20b9e28bbba6dec73538ee6937d337c2e2b971f4
* | Merge "MidiBluetoothService: add new device to HashMap" into mnc-dr-devEric Laurent2015-10-131-0/+1
|\ \ | |/ |/|
| * MidiBluetoothService: add new device to HashMapPhil Burk2015-10-121-0/+1
| | | | | | | | | | | | | | | | | | The HashMap is being used but devices never added to the map. Bug: 23429459 Change-Id: I1da5305a56f5bd48e1c5d9345e721ea8dd2eed4e Signed-off-by: Phil Burk <philburk@google.com> (cherry picked from commit e5f722e55c5708c2b48b8c9688c135e451225032)
* | Merge "MidiManager: fix double BTLE callback" into mnc-dr-devPhil Burk2015-10-121-1/+0
|\ \
| * | MidiManager: fix double BTLE callbackPhil Burk2015-10-121-1/+0
| |/ | | | | | | | | | | | | | | | | Stop openBluetoothDevice() from calling its callback twice. Bug: 23218338 Change-Id: I2e738b22a124c0336c46bef05680a82ee1f59e79 Signed-off-by: Phil Burk <philburk@google.com> (cherry picked from commit 0ca998d79fe95ded26ec4ff0a1e0a8dc4802684b)
* | MidiService: update listener with current status when registeredPhil Burk2015-10-121-0/+7
|/ | | | | | | | | | This will give an app an opportunity to learn whether an input port is busy before the user tries to connect and then fails. Bug: 22825043 Change-Id: Ifede60f166dfe66ea15453044fce06f4a8452b18 Signed-off-by: Phil Burk <philburk@google.com> (cherry picked from commit b2355940e3e697deeecd1b6511cd5094f9dc553a)
* MediaActionSound: Fix video stop soundChien-Yu Chen2015-10-071-1/+1
| | | | | Bug: 24745252 Change-Id: I803679d52750e09c7fc7b881523becf9259b558b
* AudioTrack: error reporting for getTimestamp()Eric Laurent2015-08-272-0/+51
| | | | | | | | | | | Add a new getTimestamp() method that returns an error code. Bug: 21886109. Bug: 22202349. Bug: 17548098. Change-Id: Ib072dd3442de79bab9aca77c3c33b0790b492154 (cherry picked from commit 4e1ccd370fc268f3207c5baee08ac8c943c3fdf9)
* MIDI docs: fix buffer allocationPhil Burk2015-08-191-4/+5
| | | | | | | | Also describe NoteOn more clearly. Bug: 23303608 Change-Id: I35f88022c854c2eb16ec606e58f28e06c52d18b7 Signed-off-by: Phil Burk <philburk@google.com>
* Camera2: Add camera type to getNumberOfCameras.Eino-Ville Talvala2015-08-141-1/+4
| | | | | | | | Do not list strange cameras in old API; ensure new API gets all cameras. Bug: 23194168 Change-Id: Ia1fdffac245525674c913fefb1ec06e9094fe8d3
* Camera: Fix framework bugs with DEPTH-only camera devicesEino-Ville Talvala2015-08-111-8/+20
| | | | | | | | Mostly due to no standard stream configurations being defined, and for the correct overrides for DEPTH_POINT_CLOUD format. Bug: 20537722 Change-Id: I8a18f5f68697a09dcc4d7555e51728193fe7f333
* Filtering Remote-Submix and Back-mic devices from AudioDeviceInfo API.Paul McLean2015-08-071-2/+8
| | | | | Bug: 22729461 Change-Id: Ie581c385af2be16e61fcab5993391ef42f82a7d8
* Revert "Add a (hidden) mapping for REMOTE_SUBMIX device types for CTS test."Paul Mclean2015-08-071-10/+4
| | | | | | This reverts commit 8b2562b14c37cd61f9c8e1b21e28cf57ff5b7523. Change-Id: I731d01fd652e928ba331fa28bb09cc8234753fbf
* Merge "MediaSync: fix API comments." into mnc-devWei Jia2015-08-061-2/+2
|\
| * MediaSync: fix API comments.Wei Jia2015-08-061-2/+2
| | | | | | | | | | | | Bug: 23008551 Change-Id: Ifbf1970c174b54a761d4672d954ee5633adbf3d6
* | Merge "Consider channel index masks when calculating channel counts." into ↵Paul Mclean2015-08-061-7/+20
|\ \ | | | | | | | | | mnc-dev
| * | Consider channel index masks when calculating channel counts.Paul McLean2015-08-051-7/+20
| | | | | | | | | | | | | | | Bug: 22874806 Change-Id: I04b74f5939bb81350d9e37b9629f8bbc242bffe7
* | | Merge "Add a (hidden) mapping for REMOTE_SUBMIX device types for CTS test." ↵Paul Mclean2015-08-061-4/+10
|\ \ \ | |_|/ |/| | | | | into mnc-dev
| * | Add a (hidden) mapping for REMOTE_SUBMIX device types for CTS test.Paul McLean2015-08-061-4/+10
| | | | | | | | | | | | | | | Bug: 22792346 Change-Id: I8a10eb68368ede4baa0d2fd0d71cfff2fced4b75
* | | Merge "Documenting behavior of returning a 0-length array for formats, ↵Paul Mclean2015-08-051-0/+10
|\ \ \ | | | | | | | | | | | | channels, rates queries for analog devices." into mnc-dev
| * | | Documenting behavior of returning a 0-length array for formats,Paul McLean2015-08-051-0/+10
| | |/ | |/| | | | | | | | | | | | | | | | channels, rates queries for analog devices. Bug: 22729461 Change-Id: I3cb1d586f6264e3627cbb0261a3b2c74ca51cf6b
* | | Merge "MidiManager: use ConcurrentHashMap" into mnc-devPhil Burk2015-08-051-3/+3
|\ \ \
| * | | MidiManager: use ConcurrentHashMapPhil Burk2015-08-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So that adding and removing device listeners is thread-safe. Bug: 22909752 Change-Id: I1369ab53c865b54e6e5eb8ea3e8d437fdd1d7197 Signed-off-by: Phil Burk <philburk@google.com>
* | | | Merge "AudioService: check for audio device connection success" into mnc-devJean-Michel Trivi2015-08-041-0/+4
|\ \ \ \ | |_|/ / |/| | |
| * | | AudioService: check for audio device connection successJean-Michel Trivi2015-08-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When connecting/disconnecting and audio device, AudioService was assuming that the call was always successful through AudioSystem.setDeviceConnectionState(). In the case of the connection of a wired headset (mic + headphones), this also causes A2DP to not be used for media playback. The connection can fail if the audio device being connected is not supported by the platform. But if this failure is not taken into account for DEVICE_OUT_WIRED_HEADSET or HEADPHONES, A2DP would still be avoided even when an A2DP device reconnects at boot. The fix consists in executing the connection logic only when the connection was deemed successful. Nothing is altered on the disconnection code path, or the direct connection of A2DP. The javadoc is updated in AudioSystem to indicate the return codes to take into account in setDeviceConnectionState(). Bug 22511833 Change-Id: I22f0d2c7d4ab4fb9ee1be2f248907f721596a16f
* | | | Merge "Expand ringtone titles to support OGG and FLAC." into mnc-devJeff Sharkey2015-08-031-1/+2
|\ \ \ \
| * | | | Expand ringtone titles to support OGG and FLAC.Jeff Sharkey2015-08-031-1/+2
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | These file types don't have "audio/" MIME type, so check for those MIME types explicitly. Bug: 22803550 Change-Id: Ia62f94ad4a19409d6a50462935de005bc572f93a
* | | | media: Clarify MediaCodec and CodecCapabilities documentationLajos Molnar2015-07-313-38/+144
|/ / / | | | | | | | | | | | | | | | Bug: 21932760 Bug: 22847191 Change-Id: Iacd24099a98c73fe4fb50226564690aa9b01c772
* | | Merge "Improve getTimestamp documentation" into mnc-devGlenn Kasten2015-07-311-3/+11
|\ \ \
| * | | Improve getTimestamp documentationGlenn Kasten2015-07-301-3/+11
| | | | | | | | | | | | | | | | | | | | Bug: 18977548 Change-Id: Ia3c2620b27a173ed1a15268ca43c28e6f4e31965
* | | | Merge "Change MNC codename to just M." into mnc-devDianne Hackborn2015-07-313-15/+9
|\ \ \ \ | |_|/ / |/| | |
| * | | Change MNC codename to just M.Dianne Hackborn2015-07-293-15/+9
| |/ / | | | | | | | | | Change-Id: I4281d200ff6560791c47cf9073ceea1cb509361e
* | | Merge "media: use blocks number to find closest size" into mnc-devRonghua Wu2015-07-311-5/+10
|\ \ \
| * | | media: use blocks number to find closest sizeRonghua Wu2015-07-301-5/+10
| |/ / | | | | | | | | | | | | Bug: 22504214 Change-Id: I056e19ac5fdbdff2c5d297b600210c07ae5ed4f4
* | | Merge "MIDI docs BTLE: how to open BTLE MIDI devices" into mnc-devPhil Burk2015-07-301-1/+50
|\ \ \
| * | | MIDI docs BTLE: how to open BTLE MIDI devicesPhil Burk2015-07-291-1/+50
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Adds crucial information including required permissions, MIDI UUID, and call to openBluetoothDevice(). Bug: 22606182 Change-Id: I47393bd0ecc2601906f6e50075d694c9cc17c993 Signed-off-by: Phil Burk <philburk@google.com>
* | | Merge "MIDI package doc: add hasSystemFeature() call" into mnc-devPhil Burk2015-07-301-0/+12
|\ \ \
| * | | MIDI package doc: add hasSystemFeature() callPhil Burk2015-07-291-0/+12
| |/ / | | | | | | | | | | | | | | | Bug: 22800792 Change-Id: Ib4b3e16e8167191505c31522bbccd521a9807528 Signed-off-by: Phil Burk <philburk@google.com>
* | | Merge "MidiDevice: document that opens can return nulls" into mnc-devPhil Burk2015-07-301-2/+10
|\ \ \ | |_|/ |/| |
| * | MidiDevice: document that opens can return nullsPhil Burk2015-07-291-2/+10
| |/ | | | | | | | | | | Bug: 22800792 Change-Id: I8d7ca1976e9a8abbabc011d3b2391ad7fe646f83 Signed-off-by: Phil Burk <philburk@google.com>
* | media: fix estimateFrameRatesFor to use correct ratioRonghua Wu2015-07-281-1/+1
|/ | | | | Bug: 22504214 Change-Id: I5a325ae495b76aadd3fcbb8932d865c2f6322b2a
* MediaPlayer subtitle controller: use debug log instead of warningJean-Michel Trivi2015-07-231-1/+1
| | | | | | | | Don't use warning log for debug message. Bug 22698299 Change-Id: Ibe3526fffffc9a7bdcda83c02fd745325db1238b
* RingtoneManager: query results depend on caller permissionJean-Michel Trivi2015-07-221-3/+16
| | | | | | | | | | When querying for ringtones, only look for ringtones on external storage when the caller has READ_EXTERNAL_STORAGE. Document this behavior in the javadoc of the affected methods. Bug 22545684 Change-Id: Iae9c9a4ccaf635da8af2ac289b6b4df1b16c5d11
* TIF: Enable hardware acceleration on overlayJae Seo2015-07-221-4/+8
| | | | | Bug: 18162541 Change-Id: If57fb26ae88ca6ef701f01cce0e5dfd9c6eb1f0e
* Merge "Use RingtonePlayer to get ringtone title" into mnc-devTodd Kennedy2015-07-212-14/+37
|\
| * Use RingtonePlayer to get ringtone titleTodd Kennedy2015-07-202-14/+37
| | | | | | | | | | | | | | | | | | | | Instead of requiring every application that calls Rintone.getTitle() to request android.permission.READ_EXTERNAL_STORAGE, pass the call through to the system UI process. We only do this for media store URIs. Bug: 22067670 Change-Id: I38cf3fb8d769ef6984c41a7b04afbbd4c57175ce