Commit Graph

492745 Commits

Author SHA1 Message Date
Nathan Harold
dbe2b4c8a9 Merge changes from topic "servicelocation" am: 63ced6b508 am: 0b41b930a8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1355808

Change-Id: I1992b4e1c9d7c2cf442515b4c397a9975478df85
2020-07-09 17:34:30 +00:00
Nathan Harold
b169887af7 Add Location Checks on CellLocation#requestLocationUpdate am: 32deda2df3 am: 3b7647b8d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1355807

Change-Id: I44159f46bb114dcc181e4974fabcc22c881b5395
2020-07-09 17:34:25 +00:00
Nathan Harold
0b41b930a8 Merge changes from topic "servicelocation" am: 63ced6b508
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1355808

Change-Id: Ib08f1ddac156e789aacc9420ecf4e51a5e5cea5a
2020-07-09 17:25:48 +00:00
Nathan Harold
3b7647b8d6 Add Location Checks on CellLocation#requestLocationUpdate am: 32deda2df3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1355807

Change-Id: I39b0cc26bbe2f84e065f0f3b7080aabfd14c7606
2020-07-09 17:25:46 +00:00
Steven Moreland
cd5a2a3037 Merge "HwBinder.setTrebleTestingOverride" am: 3804ae082c am: 8b6e909cbf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1358164

Change-Id: Ia8da014470547dc469b2de12700aa57fea4c9af1
2020-07-09 17:19:18 +00:00
Nathan Harold
63ced6b508 Merge changes from topic "servicelocation"
* changes:
  Remove Support for Deprecated Location Updating
  Add Location Checks on CellLocation#requestLocationUpdate
2020-07-09 17:15:07 +00:00
Adrian Roos
4ffd88f7a3 Merge "Fix IME flicker: move hiding the surface into the control target" into rvc-dev am: 895a2e626a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12070682

Change-Id: I2d7c590f30beb36c397231d55cd98fabee4f3597
2020-07-09 17:12:40 +00:00
Steven Moreland
8b6e909cbf Merge "HwBinder.setTrebleTestingOverride" am: 3804ae082c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1358164

Change-Id: I40185eae30a1304e8602657289a64a7b235c32a7
2020-07-09 17:06:45 +00:00
Adrian Roos
895a2e626a Merge "Fix IME flicker: move hiding the surface into the control target" into rvc-dev 2020-07-09 17:02:15 +00:00
Steven Moreland
3804ae082c Merge "HwBinder.setTrebleTestingOverride" 2020-07-09 16:55:43 +00:00
TreeHugger Robot
c5c10519d3 Merge "Prevent system reset staged installer bypass flag unexpactly" into rvc-dev am: 809bf93563
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12106109

Change-Id: I092e2b160d4b152915c04f699d930d5b36be184f
2020-07-09 16:48:31 +00:00
TreeHugger Robot
809bf93563 Merge "Prevent system reset staged installer bypass flag unexpactly" into rvc-dev 2020-07-09 16:44:52 +00:00
TreeHugger Robot
f5727d3efd Merge "ViewRootImpl: Call surface destroy callback after layout pass" into rvc-dev am: 276abcb6b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12108557

Change-Id: I5807484130f8f6921aad17bba5c42b9aa308c03d
2020-07-09 16:44:25 +00:00
TreeHugger Robot
276abcb6b3 Merge "ViewRootImpl: Call surface destroy callback after layout pass" into rvc-dev 2020-07-09 16:32:33 +00:00
Nandana Dutt
de5e89eb6b DO NOT MERGE Bump up the max persisted uri grants am: 5a293b8eb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12105684

Change-Id: I04508947fb4ed1e8ce067cb743d75323c619c2fa
2020-07-09 13:43:03 +00:00
Adrian Roos
2260ce4daf Fix IME flicker: move hiding the surface into the control target
Fixes a flicker that occurs during transitions between windows.

This happens for two reasons:

