Commit Graph

31550 Commits

Author SHA1 Message Date
Mocy Sheng
ba61f71ff3 Fix nullable annotation to match overriden method in super class
Bug: 156238511
Test: Treehugger
Change-Id: I349e8628ea77d3051f40f903c3438c3fc0a489ea
2020-05-11 14:44:12 -05:00
Robert Horvath
b22683e830 Merge "Add PackageInstaller#uninstallExistingPackage" 2020-05-11 08:23:44 +00:00
Leon Scroggins
0c24d0a5b3 Merge "Make BitmapDrawable#setBitmap public" 2020-05-07 21:11:42 +00:00
Alex Johnston
451d4a697b Merge "Deprecate organization color" 2020-05-07 13:38:01 +00:00
Leon Scroggins
f0cee43934 Merge "Make Canvas#drawPatch public" 2020-05-06 20:33:55 +00:00
Sooraj Sasindran
88823275ee Merge changes from topic "setDataEnabled"
* changes:
  Make sure to handle exceptions for setDataEnabled
  Revert^2 "Support api to control data by thermal service" ag/11382713 fixes exception issue with original change. 94b46ef784
2020-05-06 15:55:40 +00:00
Sooraj Sasindran
b2c6fee602 Revert^2 "Support api to control data by thermal service"
ag/11382713 fixes exception issue with original change.
94b46ef784

Bug: 151342791
Change-Id: I5e38549a3050d582017fe8bbf193adc65eb12860
2020-05-06 15:30:35 +00:00
Leon Scroggins III
bea80a7725 Make BitmapDrawable#setBitmap public
Bug: 154628299
Test: I20d4f94a145474394bc660368d9ddd1897001f4a

This allows displaying a new Bitmap without paying the cost of creation
and GC of the BitmapDrawable.

Non-SDK-API usage is low, but this is useful. Previously it was @hide
and used by the system. Once BitmapDrawable is in a mainline module,
the system can no longer access @hide methods.

Change-Id: I6a24b3c5870b0ee7d171aab86257896261b4b8c7
2020-05-06 14:28:12 +00:00
Galia Peycheva
802233ad3e Merge "Add isDreaming method to DreamManager" into rvc-dev am: 95f8aba25e am: 96a580f73c am: ac5303faef am: 5e636a4bf6
Change-Id: I929b26b032f3bc08541ff869deaf04c4c3293275
2020-05-06 09:30:14 +00:00
Galia Peycheva
ac5303faef Merge "Add isDreaming method to DreamManager" into rvc-dev am: 95f8aba25e am: 96a580f73c
Change-Id: Id8965fb0f1ec21bfca2eda1656cb253623dcf504
2020-05-06 08:56:05 +00:00
Galia Peycheva
95f8aba25e Merge "Add isDreaming method to DreamManager" into rvc-dev 2020-05-06 08:18:19 +00:00
Hall Liu
9fdfd90729 Merge "Add the addServiceAnnouncement API for EMBMS" am: 1ba0bc20b9 am: 7ffc3b9f58
Change-Id: I1d3b203a8782500ed26cc3df8b6dbabb1b4a5d02
2020-05-05 21:05:46 +00:00
Hall Liu
1ba0bc20b9 Merge "Add the addServiceAnnouncement API for EMBMS" 2020-05-05 20:42:31 +00:00
Galia Peycheva
e1903416bb Add isDreaming method to DreamManager
This CL adds isDreaming to DreamMaanger and changes the way it starts a
dream to use IDreamManager.dream()

DreamManager is only used for testing. So far it has been using the
DreamManagerInternal.testDream() API to start the dream. This restricts
the amount of verification that can be done in the dream tests because
it doesn't put the device in a dreaming state -
IDreamManager.isDreaming() is always false.
IDreamManager.dream() puts the device in a dreaming state and enables
better testing.

Bug: 152994058

Test: atest DreamManagerServiceTests
Change-Id: Id4d947e83eabcafa9724764b8d063357c5f2cb49
2020-05-05 21:59:24 +02:00
Greg Kaiser
8720228eba Merge "Revert "Support api to control data by thermal service"" 2020-05-05 19:57:48 +00:00
Greg Kaiser
94b46ef784 Revert "Support api to control data by thermal service"
Revert "CTS test for api to control data by thermal service"

