Commit Graph

5648 Commits

Author SHA1 Message Date
xiaoli.xb.zuo
0d5bcda101 Merge \"Fix memory leak in MediaScannerConnection\"
am: e40ab18590

Change-Id: I894584a5d193624acc78c20a6207b54b20b61563
2016-07-26 15:43:55 +00:00
Hangyu Kuang
b9779c7c26 media: Add hidden api to set video encoding profile and level. am: f70ad43f13
am: 2725d89822

Change-Id: I3c702fc0ce1b1ac78b894f665d5811c1c65c62b4
2016-07-26 15:15:27 +00:00
Jin Park
9ff5cefd4e ExifInterface: Add PEF, RW2 files parse support
PEF, RW2 files have unique ways of storing their data. This CL adds code
that checks whether a file is one of these formats and parses the data
according to specifications.

Bug: 29409358
Change-Id: I6c368b4865414062f9f535bf180d7d7bf6984a7d
2016-07-26 18:27:22 +09:00
Hangyu Kuang
2725d89822 media: Add hidden api to set video encoding profile and level.
am: f70ad43f13

Change-Id: I3bb9bf5884d791dd5d97fbda8117d1d4f3b1b40f
2016-07-25 23:45:35 +00:00
TreeHugger Robot
e7e1f0b788 Merge "media: Add hidden api to set video encoding profile and level." into nyc-mr1-dev 2016-07-25 23:40:00 +00:00
Hangyu Kuang
f70ad43f13 media: Add hidden api to set video encoding profile and level.
bug: 30284097
Change-Id: I898f9a05571098a0ca0f57fb5abf58567c16fdd1
2016-07-25 21:31:29 +00:00
Eino-Ville Talvala
4158f4a323 ImageReader: Add discardFreeBuffers method am: 2e2aaf6e04
am: bc20c106df

Change-Id: I215c711f13531821907cd442b2aca707f46bd87d
2016-07-22 22:07:18 +00:00
Eino-Ville Talvala
bc20c106df ImageReader: Add discardFreeBuffers method
am: 2e2aaf6e04

Change-Id: I142f1b011a045aa0f5af7c33eb76b059eb67e30d
2016-07-22 21:52:51 +00:00
Eino-Ville Talvala
2e2aaf6e04 ImageReader: Add discardFreeBuffers method
This method (currently @hide) discards all cached buffers for
the ImageReader, which can be useful to free up memory at the
cost of reallocationt time if more buffers are needed later.

It has no effect on acquired Images, filled Images waiting to be
acquired, or buffers being actively used by the source rendering to the
Surface.

Bug: 28695173
Change-Id: I427a8ba4ad73a267083f843dbf228bfc53a730d9
2016-07-21 17:04:19 -07:00
xiaoli.xb.zuo
3579b0e1a7 Fix memory leak in MediaScannerConnection
This patch adds releasing of MediaScannerConnection in ClientProxy
after disconnecting and releasing of ClientProxy and
IMediaScannerService in disconnection sequence in
MediaScannerConnection.

Bug: 30150344

Change-Id: I1e162e4c9a0b7a741ace20480bcf06f3151a93bf
2016-07-21 20:34:09 +09:00
Daichi Hirono
0398eb5c1b Specify primary mime type for each format code.
MediaFile#getMimeTypeForFormatCode returns mimetype for MTP format
code. However MTP format code is ambiguous and some format code can be
mapped to several mime types.  Before the fix, the method returns mime
type that is last registered to internal static map.

The CL explicitly specifies the primary mime type for each format code
to prevent from unintentionally changing mime type returned for a format
code.

FIX=30266194

Change-Id: I142ccb9719d439b0378121bcdcd4b804b1505952
2016-07-21 17:08:09 +09:00
Jin Park
1c1b2b18d3 ExifInterface: Add ORF file parse support
A ORF file has a unique way of storing its data. This CL adds code
that checks whether a file is a ORF file format and parses the data
according to specifications.

Bug: 29409358
Change-Id: I498408a9e02dfe567c2d427b037c30b06af74d7e
2016-07-21 13:49:01 +09:00
Jin Seok Park
f635d5b83a Merge "ExifInterface: Remove unnecessary logging of exceptions" 2016-07-21 02:43:48 +00:00
Jin Park
68bda838d0 ExifInterface: Remove unnecessary logging of exceptions
ExifInterface currently logs exceptions when it encounters invalid
markers and when the file format is unsupported by Piex Library.
This CL suppresses such logs with the DEBUG marker.