1.) Control is immediately transferred to the new window, and the
    previous window didn't get a chance to play the animation.

    This is addressed by adding logic to keep control on the
    exiting window for the duration of the transition - similar to
    what we do with the target for z-ordering purposes.

2.) Upon the input connection being severed, the InputMethodService
    immediately hides its window, preventing any animations whenever
    the input connection changes

    This is addressed by moving hiding of the surface into the
    controlling windows - where upon receiving control, we now
    trigger removal of the IME surface if we don't show it.

Additionally:

- Now ensures that any requests from the ImeInsetsSourceConsumer
  ensure that they come from the window that is currently served
  by IMM.

- Removes the transparancy clause from isImeTargetFromDisplayContentAndImeSame
  to match the updated IME target computation in DisplayContent in [1].

[1]: Iedd5f7407926167f4891ce9b7e9a79e22751e668

Fixes: 153145997
Fixes: 150902448
Test: atest WindowInsetsAnimationControllerTests
Test: atest DisplayContentTests InsetsSourceConsumerTest
Test: Open app with IME, press HOME button, verify IME smoothly animates away
Test: Open Messages, open a thread, open IME. Click search icon, verify IME opens in the search activity
Change-Id: I4910c2a06cc67b0470477b245fc1de54b75f10f9
2020-07-09 14:46:55 +02:00
Nandana Dutt
5a293b8eb2 DO NOT MERGE Bump up the max persisted uri grants
With scoped storage, more apps will need to rely on
SAF to get access to non-media files. Allow more grants
by bumping up the limit to 512.

BUG: 149370983
Test: m

Change-Id: I26ae0ff660ecfb846a06fca00de7c1ad41ace2b2
2020-07-09 12:10:51 +00:00
Orion Hodson
4ce69495c3 Merge "Ignore System Server dynamic dex files during A/B preopt" into rvc-dev am: 1c2a704f10
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12113615

Change-Id: Ib9b4f83ae5aa4c2bf8daeb9f861f5a518e0a3a83
2020-07-09 08:45:42 +00:00
Orion Hodson
1c2a704f10 Merge "Ignore System Server dynamic dex files during A/B preopt" into rvc-dev 2020-07-09 08:30:44 +00:00
Treehugger Robot
24c414d9e5 Merge "Add debug log for set/remove active device." am: cbb4cd1f8c am: 1466c82f13
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1351257

Change-Id: I55b4b2f1296628228d36ed4259f08178b1a01d56
2020-07-09 03:14:48 +00:00
Treehugger Robot
1466c82f13 Merge "Add debug log for set/remove active device." am: cbb4cd1f8c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1351257

Change-Id: If37c6b4ea4cbca9b14366d7621c14622585f42b7
2020-07-09 03:03:35 +00:00
Treehugger Robot
cbb4cd1f8c Merge "Add debug log for set/remove active device." 2020-07-09 02:47:31 +00:00
Calin Juravle
1d3de14041 Ignore System Server dynamic dex files during A/B preopt
System Server dex files has a special dexopt path while the
OTA service uses a PackageDexOptimizer backdoor which breaks
the assumptions.

Ignore any file loaded by system server until we update the
OTA service to use the proper PMS dexopt paths.

Test: adb shell; /system/bin/otapreopt_script 1
Bug: 160735835
Change-Id: Ic3d0a3127862c99c7e29ce552f6d89c248df1d0c
2020-07-08 18:50:35 -07:00
Mark Chien
eebb20887b [automerger skipped] Merge "Skip testPhysicalEthernet if the test run adb over network" into rvc-dev am: a973bf1a56 -s ours
am skip reason: Change-Id I57d365d33316881c50c3bf7fd1c98926d10842d3 with SHA-1 959722f93a is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12105761

Change-Id: Id285ac8febcc062375bda7c95ba824dc9dd4d3bf
2020-07-09 00:39:33 +00:00
Mark Chien
a973bf1a56 Merge "Skip testPhysicalEthernet if the test run adb over network" into rvc-dev 2020-07-09 00:31:53 +00:00
Selim Cinek
1eb98bc467 Merge "Made the qs scroll view not important for accessibility" into rvc-dev am: 27b403d4c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12111594

