10101 Commits

Author SHA1 Message Date
Jeff Sharkey
4fa85b7cad Better logging of MediaPlayer failure reason.
Otherwise exception details are dropped on the floor, making it
hard to debug.

Bug: 22525550
Change-Id: I6ab9eb8461a23b9d9b8a0ea6dd1ae8ee2495dd01
2015-07-20 09:38:02 -07:00
Terry Heo
5a3ef42422 TIF: Use copied track list for onTracksChanged() callback
In notifyTracksChanged(), the calling onTracksChanged() could be delayed.
To prevent race condition on tracks, we should use the copy of tracks.

Bug: 22436933
Change-Id: I0c595df9d06d5f7bda4a9f8c21a661f7aa7db71f
2015-07-20 01:29:44 +00:00
Lajos Molnar
1b7808348e am 99dea349: am 1eb690c2: am 9628568a: am e6b407b4: Merge "MediaSync: fix flush handling and deadlock" into mnc-dev
* commit '99dea349513e307081622f6d11c3b40ee3dcce82':
  MediaSync: fix flush handling and deadlock
2015-07-17 14:17:06 +00:00
Lajos Molnar
90f2b9daa3 am e6b407b4: Merge "MediaSync: fix flush handling and deadlock" into mnc-dev
* commit 'e6b407b4be0b9c8240d34259b14e324da4d6832b':
  MediaSync: fix flush handling and deadlock
2015-07-17 13:36:10 +00:00
Lajos Molnar
e6b407b4be Merge "MediaSync: fix flush handling and deadlock" into mnc-dev 2015-07-17 13:24:27 +00:00
Jae Seo
4d2fb09571 am 8e099647: am 7a93b5de: am 25cb2b99: am d19ed4c1: Merge "TIF: Avoid generating locale dependent input IDs" into mnc-dev
* commit '8e0996476b9313c0dea81dedffb9cd7c7fa3252d':
  TIF: Avoid generating locale dependent input IDs
2015-07-17 01:54:47 +00:00
Jae Seo
9cd77be151 am d19ed4c1: Merge "TIF: Avoid generating locale dependent input IDs" into mnc-dev
* commit 'd19ed4c16d0c11bb68dd3a7aab0fb1845814dac8':
  TIF: Avoid generating locale dependent input IDs
2015-07-17 01:10:43 +00:00
Jae Seo
2ac1fd3c9d TIF: Avoid generating locale dependent input IDs
Bug: 22519551
Change-Id: Id818f075fa4863b6e1a6f707e0debe8f08973f25
2015-07-16 17:48:55 -07:00
Lajos Molnar
d08debcf42 MediaSync: fix flush handling and deadlock
- clear pending video frames
- flush audio track
- reset clock
- restart audio track after flush
- don't hold lock during callback

Bug: 22234976
Change-Id: I681df950b67d7f9f77a9c5783279f1c8c91be856
2015-07-16 17:09:20 -07:00
Eric Laurent
3cfd131c58 am e6392988: am a29bcca2: am c2db03b0: am bd874b8b: Merge "AudioManager: fix audio device callback list access" into mnc-dev
* commit 'e6392988f41dee7addc0077cdd3a16a5b19ade07':
  AudioManager: fix audio device callback list access
2015-07-15 02:21:41 +00:00
Eric Laurent
336fde349e am bd874b8b: Merge "AudioManager: fix audio device callback list access" into mnc-dev
* commit 'bd874b8be717110148e2b284f35d166b11c1fe7d':
  AudioManager: fix audio device callback list access
2015-07-15 01:43:10 +00:00
Eric Laurent
bd874b8be7 Merge "AudioManager: fix audio device callback list access" into mnc-dev 2015-07-15 01:31:47 +00:00
Eric Laurent
1691f73de5 AudioManager: fix audio device callback list access
Bug: 22470616.
Change-Id: Ic59e8499557395dabe789b5fec9cb7c86c13d10c
2015-07-14 16:27:54 -07:00
Narayan Kamath
74b04315c4 am b9f170ff: am b4db7923: Merge "Delete some obsolete test code."
* commit 'b9f170ff99a3ad25623bf20c77eb4f6173577c98':
  Delete some obsolete test code.
2015-07-14 22:53:14 +00:00
Narayan Kamath
fc5e0ba625 am b9f170ff: am b4db7923: Merge "Delete some obsolete test code."
* commit 'b9f170ff99a3ad25623bf20c77eb4f6173577c98':
  Delete some obsolete test code.
2015-07-14 20:27:48 +00:00
Ronghua Wu
0e1fc6bd9d am 63488bc7: am 16567cf2: am 70250d35: am 148c7c5c: Merge "media: Implement getAchievableFrameRatesFor with measured frame rate." into mnc-dev
* commit '63488bc788ac03adccc168f173337a51c0a86a6e':
  media: Implement getAchievableFrameRatesFor with measured frame rate.