Bug: 30252745
Change-Id: Ia69183eaa5bf7ac2ff1dc95c0919b23b4a9f8c4e
2016-07-21 10:27:57 +09:00
Robert Shih
89cfd17196 Merge "MediaExtractor: Javadoc should mention INTERNET permission" 2016-07-21 00:53:13 +00:00
Robert Shih
a1c7483429 MediaExtractor: Javadoc should mention INTERNET permission
Bug: 10673034
Change-Id: Iea1196c76b09fa5b8f5b2d11a461eeb4c6578a1b
2016-07-20 17:46:11 -07:00
Bryan Mawhinney
a687bed569 Merge \\"Add .mov to MediaScanner video file types\\" into nyc-mr1-dev am: 881bc352ee
am: 642e50621a

Change-Id: I706bf8992bf8090b5c818418b14278a7bf9e3637
2016-07-20 19:18:16 +00:00
Bryan Mawhinney
642e50621a Merge \"Add .mov to MediaScanner video file types\" into nyc-mr1-dev
am: 881bc352ee

Change-Id: I323e40003c87b2b892b1cb0712507cabc7b1d1d5
2016-07-20 19:13:04 +00:00
Bryan Mawhinney
881bc352ee Merge "Add .mov to MediaScanner video file types" into nyc-mr1-dev 2016-07-20 18:58:30 +00:00
Mikhail Naganov
232ac757fb Merge "Protect MIDI framework against client blocks in MidiReceiver.onSend" 2016-07-19 22:50:06 +00:00
Chien-Yu Chen
01d65bebc7 Merge \\"ImageReader: Make close thread safe\\" into nyc-mr1-dev am: 2f8bf1f024
am: 8b29ace33b

Change-Id: I94b195e2a7f43ed010ca3cebe933593c6960cfc6
2016-07-19 21:16:56 +00:00
Chien-Yu Chen
8b29ace33b Merge \"ImageReader: Make close thread safe\" into nyc-mr1-dev
am: 2f8bf1f024

Change-Id: I9954f6b7b7ab997391acbe3f16cbce36d9c5de3c
2016-07-19 21:12:07 +00:00
Bryan Mawhinney
c9cb80e9e6 Add .mov to MediaScanner video file types
Bug: 16162336
Change-Id: I34467c707494690a9e3e3890f295dd1f7df86c86
2016-07-19 16:01:55 +01:00
Chien-Yu Chen
ca979b9d89 ImageReader: Make close thread safe
Bug: 30191606
Change-Id: Ic5b53c416a7fe3ebcaad2ab78f2e9aef3b790c88
2016-07-18 17:14:27 -07:00
Glenn Kasten
2ed8f215f1 Define low latency output stream (formerly primary)
Bug: 29164107
Change-Id: Ic31ee9bc85f39026918f9a7b7f379454d99b0009
2016-07-18 11:43:38 -07:00
Robert Shih
6f5be322d2 MediaRecorder: fix OnInfo related documentation
The original documentation said MediaRecorder.OnInfoListener was called for
error cases.

Bug: 25424209
Change-Id: Ic8d2dee67b15a64604a959e7e6964436da92d6ba
2016-07-15 18:39:42 -07:00
Lajos Molnar
77e3a344b7 Merge \\"media: document new temporal layering schema values.\\" into nyc-mr1-dev am: 12f860f5a2
am: 878069382e

Change-Id: Iffd7f35b5c6e53ddcc4728a422839298b13503da
2016-07-15 05:59:39 +00:00
Lajos Molnar
98d9779533 Merge \\"media: clarify MediaFormat.KEY_I_FRAME_INTERVAL\\" into nyc-mr1-dev am: 991c240a88
am: 525d917ac9

Change-Id: I6c5088ec6b2b7810acf2c3e6835b205f80eded06
2016-07-15 05:59:32 +00:00
Lajos Molnar
878069382e Merge \"media: document new temporal layering schema values.\" into nyc-mr1-dev
am: 12f860f5a2

Change-Id: Ifb3c99ca6e4b2a9dcec6d58afacbcba474ea4d73
2016-07-15 05:53:37 +00:00
Lajos Molnar
525d917ac9 Merge \"media: clarify MediaFormat.KEY_I_FRAME_INTERVAL\" into nyc-mr1-dev
am: 991c240a88

Change-Id: Id1e1bfdb65b10f5e7b99a0e164afc05ca2518dbf
2016-07-15 05:53:28 +00:00
Lajos Molnar
12f860f5a2 Merge "media: document new temporal layering schema values." into nyc-mr1-dev 2016-07-15 05:44:04 +00:00
Lajos Molnar
be00432071 media: clarify MediaFormat.KEY_I_FRAME_INTERVAL
Bug: 30096321
Change-Id: I908b669caf5443fb272a2d274b7cbf7227913b3e
2016-07-15 05:15:24 +00:00
Lajos Molnar
2cfca129d6 media: document new temporal layering schema values.
Also fix doc as these are advertised on the output port.

