Commit Graph

6025 Commits

Author SHA1 Message Date
Lajos Molnar
ef65425b8b Merge "media: handle AVC constrained profiles" into oc-mr1-dev am: 794a8f9dc7
am: 1bce851e8b

Change-Id: Id9da2c0e1c48dff6262dc05b83c0b733dcffab42
2017-08-15 06:16:15 +00:00
TreeHugger Robot
251089e509 Merge "TIF: Fix javadoc and add @NonNull to util methods" 2017-08-15 01:27:30 +00:00
Conrad Chen
76750d624a TIF: Fix javadoc and add @NonNull to util methods
Test: javadoc change
Bug: 64330913
Change-Id: I843f10fbdc09008be3d606a470f7c7ceb0d3279f
2017-08-14 16:30:24 -07:00
Lajos Molnar
0aeb1875e4 media: handle AVC constrained profiles
Bug: 64691727
Change-Id: I71b21c0951babccc9b4521bd5c26d35a6d62b426
2017-08-14 15:19:52 -07:00
Jeff Sharkey
300befea32 Merge "Someone is still using these APIs." into oc-mr1-dev am: 9bb002ef79
am: ad75c81598

Change-Id: Idd25e715ec265bd88e3a197d73e016ffd00beda5
2017-08-12 20:05:08 +00:00
Jeff Sharkey
50421b58e5 Someone is still using these APIs.
Which is totally lame.

Change-Id: Iaabfc1f5ac69ed99e714e89344bde116c340c376
2017-08-12 18:23:48 +00:00
Jeff Sharkey
b358b9f673 Merge "Remove a bunch of deprecated @SystemApi." into oc-mr1-dev am: c2e09129e0
am: b2a9f55488

Change-Id: Ib7e00ad3b02bf62fad1cc32c9e6002b2b7a45369
2017-08-12 03:38:00 +00:00
Jeff Sharkey
c2e09129e0 Merge "Remove a bunch of deprecated @SystemApi." into oc-mr1-dev 2017-08-12 03:21:01 +00:00
Cindy Kuang
451ffa0cf3 Merge "docs: corrected grammar mistake in Class Overview" into oc-dev am: dc12cb1fb2 am: e4f02db258 am: 51bc4b6c32
am: c5f6633fdc

Change-Id: I2dc793d60ec75c340b9ae64a0464303e92b41c62
2017-08-11 21:48:21 +00:00
Cindy Kuang
b39042790c Merge "docs: corrected grammar mistake in Class Overview" into oc-dev am: dc12cb1fb2
am: f125024688

Change-Id: If510d503dc91c2bfd6a7a282dbf7210cbc7f2698
2017-08-11 21:42:58 +00:00
Cindy Kuang
c5f6633fdc Merge "docs: corrected grammar mistake in Class Overview" into oc-dev am: dc12cb1fb2 am: e4f02db258
am: 51bc4b6c32

Change-Id: I2f04732899a58b64ffb820d62a53a70c1b723f8c
2017-08-11 21:33:43 +00:00
Cindy Kuang
51bc4b6c32 Merge "docs: corrected grammar mistake in Class Overview" into oc-dev am: dc12cb1fb2
am: e4f02db258

Change-Id: I14c80bbd8838b6af2010463e9d1fb25cf537a167
2017-08-11 21:20:11 +00:00
Cindy Kuang
f125024688 Merge "docs: corrected grammar mistake in Class Overview" into oc-dev
am: dc12cb1fb2

Change-Id: I297557eb072b1fce0395c93c2a770623b5ba1642
2017-08-11 21:14:33 +00:00
Jeff Sharkey
8478911f5e Remove a bunch of deprecated @SystemApi.
Verified that nobody should be using these APIs, and they've been
deprecated long enough that we can remove them.

