3770 Commits

Author SHA1 Message Date
Ronghua Wu
69fec1aafc Merge "media: add CodecCapabilities.getMaxSupportedInstances." 2015-04-14 01:10:30 +00:00
Andy Hung
4bd513e6ed Default to minimum buffer size for AudioTrack.Builder
Expose AudioTrack.getNativeFrameCount as public to allow apps to
retrive the size of the buffer created.

Change-Id: Ifc07196d65d6a68657fd879bcc1819c2077de202
2015-04-13 16:25:51 -07:00
Andy Hung
ec9f15a9e4 Merge "Increase AudioRecord sample rate limit to 96kHz" 2015-04-13 21:18:07 +00:00
Andy Hung
5076ea90af Increase AudioRecord sample rate limit to 96kHz
Change-Id: I3e296a30b828cbea9fd2eab2b8db81833c20d7cf
2015-04-13 14:14:11 -07:00
Glenn Kasten
bed238fcea Merge "Android MIDI User Guide draft of 4/10/2015" 2015-04-13 18:59:15 +00:00
Phil Burk
1b83e3f75e Android MIDI User Guide draft of 4/10/2015
Change-Id: I80db2c29af581ff3d9d6bd87f5f79c1fde5c3055
Signed-off-by: Glenn Kasten <gkasten@google.com>
2015-04-13 11:54:57 -07:00
Ronghua Wu
ee2997577d media: add CodecCapabilities.getMaxSupportedInstances.
Bug: 19620911
Change-Id: I11a55121490eba5027498a27c7719133acd1a39a
2015-04-13 11:26:07 -07:00
Andy Hung
00b9bcda8a Merge "Add channel index mask to AudioTrack and AudioFormat" 2015-04-11 06:13:14 +00:00
Andy Hung
4ef1305aa8 Merge "Add floating point AudioRecord read" 2015-04-11 05:44:23 +00:00
Andy Hung
a9470c19a9 Add channel index mask to AudioTrack and AudioFormat
Change-Id: Ia5faa56360edcbbdeae8838ec0f82386f4e5e640
2015-04-10 17:41:00 -07:00
Wei Jia
e833b534c9 Merge "MediaSync: add getTimestamp in MediaSync." 2015-04-10 22:44:09 +00:00
Wei Jia
217ec0adfc MediaSync: add getTimestamp in MediaSync.
Bug: 19666434
Change-Id: Ieae70b13864e3eb5abae3577f209f4b926418731
2015-04-10 14:44:06 -07:00
Jeff Tinker
2c611f146f Merge "Add a method to associate MediaDrm session with MediaCrypto" 2015-04-10 21:03:19 +00:00
Ronghua Wu
76ef9b07f7 Merge "media: add MediaFormat.KEY_OPERATING_RATE." 2015-04-10 20:10:04 +00:00
Mike Lockwood
d4ca39e75c Merge changes I075a54dc,I0a9bc7c3
* changes:
  Add user visible name for USB peripheral MIDI device
  Add MidiDeviceInfo.getPortList()
2015-04-10 16:54:02 +00:00
Mike Lockwood
9189f5f025 Add MidiDeviceInfo.getPortList()
This replaces MidiDeviceInfo.getInputPortInfo() and getOutputPortInfo()

Change-Id: I0a9bc7c34a172a072e86718d465967c6c618fb3b
2015-04-10 08:49:47 -07:00
Jeff Tinker
6f6ef118a7 Add a method to associate MediaDrm session with MediaCrypto
Previously, to associate a MediaDrm session with MediaCrypto,
the MediaDrm sessionId was passed as initData to the MediaCrypto
constructor.  This is not ideal for two reasons: it's pretty
obscure and you can't change the association without tearing
down the MediaCodec/MediaCrypto and starting all over.  Use
cases like key rotation require being able to update the
MediaDrm session post-construction.  This CL addresses both of
these issues.

bug: 19570317
Change-Id: Ie3d3eda16651b598cdd41f2180074a43cb6c0884
2015-04-10 04:15:15 -07:00
Chong Zhang
0bb34ca325 Merge "MediaMetadataRetriever: add key for capture fps" 2015-04-10 02:29:38 +00:00
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
Chong Zhang
8f73a1be7c MediaMetadataRetriever: add key for capture fps
bug: 19460202
Change-Id: I3b7ebe298d78bbd292cf6202c43da674e43db854
2015-04-07 17:32:16 -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
3392ce4a04 media: add MediaFormat.KEY_OPERATING_RATE.
Bug: 19620911
Change-Id: I5c742adaac2175fbbc06821ba0a516c72cc4f3f7
2015-04-07 13:38:31 -07:00
Andy Hung
58b0f3f332 Add floating point AudioRecord read
Change-Id: Ibbdbfdefb84b515c231723fb621662bc4920ff86
2015-04-07 12:29:27 -07: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