Bug: 30150921
Bug: 27596987
Change-Id: Ia95876ade36bc82eea0e9795dea0268abbd1c1ef
2016-07-14 19:56:35 -07:00
Lajos Molnar
cbf82bd3ab Merge \\"media: clarify notes in MediaCodec doc\\" into nyc-mr1-dev am: 82d886434d
am: 1d356c895b

Change-Id: I086a5de8bb581d5d908dacee82e4d93403e73320
2016-07-15 00:39:10 +00:00
Lajos Molnar
1d356c895b Merge \"media: clarify notes in MediaCodec doc\" into nyc-mr1-dev
am: 82d886434d

Change-Id: Iacc43f3db9a41a0373227fc09f3590cf275ec34f
2016-07-15 00:35:12 +00:00
Lajos Molnar
82d886434d Merge "media: clarify notes in MediaCodec doc" into nyc-mr1-dev 2016-07-15 00:25:30 +00:00
Wei Jia
7a963e183d Merge \\"Fix disabling lockscreen for demo users.\\" into nyc-mr1-dev am: 407fd1ea62
am: 3b098778c6

Change-Id: I66a5393837e3ec0286be28f766a603da844ce6fc
2016-07-13 23:31:10 +00:00
Sudheer Shanka
3b098778c6 Merge \"Fix disabling lockscreen for demo users.\" into nyc-mr1-dev
am: 407fd1ea62

Change-Id: I5625a9ef9fd35ee0cbf6cad7651f7a39eee8f059
2016-07-13 23:15:03 +00:00
Wei Jia
407fd1ea62 Merge "MediaPlayer: fix typo for OnInfoListener." into nyc-mr1-dev 2016-07-13 22:05:00 +00:00
Jean-Michel Trivi
6e4d0a234a Merge \\"Optimize audio playback restriction check\\" into nyc-mr1-dev am: 69c6166684
am: 96a8ee3aec

Change-Id: I0b78ebbfe10a56d2ce27af0b9317de93e29e4c13
2016-07-13 22:03:02 +00:00
Jean-Michel Trivi
96a8ee3aec Merge \"Optimize audio playback restriction check\" into nyc-mr1-dev
am: 69c6166684

Change-Id: If626176f014e65f0248c5ae80d9196dd27076ec4
2016-07-13 21:57:24 +00:00
Jean-Michel Trivi
69c6166684 Merge "Optimize audio playback restriction check" into nyc-mr1-dev 2016-07-13 21:50:59 +00:00
Mikhail Naganov
382cb48848 Protect MIDI framework against client blocks in MidiReceiver.onSend
Make the server-side socket non-blocking when creating MidiOutputPort
for clients. Thus if a client ceases to read from its side of the
socket pair, the server will just fail to write instead of blocking.

One drawback is that the MidiOutputPort on the client can't indicate
that it has become dysfunctional, but it's not possible without
changing the API.

Bug: 29413812
Change-Id: I9dfcbdd214a815cea8fd1365324fd78ca459268a
2016-07-13 13:50:17 -07:00
Jean-Michel Trivi
1293c060c8 Optimize audio playback restriction check
Order the playback restriction checks from the most likely
  restriction to the least likely.

Bug 30073948

Change-Id: I6431d15a2ed8b5831f937eab8db940d942082b0e
2016-07-13 19:30:56 +00:00
Eric Laurent
a5a6a47e94 Merge \\"Make Dolby TrueHD audio format public\\" into nyc-mr1-dev am: eb8de29269
am: 50768af5e1

Change-Id: Id634ea390d59dc0f39b3ce1b5ce440f6aad54634
2016-07-13 16:06:14 +00:00
Eric Laurent
50768af5e1 Merge \"Make Dolby TrueHD audio format public\" into nyc-mr1-dev
am: eb8de29269

Change-Id: I2cfe7a072d7bdbce4a1fad357b1608c1f9624688
2016-07-13 16:01:29 +00:00
Eric Laurent
eb8de29269 Merge "Make Dolby TrueHD audio format public" into nyc-mr1-dev 2016-07-13 15:54:04 +00:00
Jin Park
ffe4efc319 ExifInterface: Add RAF file parse support
A RAF format file has a unique way of storing its data. This CL adds
code that checks whether a file is a RAF file format and parses the
data according to specifications.

Bug: 29409358
Change-Id: If37d4ba8de47cdbacd524a07148ba6c14f873259
2016-07-13 07:10:16 +00:00
Jin Seok Park
bc0f0f4351 Merge "ExifInterface: Extract primary image length/width values" 2016-07-13 07:08:55 +00:00
Jin Park
559c028fc8 ExifInterface: Extract primary image length/width values
The primary image may not contain the tags for ImageLength and
ImageWidth values if it uses the JFIF specification. This CL searches
the data to retrieve those necessary values.

Bug: 29409358
Change-Id: I850768af38b7b723e93833a70a2238f3fe1cc29b
2016-07-13 14:29:58 +09:00