* 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
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
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
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
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
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
Introduces new test api to access the background view of status bar and
navigation bar.
Bug: 154720832
Test: atest WindowInsetsPolicyTest
Change-Id: If38d3f57edfbb2631d4c1e47ed5347a332edacfb
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
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
* 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)
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
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