9902 Commits

Author SHA1 Message Date
Andy Hung
a56eadb273 Merge "AudioRecord.Builder should throw exception on failure." into mnc-dev 2015-06-17 19:18:17 +00:00
Chien-Yu Chen
0782aab077 ImageReader: Fix format workarounds for legacy devices
Legacy shim overrides HAL_PIXEL_FORMAT_BLOB to
HAL_PIXEL_FORMAT_RGBA_8888. Make ImageReader aware of the
workaround when returning the format.

Remove the workaround in legacy shim that overrides YUV_420_888
to YV12 because allocating YUV_420_888 buffers with SW access
is supported on Flo.

Bug: 21707937
Change-Id: I84a8610c82ae986a0064873f611e4f257baf1774
2015-06-17 11:03:04 -07:00
Jeff Tinker
314b7f3af3 Improve robustness of MediaDrm after mediaserver crash
If DEAD_OBJECT is returned from binder calls due to
mediaserver crash, throw new MediaDrmResetException.
This allows the app to detect the condition and handle
it properly.

bug: 20614102
Change-Id: Id08b08fb612672fd94383f0470f5fa3f267b944f
2015-06-17 09:32:58 -07:00
Andy Hung
2d2d89363f AudioTrack.Builder should throw exception on failure.
Should throw UnsupportedOperationException instead of returning
an uninitialized track object.

Bug: 21890643
Change-Id: I34df73b316fcb490be05eb3beff06b795645fd4c
2015-06-17 08:43:43 -07:00
Andy Hung
e244922aba AudioRecord.Builder should throw exception on failure.
Should throw UnsupportedOperationException instead of returning
an uninitialized record object.

Bug: 21890643
Change-Id: I9c05a4cff9f5e1d5513c76acace09699a567008f
2015-06-17 08:40:53 -07:00
Paul McLean
8ff232c7be Merge "Implement channel index masks in AudioDeviceInfo." into mnc-dev 2015-06-16 21:41:23 +00:00
Paul McLean
f29e5f34b3 Implement channel index masks in AudioDeviceInfo.
Bug: 21146646
Change-Id: I210f6bb4a4ec0ac0820d1823cffe417141725327
2015-06-16 14:40:28 -07:00
Daichi Hirono
660727c79e Fix API doc of MtpDevice#getObjectHandles.
BUG=21782579

Change-Id: Iadec8923c74f62b7aed44e876fb469b41c7dc59b
2015-06-15 03:34:28 +00:00
Paul McLean
7d4412255b Merge "Fixing no first "device added" notification." into mnc-dev 2015-06-12 22:07:49 +00:00
Paul McLean
cbeb8a2a3e Fixing no first "device added" notification.
bug: 21674851

Change-Id: I3b2ed1cf00342471a5c70f2aecc832480d7e06fd
2015-06-12 15:00:16 -07:00
Mike Lockwood
d5ca05c3dd Merge "MidiDeviceServer: Fix race condition in setting device server's mDeviceInfo" into mnc-dev 2015-06-12 21:51:39 +00:00
Nick Chalko
7298749d48 Merge "Improve javadoc for onTune and notifyVideoAvailable." into mnc-dev 2015-06-12 21:31:30 +00:00
Nick Chalko
1bccd280f5 Improve javadoc for onTune and notifyVideoAvailable.
Bug: 21276782
Change-Id: If445379e83dbde8daaa4be7819b9399bfe1d96a0
2015-06-12 10:52:38 -07:00
Mike Lockwood
acd4321872 MidiDeviceServer: Fix race condition in setting device server's mDeviceInfo
This made it unsafe to open ports on a device from the MidiManager onDeviceOpened callback

Bug: 21760692
Change-Id: I536acdf574a3ccecdb66a8fde87089538e8bb1ef
2015-06-11 13:28:36 -07:00
Eino-Ville Talvala
cd17a84a86 Merge "Add more specific consumer names for common buffer queue endpoints." into mnc-dev 2015-06-11 19:36:17 +00:00
Hyungtae Tim Kim
333578bcd4 Add bucket that unknown state playback falls into
MediaPlayerStressTest some media files are missing on the results as they
were reported neither completed nor erroneous.
This case will fall into a new category named unknown playback state so that
we could track them in media dashboard.

