Commit Graph

107441 Commits

Author SHA1 Message Date
Andrew Solovay
c2aaa2bb79 Merge "docs: Fixing broken Javadoc comments" into rvc-dev am: 9e2fa5042b am: 3839f1f669 am: 8ef5792ef0 am: ee5c2d45d6
Change-Id: Ib481085d1cda38b9d63bdc0a849ad904b68efc40
2020-05-05 21:48:45 +00:00
Andrew Solovay
ee5c2d45d6 Merge "docs: Fixing broken Javadoc comments" into rvc-dev am: 9e2fa5042b am: 3839f1f669 am: 8ef5792ef0
Change-Id: I3c3489d482f2dab0b2e2bf28046027cbfcdcf557
2020-05-05 21:33:38 +00:00
Andrew Solovay
3839f1f669 Merge "docs: Fixing broken Javadoc comments" into rvc-dev am: 9e2fa5042b
Change-Id: I126eb315f245c806829c3ea3bc3af199d9a3aecf
2020-05-05 21:10:16 +00:00
Andrew Solovay
9e2fa5042b Merge "docs: Fixing broken Javadoc comments" into rvc-dev 2020-05-05 20:55:50 +00:00
TreeHugger Robot
4392ceb67d Merge "Enable the settings_controller_loading_enhancement" into rvc-dev am: 8011ca6185 am: 89e150d8a5 am: a9bd04591e am: 63a8dc975c
Change-Id: I3bd663537d6a1f1b6f4a134f0edf00ee2972b974
2020-05-05 10:31:35 +00:00
TreeHugger Robot
a9bd04591e Merge "Enable the settings_controller_loading_enhancement" into rvc-dev am: 8011ca6185 am: 89e150d8a5
Change-Id: I7b5943bbc58e7e5951af10b9104295df353b5891
2020-05-05 09:48:11 +00:00
TreeHugger Robot
89e150d8a5 Merge "Enable the settings_controller_loading_enhancement" into rvc-dev am: 8011ca6185
Change-Id: I8ed68afc8805c10b78aea71e8829f5e5ebc2e45e
2020-05-05 09:34:19 +00:00
TreeHugger Robot
8011ca6185 Merge "Enable the settings_controller_loading_enhancement" into rvc-dev 2020-05-05 09:23:12 +00:00
Adam Bookatz
d0b3845cad Merge "Listener to watch op starts" into rvc-dev am: 316bc6ff66 am: 2d3310ec59 am: 911b6104c8 am: fa8147715d
Change-Id: Ief89629b6100e140d0d081f401a78c4c8ce40baf
2020-05-05 01:53:29 +00:00
Adam Bookatz
911b6104c8 Merge "Listener to watch op starts" into rvc-dev am: 316bc6ff66 am: 2d3310ec59
Change-Id: I81143dc94dd471f4fdc32ad5881d3416ccd267e4
2020-05-05 01:21:53 +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
Adam Bookatz
2d3310ec59 Merge "Listener to watch op starts" into rvc-dev am: 316bc6ff66
Change-Id: Iccb919632e7537e226f43e42cf5f44e5411b61dc
2020-05-05 01:05:02 +00:00
Adam Bookatz
316bc6ff66 Merge "Listener to watch op starts" into rvc-dev 2020-05-05 00:52:12 +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
8752446dab Merge changes from topic "immersive" into rvc-dev am: 8f4363a226
Change-Id: I1ebd2f8cb9a373931836f2b003baca53f4798a8e
2020-05-05 00:28:31 +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
Andrew Solovay
369f2eeaf9 docs: Fixing broken Javadoc comments
Two recent checkins broke the Javadoc (in both cases, an <h3> wasn't
properly closed). Made the fix by hand to the HTML output in
cl/309818465 but we need to make the corresponding change to
the Java source or it'll get reverted next time we update the reference
docs.

Staged to:

go/dac-stage/reference/android/content/pm/LauncherApps.PinItemRequest
go/dac-stage/reference/android/service/autofill/AutofillService

