3749 Commits

Author SHA1 Message Date
Jeff Tinker
74797f843c Add expiration update and keys change events
In support of unprefixed EME

bug: 19771612
bug: 19771431
Change-Id: Iddef695cfa1a56363a4c173249597e415cb93f50
2015-04-09 22:44:36 +00:00
Ronghua Wu
564eb45b00 Merge "media: add new MediaCodec Callback onCodecReleased." 2015-04-09 22:29:14 +00:00
Ronghua Wu
4c302e8b14 media: add new MediaCodec Callback onCodecReleased.
Bug: 19620911
Change-Id: I2912c570678861daf1516757dda2160ffddcfa8d
2015-04-09 14:47:58 -07:00
Mike Lockwood
f0a41d1c59 Add support for Bluetooth MIDI devices
The Bluetooth MIDI devices are handled in the BluetoothMidiService APK.
Apps wishing to connect to Bluetooth MIDI devices call MidiManager.openBluetoothDevice()
which binds to BluetoothMidiService in a similar way as virtual devices are implemented.

Change-Id: Ie3fbca757928fd7873a009f9bf9e0ce0be487da6
2015-04-09 11:49:51 -07:00
Mike Lockwood
b6f50d357b Add support for flushing MIDI all scheduled MIDI events on a port
Change-Id: I39d7862540d4d4b9e2df1265f9dd253541adb4c2
2015-04-09 11:49:45 -07:00
Dongwon Kang
ff1f29e1b1 TIF: add a video unavailable constant for audio program case.
Bug: 20019339
Change-Id: Ife3452486c065e6c5809f0cd2bb87794c4279312
2015-04-08 15:21:06 -07:00
Zhijun He
b0c98dac3d Merge "ImageReader/Writer: implement opaque format operations" 2015-04-08 18:57:59 +00:00
Zhijun He
ce9d6f9c75 ImageReader/Writer: implement opaque format operations
Implement attach/detach for image reader and writer.

Bug: 19872821
Change-Id: Ib45a054c6be0b56b370fa8d709b47b0298ba5ea7
2015-04-08 10:39:29 -07:00
Jae Seo
465f0d6aa3 TIF: Redefine time shift status and change callback and position APIs
Also added/modified the documentation and addressed feedback from the
previous CL.

Change-Id: I046970cd0d2688886039d37a332bbe11bc5a4b0f
2015-04-07 17:34:39 -07:00
Jean-Michel Trivi
9e62d31fd1 Merge "AudioTrack: update javadoc for missing DEAD_OBJECT return code" 2015-04-07 21:42:15 +00:00
Ronghua Wu
76477a25fa Merge "media: add undocumented exceptions to MediaCodec api." 2015-04-07 19:15:19 +00:00
Jean-Michel Trivi
136e006248 AudioTrack: update javadoc for missing DEAD_OBJECT return code
Update the javadoc of the write() methods to indicate they can
  return AudioManager.DEAD_OBJECT.

Bug 19169728

Change-Id: I560c5efba37c2cc8b870573558e0cab634cb3f5d
2015-04-07 09:58:41 -07:00
Mike Lockwood
8bf7eecb9f Merge "Add MidiManager and MidiDevice classes to public API." 2015-04-06 15:53:36 +00:00
Jeff Sharkey
1b8ef7e316 Parcelable objects for Disk/Volume.
Will eventually be used by SystemUI and/or Settings.

Also fix SettingsProvider NPE.

Bug: 19993667, 19909433
Change-Id: Ie326849ac5f43ee35f728d9cc0e332b72292db70
2015-04-04 14:40:46 -07:00
Rom Lemarchand
5cd2e66925 Merge "Change audio include path from system/core to system/media/audio" 2015-04-04 01:13:49 +00:00
Jean-Michel Trivi
105295ed55 Merge "AudioTrack builder API." 2015-04-03 22:54:23 +00:00
Wei Jia
808ba3b5fe Merge "MediaSync: add MediaSync JAVA API" 2015-04-03 22:36:39 +00:00
Wei Jia
071a8b71d1 MediaSync: add MediaSync JAVA API
Bug: 19666434
Change-Id: Iab6941f6d81cb95a3b86be14b239287acb0d0eee
2015-04-03 15:34:34 -07:00
Jean-Michel Trivi
35ba5ab450 AudioTrack builder API.
Add a Builder class for AudioTrack.

Bug 19699343