Bug: 21755950
Change-Id: Iefcc3e375c63d952a7d9edb418208209d87b9e08
2015-06-11 08:33:04 -07:00
Lajos Molnar
1c436bd911 media: allow feature-can-swap-width-height to be optional.
We have enabled this only optionally in media_codecs.xml

Bug: 21568607
Change-Id: I11a12883afc051ba8c479255acc59388fb9a6722
2015-06-10 20:54:53 -07:00
Dongwon Kang
9d543ebfea Merge "TIF: Support localized input label for hardware input" into mnc-dev 2015-06-11 03:44:06 +00:00
Jeff Brown
f880553309 Merge "Fix MediaBrowser.getItem() API inconsistencies." into mnc-dev 2015-06-11 03:40:35 +00:00
Jeff Brown
b7eff8828f Fix MediaBrowser.getItem() API inconsistencies.
Bug: 21668207
Change-Id: Idc8d3a079f66cc7bc4fa1016f84cddb26fe7f0f8
2015-06-10 20:06:24 -07:00
Dan Albert
fb48b01424 Merge "Fix format string mismatch. Clang build fix." into mnc-dev 2015-06-11 00:53:27 +00:00
Dongwon Kang
7a4d0f200e TIF: Support localized input label for hardware input
Bug: 20803624
Change-Id: Iade3b2a11a6d946e2d1b1e5c12f2cad60abdcf6d
2015-06-10 17:49:38 -07:00
Dan Albert
1102e21b5d Fix format string mismatch. Clang build fix.
The gralloc usage flags are an enum, which is backed by an
implementation defined type. Both gcc and clang are making this a long
long. All the values are hard coded to fit within 8 hex characters
though, so just make the cast.

Change-Id: I4a9778a24c2cbf7fb663371d208e30c4921e170d
2015-06-10 23:05:53 +00:00
Jean-Michel Trivi
5c768f4c85 SoundPool monitors AppOps for OP_PLAY_AUDIO
Fix performance regression in SoundPool by not checking SoundPool
  can play audio everytime it's about to play.
Instead check for permission in constructor and register a listener
  for changes on OP_PLAY_AUDIO.

Bug 20018833

Change-Id: I4e7a633d23b98653a149681d18a387cd560efe4d
2015-06-10 14:46:26 -07:00
Lajos Molnar
53858ced4c Merge "media: hook up OnFrameRenderedListener events to framework events" into mnc-dev 2015-06-10 01:04:50 +00:00
Phil Burk
bcdf0dc199 Merge "MIDI docs: use getPorts()" into mnc-dev 2015-06-09 22:16:44 +00:00
Eino-Ville Talvala
ef9db7d81b Add more specific consumer names for common buffer queue endpoints.
Change-Id: I744bdcba6e60e5efd8865f725b09a9f791d76160
2015-06-09 14:15:15 -07:00
Eino-Ville Talvala
7b7e1f97aa Merge "ExifInterface: Add a few tag fields." into mnc-dev 2015-06-09 18:29:08 +00:00
Paul McLean
dd0db9f63d Merge "Adding default handler to (re)Routing callbacks where no handler is provided." into mnc-dev 2015-06-09 17:20:50 +00:00
Eric Laurent
ba497f0c16 Merge "Use only strong references to AudioEffect" into mnc-dev 2015-06-09 17:19:10 +00:00
Paul McLean
5be68ede19 Adding default handler to (re)Routing callbacks where no handler is provided.
Bug: 21669441

Change-Id: I6481652c8703bca6a7e8356614177fd071e71c0e
2015-06-09 08:54:45 -07:00
Jinsuk Kim
5795a25cad Merge "TIF: Generate hardware input id in language-neutral fashion" into mnc-dev 2015-06-09 04:49:08 +00:00
Jinsuk Kim
4b20865817 TIF: Generate hardware input id in language-neutral fashion
For certain RtoL languages, digit used as a part of input id
(like HW0) is also localized, hence language change results in
the duplicated inputs for an identical hardware. This CL
changes the way the id is built to language-neutral fashion,
and keeps the digit used in the id in Arabic.

Bug: 21523750
Change-Id: I8f95e0209eeee16ceb543e574ef9ed572e4d031f
2015-06-09 13:09:16 +09:00
Eric Laurent
76f8133188 Use only strong references to AudioEffect
Modify AudioEffect and Visualizer JNI to use strong references to
native AudioEffect object.

Bug: 21629892.

