9789 Commits

Author SHA1 Message Date
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
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
Jeff Tinker
4575acf1e7 Merge "Fix bug in MediaCrypto.setMediaDrmSession" into mnc-dev 2015-06-03 20:03:29 +00:00
Robert Shih
0c9fccf1ed Merge "media Utils: remove parse integer logspam" into mnc-dev 2015-06-03 19:07:28 +00:00
Robert Shih
dcb5ab97f6 media Utils: remove parse integer logspam
Bug: 21569707
Change-Id: I808ce760f55cf6aad8376bc7ca3b3c5a88cb6b01
2015-06-03 10:51:28 -07:00
Arunesh Mishra
310fe5af67 Merge "Use config.xml parameters instead of System properties." into mnc-dev 2015-06-03 17:13:55 +00:00
Alan Viverette
a70d4a90a0 Prevent poorly-extended ParcelableSpans from writing to parcels
If a developer extends an existing ParcelableSpan and overwrites
writeToParcel, TextUtils will crash when attempting to unparcel
since the span type ID is not accurate. This CL makes a separate
framework-private method for writeToParcel to ensure that even if
a developer extends a ParcelableSpan class, they won't modify the
parceling or unparceling code that's tied to the span type ID.

Bug: 21274544
Change-Id: If4c3506a55999df7a3b6d87cb8d550235d7a02c6
2015-06-02 16:11:00 -07:00
Arunesh Mishra
6e4fb34e27 Use config.xml parameters instead of System properties.
For 'near-ultrasound' support (mic/speaker). Refer b/21072209
for details.

Bug: 21072209
Change-Id: Id7131cd38288d74af8102487b2c6b03048b4ae3b
2015-06-02 15:13:17 -07:00
Doris Liu
942bc58518 Fix calls to Rect.intersect(Rect)
This CL checks for the return value for Rect.intersect(Rect) for whether
there is actually an intersection before taking the calling rect as the
intersection. In the case of no intersection (Rect.intersect(Rect) returns
false), the calling rect would not have been changed, so here in this CL
it will be manually set empty.

Bug: 7368679
Change-Id: I7494c1a1649eca09e34412f0a59b795e8b3a82aa
2015-06-02 15:01:48 -07:00
Robert Shih
eb8a51f359 Merge "MediaPlayer: trigger onError instead of exception on stale native notifications" into mnc-dev 2015-06-01 21:56:35 +00:00
Jeff Tinker
025af8b0de Fix bug in MediaCrypto.setMediaDrmSession
MediaCryptoException was being thrown unexpectedly

bug: 21565802
Change-Id: I44768cac1e85a01c8d775b8432d11711ae978b0d
2015-06-01 14:17:06 -07:00
Robert Shih
07830aa6ba MediaPlayer: trigger onError instead of exception on stale native notifications
This change also reverted commit 2c838fbd87ad5685c0008b419ea02421159b9b70,
"MediaPlayer: add mPreparing to weed out unwanted prepared messages".

Bug: 21266735
Change-Id: I392342519420bee2fde1fe1915c51d24101ca27d
2015-06-01 13:50:00 -07:00
Marco Nelissen
2e2ac33e88 Merge "Update ExifInterface.getDateTime to support subseconds" into mnc-dev 2015-05-29 22:26:58 +00:00
Marco Nelissen
b2c890044e Update ExifInterface.getDateTime to support subseconds
Also document that it returns local time.

Bug: 20638367
Change-Id: I6a1c35925e0555bcdcb079be0ca5b19a279a05a6
2015-05-29 14:49:03 -07:00