Commit Graph

104195 Commits

Author SHA1 Message Date
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
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
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
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
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
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
98367aef11 Merge "Make autofill requested by augmented autofill service non-manual" into rvc-dev 2020-05-04 20:30:01 +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
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
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
a18b3ea71b Merge "docs: Clarify class definition of Settings.Secure" into rvc-dev 2020-05-04 17:03:25 +00:00
Sally Yuen
73369ee1da Merge "Add triggering the accessibility shortcut as a system action" into rvc-dev am: a2172bb23d
Change-Id: I3ac0eef0b1a309ada745d4e8cb2e4ce450323351
2020-05-04 16:20:23 +00:00
Sally Yuen
a2172bb23d Merge "Add triggering the accessibility shortcut as a system action" into rvc-dev 2020-05-04 16:07:34 +00:00
Jorim Jaggi
653828d09e Restore force relayout logic for apps targeting < R
Test: Open IME in Telegram
Fixes: 153832271
Change-Id: I0c26bbaeb22b06718054fccdec0b550129ccecf8
2020-05-04 17:01:09 +02:00
Hungyen Weng
ea25bab747 Merge "Revert "BluetoothProfileConnecter now calls the ServiceListener'..."" into rvc-dev am: 1c85c4501b
Change-Id: If2434bd41589e2a300654b4cb46c9445242f9476
2020-05-04 07:04:26 +00:00
Hungyen Weng
1c85c4501b Merge "Revert "BluetoothProfileConnecter now calls the ServiceListener'..."" into rvc-dev 2020-05-04 06:51:08 +00:00
Hungyen Weng
ba5692ea72 Revert "BluetoothProfileConnecter now calls the ServiceListener'..."
Revert submission 11348591-btmap-close-gts

Reason for revert: Droidcop reverted the change due to test failure, Test failed. https://android-build.googleplex.com/builds/tests/view?invocationId=I05500004181087103&testResultId=TR42507671126333727

Reverted Changes:
I324b4ea66:BluetoothProfileConnecter now calls the ServiceLis...
I1427f1a86:Add GTS test for BluetoothMap#close

Bug: 155587865

Change-Id: I9a2645c7bbaec9fdf0c6f5972b08ba70cfe78741
2020-05-04 04:53:46 +00:00
Lucas Dupin
926a823c27 Merge "Move media setting to a constant, disabling it" into rvc-dev am: 2d8266cdc4
Change-Id: I5399fb255df959e6308fe99c48d293ea67b74857
2020-05-04 04:07:54 +00:00
Lucas Dupin
2d8266cdc4 Merge "Move media setting to a constant, disabling it" into rvc-dev 2020-05-04 03:59:28 +00:00
Sunny Shao
8bdf700088 Enable the settings_controller_loading_enhancement
- Enable some settings pages to use paralleled loading approach.