Change-Id: Ib584d1f22468388deecce3576232ebdc7a998df2
2020-07-08 23:21:05 +00:00
Selim Cinek
27b403d4c8 Merge "Made the qs scroll view not important for accessibility" into rvc-dev 2020-07-08 23:09:04 +00:00
Ahaan Ugale
eea21c14bd Merge "Change to drop down when the inline suggestions don't be shown in IME." into rvc-dev am: 5fa3f11717
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12066145

Change-Id: Id16084ee302ec3f6714daac3a6e8b50891ed1b0c
2020-07-08 22:56:10 +00:00
Ahaan Ugale
5fa3f11717 Merge "Change to drop down when the inline suggestions don't be shown in IME." into rvc-dev 2020-07-08 22:45:28 +00:00
Hall Liu
df2b85df44 Merge "Add telecom command to stop block suppression" into rvc-dev am: f75aef41e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12108551

Change-Id: I50579e140211c9c3d427df5746b338dac15e92df
2020-07-08 22:28:10 +00:00
Hall Liu
f75aef41e3 Merge "Add telecom command to stop block suppression" into rvc-dev 2020-07-08 22:15:43 +00:00
Selim Cinek
ed68763640 Made the qs scroll view not important for accessibility
It was showing up as an unlabeled element, but can't usually
be scrolled anyway. And when it's scrolled it can still be performed
using talkback.

Fixes: 160329869
Test: enable talkback, drag down notification panel
Change-Id: Iaf4785213c58cb9efeb19aff4c164f78cdacfdab
2020-07-08 14:34:28 -07:00
Patrick Baumann
7719b5644b Merge "Fixes component-based visibility recompute" into rvc-dev am: e505016e9b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12099329

Change-Id: If541087ede76594ce90a4179013e37a2d93c6586
2020-07-08 20:51:26 +00:00
Patrick Baumann
e505016e9b Merge "Fixes component-based visibility recompute" into rvc-dev 2020-07-08 20:42:22 +00:00
Ned Burns
c5b199e721 Merge "Collapse shade on ACTION_CANCEL (sometimes)" into rvc-dev am: aefe277271
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12100345

Change-Id: I971130b59614a33130f5237e71cd86896281c692
2020-07-08 20:26:12 +00:00
Ned Burns
aefe277271 Merge "Collapse shade on ACTION_CANCEL (sometimes)" into rvc-dev 2020-07-08 20:14:14 +00:00
Vishnu Nair
019e08fdbb ViewRootImpl: Call surface destroy callback after layout pass
If a requestLayout happens on a child view after the measure
pass, before the layout pass then the child view will not layout.
This can happen if a view calls requestLayout during measure
or during SurfaceView surface destroyed callback.

This fix addresses the second scenario by moving the callback
to after the layout pass.

Bug: 159183008
Test: Repro steps in bug
Test: go/wm-smoke
Change-Id: Ie2794a3751c99cabf6e07445c91159e35eeb1729
2020-07-08 12:44:47 -07:00
TreeHugger Robot
1b41bd753f Merge "Fix customizer state" into rvc-dev am: 3aa9980879
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12099421

Change-Id: Ibf2d96facd2511ca7ac5ef7313ea8aa8d6877281
2020-07-08 18:55:35 +00:00
TreeHugger Robot
3aa9980879 Merge "Fix customizer state" into rvc-dev 2020-07-08 18:46:17 +00:00
Hall Liu
b5d4decf24 Add telecom command to stop block suppression
Add a Telecom command to stop the number blocking suppression that
happens after an emergency call.

Bug: 158798240
Fixes: 160667708
Test: atest CtsTelecomTestCases
Change-Id: I122de1962fb6aa48a3092c2aa323dcbdcbb8f42e
2020-07-08 11:09:26 -07:00
Steven Moreland
5f9914e6b1 HwBinder.setTrebleTestingOverride
To replace usages of environment variable TREBLE_TESTING_OVERRIDE which
is problematic for some clients using setenv in a multi-threaded
environment.