2015-07-14 18:15:19 +00:00
Ronghua Wu
8609263113 am 148c7c5c: Merge "media: Implement getAchievableFrameRatesFor with measured frame rate." into mnc-dev
* commit '148c7c5c1794a9e306660f22c7cbbbc9906e5f5e':
  media: Implement getAchievableFrameRatesFor with measured frame rate.
2015-07-14 15:33:31 +00:00
Ronghua Wu
148c7c5c17 Merge "media: Implement getAchievableFrameRatesFor with measured frame rate." into mnc-dev 2015-07-14 15:21:34 +00:00
Narayan Kamath
b9f170ff99 am b4db7923: Merge "Delete some obsolete test code."
* commit 'b4db7923818393c5c839dba0d43bec36da98759c':
  Delete some obsolete test code.
2015-07-14 11:05:07 +00:00
Narayan Kamath
85bdaae347 Delete some obsolete test code.
- Get rid of obsolete annotations in MediaInserterTest.

- Drop support for @BrokenTest and @SideEffect. Nobody uses
  SideEffect and none of the tests that use this test runner
  (vm-tests-tf, essentially) use @BrokenTest.

Change-Id: Id73c4d4eda8031689f9263c85b563c29e635d446
2015-07-09 18:23:53 +01:00
Kenny Guy
2dd56526a6 am f6db3a2f: am f25062d4: am 084a716d: am 7d170797: Merge "Mute correct user from device policy manager." into mnc-dev
* commit 'f6db3a2f311f7f188b66e0b41b0fc6d1df49cba1':
  Mute correct user from device policy manager.
2015-07-09 10:57:27 +00:00
Kenny Guy
937fc8d4dc am 7d170797: Merge "Mute correct user from device policy manager." into mnc-dev
* commit '7d170797ac844124b013b77cc220ccf115db12b7':
  Mute correct user from device policy manager.
2015-07-09 10:18:05 +00:00
Kenny Guy
7d170797ac Merge "Mute correct user from device policy manager." into mnc-dev 2015-07-09 10:06:25 +00:00
Jeff Sharkey
608114f966 am e232afca: am 95661575: am 612aac4e: am c66b90fe: Merge "Generate stable MTP storage IDs." into mnc-dev
* commit 'e232afca8240e3b8bbbd9696a210aed5b14b9b79':
  Generate stable MTP storage IDs.
2015-07-08 22:44:19 +00:00
Jeff Sharkey
51c94eeedd am c66b90fe: Merge "Generate stable MTP storage IDs." into mnc-dev
* commit 'c66b90fecd06691535157e6b00088de61b51dc41':
  Generate stable MTP storage IDs.
2015-07-08 22:01:22 +00:00
Jeff Sharkey
c66b90fecd Merge "Generate stable MTP storage IDs." into mnc-dev 2015-07-08 21:55:15 +00:00
Kenny Guy
70e0c58c22 Mute correct user from device policy manager.
Add per user versions of mute methods so
device policy manager can mute the correct
user.
Just persist change if the calling user
isn't the current user.
Treat calls to audio manager coming from uid
1000 as if they were coming from current user
rather than user 0 so that the correct user's
user restriction is checked.

Bug: 21782066
Bug: 21778905
Change-Id: I51469b741096d8a2ffdc520eaf5b3fd754f2c819
2015-07-08 19:33:13 +01:00
Eric Laurent
0cd064335c am 373a0b5c: am dfea212b: am 070df444: am c0344a80: Merge "audio: add definitions for devices connected over IP" into mnc-dev
* commit '373a0b5c602c5826cc0ab6642446981ccb52883c':
  audio: add definitions for devices connected over IP
2015-07-08 18:20:33 +00:00
Eric Laurent
df15e36e19 am c0344a80: Merge "audio: add definitions for devices connected over IP" into mnc-dev
* commit 'c0344a80fdb889c2b94dcfb869edf2afc5bb60df':
  audio: add definitions for devices connected over IP
2015-07-08 17:39:45 +00:00
Eric Laurent
c0344a80fd Merge "audio: add definitions for devices connected over IP" into mnc-dev 2015-07-08 17:24:23 +00:00
Chien-Yu Chen
32ade1ab7b am 1ae0a7d3: am dd21689b: am cceb8268: am 69421363: Merge "ImageWriter: Exception when Surface is abandoned" into mnc-dev
* commit '1ae0a7d39bfe87d0857268070cbf0ff7fa666e37':
  ImageWriter: Exception when Surface is abandoned
2015-07-08 01:37:52 +00:00
Dongwon Kang
d3b2dee0d5 am 476fa150: am 2cc782a6: am bcdae81a: am 7a64e976: Merge "MediaSessionManager: make the binder implementation static" into mnc-dev
* commit '476fa150518684a9c8f2b954cb410a018eb13937':
  MediaSessionManager: make the binder implementation static
2015-07-08 01:37:46 +00:00
Jeff Tinker
2405899eff am c1e0e38e: am 5ece42b9: am 105633d9: am 6826b25c: Merge "Report specific exception type on decrypt with invalid session" into mnc-dev
* commit 'c1e0e38ea84cf850d25e0051a9792efc87ac5e3a':
  Report specific exception type on decrypt with invalid session
