4586 Commits

Author SHA1 Message Date
Daichi Hirono
300efaa0ea Merge "Fix argument type in MtpDatabase#getObjectPropertyValue." into nyc-dev 2016-03-01 08:36:28 +00:00
Daichi Hirono
486ad2e73c Fix argument type in MtpDatabase#getObjectPropertyValue.
In MTP code, we use jint for ID (e.g. object handle) and code (property
code). But getObjectPropertyValue takes jlong and it causes missing
property values in Java code. Previously we passed the long value to
Map<Integer, MtpPropertyGroup>#get(Integer) and the compiler somehow
accepted the code. However it actually takes Long at runtime, so the
properties are never found.

BUG=26437284
Change-Id: I79defd325ea5d20c4dce84d891d984e24abcacc5
2016-03-01 16:49:08 +09:00
Jeff Tinker
6430b15495 Merge "Add javadocs to MediaCodec.CryptoInfo methods" into nyc-dev 2016-03-01 02:26:30 +00:00
Lajos Molnar
063a570ef0 Merge "media: switch to using MediaImage2" into nyc-dev 2016-03-01 00:40:30 +00:00
Phil Burk
4e572d32f8 Merge "AudioService: add support for ENCODED_SURROUND_OUTPUT" into nyc-dev 2016-03-01 00:06:21 +00:00
Jeff Tinker
8ad2965d00 Add javadocs to MediaCodec.CryptoInfo methods
bug:27383993

Change-Id: I11bba4a2690d112e4210add41910f14c5ba6a927
2016-02-29 23:49:04 +00:00
Jeff Sharkey
50d1c044b5 Parcelable classes should always be final.
Also hide ConnectivityMetricsEvent which isn't being used yet.

Bug: 27415331
Change-Id: Iacdccddda504f3f669185f807b4f35b8dc2b0212
2016-02-29 16:46:09 -07:00
Phil Burk
ac0f704b1a AudioService: add support for ENCODED_SURROUND_OUTPUT
Preference allows override of AudioPolicyManager.
Lets user force or prevent use of AC3 and DTS regardless
of what the EDID says.

Bug: 26373761
Change-Id: I21440f2b90af9a369a36b7b07724e992501bce6d
Signed-off-by: Phil Burk <philburk@google.com>
2016-02-29 12:20:43 -08:00
Sungsoo Lim
ab19dc8e14 MediaBrowser: Fix Javadoc
Bug: 27384292
Change-Id: I57ddfaea0fe888665bc7ee88cd933a660c26f1a6
2016-02-29 14:03:48 +09:00
Jeff Sharkey
f8880561e6 When system server goes down, crash apps more.
Similar to first patch, but now using new "rethrowFromSystemServer()"
method which internally translates DeadObjectException into
DeadSystemException.  New logic over in Log.printlns() now
suppresses the DeadSystemException stack traces, since they're
misleading and just added pressure to the precious log buffer space.

Add some extra RuntimeInit checks to suppress logging-about-logging
when the system server is dead.

Bug: 27364859
Change-Id: I05316b3e8e42416b30a56a76c09cd3113a018123
2016-02-27 17:17:01 -07:00
Andy Hung
2362bdf2c7 Merge "Make master mono controlled through settings" into nyc-dev 2016-02-27 02:50:07 +00:00
Jae Seo
093fa4ebd8 TIF: Enable per state input icon in TvInputInfo
Also made the fields final and grouped them.

Bug: 23820259
Change-Id: I725c830d7c73e8cbc01b6a4f4f4991cb42258380
2016-02-26 16:54:11 -08:00
Jean-Michel Trivi
768d81374b Merge "Audio record notification: report audio device information" into nyc-dev 2016-02-26 22:37:34 +00:00
Paul McLean
c707966397 Fix unitialized member/init-parameter in AudioTrack(long) and AudioRecord(long).
Bug: 27381351

Change-Id: Ia11c13bde978dbf1707439b82a18abf22fe23f2f
2016-02-26 13:13:02 -07:00
Jean-Michel Trivi
8ab728093e Audio record notification: report audio device information
Support querying the AudioDeviceInfo in AudioRecordConfiguration.
When AudioService (through RecordingActivityMonitor) receives
  a recording event on an existing session, report it as an
  update if the recording configuration has changed.

