Commit Graph

31580 Commits

Author SHA1 Message Date
Chris Li
188dd133c3 Merge "Migrate DisplayContent.mOverlayContainers to DisplayArea" 2020-05-21 00:21:17 +00:00
Chris Li
27284de40a Migrate DisplayContent.mOverlayContainers to DisplayArea
(1/n DisplayArea Sibling Roots)

Instead of adding magnification window to the overlay containers in
DisplayContent, move it to be part of the policy created display
hierarchy.

DA.Root
   - DA for FEATURE_WINDOWED_MAGNIFICATION
      - BELOW_TASKS
      - TDA
      - ABOVE_TASKS (below TYPE_ACCESSIBILITY_MAGNIFICATION_OVERLAY)
   - DA.Tokens for TYPE_ACCESSIBILITY_MAGNIFICATION_OVERLAY
      - Magnification overlay windows
   - ABOVE_TASKS (DA.Tokens's for layers above
     TYPE_ACCESSIBILITY_MAGNIFICATION_OVERLAY)

Fix: 156424590
Test: manual: magnification and screen rotation
Test: go/wm-smoke (manual)
Change-Id: I959c0a882b0a0e9a9dbb44ad62a3c65c1dfe3c06
2020-05-20 13:44:33 -07:00
TreeHugger Robot
5804ce6725 Merge "Change implementation of VibrationEffect scaling" 2020-05-20 14:50:38 +00:00
TreeHugger Robot
fc6d07c7f5 Merge "Mark TelecomManager#isRinging as a TestApi" 2020-05-19 23:07:11 +00:00
Hall Liu
577a00745e Merge "Rename addServiceAnnouncement-related methods" 2020-05-19 22:35:16 +00:00
Hall Liu
88a0994a76 Mark TelecomManager#isRinging as a TestApi
Bug: 150320750
Test: atest BackgroundCallAudioTest
Change-Id: I048960feb97cd6cf081056ee649e7ea8dacdc8e3
2020-05-19 13:36:18 -07:00
Chris Ye
535a128dc1 Change InputWindowInfo::isTrustedOverlay() to be permission and flag based
Add private flag to WindowManager.LayoutParams. If the flag is set,
check if caller has INTERNAL_SYSTEM_WINDOW permission.

Bug: 155781676
Test: atest WindowManagerServiceTests
Change-Id: I70151697cc01e8427129f951f0ebadc4805b2d56
2020-05-19 10:51:56 -07:00
Hall Liu
6158137cf2 Rename addServiceAnnouncement-related methods
Address feedback on the API

Fixes: 155926142
Test: CTS
Change-Id: I69e17faf4d09ab686fdd97975bc7f069597b87b3
2020-05-18 14:52:18 -07:00
TreeHugger Robot
f750b873ae Merge "Formalize DeviceIdle's exitIdle call." 2020-05-18 19:14:49 +00:00
Dorin Drimus
2ebf90de55 Merge "Attest device base properties" am: 547aeb27e8 am: f078d49979 am: c5a547bb2b am: 9acc5b49d5 am: d2c9212ff3
Change-Id: If6f974dae2bfb94e34e1c03833e6eca000f5774e
2020-05-18 10:46:44 +00:00
Dorin Drimus
c5a547bb2b Merge "Attest device base properties" am: 547aeb27e8 am: f078d49979
Change-Id: Icbca4968438f659bf3d636100b5b172e63eaefb2
2020-05-18 10:13:21 +00:00
Kweku Adams
22d444e406 Formalize DeviceIdle's exitIdle call.
In preparation for DeviceIdle mainlining, we have to define stable APIs
for other modules and the rest of the system to use. This introduces a
stable API for the exitIdle call.

Bug: 142281756
Bug: 142393582
Test: atest NotificationManagerTest
Test: atest PhoneWindowManagerTest
Change-Id: I79ea2b34d9abb2bb44575e98cc923d6383419230
2020-05-15 11:58:39 -07:00
Lais Andrade
fcd87daee0 Change implementation of VibrationEffect scaling
Use a scale factor and fixed Stevens' coefficient value for gamma
correction. Scale factors within [0,1) will scale down the effect
intensity/amplitude, and values larger than 1 will scale it up.
The scale up function also makes sure it never scales amplitude
above MAX_AMPLITUDE, or relative intensity value above 1.

New implementation can be visualized here:
https://colab.corp.google.com/drive/1rGCBWXyUe7NePaSLnO-qkeFw8h0DkWJA?usp=sharing

This cl also moves the #resolve and #scale methods to superclass
VibrationEffect (using @hide annotation). This will force every new
effect to also define both behaviors (or explicitly ignore them),
and thus avoid cases where the VibratorService skips scaling new
effects by accident.

Fix: 154712843
Test: atest FrameworksCoreTests:VibrationEffectTest
Change-Id: Ib46e609663aec60a49a8827c90df144caaf7c926
2020-05-15 13:37:45 +01:00
Dorin Drimus
9d5b804ea3 Attest device base properties
Add API to allow inclusion of device base properties to the
attestation certificate generated with a Key in Keystore.

Test: atest KeyAttestationTest
Bug: 152945378

