10179 Commits

Author SHA1 Message Date
Jaesung Chung
5a8b9627c7 Extend MediaScanner and MtpDatabase to support RAW image files
Bug: 25871812
Change-Id: Iee92632585dc9020238a9b562defd06d6d2a91dc
2016-01-19 09:43:35 +09:00
Jaesung Chung
1c78b60a49 Merge "ExifInterface: add support for reading metadata from RAW images" 2016-01-19 00:37:13 +00:00
Jaesung Chung
fe968dfc12 ExifInterface: add support for reading metadata from RAW images
This CL depends on piex (github.com/google/piex),
which is owned by Google Photos's RAW team.

piex is capable of reading EXIF data that contains
metadata, and finding the positions in an image of
thumbnail and preview images from RAW images.

piex supports DNG, CR2, NEF, NRW, ARW, RW2, ORF
and RAF image file formats.

ExifInterface gets thumbnail and metadata information
from the above RAW image formats via piex.

Bug: 26177215
Change-Id: I529f8032bcb2a9d3d9e857ff1365a26a4f040066
2016-01-18 22:14:57 +09:00
Phil Burk
8c2dd1f7e7 Merge "Revert "Revert "AudioTrack: Add getUnderrunCount()""" 2016-01-18 03:47:39 +00:00
Phil Burk
9fe16a479a Merge "AudioTrack: add setBufferSizeInFrames()" 2016-01-18 00:36:15 +00:00
Phil Burk
10a33e499c AudioTrack: add setBufferSizeInFrames()
Also add getBufferCapacityInFrames().
These can be used to dynamically raise or lower latency.
Fix JavaDocs.

Bug: 21019153
Change-Id: I5c795c23826f7f29038d0de7004f4b7f365cd67e
Signed-off-by: Phil Burk <philburk@google.com>
2016-01-17 15:26:51 -08:00
Phil Burk
03f61bbb2e Revert "Revert "AudioTrack: Add getUnderrunCount()""
This reverts commit 0ac70888d3f08b694e3e31939f2cfb90ce5e0f58.

The first revert was not needed. It was made to fix a broken build. But the break was from a different CL. SO I am reverting the revert.

Change-Id: Iad30209a38f9a0af18d684e44f033a49f32af778
2016-01-17 21:49:58 +00:00
Ricardo Garcia
ed5865b172 Merge "Adding UNPROCESSED to the available audio_sources and SUPPORT_AUDIO_SOURCE_UNPROCESSED property" 2016-01-17 20:07:15 +00:00
Phil Burk
67bd5f6300 Merge "Revert "AudioTrack: add setBufferSizeInFrames()"" 2016-01-17 08:13:01 +00:00
Phil Burk
e6256c5ad0 Merge "Revert "AudioTrack: Add getUnderrunCount()"" 2016-01-17 08:12:42 +00:00
Phil Burk
0ac70888d3 Revert "AudioTrack: Add getUnderrunCount()"
This reverts commit e08c454a8929c13206833cb3422f136f4847a6ff.

JavaDoc error

Change-Id: Ic389be67c8fc8a365948984e9cc7648ee8058371
2016-01-17 08:04:23 +00:00
Phil Burk
77e01bd3ad Revert "AudioTrack: add setBufferSizeInFrames()"
This reverts commit adfb7f62dda47100e1023503d3492e4894f832fa.

Due to JavaDoc error

Change-Id: I41acaa83b7800f88f000291c8deba18d7394be94
2016-01-17 08:01:40 +00:00
Phil Burk
172105e704 Merge "AudioTrack: Add getUnderrunCount()" 2016-01-17 06:30:28 +00:00
Phil Burk
d43e906f04 Merge "AudioTrack: add setBufferSizeInFrames()" 2016-01-17 06:26:39 +00:00
Phil Burk
e08c454a89 AudioTrack: Add getUnderrunCount()
This allows an app to detect application-level output glitches.

Change-Id: I4fb1eafff19a3dd776efae04ddd2e3514184d17f
Bug: 25641253
Signed-off-by: Phil Burk <philburk@google.com>
2016-01-16 11:12:22 -08:00
Phil Burk
dd73142b53 AudioTrack: Add FLAG_LOW_LATENCY
Allow Java to write directly to the FastMixer to
reduce latency.

Change-Id: I957c82ba430e7ee2780ea00ea96c1f5b23dc47f5
Bug: 21019153
Signed-off-by: Phil Burk <philburk@google.com>
2016-01-16 11:09:57 -08:00
Phil Burk
adfb7f62dd AudioTrack: add setBufferSizeInFrames()
Also add getBufferCapacityInFrames().
These can be used to dynamically raise or lower latency.