go/dac-stage/reference/kotlin/android/content/pm/LauncherApps.PinItemRequest
go/dac-stage/reference/kotlin/android/service/autofill/AutofillService

BUG: 155669442
Exempt-from-owner-approval: Docs-only change
Test: make ds-docs
Change-Id: I97be9550689544304dff276cf3c9406f9cd98408
2020-05-04 16:03:17 -07:00
Adam Bookatz
182862e595 Listener to watch op starts
Currently, there is
onOpNoted - tells listeners that noteOp has occurred
onOpActiveChanged - tells listeners that an op's 'active' state has
changed, i.e. that a successfull startOp or stopOp has happened

There was, however, no way of telling a listener that a startOp has
happened (regardless of whether it was successful). This cl introduces
it, via a OnOpStartedListener.

This is required by the ForegroundServiceAppOpSessionEnded atom,
which counts the number of accepted vs. rejected attempts, and
therefore also needs to know when a rejected start happened.

This cl also contains some cosmetic moving of code so that
startOperation() and noteOperationImpl() are almost
exactly parallel.

* Also *
This cl fixes a bug I discovered in stopWatchingNoted, in which
the callback wasn't fully removed. Consequently, if a callback
was unregistered and then re-registered, the re-registration would
mistakingly be ignored (in direct contradiction to the javadoc).

Test: atest UidAtomTests#testForegroundServiceAccessAppOp
Test: atest AppOpsStartedWatcherTest AppOpsActiveWatcherTest AppOpsNotedWatcherTest
Test: manually monitor: adb shell cmd stats print-logs && adb logcat -v uid -s statsd | grep "statsd  : {" | egrep '\(256\)'
Bug: 152800926
Change-Id: Icdb9edf6b2b7c5807b339c1aabb32e882190b071
2020-05-04 21:59:29 +00: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
Yuncheol Heo
02d3a8ad07 Notify the visibility change to update color views without control.
Previously, we've notified it only when we have the control.
But to update color views, we should notify it even when we have no control.