Revert "Support api to control data by thermal service"

Revert "Support api to control data by thermal service"

Revert submission 11171206-setDataEnabled

Bug: 155765311
Reason for revert: wembley gets into boot loop on reboot due to this code
Reverted Changes:
I3cdab9b04:Support api to control data by thermal service
I716cf6c45:CTS test for api to control data by thermal servic...
Ic5634e6f7:Support api to control data by thermal service
I763c422ba:Support api to control data by thermal service

Change-Id: If023dc8e106650b63706c0a5df24850c1260f785
2020-05-05 16:47:47 +00:00
Hall Liu
4343998de3 Add the addServiceAnnouncement API for EMBMS
Add addServiceAnnouncement to MbmsDownloadSession, allowing apps to add
service announcements from group call servers and receive information
about available files via the MbmsDownloadSession API surface.

Fixes: 144368478
Test: CTS
Change-Id: I760400f56219879fe71d0115042a3be2f83cef90
Merged-In: I760400f56219879fe71d0115042a3be2f83cef90
2020-05-05 01:58:57 +00:00
Hall Liu
598883a072 Merge "Add the addServiceAnnouncement API for EMBMS" 2020-05-05 01:57:49 +00:00
Yuncheol Heo
cac5bb32ec Merge changes from topic "immersive" into rvc-dev am: 8f4363a226 am: 8752446dab am: 7ac3c1b8b6 am: 1092daf3a5
Change-Id: I541272cb1a0f4aac2990a59133025e4af78c7029
2020-05-05 01:10:29 +00:00
Yuncheol Heo
7ac3c1b8b6 Merge changes from topic "immersive" into rvc-dev am: 8f4363a226 am: 8752446dab
Change-Id: Ic26e9ea346dba0b540f4d437f246ebde705522e8
2020-05-05 00:44:23 +00:00
Yuncheol Heo
5df9a2c229 Merge changes from topic "immersive" into rvc-dev am: 8f4363a226
Change-Id: I6c4e16a40c99d2051804b06dabcfea4d10644cef
2020-05-05 00:28:36 +00:00
Yuncheol Heo
8f4363a226 Merge changes from topic "immersive" into rvc-dev
* changes:
  Add test api getStatus/NavigationBarBackgroundView.
  Notify the visibility change to update color views without control.
2020-05-05 00:14:09 +00:00
Sooraj Sasindran
1e9c1966e6 Merge "Support api to control data by thermal service" 2020-05-04 23:49:27 +00:00
Hall Liu
c045df60be Add the addServiceAnnouncement API for EMBMS
Add addServiceAnnouncement to MbmsDownloadSession, allowing apps to add
service announcements from group call servers and receive information
about available files via the MbmsDownloadSession API surface.

Fixes: 144368478
Test: CTS
Change-Id: I760400f56219879fe71d0115042a3be2f83cef90
2020-05-04 15:10:33 -07:00
Yuncheol Heo
70c4bb9007 Add test api getStatus/NavigationBarBackgroundView.
Introduces new test api to access the background view of status bar and
navigation bar.

Bug: 154720832
Test: atest WindowInsetsPolicyTest

Change-Id: If38d3f57edfbb2631d4c1e47ed5347a332edacfb
2020-05-04 14:36:43 -07:00
Dichen Zhang
dbb2be9634 Merge "MediaMetadataRetriever: unhide bits per sample and sample rate keys" 2020-05-04 20:56:24 +00:00
Leon Scroggins III
491ed067dd Make Canvas#drawPatch public
Bug: 155422223
Bug: 155661807
Test: NinePatchTest#testDraw
Test: NinePatchDrawableTest#testDraw

As part of the move to a mainline module, code outside the module cannot
access @hidden APIs on Canvas. Although no code outside the module calls
these methods, there is a Canvas subclass that overrides it - NopCanvas,
which overrides it to do nothing. This is useful, and cannot be achieved
another way. (If NopCanvas did not override drawPatch, it would crash
when attempting to draw a NinePatchDrawable.)

In addition, this method is already public on RecordingCanvas. (This is
likely an accident; it contains no documentation for the method.)