Change-Id: I65cbcb32242c3d1857e5fca1a2f1dbe58c3b25ed
2015-04-03 15:32:21 -07:00
Mike Lockwood
9db9326ad4 Add MidiManager and MidiDevice classes to public API.
Somehow we missed these two when we made the rest of the MIDI Manager public

Change-Id: I08e94762e155aa6a7f98bd05b363aee5e4744061
2015-04-03 15:19:13 -07:00
Rom Lemarchand
b2b2923174 Change audio include path from system/core to system/media/audio
Change-Id: Iefd5933e7ba10fa2a8ca3489bcbee3bc8f1396ad
2015-04-03 15:11:28 -07:00
Phil Burk
51ce5c16d5 Merge "audio: add AudioFormat.ENCODING_DTS" 2015-04-03 18:55:05 +00:00
Dongwon Kang
f8515ea431 Merge "TIF: Add time shift APIs." 2015-04-03 01:37:43 +00:00
Dongwon Kang
6f0240cf63 TIF: Add time shift APIs.
Change-Id: I4faecd99d9e565c7228fc4b9da99e2adf1e67f19
2015-04-02 12:11:25 -07:00
Eric Laurent
2615afb1b0 audio port: support multiple clients
Add support for more than one audio port callback client per process.

Change-Id: I48051f27fa0b58ce4634b9db46ec8f2aa900398c
2015-04-01 17:31:49 -07:00
Phil Burk
e12189dee6 audio: add AudioFormat.ENCODING_DTS
Bug: 18292317
Change-Id: I457a6996947d6d24ef7f8f152ee586029036acf5
Signed-off-by: Phil Burk <philburk@google.com>
2015-03-31 14:38:30 -07:00
Jeff Sharkey
4887789e44 Progress towards dynamic storage support.
Storage devices are no longer hard-coded, and instead bubble up from
whatever Disk and VolumeBase that vold uncovered, turning into
sibling Java objects in MountService.  We now treat vold events as
the source-of-truth for state, and synchronize our state by asking
vold to "reset" whenever we reconnect.

We've now moved to a model where all storage devices are mounted in
the root mount namespace (user boundaries protected with GIDs), so
we no longer need app-to-vold path translation.  This also means that
zygote only needs to bind mount the user-specific /mnt/user/n/ path
onto /storage/self/ to make legacy paths like /sdcard work.  This
grealy simplifies a lot of system code.

Many parts of the platform depend on a primary storage device always
being present, so we hack together a stub StorageVolume when vold
doesn't have a volume ready yet.

StorageVolume isn't really a volume anymore; it's the user-specific
view onto a volume, so MountService now filters and builds them
based on the calling user.  StorageVolume is now immutable, making
it easier to reason about.

Environment now builds all of its paths dynamically based on active
volumes.  Adds utility methods to turn int types and flags into
user-readable strings for debugging purposes.

Remove UMS sharing support for now, since no current devices support
it; MTP is the recommended solution going forward because it offers
better multi-user support.

Simplify unmount logic, since vold will now gladly trigger EJECTING
broadcast and kill stubborn processes.

Bug: 19993667
Change-Id: I9842280e61974c91bae15d764e386969aedcd338
2015-03-30 19:46:23 -07:00
Wei Jia
4a4a7f4611 Merge "MediaPlayer: use local variable to check whether mTimeProvider is null." 2015-03-30 19:39:46 +00:00
Wei Jia
af2d2acc1a MediaPlayer: use local variable to check whether mTimeProvider is null.
Bug: 18753807
Change-Id: I05ef22edea5d06b1efb1a01bf540404eb75ac954
2015-03-30 11:16:29 -07:00
Mike Lockwood
d1b16fe2fb Move MIDI utilities for internal use to com.android.internal.midi package
Change-Id: I7393ae1d4bca61667fb6ee809a7aa22c5c48de56
2015-03-30 09:06:06 -07:00
John Spurlock
15427f80bb Merge "AudioService: Observe changes to output devices per-stream." 2015-03-27 21:13:41 +00:00
John Spurlock
0f09c3d0b6 Merge "Fix a few found doc problems." 2015-03-27 21:13:22 +00:00
John Spurlock
8a52c4491d AudioService: Observe changes to output devices per-stream.
- Keep track of calls to AudioSystem.getDevicesForStream.
 - Report device changes for the base streams to the binary event log.
 - Fire internal intent so volume UI can respond to changes.
 - Update devices when new routes are reported.