Bug: 62341924, 62263907, 62264550
Test: make -j32 update-api && make
Change-Id: I9a2333ca13e4984b71374aa7ffed081e5106c67e
2017-08-11 14:45:47 -06:00
Shubang
58d0489b24 Merge "Add permission check before setMain()" into oc-mr1-dev am: 67744e4696
am: 5f68027506

Change-Id: Idb415b250c02a45eca76635c4d7ca0118ed612a3
2017-08-10 06:56:38 +00:00
TreeHugger Robot
67744e4696 Merge "Add permission check before setMain()" into oc-mr1-dev 2017-08-10 06:39:31 +00:00
Paul Mclean
dcdec08c5e Merge "Merge "Update isWiredHeadsetOn() to support USB headsets." into oc-dr1-dev am: 75384f617d am: bca04acac5" into oc-mr1-dev-plus-aosp
am: 3c1f70bd5d

Change-Id: Ib41c853312769cc5a47407c5fc7c81a2447ece7c
2017-08-09 23:46:49 +00:00
Paul Mclean
bca04acac5 Merge "Update isWiredHeadsetOn() to support USB headsets." into oc-dr1-dev
am: 75384f617d

Change-Id: I693a3cf37c55085eee470091edf5fff0bc62ece8
2017-08-09 22:13:48 +00:00
Cindy Kuang
2e98cc555e docs: corrected grammar mistake in Class Overview
Test: make ds-docs

Bug: 17533073
Change-Id: Iaf22ad26794e2aac454a736efc746bca6f48eb82
2017-08-09 14:49:19 -07:00
Shubang
60d3925f5b Add permission check before setMain()
Test: make; cts-tradefed; run cts -m CtsTvTestCases;
Bug: 64489430
Change-Id: I1365165eb1ba76b3a54a3141cc19e8245c99f279
2017-08-09 14:30:00 -07:00
Paul McLean
145c95342c Update isWiredHeadsetOn() to support USB headsets.
Bug: 64250808
Test: Manual from an App (UsbDescriptors app)
Change-Id: Ic979636025e871d69853a7460befce4e1b1a6ed8
2017-08-09 13:07:18 -06:00
Hangyu Kuang
e6e5043f8d Merge "media: Address api council comments." into oc-mr1-dev am: d3cef1bf7c
am: 515b44b35f

Change-Id: I6e09042855c933647c5f08955e06378dbc56f324
2017-08-07 21:51:46 +00:00
TreeHugger Robot
d3cef1bf7c Merge "media: Address api council comments." into oc-mr1-dev 2017-08-07 21:20:54 +00:00
Jin Seok Park
4ae72e6cbf Merge "ExifInterface: Remove throwing exception" into oc-mr1-dev am: 48dad606c5
am: a0e00f5015

Change-Id: I03db88b452431a3ec454754bbb7eb99a43ee0356
2017-08-04 01:05:01 +00:00
Sungsoo Lim
6a62de0746 Merge "Catch IllegalArgumentException when disconnect" into oc-mr1-dev am: 1d66ccde36
am: f6791675f2

Change-Id: I33c1d2cbccb2e2944bba49d8b7d6b5117816870a
2017-08-04 00:50:11 +00:00
Sungsoo Lim
eb3167035d Merge "Do not call ItemCallback after disconnected" into oc-mr1-dev am: 8724fb9348
am: 57cf99b969

Change-Id: I112b12eac97890092af0362048d6e001cbedb923
2017-08-04 00:48:20 +00:00
Jin Seok Park
48dad606c5 Merge "ExifInterface: Remove throwing exception" into oc-mr1-dev 2017-08-04 00:43:02 +00:00
Sungsoo Lim
1d66ccde36 Merge "Catch IllegalArgumentException when disconnect" into oc-mr1-dev 2017-08-04 00:22:00 +00:00
Hangyu Kuang
51cb826529 media: Address api council comments.
Bug: 64338602
Test: CTS test.
Change-Id: I7e1db5a6aea3d63b37a2554ec2a21a0fe40f6e03
2017-08-03 13:52:56 -07:00
Sungsoo Lim
c012f6edd8 Catch IllegalArgumentException when disconnect
IllegalArgumentException can happen, if unbindService() is called
after the service is stopped.