Bug: 137558156
Test: compilation
Change-Id: I7302de2413c14a7573adf2f9949ac28866557e2f
2020-05-04 08:44:15 +08:00
Svet Ganov
8f439f08f9 Updating platform SDK version for R am: 38cd221d81
Change-Id: I28edde22542b8fd44a0633b91be3131a7ff1144d
2020-05-03 23:16:16 +00: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
Rahul Sabnis
d3d0f2a76d Merge "BluetoothProfileConnecter now calls the ServiceListener's onServiceDisconnected method after unbinding the service" into rvc-dev am: 248896bf98
Change-Id: I4d661b90c146c389679d5e241d3cc8e2c76e00a7
2020-05-03 05:32:58 +00:00
Rahul Sabnis
248896bf98 Merge "BluetoothProfileConnecter now calls the ServiceListener's onServiceDisconnected method after unbinding the service" into rvc-dev 2020-05-03 05:20:48 +00:00
Steven Thomas
a3fa60c689 Merge "Split refresh rate range into two ranges" into rvc-dev am: 5724666853
Change-Id: I3ab1225ff065704a3c560a487ff0a4e9781960d7
2020-05-02 02:24:46 +00:00
Steven Thomas
5724666853 Merge "Split refresh rate range into two ranges" into rvc-dev 2020-05-02 02:12:39 +00:00
Andrew Sapperstein
6fd486eeec Merge changes from topic "cherrypick-ctor-refs-03y8i58ine" into rvc-dev am: 975ca816ec
Change-Id: I40f61d6aefe3e9dd74901513c4638159d8b44ecf
2020-05-02 00:29:38 +00:00
Andrew Sapperstein
1ba3a59941 Fix broken @see tags in public documentation. am: 8fe35e5f21
Change-Id: Ie98055acbc2afeb2c0a8f578161bde02d9dc615d
2020-05-02 00:29:34 +00:00
Garfield Tan
9c23045bbb Merge changes I702d89c9,Id7bfc3e6 into rvc-dev am: abe5a4f3f5
Change-Id: I8e3c2df712af8c49b76f19595b2d789a9805f128
2020-05-02 00:28:07 +00:00
Andrew Sapperstein
975ca816ec Merge changes from topic "cherrypick-ctor-refs-03y8i58ine" into rvc-dev
* changes:
  Update inner class constructor refs to use proper syntax.
  Fix broken @see tags in public documentation.
2020-05-02 00:21:33 +00:00
Garfield Tan
abe5a4f3f5 Merge changes I702d89c9,Id7bfc3e6 into rvc-dev
* changes:
  Remove TaskRecordFactory.
  Notify when task changes requested orientation.
2020-05-02 00:10:29 +00:00
Darryl Johnson
c7a318285d Merge "Don't override activity display adjustments with app config" into rvc-dev am: ceb2befc1b
Change-Id: I04aa93179712468a90c07b68ba2c72dc5dda7721
2020-05-01 23:26:24 +00:00
Darryl Johnson
ceb2befc1b Merge "Don't override activity display adjustments with app config" into rvc-dev 2020-05-01 23:05:10 +00:00
Rahul Sabnis
ee31c78cb8 BluetoothProfileConnecter now calls the ServiceListener's
onServiceDisconnected method after unbinding the service

Bug: 155120232
Test: atest BluetoothHostTest#testMapClose
Change-Id: I324b4ea6654261eb67d5ec184f6b3456ba3d1aa4
2020-05-01 15:39:47 -07:00
Feng Cao
7783a9a800 Merge "Support receiving touch event in the inline suggestion view" into rvc-dev am: 4e20f2b97c
Change-Id: Ie6a8e6bc395f5d709d7191d6616eab069f7a352c
2020-05-01 22:23:46 +00:00
Feng Cao
4e20f2b97c Merge "Support receiving touch event in the inline suggestion view" into rvc-dev 2020-05-01 22:07:39 +00:00
sallyyuen
40dd559f9e Add triggering the accessibility shortcut as a system action
Holding down the volume keys triggers the shortcut, making it a
system-level action.

Bug: 154950547
Test: Tested with TalkBack
Change-Id: I2aac0162047f7900103eab472ff649d77836ca93
2020-05-01 15:01:55 -07:00
Winson Chiu
80fb4ca67e Merge "Add skip functionality to package parsing" into rvc-dev am: 2728af853a
Change-Id: I18807bec3194ba59bcf3b3895aed69d15cfb7e92
2020-05-01 20:24:01 +00:00
Winson Chiu
2728af853a Merge "Add skip functionality to package parsing" into rvc-dev 2020-05-01 20:20:49 +00:00
Garfield Tan
afa0de8a91 Notify when task changes requested orientation.
This allows listener know task's orientation request change before
handling display rotation through IDisplayWindowRotationController if
they can register a local TaskStackListener.

Bug: 150409355
Test: atest WmTests:TaskStackChangedListenerTest#testNotifyTaskRequestedOrientationChanged
Change-Id: Id7bfc3e63329ce26d454b7e9c143e084e04dd365
2020-05-01 12:52:46 -07:00