Lastly, it is somewhat arbitrary that the way to draw a NinePatch
directly was to call NinePatch#draw. This is the reverse of how Canvas
drawing generally works. The newly public method matches the typical
pattern (Canvas#draw<Something>(Something, Paint)) and is already called
by NinePatch#draw.

Change-Id: I16d7dc7391e3ad5777fdd7023472545c6104af69
2020-05-04 20:54:58 +00:00
Dichen Zhang
8508308f4d MediaMetadataRetriever: unhide bits per sample and sample rate keys
Bug: 153915801
Test: update-api
Change-Id: Ic573d2da152ac074dad62f86255397a55cc5e173
2020-05-04 09:58:39 -07:00
TreeHugger Robot
1766e14e10 Merge "Make Drawable#hasFocusStateSpecified public" 2020-05-04 16:53:18 +00:00
Sooraj Sasindran
ea5e69c414 Support api to control data by thermal service
Support api to control data by thermal service
Restructure data enablement API to have single API
with reason as an input to stop adding new apis
for new usecases.

Bug: 151342791
Test: added new CTS tests and verified

Change-Id: I763c422ba54907984977d19b2774c31337e5ffe5
2020-05-04 09:28:14 -07:00
Svet Ganov
38cd221d81 Updating platform SDK version for R
* Finalize resources
  * Update appt/aapt2 constants
  * Update R and SDK constants
  * Fix a crashloop bug

Test: build + boot

bug:150281259

Change-Id: Ie56e12336cd1fcf347ac7164f6988b0c2da77c7d
Merged-In: Ie56e12336cd1fcf347ac7164f6988b0c2da77c7d
2020-05-03 09:58:54 -07:00
Svet Ganov
d459a8da1e Revert an API breaking changes
bug:150281259

Test: N/A

Exempt-From-Owner-Approval: porting upstream

Change-Id: Ie30286456af15dd7b81bceb0547ffe8bfac422d2
Merged-In: Ie30286456af15dd7b81bceb0547ffe8bfac422d2
2020-05-03 05:38:43 +00:00
Svet Ganov
87ccbfaa46 Updating platform SDK version for R
* Finalize resources
  * Update appt/aapt2 constants
  * Update R and SDK constants
  * Fix a crashloop bug

Test: build + boot

bug:150281259

Exempt-From-Owner-Approval: merge conflict resolution

Change-Id: Ie56e12336cd1fcf347ac7164f6988b0c2da77c7d
Merged-In: Ie56e12336cd1fcf347ac7164f6988b0c2da77c7d
2020-05-02 14:26:57 -07:00
Svetoslav Ganov
13308eb260 Merge changes from topic "RVC-SDK-Finalization-master"
* changes:
  Revert an API breaking changes
  Updating platform SDK version for R
2020-05-02 15:13:07 +00:00
Svet Ganov
ea8a2145c9 Revert an API breaking changes
bug:150281259

Test: N/A

Change-Id: Ie30286456af15dd7b81bceb0547ffe8bfac422d2
2020-05-01 15:25:51 -07:00
Svet Ganov
ed460aa186 Updating platform SDK version for R
* Finalize resources
  * Update appt/aapt2 constants
  * Update R and SDK constants
  * Fix a crashloop bug

Test: build + boot

bug:150281259

Change-Id: Ie56e12336cd1fcf347ac7164f6988b0c2da77c7d
2020-05-01 15:25:27 -07:00
Alex Johnston
76f073c016 Deprecate organization color
* Deprecate setOrganizationColor,
  setOrganizationColorAsUser,
  getOrganizationColor,
  getOrganizationColorAsUser
  from DevicePolicyManager.

Bug: 155464031
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: I4ba476168cded62786113bae1db0fdaca0989484
2020-05-01 12:45:51 +01:00
TreeHugger Robot
c8ce55ce24 Merge changes from topic "displayAreaOrganizer_migration"
* changes:
  The one handed UX of auto-stop one handed by conditions (10/N)
  TouchHandler to handle touch events inside & outside displayArea (9/N)
  Implement Timer for one handed to handle auto-exit (8/N)
  Implement DisplayArea Animation/Transition for one handed (7/N)
  Register DisplayAreaOrganizer for one handed (6/N)
  Create OneHandedSettingsUtil handle settings configs (5/N)
  Sysui-infra for one handed mode (1/N)
2020-05-01 06:34:30 +00:00
Jake Wharton
eee5ad507a Merge "Revert "Add Activity non-config instance map-like API"" 2020-04-30 23:45:37 +00:00
Jake Wharton
d72728ff08 Revert "Add Activity non-config instance map-like API"
Revert "Tests for non-config instance map"

Revert submission 11077952-non-config-map

Reason for revert: API council would like to go straight to Jetpack
Reverted Changes:
Ib2484d433:Add Activity non-config instance map-like API
Ibc3daf82f:Tests for non-config instance map

Bug: 155401916
Change-Id: I9dd8226375e86d66b8cef3731642c0cf9f74434c
2020-04-30 18:58:01 +00:00
Bill Lin
f872831565 Register DisplayAreaOrganizer for one handed (6/N)
Introduce OneHandeDisplayAreaOrganizer and AnimationController

Test: atest OneHandedDisplayAreaOrganizerTest
Test: atest OneHandedManagerImplTest
Test: atest OneHandedUITest
Test: atest OneHandedSettingsUtilTest
Test: atest SystemUITests
Test: atest DisplayAreaPolicyBuilderTest
Bug: 150747909
Change-Id: I654090adf404214056ef37d83bacd3f65fffc1ff
2020-04-30 15:58:50 +08:00
Chavi Weingarten
afab14ff95 Merge "Remove getLeash from WindowContainerToken" into rvc-dev am: 5a4a5682a2 am: e00fbbe6c4 am: ecccd3de1e am: 906d4d2c1f
Change-Id: Ie01960a15f0134abc4e02a73ba5cf629d930ccd5
2020-04-30 00:46:44 +00:00
Chavi Weingarten
ecccd3de1e Merge "Remove getLeash from WindowContainerToken" into rvc-dev am: 5a4a5682a2 am: e00fbbe6c4
Change-Id: I6fafd649d35f3cf2f7d42eb4dbedbaec477f848a
2020-04-30 00:29:17 +00:00
Chavi Weingarten
6eae26b96f Merge "Remove getLeash from WindowContainerToken" into rvc-dev am: 5a4a5682a2
Change-Id: If2e767cc167267de8f2297194419e297cba53621
2020-04-30 00:18:00 +00:00
Chavi Weingarten
5a4a5682a2 Merge "Remove getLeash from WindowContainerToken" into rvc-dev 2020-04-30 00:16:21 +00:00
Chavi Weingarten
e369976bdc Merge "Added featureId to DisplayAreaInfo" into rvc-dev am: 1e6ef9321a am: 8de96583fa am: c790868ad1 am: a72a05033d
Change-Id: If782ed883ca6f9c3743def0935f39352d41f869c
2020-04-29 23:49:48 +00:00
Chavi Weingarten
c790868ad1 Merge "Added featureId to DisplayAreaInfo" into rvc-dev am: 1e6ef9321a am: 8de96583fa
Change-Id: Ic3c866f94c2b02b2f0a426e6dc3fed2c35e7af7d
2020-04-29 23:29:28 +00:00
Chavi Weingarten
a4da2cdf3c Merge "Added featureId to DisplayAreaInfo" into rvc-dev am: 1e6ef9321a
Change-Id: Id953960a1495314d241fcff6f9c4e665e8d5cfcb
2020-04-29 23:24:50 +00:00
Treehugger Robot
f318caa9c2 Merge "API to get hardware variant (SKU)" am: c042e44813 am: edc94080d9 am: ddad10d8bd am: f1f7256263 am: 67c54e87c0
Change-Id: I3b6633364f8d62197ffe4c72276e72a936757d1a
2020-04-29 22:07:28 +00:00
Robert Horvath
d336f843bd Add PackageInstaller#uninstallExistingPackage
This new API allows an app to be uninstalled silently by any app holding
the DELETE_PACKAGES permission, as long as the app is installed in
another user so won't be fully removed from the device.

Bug: 149601842
Test: atest UninstallExistingPackageTest
Change-Id: I69fe4d1dd4e9da83574b431257f7be6d1ac8b2bb
2020-04-29 23:59:11 +02:00