Bug: 154720832
Test: atest WindowInsetsPolicyTest
Test: make sure no regression on b/150195782, b/151425506
Change-Id: I44b88ddc206f36d8ef11dae9c1477739a185ff21
2020-05-04 14:36:28 -07:00
Jorim Jaggi
02fab899d6 Merge "Restore force relayout logic for apps targeting < R" into rvc-dev am: 98f012c304 am: 5706a132ab am: 0c321614b2 am: cd794c76f6
Change-Id: I0d10f160fd08a29b3d729b91b437ea818a817a21
2020-05-04 21:18:20 +00:00
Jorim Jaggi
0c321614b2 Merge "Restore force relayout logic for apps targeting < R" into rvc-dev am: 98f012c304 am: 5706a132ab
Change-Id: I4b8cf67320eb57955415d49397b5a115c50a0c00
2020-05-04 21:00:32 +00:00
Feng Cao
c357f974e4 Merge "Make autofill requested by augmented autofill service non-manual" into rvc-dev am: 98367aef11 am: 3767c8db8c am: 1eedaf79f3 am: 415c282d00 am: 832dd66790
Change-Id: I2233cbf918988c5bdc54278c67a05c19d97f2f0e
2020-05-04 20:51:39 +00:00
TreeHugger Robot
3cebf8e0c5 Merge "SurfaceControlViewHost: Let ViewRoot release control." into rvc-dev am: 1e15db9ce4 am: ca6c0c8075 am: 9e0b864391 am: 92113a466f am: 4f790a2865
Change-Id: I05da75d55070ce6f6d6137a7aa5ae8d0ddae4153
2020-05-04 20:50:59 +00:00
Jorim Jaggi
5706a132ab Merge "Restore force relayout logic for apps targeting < R" into rvc-dev am: 98f012c304
Change-Id: Ie9b58eb8cce9271e660ded65917c68038ff397c7
2020-05-04 20:50:18 +00:00
Jorim Jaggi
b4410c5e01 Merge "Restore force relayout logic for apps targeting < R" into rvc-dev am: 98f012c304
Change-Id: I53617d5f35e00cf69dd4e22cb8f5477cbe448ca1
2020-05-04 20:49:37 +00:00
Automerger Merge Worker
30319ca9f1 Merge "Merge "Fix IME visibility after lock screen" into rvc-dev am: fcaa5a8667 am: 36f7ed1238" into rvc-d1-dev-plus-aosp am: 6031d0c438 am: c80dc5c2ff
Change-Id: I88596c7b0202dd4dfdfddd5828f90d9ed1ae7a36
2020-05-04 20:47:19 +00:00
Feng Cao
832dd66790 Merge "Make autofill requested by augmented autofill service non-manual" into rvc-dev am: 98367aef11 am: 3767c8db8c am: 1eedaf79f3 am: 415c282d00
Change-Id: I42058e416f4d6f78d70b1e630cdd3d9804b0b608
2020-05-04 20:46:29 +00:00
TreeHugger Robot
4f790a2865 Merge "SurfaceControlViewHost: Let ViewRoot release control." into rvc-dev am: 1e15db9ce4 am: ca6c0c8075 am: 9e0b864391 am: 92113a466f
Change-Id: Ifd7c745761e776eb95e441d1382018fbb405bc62
2020-05-04 20:46:06 +00:00
Feng Cao
523694101f Merge "Make autofill requested by augmented autofill service non-manual" into rvc-dev am: 98367aef11 am: 6645794152
Change-Id: I98629829cbfc875dca6cf7713b9b16ecb0ebde93
2020-05-04 20:45:13 +00:00
TreeHugger Robot
6ba4391952 Merge "SurfaceControlViewHost: Let ViewRoot release control." into rvc-dev am: 1e15db9ce4 am: 37b29738f3
Change-Id: I0fc6aa65589dba538a6ef7faa030d0f0bf2f5bf3
2020-05-04 20:44:42 +00:00
Jorim Jaggi
98f012c304 Merge "Restore force relayout logic for apps targeting < R" into rvc-dev 2020-05-04 20:44:08 +00:00
Feng Cao
3767c8db8c Merge "Make autofill requested by augmented autofill service non-manual" into rvc-dev am: 98367aef11
Change-Id: I6b08fe0719dd6436f03a3443b8c98c1d9635bfeb
2020-05-04 20:35:00 +00:00
Feng Cao
6645794152 Merge "Make autofill requested by augmented autofill service non-manual" into rvc-dev am: 98367aef11
Change-Id: I22e2a9fdd1a9c9c4328725829aa1fddc96c29e85
2020-05-04 20:34:28 +00:00
Feng Cao
98367aef11 Merge "Make autofill requested by augmented autofill service non-manual" into rvc-dev 2020-05-04 20:30:01 +00:00
TreeHugger Robot
90a873fccb Merge "Fix IME visibility after lock screen" into rvc-dev am: fcaa5a8667 am: 36f7ed1238
Change-Id: I0f4dce3b625f782d844ce75f45a6d0ac98b839cb
2020-05-04 20:22:44 +00:00
TreeHugger Robot
37b29738f3 Merge "SurfaceControlViewHost: Let ViewRoot release control." into rvc-dev am: 1e15db9ce4
Change-Id: I5afb6173479b64cf7a289dceb4a69b5a172c1e21
2020-05-04 20:21:39 +00:00
TreeHugger Robot
ca6c0c8075 Merge "SurfaceControlViewHost: Let ViewRoot release control." into rvc-dev am: 1e15db9ce4
Change-Id: Iff7a5eda784c27f15c7f7bde80a9af1046599a40
2020-05-04 20:21:33 +00:00
TreeHugger Robot
1e15db9ce4 Merge "SurfaceControlViewHost: Let ViewRoot release control." into rvc-dev 2020-05-04 20:19:04 +00:00
TreeHugger Robot
9ff3623afe Merge "Fix IME visibility after lock screen" into rvc-dev am: fcaa5a8667
Change-Id: Ib8e11565212478d69818dd3fed8b09083c3295e8
2020-05-04 20:16:33 +00:00
TreeHugger Robot
36f7ed1238 Merge "Fix IME visibility after lock screen" into rvc-dev am: fcaa5a8667
Change-Id: I8bc9024df8b5346263bb13576b46c0b0c70b890d
2020-05-04 20:15:51 +00:00
TreeHugger Robot
fcaa5a8667 Merge "Fix IME visibility after lock screen" into rvc-dev 2020-05-04 20:00:53 +00:00
Feng Cao
08abd46f61 Make autofill requested by augmented autofill service non-manual
* The use case of this API was for augmented autofill service to send
  updated suggestions