Bug: 63439915
Test: Passed MediaBrowserTest
Change-Id: I70ecb9e907af66b9b65960dd4029e55e81639c03
2017-08-03 14:38:36 +09:00
Sungsoo Lim
be87b68039 Do not call ItemCallback after disconnected
Bug: 64119114
Test: Passed MediaBrowserTest
Change-Id: Icf3283710abe7c03f4a73532b33ec2a306d2280b
2017-08-03 04:48:48 +00:00
Sungsoo Lim
fc844db18d Merge "Check CookieHandler in setDataSource with cookies" into oc-dr1-dev am: 6a2ee3b180 am: 0553f96c0a
am: 167b6837dd

Change-Id: I45dec1e4f76ab3550e00492294ee0523f48ad963
2017-08-03 01:43:32 +00:00
Sungsoo Lim
167b6837dd Merge "Check CookieHandler in setDataSource with cookies" into oc-dr1-dev am: 6a2ee3b180
am: 0553f96c0a

Change-Id: I4559ce2ec092c1855cb09316e5323d0cb33da31f
2017-08-03 01:13:52 +00:00
Sungsoo Lim
c0fe5b2d88 Merge "Check CookieHandler in setDataSource with cookies" into oc-dr1-dev
am: 6a2ee3b180

Change-Id: Ia42104e2fb75d867279fe8d553c807d5dcfac06d
2017-08-03 01:03:48 +00:00
Sungsoo Lim
6a2ee3b180 Merge "Check CookieHandler in setDataSource with cookies" into oc-dr1-dev 2017-08-03 00:52:27 +00:00
Sungsoo Lim
09d62021d9 Check CookieHandler in setDataSource with cookies
If the caller of MediaPlayer.setDataSource has installed its own
CookieHandler when cookies are provided, MediaPlayer.setDataSource
requires that the CookieHandler has to be of CookieManager type.

Bug: 63638018
Test: manual
Change-Id: I1539d1fa83440ddfb00cc958cd46b9917fe3a296
2017-08-03 09:48:01 +09:00
Tarandeep Singh
80f47e54f4 Merge "Merge "Fix keyboard focus in VR" into oc-dr1-dev am: 986995d481 am: 7def2eea97" into oc-mr1-dev-plus-aosp
am: 6f6cc83cf3

Change-Id: I9ceea32fa06bab6416a341998425e9d176c054e6
2017-08-02 23:44:16 +00:00
Tarandeep Singh
ab1a5ff749 Merge "Fix keyboard focus in VR" into oc-dr1-dev am: 986995d481
am: 7def2eea97

Change-Id: I538777a295628827fc3052c58641cbb659afad20
2017-08-02 23:04:58 +00:00
Tarandeep Singh
9c4115a562 Merge "Fix keyboard focus in VR" into oc-dr1-dev
am: 986995d481

Change-Id: I693c1256583dc1081c6402668401c6aab2337d16
2017-08-02 22:59:51 +00:00
Hangyu Kuang
d964cdefc4 Merge "media: Add scaled video thumbnail extractor api." into oc-mr1-dev am: 26a4940296
am: 40b96c785f

Change-Id: Ie5a72ad1f303e814129ed54915747c5aa925a437
2017-08-02 19:32:26 +00:00
TreeHugger Robot
26a4940296 Merge "media: Add scaled video thumbnail extractor api." into oc-mr1-dev 2017-08-02 19:14:23 +00:00
Tarandeep Singh
e1cfcf4c4d Fix keyboard focus in VR
Consider this VirtualDisplay (VD) scenario:
HostActivity creates a VD which holds SettingsActivity. When EditText
on SettingsActivity is tapped, it gains focus.
On eventual taps, it loses focus i.e. the Window in VD loses focus and
the host activity in primary display gets the focus instead. This
happens because WM's TaskTapPointerEventListener.onPointerEvent()
is called on the default display only.