Bug: 21019153
Change-Id: I3403982894c5fe101f45d0466b00ff3036b28417
Signed-off-by: Phil Burk <philburk@google.com>
2016-01-16 09:08:51 -08:00
rago
a7cc59c318 Adding UNPROCESSED to the available audio_sources and
SUPPORT_AUDIO_SOURCE_UNPROCESSED property

bug: 25564291
Change-Id: I05d48fcc1859501902aa38604a5b86fa5d468468
2016-01-15 18:33:13 -08:00
Paul Mclean
33c1c5560a Merge "Native Audio Routing and (Java) AudioRouting (interface)." 2016-01-15 23:07:39 +00:00
Paul McLean
ed36ca3d4f Native Audio Routing and (Java) AudioRouting (interface).
Adding AudioRouting (Java) interface for routing control
in AudioTrack and AudioRecord.
Deprecating current (Marshmallow) Routing APIs in
AudioTrack and AudioRecord.
Adding package-private constructors to AudioTrack and AudioRecord
to connect to native player/recorder.

Bug: 23899814
Change-Id: I7df7a687fbd56a34c1f5769ffe005eba2a059505
2016-01-15 15:59:37 -07:00
Marco Nelissen
68528911b9 Fix race condition when setting default ringtones
If the device was powered off during first boot, after media scanner
inserted some entries but before the default ringtone settings were
set (or committed to disk), the default settings would not be set
on subsequent boots.

Bug: 18625739
Bug: 22349910
Bug: 25633323
Change-Id: I8ff5d3c4f842297d0675e1f5cbe17c0709a14158
2016-01-14 00:59:38 -08:00
Daichi Hirono
cc1251b9b2 Merge "Change offset and size arguments of MtpDevice#getPartialObject to Java long." 2016-01-14 02:28:45 +00:00
Daichi Hirono
2dd48256e9 Change offset and size arguments of MtpDevice#getPartialObject to Java
long.

To represents full range of 32-bit unsigned integer, we should use
jlong instead of jint.

BUG=26284424

Change-Id: Id3fa9e3daa778c204ab8e38f821d454c709c317a
2016-01-14 09:42:59 +09:00
Dongwon Kang
ab064b3b36 Merge "Add a way for SystemUI to receive media resource (e.g. A/V codec) usage" 2016-01-13 18:21:00 +00:00
Ronghua Wu
23f9efcee3 Merge "Revert "media: Add MIMETYPE_VIDEO_DOLBY_AVC and MIMETYPE_VIDEO_DOLBY_HEVC."" 2016-01-13 00:40:38 +00:00
Jean-Michel Trivi
de41d3cd5a Merge changes from topic 'recordingcallback'
* changes:
  Audio recording notification API
  AudioManager event dispatcher: make more generic
2016-01-13 00:20:56 +00:00
Jean-Michel Trivi
d3c71f075b Audio recording notification API
AudioService can register a recording callback with AudioSystem.
Callbacks are handled in a new class, RecordingActivityMonitor.
This class notifies registered AudioManager instances
  of updates, only if this AudioManager has client callbacks.
Each AudioManager dispatches updates to its registered
  callbacks.

Bug 22876530

Change-Id: I95c6e5ec0631e53af53a490bcecca96089490089
2016-01-12 16:10:42 -08:00
Dongwon Kang
2034a4c4c5 Add a way for SystemUI to receive media resource (e.g. A/V codec) usage
Bug: 26175834
Change-Id: If506a533c5c7b567e770217a9430bf68b539677a
2016-01-12 10:54:34 -08:00
Jeff Tinker
c8c0de38d1 Merge "Support AES-CBC sample encryption in MediaDrm" 2016-01-12 17:42:16 +00:00
Daichi Hirono
2a9a43369b Reland "Add event parameters to MtpEvent."
The CL was previously reviewed at ag/842930.

> We can obtain detailed information of MtpEvent from devices. e.g. object
> handle of changed object.  The CL adds the detailed information as
> properties of MtpEvent class.
>
> BUG=26480986

Change-Id: I93afad9caf118d74cd0923d70242133c4fb2a648
2016-01-12 12:14:30 +09:00
Jeff Tinker
d4ea5d3eb6 Support AES-CBC sample encryption in MediaDrm
bug:23719082
Change-Id: I06eb39bd8ad9b55ea0da4011258cac62a8c21ae1
2016-01-11 17:11:51 -08:00
Andy Hung
867b339660 Merge "Add setMasterMono and getMasterMono" 2016-01-08 23:17:56 +00:00
Andy Hung
f04b84d4c6 Add setMasterMono and getMasterMono
Bug: 15283594
Bug: 22700363
Change-Id: I5d0552938ec2a54be4450512974d92ff8c77b1e9
2016-01-08 14:02:47 -08:00
Ronghua Wu
5755817422 Revert "media: Add MIMETYPE_VIDEO_DOLBY_AVC and MIMETYPE_VIDEO_DOLBY_HEVC."
This reverts commit 58a30f1cf68e0f0bc9e6f270b0f0703fcd74c6c0.