2015-07-08 01:37:19 +00:00
Jeff Sharkey
5af1835d67 Generate stable MTP storage IDs.
It ends up that MediaProvider is persisting MTP storage IDs in its
database, so we need to make sure we generate stable IDs over time,
otherwise we can end up looking into a black hole.

Bug: 22256092
Change-Id: I6a75c239aac1b71fd5f6df0df69b24971079a086
2015-07-07 17:46:16 -07:00
Ronghua Wu
75c4824bf6 media: Implement getAchievableFrameRatesFor with measured frame rate.
Bug: 20507129
Change-Id: I4751ea0f8d4f1173ace18d397b59e9cd6c70688f
2015-07-07 16:01:53 -07:00
Chien-Yu Chen
ea01d3b80a am 69421363: Merge "ImageWriter: Exception when Surface is abandoned" into mnc-dev
* commit '69421363c6a81a788b963d2f4cb5fdeaa8bd4200':
  ImageWriter: Exception when Surface is abandoned
2015-07-07 22:29:19 +00:00
Dongwon Kang
a6ec812d07 am 7a64e976: Merge "MediaSessionManager: make the binder implementation static" into mnc-dev
* commit '7a64e9769f8fe5a400320de9ebd025b0b7af045d':
  MediaSessionManager: make the binder implementation static
2015-07-07 22:29:12 +00:00
Chien-Yu Chen
69421363c6 Merge "ImageWriter: Exception when Surface is abandoned" into mnc-dev 2015-07-07 22:16:10 +00:00
Dongwon Kang
7a64e9769f Merge "MediaSessionManager: make the binder implementation static" into mnc-dev 2015-07-07 22:10:23 +00:00
Jeff Tinker
315f501486 am 6826b25c: Merge "Report specific exception type on decrypt with invalid session" into mnc-dev
* commit '6826b25c223c91d603f3a8e2b0d1ce5abe1e13e5':
  Report specific exception type on decrypt with invalid session
2015-07-07 21:35:28 +00:00
Jeff Tinker
6826b25c22 Merge "Report specific exception type on decrypt with invalid session" into mnc-dev 2015-07-07 21:19:13 +00:00
Dongwon Kang
d2ed690187 MediaSessionManager: make the binder implementation static
Removing references to application resources on unregistering so that they
can be GCed as ealry as possible.

Bug: https://code.google.com/p/android/issues/detail?id=161398
Change-Id: Icc083f4a58bb5e738aa662247dc83d021a9dc5c3
2015-07-07 11:40:51 -07:00
Zhijun He
c52366fb8d am c16cd2ad: am 6c7dc58f: am 1f67e4c8: am 1f52fce6: Merge "ImageUtils: fix image copy issue" into mnc-dev
* commit 'c16cd2ad66e2a94b300dfe9b81b68352375109d3':
  ImageUtils: fix image copy issue
2015-07-07 01:58:29 +00:00
Chien-Yu Chen
e0ee63046a ImageWriter: Exception when Surface is abandoned
Throw IllegalStateException when queueing or dequeueing an
image if the input surface is already abandoned by the consumer.

Also fix a crash when planes are not initialized when closing
ImageWriter.

Bug: 22279111
Change-Id: I8301920d64a53c45b29e947e52ff323733abbf16
2015-07-06 18:26:28 -07:00
Jean-Michel Trivi
6c7e0d4b8f am a95ff42f: am fe1b7ad0: am 87d3d893: am 760b1409: Merge "Ringtone: add support for volume control and looping" into mnc-dev
* commit 'a95ff42fbc03f448b08591cd13ef9781fef85c32':
  Ringtone: add support for volume control and looping
2015-07-07 01:17:39 +00:00
Zhijun He
81ae948b4f am 1f52fce6: Merge "ImageUtils: fix image copy issue" into mnc-dev
* commit '1f52fce6b9535b0c83e703d0141f2f80a4a2ebfa':
  ImageUtils: fix image copy issue
2015-07-07 01:16:53 +00:00
Zhijun He
1f52fce6b9 Merge "ImageUtils: fix image copy issue" into mnc-dev 2015-07-07 01:07:17 +00:00
Jean-Michel Trivi
c1b87be50d am 760b1409: Merge "Ringtone: add support for volume control and looping" into mnc-dev
* commit '760b1409bc865df5c60f637b8c994eb20888acb8':
  Ringtone: add support for volume control and looping
2015-07-07 00:32:05 +00:00
Jean-Michel Trivi
760b1409bc Merge "Ringtone: add support for volume control and looping" into mnc-dev 2015-07-06 23:07:26 +00:00
Jeff Tinker
96a2a957e4 Report specific exception type on decrypt with invalid session
bug: 22235465
Change-Id: Ic1e1a86529d4f2246b9768799aacde5cd1070d04
2015-07-06 14:35:29 -07:00