Change-Id: Iaf282709f800501aa4c988ebf51cf3238583f9b6
2020-05-15 07:56:05 +00:00
Dmitri Plotnikov
81bc3bd90e Add SystemApi(MODULE_LIBRARIES) to AtomicFile API
Cleaning up the API in the process

Test: atest android.jobscheduler.cts
Bug: 142281756

Change-Id: Ia52dc6fda867f3015ecbf068a0a69cc0f17cd92a
2020-05-14 20:29:18 +00:00
Hall Liu
18fd7bd9df Merge "Add READ_PRIVILEGED_PHONE_STATE to TestApi" 2020-05-14 01:30:25 +00:00
TreeHugger Robot
350df5c815 Merge "Controls API - Flag controls support" into rvc-dev am: 897187dcfa am: 166c228af4 am: b8a63260a2 am: edba1d16af
Change-Id: Iabb982f2724ac351a02b08e9b0a9a0deec90a638
2020-05-13 21:51:16 +00:00
TreeHugger Robot
b8a63260a2 Merge "Controls API - Flag controls support" into rvc-dev am: 897187dcfa am: 166c228af4
Change-Id: I71c2e83341b79181340f4e2cf93c33d64b3e97ea
2020-05-13 21:11:40 +00:00
TreeHugger Robot
3c109b83a7 Merge "Controls API - Flag controls support" into rvc-dev am: 897187dcfa
Change-Id: Ic1b671de26b28c7e4624be91ec130142a0c59cb7
2020-05-13 20:57:37 +00:00
Matt Pietal
9788fd4afd Controls API - Flag controls support
Add a package manager flag so that apps can programmatically query
whether the device have system interface to support the Controls API

Bug: 156096063
Test: manual
Change-Id: I2dab2ecb762b59308c51615137f89733ff42caeb
2020-05-13 14:11:34 -04:00
Automerger Merge Worker
914dda4a2d Merge "Merge "Deprecate WebSettings.setAppCacheEnabled and related." into rvc-dev am: 291cf5d293 am: 02027c3a3d" into rvc-d1-dev-plus-aosp am: 2bbfc85b2d am: dd00962dd5
Change-Id: Id526e14c3702ac598234d5d285793e3e92921f76
2020-05-12 20:49:15 +00:00
TreeHugger Robot
02027c3a3d Merge "Deprecate WebSettings.setAppCacheEnabled and related." into rvc-dev am: 291cf5d293
Change-Id: I14d91abc884fecfc0c92c7fd4ffac56324de79a6
2020-05-12 19:28:29 +00:00
Automerger Merge Worker
b06463a002 Merge "Merge "Create TestApi for simulating a Data Stall on ConnectivityService." am: 655b811c3d am: 63d8b0ef99" into rvc-dev-plus-aosp am: abd8340a70 am: 7775ebea4a am: f6ea431f94
Change-Id: I287a77da7cfc176a4f159318d8847ba65c093da4
2020-05-12 18:48:04 +00:00
Cody Kesting
89ad5568da Merge "Create TestApi for simulating a Data Stall on ConnectivityService." am: 655b811c3d am: 63d8b0ef99
Change-Id: I17839cd271d984f76c203889293cc51375bb8bcb
2020-05-12 17:27:09 +00:00
Cody Kesting
655b811c3d Merge "Create TestApi for simulating a Data Stall on ConnectivityService." 2020-05-12 16:52:35 +00:00
Torne (Richard Coles)
76752c8f02 Deprecate WebSettings.setAppCacheEnabled and related.
Chrome will be removing the Application Cache API in future; deprecate
the APIs in WebView which allow Android apps to enable it.

Test: make offline-sdk-docs
Fixes: 156266477
Change-Id: I0feff5289706b5f7985013a18d9cf0e3e6b3ba78
2020-05-12 11:57:30 -04:00
Hall Liu
ca12f926c0 Add READ_PRIVILEGED_PHONE_STATE to TestApi
Add READ_PRIVILEGED_PHONE_STATE to TestApi in order to support
SplitPermissionsSystemTest.

Bug: 156297292
Test: atest SplitPermissionsSystemTest
Change-Id: I67520ba9f8bf25b759f6552a332bdebf67f4c7e6
2020-05-11 17:27:35 -07:00
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
Jack Yu
de8b8c39e2 Added a new capability for temporarily unmetered network.
Added a new network capability TEMOPORARILY_NOT_METERED to support
the case that a network can temporarily become unmetered. This
allows carriers to deploy unmetered 5G network. When devices
camp on 5G network, this capability will be dynamically added
to the network and will be removed once leaving 5G coverage.

Bug: 153081494
Test: Manual
Change-Id: I10e26cb0852e67f614e7b9c4e49f95e078602e21
Merged-In: I10e26cb0852e67f614e7b9c4e49f95e078602e21
2020-05-06 13:13:45 -07: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
376b0200b7 Merge "Add isDreaming method to DreamManager" into rvc-dev am: 95f8aba25e
Change-Id: Iff2e5e2cdd023e97665508669b74594b0065800a
2020-05-06 08:40:11 +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