10208 Commits

Author SHA1 Message Date
Hangyu Kuang
8e498db77a Merge "media: Add interface to query and set intra refresh for encoder." 2016-01-27 18:06:25 +00:00
Wonsik Kim
6e0d12ccb8 Merge "media: unhide MediaRecorder.pause()/resume()" 2016-01-27 18:01:28 +00:00
Hangyu Kuang
e9618e810a media: Add interface to query and set intra refresh for encoder.
Bug:26587630
Change-Id: I913a56b4888e2c46ad30ba0e9c3130da7101f7a4
2016-01-27 16:37:04 +00:00
Jaesung Chung
18b6618f92 Merge "Fix build" 2016-01-27 16:28:31 +00:00
Jaesung Chung
d4c505c9b4 Fix build
Change-Id: I91e10406da341e226180b14dd2446cadbdab5684
2016-01-28 01:16:56 +09:00
Ronghua Wu
2a01921fdf Merge "media: add dolby vision profile and level defines in CodecProfileLevel." 2016-01-27 16:13:17 +00:00
Jaesung Chung
800133d4eb Merge "Enable reading a thumbnail from RAW image files in MtpDatabase" 2016-01-27 11:52:34 +00:00
Sungsoo Lim
cd5e40c52f Merge "MediaBrowser: Support pagination of child media items" 2016-01-27 09:57:38 +00:00
Jaesung Chung
8409c0691f Enable reading a thumbnail from RAW image files in MtpDatabase
Also introduce new supported RAW image file formats, PEF and SRW.

RAW image file formats are not defined in PTP 1.2 specification except
for DNG. They are mostly built on top of TIFF or TIFF/EP. (Fuji's RAF
is the exception).

In this CL, image file formats are classified newly as below:

DNG: dng
TIFF: cr2, nrw, arw, rw2, orf, pef, srw
TIFF/EP: nef
Unknown Image Formats(FORMAT_DEFINED): wbmap, webp, raf

I referred to the following documents for defining MTP formats of RAW
images:

* http://www.rags-int-inc.com/PhotoTechStuff/RawStandards/RawSummary.html
* https://en.wikipedia.org/wiki/Raw_image_format

Bug: 26552863, Bug: 26626825
Change-Id: Ia218f6320c4c1ff051a23ca0060ceac46134b0d7
2016-01-27 18:40:36 +09:00
Sungsoo Lim
41c28a3eb1 MediaBrowser: Support pagination of child media items
Bug: 23289404, Bug: 25564520
Change-Id: I156d34735d6c00bca6f4d63fe754951febf552a5
2016-01-27 13:19:26 +09:00
Wonsik Kim
df2908f932 media: unhide MediaRecorder.pause()/resume()
Bug: 20092236
Change-Id: I315b6dd3282ee1b445b76d14aef4a0ddc9a9ff9a
2016-01-26 18:05:03 -08:00
Jae Seo
fb85c6b60a Merge "TIF: Add Builder to TvInputInfo and deprecate createTvInputInfo methods" 2016-01-27 01:58:37 +00:00
Jae Seo
c03671fdf6 TIF: Add Builder to TvInputInfo and deprecate createTvInputInfo methods
Bug: 25726241
Change-Id: I8eae9c0c939e7ec4bdfbdbf40d0d1d70a5e0d45c
2016-01-26 17:40:04 -08:00
Ronghua Wu
d6c2a76dcf media: add dolby vision profile and level defines in CodecProfileLevel.
Bug:
Change-Id: I56adbaab6bf76929b607d3245cf1506da5508a5e
2016-01-26 17:05:39 -08:00
Wonsik Kim
2303361b40 Merge "media: add HEVC support to MediaRecorder" 2016-01-27 00:31:23 +00:00
Jae Seo
533b345682 TIF: Make TvInputService.onCreateRecordingSession a non-abstract method
Change-Id: I1ecf5d2f66825fa9e87fd743d9d293d8bd395fce
2016-01-25 20:34:12 -08:00
Jae Seo
a826d0172a TIF: Recording API
Bug: 23786643
Change-Id: Ie26e8944312048bc865b4506aa49fced15360fe4
2016-01-25 16:30:51 -08:00
Yin-Chia Yeh
e76958297a Merge "ImageReader: fix missing pixel stride" 2016-01-25 02:26:11 +00:00
Daichi Hirono
7ed413524b Merge "Add eventsSupported property to MtpDeviceInfo." 2016-01-25 01:59:27 +00:00
Daichi Hirono
148954a657 Add eventsSupported property to MtpDeviceInfo.
The property provides the set of event code that are supported by
MtpDevice.

BUG=26147375

Change-Id: I54be75e4bb52ddfe9aba8630538ddd32d1a641c8
2016-01-25 10:47:01 +09:00
Yin-Chia Yeh
b99a7f1359 ImageReader: fix missing pixel stride
Change-Id: Ie34cb51fee90e2d5624663fa23da4093fec435e2
2016-01-22 18:02:58 -08:00
Jean-Michel Trivi
b919f6fd71 Unhide audio recording notification API
Introduce new methods and classes for the audio recording
  configuration update and query API.
Callback registration supports a Handler.

Bug 22876530

Change-Id: I819ad464f095d970b5d1d8a3781fcf8dbb310424
2016-01-21 15:09:38 -08:00
Jaesung Chung
69c8cc2930 Merge "Support for CEA-708 closed caption" 2016-01-21 03:41:01 +00:00
Ronghua Wu
66d96977bd Merge "media: Add MIMETYPE_VIDEO_DOLBY_VISION." 2016-01-21 00:42:23 +00:00
Jean-Michel Trivi
11ca2874d2 Merge "Fix AudioAttributes.Builder.setFlags() javadoc" 2016-01-19 18:46:09 +00:00
Wonsik Kim
886e562bc5 media: add HEVC support to MediaRecorder
Bug: 22879917
Change-Id: Ie4ffd3fdf215296d742ace669ae1897bda6df380
2016-01-18 23:37:50 -08:00
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
Jean-Michel Trivi
26d2fdbba3 Fix AudioAttributes.Builder.setFlags() javadoc
Change-Id: I6bca54040060e538d1f9e48ed3510c7524e55129
2016-01-14 12:59:39 -08: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