Change-Id: I067892ea5a70f366ef20c45781616715705f4ec4
2016-01-08 09:45:17 -08:00
Daichi Hirono
1d4779c29a Add operationsSupported to device info.
Because not all MTP devices support getPartialObject, we need to check
supported operation of MTP devices. The CL adds operationsSupported
field to MtpDeviceInfo class.

BUG=26147375

Change-Id: Iaad968fb4497a5ad11bf6489097abea99c3cbac7
2016-01-08 16:58:24 +09:00
Daichi Hirono
c0a77fa95d Merge "Move MTP event code to MtpConstants class." 2016-01-08 02:09:40 +00:00
Daichi Hirono
cf62fdc0c9 Move MTP event code to MtpConstants class.
BUG=25128276

Change-Id: I49530c50d7889e1b04931b8ec61f5f92a1c7e68f
2016-01-08 11:06:02 +09:00
Glenn Kasten
25d3c7c49b Revert "Short-term fix for unregistered JNI method"
This reverts commit 7922be86e29002dc3714824b2b669a9760de0528.
2016-01-07 16:02:49 -08:00
Jean-Michel Trivi
3b61d2dfe3 AudioManager event dispatcher: make more generic
Async event dispatcher in AudioManager is hardwired for audio focus.
Make more generic so it can be used for other callbacks.

Bug 22876530

Change-Id: I9315230af10c69f65d6845bd944fce13e48c1e91
2016-01-07 14:23:13 -08:00
Glenn Kasten
7922be86e2 Short-term fix for unregistered JNI method
Bug: 26445503
Change-Id: Id40d4f026572538e3481d8e4c7142fd5489670a3
2016-01-07 10:55:26 -08:00
Glenn Kasten
d713c9d65a Merge "Use FCC_2 and FCC_8 to highlight channel count assumptions" 2016-01-07 15:54:45 +00:00
Andreas Gampe
9c180dd387 Media: Fix MtpDevice call
The signature was changed last minute. Update the media side.

Bug: 26284424
Change-Id: Ia8fb665221f60d3eadd2c32831a12aa21c6c5e9c
2016-01-06 21:15:09 -08:00
Daichi Hirono
3ad1a8ee94 Add missing style change to android_mtp_MtpDevice.cpp.
BUG=26284424

Change-Id: I0e288712a8fccfb3dd21fa927388bacf5ce155d0
2016-01-07 13:06:11 +09:00
Daichi Hirono
52da3ad906 Add getPartialObject to Java MtpDevice class.
BUG=26284424

Change-Id: Id05dc6297a1682999eee4e72972fb883fa49a5d1
2016-01-07 12:41:17 +09:00
Jeff Sharkey
60cfad80bd Discourage use of "_data" column.
Moving forward, all client file access really needs to be going
through explicit APIs like openFileDescriptor(), since that allows
the provider to better protect its underlying files.

This change also changes several classes to use the AutoClosable
pattern, which enables try-with-resources usage.  Older release()
methods are deprecated in favor of close().

Uniformly apply CloseGuard across several classes, using
AtomicBoolean to avoid double-freeing, and fix several resource
leaks and bugs related to MediaScanner allocation.  Switch
MediaScanner and friends to use public API instead of raw AIDL calls.

Bug: 22958127
Change-Id: Id722379f72c9e4b80d8b72550d7ce90e5e2bc786
2016-01-06 10:19:35 -07:00
Glenn Kasten
bd2c3d65d6 Use FCC_2 and FCC_8 to highlight channel count assumptions
Bug: 21656069
Change-Id: I20a74575eddf6e28f1777d04eeab396f28bcc0cc
2016-01-05 11:44:12 -08:00
Jae Seo
082e873999 Add a class Javadoc for MediaBrowser.MediaItem
Also fixed a typo in MediaBrowserService.

Bug: 26181781, Bug: 26182458
Change-Id: I1f672f8111a70ad9c16e9969d0fad0e504fefb8a
2015-12-19 14:38:48 +09:00
Wonsik Kim
c2d26a0835 Merge "TIF: add signal detection feature for HW inputs" 2015-12-17 07:05:51 +00:00
Wonsik Kim
102d0b7b69 TIF: add signal detection feature for HW inputs
Bug: 23820259
Change-Id: If7f03b49f7510ec405dfc4fb2b6f709b8c8b820d
2015-12-17 15:18:39 +09:00
Ronghua Wu
31788966a8 Merge "media: Add MIMETYPE_VIDEO_DOLBY_AVC and MIMETYPE_VIDEO_DOLBY_HEVC." 2015-12-11 17:47:43 +00:00