Bug 22876530

Change-Id: I1b72c08aa0589077fe8ad254087965e6384ce50a
2016-02-26 11:11:30 -08:00
Paul McLean
9b09e533ac JNI plumbing for native audio routing API
Bug: 23899814
Change-Id: I3a831bb661fbdfe1981ae3482fcc8773c7df22b6
2016-02-26 10:15:07 -07:00
Donghyun Cho
e9de43f888 Merge "MediaSession: Update javadoc of prepare-related methods" into nyc-dev 2016-02-26 08:23:41 +00:00
Andy Hung
7b98e9a7e5 Make master mono controlled through settings
Bug: 15283594
Change-Id: I94a84a3ad3bbb0c1179726a4ecc68b7df033af58
2016-02-25 18:34:50 -08:00
Glenn Kasten
642a4f5b66 Merge "Allow sample rate UNSPECIFIED to mean a route-dependent value" into nyc-dev 2016-02-26 00:17:45 +00:00
Glenn Kasten
1cbf9b3741 Allow sample rate UNSPECIFIED to mean a route-dependent value
Bug: 25641253
Bug: 21019153
Change-Id: I3b8e01b6ea09f42c813ab1a0f3f625dc3803cc0b
2016-02-25 11:39:37 -08:00
Jae Seo
12eb094232 Merge "TIF: Define activity action to set up channel sources" into nyc-dev 2016-02-25 18:37:34 +00:00
Jaesung Chung
596e1d3b7a Merge "Revert "Revert "ExifInterface: switch from using jhead to java implementation""" into nyc-dev 2016-02-25 14:14:28 +00:00
Jaesung Chung
15ef59e081 Revert "Revert "ExifInterface: switch from using jhead to java implementation""
This reverts commit 3c233ee291cfe1b765184920b6b7a69cb1bb82d9.

Bug: 27349581
Change-Id: Ib9f687e79ec36692fa7505ba3852099eb3e44573
2016-02-25 14:13:10 +00:00
Sungsoo Lim
b21622d477 Merge "Revert "ExifInterface: switch from using jhead to java implementation"" into nyc-dev 2016-02-25 11:50:43 +00:00
Sungsoo Lim
3c233ee291 Revert "ExifInterface: switch from using jhead to java implementation"
This reverts commit bf24c9fcb3e66b25c90c0cd51f8bf4f401f6c3d6.

Change-Id: Id278e831a9c03f615208fd6eab51c65f7bb019eb
2016-02-25 11:48:10 +00:00
Donghyun Cho
f72ecded69 Merge "MediaSession: Add a way to get a calling package" into nyc-dev 2016-02-25 10:01:15 +00:00
Jaesung Chung
9ad5278e2b Merge "ExifInterface: switch from using jhead to java implementation" into nyc-dev 2016-02-25 05:35:54 +00:00
Jae Seo
a6d34ee8b4 TIF: Define activity action to set up channel sources
Bug: 24776978
Change-Id: Ib176217bb896fa10db73c5aa8568171b9f6e2fe7
2016-02-24 18:44:21 -08:00
Lajos Molnar
6a06474b07 media: switch to using MediaImage2
Bug: 25684127
Change-Id: Id90f9ef225ae5d988499bca2006d438631f83940
2016-02-24 18:11:38 -08:00
Jaesung Chung
bf24c9fcb3 ExifInterface: switch from using jhead to java implementation
Bug: 26044456, Bug: 11224701
Change-Id: I881ef0ead24bcec76c0fa5a7dd0b74cc71c77285
2016-02-25 10:57:27 +09:00
Arunesh Mishra
7dbef2da93 Merge "Fix AlwaysOnHotwordDetector recognition event bug." into nyc-dev 2016-02-24 23:12:12 +00:00
Dongwon Kang
523250b6b8 Merge "TIF: Add null-checking in Programs.Genres.encode/decode" into nyc-dev 2016-02-24 21:51:22 +00:00
Zhijun He
dd44b8652c Merge "ImageReader: skip callback when image reader is being closed" into nyc-dev 2016-02-24 21:17:51 +00:00
Dongwon Kang
3f6a81ba6a TIF: Add null-checking in Programs.Genres.encode/decode
Bug: 27292029
Change-Id: I041a5242f9e5fef9c5c7f89e3d5d597a6063ed4c
2016-02-24 13:01:44 -08:00
Arunesh Mishra
f47f173b06 Fix AlwaysOnHotwordDetector recognition event bug.
Parcelables don't work well with inheritance. So changed the
IRecognitionStatusCallback to have onKeyphraseDetected() and
onGenericSoundTriggerDetected() for those respective events.