Bug: 19618959
Change-Id: I7bbd497b178d9829accc19e6c951a711aef8590c
2015-03-26 14:35:11 -04:00
Jean-Michel Trivi
11b264e225 Merge "AudioRecord builder" 2015-03-26 18:07:51 +00:00
Jean-Michel Trivi
7af0d66c22 AudioRecord builder
Add public and system APIs for building an AudioRecord instance.
The validity of the combination of parameters is verified at
  "build" time.

Bug 19699343

Change-Id: If959f0f35208fb81a902364aaeefc1ebef1a4d23
2015-03-25 20:03:49 -07:00
P.Y. Laligand
6fbcc2c01b Added MediaDescription#getMediaUri.
b/19622238

Change-Id: Ic5f14a2bfc8db986249b8d2522a476a9107748bb
2015-03-25 16:11:47 -07:00
P.Y. Laligand
c2045470a3 Added MediaController.TransportControls#playFromUri.
b/19622238

Change-Id: I75d6258ccafb2266d5f8bdf3a279b3a2e9ef2bbf
2015-03-25 14:51:50 -07:00
Youngsang Cho
94615e49e1 Merge "Make TvInputService skip to dispatch media keys to an overlay view" 2015-03-25 04:47:30 +00:00
Youngsang Cho
53aa5744c9 Make TvInputService skip to dispatch media keys to an overlay view
If media keys are dispatched to an overlay view, it is always consumed
because of fallback logic. Therefore, TvInputService skips to dispatch
media keys to an overlay view in order to return the keys back to
an application.

Bug: 18195249
Change-Id: I1cb4c9de5a73bd741ab64b1b85e9c986a1a92a90
2015-03-25 13:44:04 +09:00
John Spurlock
bc4cf00dc5 Fix a few found doc problems.
Change-Id: I98567f4a0fc96f501c00bf361688e2c55232f78d
2015-03-24 21:51:20 -04:00
Ronghua Wu
1efabd3f89 media: add undocumented exceptions to MediaCodec api.
Change-Id: Ibfbb136134573aa3ee696a7d853678f4444bbbfd
2015-03-24 15:50:04 -07:00
John Spurlock
b4f01b966b Remove the ability to disable audio service.
Running in a configuration without audio service is not fully tested.
Remove the configuration option for now. Also remove unused delegation
layer in SoundPool.

Bug: 19891112
Change-Id: I47be0e32d54b8ef8fa25cf47b85eacf8a4969500
2015-03-24 17:22:13 -04:00
Dongwon Kang
a7b212d9f1 Merge "TIF: Add COLUMN_INTERNAL_PROVIDER_FLAGX to TvContract.Programs" 2015-03-24 04:07:25 +00:00
Jeff Tinker
3910eb551c Merge "Note in docs that MediaDrm methods throw IllegalStateException" 2015-03-24 00:10:21 +00:00
Jeff Tinker
8873f848aa Merge "Report key request message type for unprefixed EME" 2015-03-24 00:05:34 +00:00
Jeff Tinker
4cdc2de0e4 Report key request message type for unprefixed EME
bug: 19771299
Change-Id: If76fa2988ca45632d0afff601c12f8f5f9908ed1
2015-03-23 16:23:12 -07:00
Dongwon Kang
731843e424 TIF: fix NPE in the case a hardware TV input is not ready to use.
Bug: 19805327
Change-Id: I0c96ab9274ea2404d75b02205ef40f56fb4552f6
2015-03-23 17:13:55 +09:00
Dongwon Kang
e638966972 TIF: Add COLUMN_INTERNAL_PROVIDER_FLAGX to TvContract.Programs
These flags are expected to be used for TV input's internal purpose.

Bug: 19190140
Change-Id: Ie45a582287a83abdbecb129f5c03cc166f617776
2015-03-23 15:33:49 +09:00
Zhijun He
f6a09e5106 ImageReader/Writer: Add ImageWriter and Opaque ImageReader
ImageWriter/Reader API change, including below changes
* Interface for Opaque ImageReader
* ImageWriter Interface and implementation
* Image class minor update to support ImageWriter opaque ImageReader

detach/attach interface are defined but yet to be implemented.

Change-Id: Ic7c0d2df73c80b1a81a7316d8c4556bf7703c309
2015-03-20 18:19:58 -07:00
Eric Laurent
f09d4bd388 Merge "fix return from finally" 2015-03-19 17:20:26 +00:00