Change-Id: I4c2dea0b2e16d807d6dc5d6b09e02e4652d48873
2015-06-08 18:50:05 -07:00
Eino-Ville Talvala
ab60e7e6e0 ExifInterface: Add a few tag fields.
Since these are being CTS tested, they should be public.

Bug: 21568414
Change-Id: I3f9f6e5da240b2ac0b2b88b5d25ec3c8c4704b8d
2015-06-08 15:28:09 -07:00
Mike Lockwood
383ce580b1 Merge "MidiManager: proxy all requests to open devices through MidiService" into mnc-dev 2015-06-08 19:37:36 +00:00
Lajos Molnar
d8578577b0 media: hook up OnFrameRenderedListener events to framework events
Bug: 20503131
Change-Id: Ife6d4862d14daf5b9659307af57417bd3532e8fe
2015-06-08 11:06:53 -07:00
Jae Seo
093d994965 TIF: Replace explicit types with <>
Also removed unnecessary boxing/unboxing

Change-Id: I97ef6b7f369cac97a133180773be96463f2a813d
2015-06-05 16:24:57 -07:00
Jae Seo
38b3257b7c TIF: Convert fields to local variables
Change-Id: Ide6c5ad36229410f30f7929c6dd511945d48aa6f
2015-06-05 14:53:21 -07:00
Jae Seo
5f18527037 Merge "TIF: Add more explanation for notifyChannelRetuned" into mnc-dev 2015-06-05 18:05:33 +00:00
Jae Seo
36a8fd83b3 TIF: Remove unused imports
Change-Id: I1419a8e44d82fa009ccd6170d9048c3e24f51a2b
2015-06-05 10:51:52 -07:00
Jae Seo
4640d3d81a TIF: Add more explanation for notifyChannelRetuned
Bug: 21277081
Change-Id: Ia4de27bc0ecdf49bcad83cfcd396e8d55dc8343a
2015-06-05 10:34:20 -07:00
Mike Lockwood
e0a6ca64fa MidiManager: proxy all requests to open devices through MidiService
Previously when a MidiManager client opened a virtual or Bluetooth device,
the client bound directly to the virtual device's MidiDeviceService
or BluetoothMidiDevice's IMidiDeviceServer for the given BluetoothDevice.
Only USB devices were opened in MidiService.

Now opening any type of MIDI device is done via IMidiManager.openDevice() or
IMidiManager.openBluetoothDevice().  MidiService tracks all connnections between
clients and devices.

Services that implement virtual devices must now require android.permission.BIND_MIDI_DEVICE_SERVICE
so only MidiService can bind to these services.

Bug: 21044677

Change-Id: I7172f7b1e0cbfe4a2a87dff376c32dc9b41aa563
2015-06-04 19:16:23 -07:00
Dongwon Kang
9e7ac352eb Merge "TIF: Add sanitization code for the current position" into mnc-dev 2015-06-05 00:27:02 +00:00
Dongwon Kang
bb3e2674b5 TIF: Add sanitization code for the current position
+ More documentation on the currnet position

Bug: 21573422
Change-Id: I51d184d03a61270d3ea36b36f880f1f052a99cd1
2015-06-04 17:25:59 -07:00
Eric Laurent
01b9c4cdb3 Merge "Ringtone: keep a reference until playback completion." into mnc-dev 2015-06-04 19:13:47 +00:00
Alan Viverette
5299968517 Merge "Prevent poorly-extended ParcelableSpans from writing to parcels" into mnc-dev 2015-06-04 16:55:57 +00:00
Eric Laurent
203b411dee Ringtone: keep a reference until playback completion.
Keep a reference on active Ringtones to avoid garbage collection
before playback is complete.

Bug: 11366759.
Change-Id: Icb04da427c20e0b4657e9e8b13b3ecab98e5a333
2015-06-04 09:29:45 -07:00
Zhijun He
b1300e39c7 Camera2: add high speed video APIs
Interface only.

Bug: 21442271
Change-Id: If81caa0f2dc9f7802af564abcd9541aff3e30901
2015-06-03 17:50:22 -07:00
Phil Burk
7d2065ed4f MIDI docs: use getPorts()
Also use boolean to control synth start and stop.
Add mention of feature declaration in Manifest.
Add virtual MIDI devices to bullet list.

Change-Id: I7b36e3ce69caf9d1d15d23f1a0836d525022ef9e
Signed-off-by: Phil Burk <philburk@google.com>
2015-06-03 14:36:34 -07:00