Made corresponding changes to AlwaysOnHotwordDetector and SoundTriggerDetector.

Bug: 27250528
Change-Id: Ic08a431e7cc4248c688b05c865348170246de576
2016-02-24 12:57:01 -08:00
Jae Seo
ae262a8928 Merge "Enable to set canRecord and tunerCount statically" into nyc-dev 2016-02-24 17:53:48 +00:00
Jean-Michel Trivi
16ad43c000 Merge "Audio record notification: report client/device configuration" into nyc-dev 2016-02-24 17:08:34 +00:00
Jeff Sharkey
6bda33f6a0 Merge "Don't try caching null ringtones." into nyc-dev 2016-02-24 16:55:37 +00:00
Jeff Sharkey
97f061bb7c Don't try caching null ringtones.
Bug: 27330629
Change-Id: Id09d10d6f4a3a20782480647c68a5c94ef69e7b3
2016-02-24 09:54:16 -07:00
Donghyun Cho
1ea5683217 MediaSession: Add a way to get a calling package
Introduced a new method, MediaSession#getCallingPackage(), which returns
the name of the package that sent the last media button, transport
control, or command from controllers and the system.

Bug: 25208121
Change-Id: I90bc1fe3e5e432f6c95b4adfbef6ea6cea9244ff
2016-02-24 20:30:47 +09:00
Donghyun Cho
f9f240ab7d MediaSession: Update javadoc of prepare-related methods
Bug:25841735, Bug:25153060, Bug:25153353
Change-Id: I95cd2b7381e3d8abe5a5c79dbd8655a02f8d40c3
2016-02-24 16:19:47 +09:00
Dongwon Kang
b4caa028c2 Merge "TIF: Add COLUMN_SEASON_TITLE and COLUMN_(SEASON|EPISODE)_DISPLAY_NUMBER" into nyc-dev 2016-02-24 02:09:03 +00:00
Dongwon Kang
a60bc111e5 TIF: Add COLUMN_SEASON_TITLE and COLUMN_(SEASON|EPISODE)_DISPLAY_NUMBER
Bug: 21778419
Change-Id: I1684e2f1c274306706736061e3f41c9840e563c4
2016-02-23 18:03:55 -08:00
Zhijun He
8e694e3b49 ImageReader: skip callback when image reader is being closed
The application could acquire images in onImageAvailable callback when
the ImageReader is being closed. We need some protection here to avoid
application crash.

Change-Id: Ie5be8450048c0cfd78e5a7e27befe4de425d79f3
2016-02-23 17:54:30 -08:00
Jae Seo
dee3cfe897 Enable to set canRecord and tunerCount statically
Bug: 27276122
Change-Id: I61d07cfdbe13e4484ccaf5cdcf0796f08c78e2a8
2016-02-23 16:52:16 -08:00
Jean-Michel Trivi
33fd8169cd Audio record notification: report client/device configuration
Report client and device recording configuration during updates.
Support querying the AudioFormat in AudioRecordConfiguration.

Bug 22876530

Change-Id: I90b44db9bc3fda479452fc63221f8082f5b6a741
2016-02-23 16:40:03 -08:00
Jae Seo
eefb17ac61 Merge "TIF: Unhide URI util methods" into nyc-dev 2016-02-23 23:39:10 +00:00
Jae Seo
87079f1fd8 TIF: Unhide URI util methods
Bug: 27314735
Change-Id: Ib2aeb451a435bb959efb1cba359c335b051f88e5
2016-02-23 15:22:33 -08:00
Jeff Sharkey
1ce5c28ba5 Merge "Offer to cache ringtones in system DE storage." into nyc-dev 2016-02-23 20:57:46 +00:00
Dongwon Kang
df1e10ddac TIF: Add @NonNull for Programs.Genres.encode/decode
Bug: 27292029
Change-Id: Ib74f6383f3b0880179b51268e730ea8e88ab20c3
2016-02-23 12:43:58 -08:00