Bug: 156668058
Test: hidl_test_java
Change-Id: I7f7c51b9cfb01a81941154dc406a599cc6edd151
2020-07-08 18:03:34 +00:00
Charles Chen
8d53c79a02 Merge "Fix NPE when invoking Context#isUiContext" into rvc-dev am: 5c25605da0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12105622

Change-Id: Ic5670956e2cec2fd6e63a9d0e6c4fa86f2ec991e
2020-07-08 17:59:55 +00:00
Charles Chen
5c25605da0 Merge "Fix NPE when invoking Context#isUiContext" into rvc-dev 2020-07-08 17:46:09 +00:00
lpeter
a383f339de Change to drop down when the inline suggestions don't be shown in IME.
The current implementation has a problem where:
In the autofill side, there can be multiple autofill sessions existed
at the same time. But in the IME side, there is always only one
InlineSuggestionSession at any given time. It will cause the previous
autofill session to fail communication with IME.

It would better change to drop down UI when the autofill inline
suggestions don't be shown in IME.

How to reproduce this issue:
To add an input field with autofillable into the authentication activity
of InlineFillService. To tap on the input field of the authentication
activity during the authentication flow. After completing the
authentication, the inline suggestions won't be shown in IME.

BTW, if the input field is marked as non-autofillable, this issue won't
occur.

Manual verification:
1.Tested this patch with InlineFillService and it worked well.
2.Feng also helped to test this patch with the webview
(sort of randomly), and didn't find any broken case

Bug: 158877106
Test: atest CtsInputMethodTestCases
Test: atest CtsAutoFillServiceTestCases
Test: new CTS test Ie1d9055b0eabfcaa00861869467be8dcee25833e
Test: manual verification with InlineFillService
Test: Feng also helped to test this patch with the webview
Change-Id: Ib06edd823fa4478f34362164f3f7dd3544e51705
2020-07-08 17:40:00 +00:00
Ned Burns
7c6dd3d568 Collapse shade on ACTION_CANCEL (sometimes)
As of ag/11546928, the framework emits an ACTION_CANCEL when the
proximity sensor turns off the screen, not an ACTION_UP. Previously, we
always expanded the shade in response to an ACTION_CANCEL. However,
after this change, this caused Dialer users to end up with an expanded
shade after putting the phone to their face, making it easy to
face-dial their notifications. This CL changes the behavior to put the
shade back to where it was when the gesture started -- either expanded
or closed.

Fixes: 155362798
Test: manual
Change-Id: I2d11d9f03bfe1e905028a640e2eb871d32e37248
2020-07-08 13:20:52 -04:00
Steven Moreland
6a9695953d Merge "HIDL Java: DeadObjectException" am: 628198a90f am: d16ad56f35
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1355810

Change-Id: Ie426df5c3ce20df14b0820daafe5d72a959b2e8e
2020-07-08 17:07:04 +00:00
Steven Moreland
d16ad56f35 Merge "HIDL Java: DeadObjectException" am: 628198a90f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1355810

Change-Id: I95606f04b8e10c30e9af2ce23b4292457b873ec6
2020-07-08 16:55:32 +00:00
Nikita Dubrovsky
cf4e0dc46b Merge "Change cursor drag threshold from 30 to 45 degrees from vertical" into rvc-dev am: f44a60bd69
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12052997

Change-Id: Ie8a3eee8e2030bb429531d0f13df4302d4908072
2020-07-08 16:46:34 +00:00
Steven Moreland
628198a90f Merge "HIDL Java: DeadObjectException" 2020-07-08 16:45:34 +00:00
Charles Chen
3b8e8d7631 Fix NPE when invoking Context#isUiContext
Add null checks in both ContextWrapper and before obtaining
ContextImpl#getOuterContext.

Test: atest ContextTest#testIsUiContext_ContextWrapper
fixes: 160037462
Change-Id: Ic6a71dd9ac4b195d219d6e5431f2f2b199a400fa
2020-07-08 23:58:58 +08:00