* Before this change, the dynamic autofill request by the augmented
  autofill service only triggers a manual request, but this has caused
  some regular autofill providers to always some suggestion due to
  their special handling for the manual request. Thus the augmented
  autofill service will not receive the request.
* With this cahnge, the request cancels the previous session to start a
  new session, and also it triggers a regular request (non-manual) so
  the autofill provider will not special handle the request.

Test: atest CtsAutoFillServiceTestCases
Bug: 154543563

Change-Id: I233125a6070394a102ad40b9a50b98a43d952b9f
2020-05-04 11:36:21 -07:00
Robert Carr
8644050a99 SurfaceControlViewHost: Let ViewRoot release control.
In SurfaceControlViewHost#release we currently immediately
release mSurfaceControl and then call ViewRootImpl#doDie.
However doDie executes on a handler so the ViewRootImpl may try
and use the SurfaceControl between posting and executing
the message. Actually this release is totally erroneous,
mSurfaceControl is the same object used by the ViewRootImpl
and the ViewRootImpl will release it when processing
doDie().

Bug: 155575445
Test: Existing tests pass
Change-Id: I6a4bf41ba38636ff884aa73d2653b1bab6958b00
2020-05-04 11:23:29 -07:00
Leon Scroggins
fdc7ce1e72 Merge "Move Canvas compatibility settings into Compatibility class" 2020-05-04 18:01:42 +00:00
Leon Scroggins III
9a49427384 Move Canvas compatibility settings into Compatibility class
Bug: 155422223
Test: make

Follow on to Ie7172fb93364a1e04ab844b8fa64887bf9d8b005. Remove @hidden
APIs on Canvas - instead call setCompatibilityVersion from the
Compatibility class already in the Java package. This is a step towards
moving Canvas into a mainline module. Note that this means these are set
when the application is bound, rather than when the first View is
created.

Change-Id: I3f73d77ba7351a6cb653dd550210698c6482e1bb
2020-05-04 18:00:25 +00:00
Kevin Hufnagle
8847dfe1b9 Merge "docs: Clarify class definition of Settings.Secure" into rvc-dev am: a18b3ea71b am: a2894097ce am: 9bc754be17 am: 303993ba0f
Change-Id: I888932e67ffc6592c5a3a68e2eeb7769424a3eac
2020-05-04 17:34:57 +00:00
Kevin Hufnagle
da9b8a3876 Merge "docs: Clarify class definition of Settings.Secure" into rvc-dev am: a18b3ea71b
Change-Id: I9e2cbea57055105df82d53817a4d0a623c071b65
2020-05-04 17:08:21 +00:00
Kevin Hufnagle
9bc754be17 Merge "docs: Clarify class definition of Settings.Secure" into rvc-dev am: a18b3ea71b am: a2894097ce
Change-Id: Ieac093a17f5ad942b696a04d21fbc5086b0b622a
2020-05-04 17:08:03 +00:00
Kevin Hufnagle
a2894097ce Merge "docs: Clarify class definition of Settings.Secure" into rvc-dev am: a18b3ea71b
Change-Id: I8fd507298e0ce3165de838e919f3f00dbb836849
2020-05-04 17:07:11 +00:00