Root cause:
1. Tap detector isn't registered for non-default display.
2. Tap detector has no info on which displayId touch was received.
3. InputFlinger doesn't deliver InputMonitor events for
non-default displays (fixed in a separate CL)

Fixing above results in onPointerEvent(MotionEvent) to deliver the
Touch events successfully to VD. We restrict these changes to physical
multi-displays and VR VirtualDisplays (which uses virtual touch device).
[VrManagerService calls WMInternal.setVr2dDisplayId(int)]

In future, displayId should be part of InputEvent. Bug: 64258305

Bug: 62033391
Test: bit FrameworksServicesTests:com.android.server.wm.DisplayContentTests
Change-Id: I3626f4de5aa9bcf905da9abd39f3ab1baefc4c48
2017-08-02 10:46:22 -07:00
Jin Park
d113478931 ExifInterface: Remove throwing exception
ExifInterface reads the first 5000 bytes of an image file to
determine what type of image it is, and throws an EOFException
if the file is smaller 5000 bytes. This CL removes the throwing
action.

Bug: 64133582
Test: Run ExifInterfaceTest.java with <5kb file
Change-Id: I2b2026f06d70a4fe2986d2e8c410679ba9bf3f7f
2017-08-02 08:48:17 +00:00
Previr Rangroo
b2016f1458 Merge "Add new Dolby Vision Profile types" into oc-mr1-dev am: 2ca4449d6b
am: 20efa0bce6

Change-Id: I3394825fb00c3409142c10c88fe44d2a622ece6f
2017-08-01 21:07:50 +00:00
Shubang Lu
c281dbc673 Merge "Add permission check and @RequiresPermission annotation" 2017-07-28 01:39:57 +00:00
Hangyu Kuang
0552036bc8 media: Add scaled video thumbnail extractor api.
Bug: 62198298
Test: CTS test
Change-Id: Ic78e2dac38b596a10d2fae76bc22f8c43fadf444
2017-07-27 13:31:46 -07:00
Julian Mancini
a83cc4582f Add support for simpler Lat/Long values
In this CL, we add two public static final Strings to MetadataReader. I
use these to put in an "extras" bundle into our highest level bundle.
Within that extras bundle is the Latitude and Longitude values, if
available.

Bug: 63906073
Test: In Place
Change-Id: I1feccb4444d6525f9bc8bddfe8cc73b098e0b90e
2017-07-27 10:21:23 -07:00
Sungsoo
972f27b938 Restore the selected route when an app starts to make sound
Limitation: When two apps make sound simultaneously while one uses a BT
route and the other uses the default route, switching activities between
the two different apps will not change the BT A2DP status until one of
the apps changes its playback status to inactive.

Bug: 32958908, Bug: 35567695, Bug: 33186346
Test: Passed MediaRouter/MediaSession test, and manually varified that
      the b/33186346 is fixed.
Change-Id: I1da97dcb74fa2095425b311ad62cdd00f8118cea
(cherry picked from commit b3658569e9)
2017-07-26 11:02:21 +09:00
Shubang
dd3ec0be11 Add permission check and @RequiresPermission annotation
Bug: 62347045
Test: make; flash; run
Change-Id: Icbd828fa5a4762cf335492a42d321e29c4e2ec5f
2017-07-24 14:39:33 -07:00
Jean-Michel Trivi
9b22133e1c AudioFocusRequest code sample: qualify class for some constants
Add the name of the AudioManager class for the REQUEST constants.

Test: build framework
Bug: 63907030

Change-Id: Id79223a5376d4c75cc74fb471d35672b452d9fc9
2017-07-24 13:50:16 -07:00