Commit Graph

487936 Commits

Author SHA1 Message Date
Sarah Chin
c363a3a148 Add HANDLE_CAR_MODE_CHANGED permission
Required to allow DeviceStateMonitor to monitor changes in car mode to
get an accurate state of when all screens are on/off.

Test: build
Bug: 160898432
Change-Id: If3ad86a2564ce3ba53afea44e8ad5bf02b8d51e0
2020-07-16 21:50:38 +00:00
Patrick Baumann
d856d8e308 Merge "Don't assume host is wildcard if not provided" into rvc-dev am: a1b6280ec8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12118654

Change-Id: Id4a840f64e04228de024ee755edb0a1e51466edc
2020-07-09 23:44:15 +00:00
Patrick Baumann
a1b6280ec8 Merge "Don't assume host is wildcard if not provided" into rvc-dev 2020-07-09 23:31:56 +00:00
TreeHugger Robot
a65a36bfb5 Merge "Temporarily disable checkstyle hook" into rvc-dev am: 17f8a7e553
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12121346

Change-Id: I9b45fcf41f66f29f1a6b8afac3e43b5ae426b191
2020-07-09 22:40:25 +00:00
TreeHugger Robot
17f8a7e553 Merge "Temporarily disable checkstyle hook" into rvc-dev 2020-07-09 22:18:54 +00:00
TreeHugger Robot
2b8011102c Merge "Insets: make decorFitsSystemWindowInsets apply cutout insets" into rvc-dev am: e15860371f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12117342

Change-Id: I11fa689dee1ccd7ec08f38ede598996d2ddceabe
2020-07-09 21:30:59 +00:00
TreeHugger Robot
e15860371f Merge "Insets: make decorFitsSystemWindowInsets apply cutout insets" into rvc-dev 2020-07-09 21:18:44 +00:00
Aurimas Liutikas
8497789b3b Temporarily disable checkstyle hook
checkstyle uses inefficient git calls that make it really slow for --partial-clone

Bug: 160796554
Change-Id: I3bb2ac1bebdb6f778b2d2ff159eefb27664aa177
2020-07-09 20:51:58 +00:00
TreeHugger Robot
ede58b18fa [automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-dev am: 0811c47412 -s ours
am skip reason: subject contains skip directive

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

Change-Id: If48971c536375cbcb046ea62b42bb37025c6aece
2020-07-09 19:30:04 +00:00
Patrick Baumann
aab67c2b9d Don't assume host is wildcard if not provided
This change ensures that while parsing a package, we require an explicit
wildcard in the queries->intent->data->host field. Prior to this change,
we were defaulting to wildcard when not provided. This resulted in,
e.g. someone trying to get visibility to just browsers actually getting
access to all packages that handle any web intent.

Fixes: 160868841
Test: atest AppEnumerationTests IntentFilterTest
Change-Id: I771845467928b6655fe19efe89bd2ca548dca6e5
2020-07-09 12:28:54 -07:00
TreeHugger Robot
0636427470 Merge "Import translations. DO NOT MERGE" into rvc-d1-dev 2020-07-09 19:18:25 +00:00
TreeHugger Robot
0811c47412 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-07-09 19:16:43 +00:00
Jing Ji
6cca58b722 Merge "Fix javadoc error in ApplicationExitInfo#getDefiningUid()" into rvc-dev am: 42ef19d57c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12118644

Change-Id: I4cbbe16fcf62d01fa76e7756c4a4b554dce78926
2020-07-09 18:14:25 +00:00
Jing Ji
42ef19d57c Merge "Fix javadoc error in ApplicationExitInfo#getDefiningUid()" into rvc-dev 2020-07-09 18:11:00 +00:00
TreeHugger Robot
cc6239dc7d Merge "Fix "Allow/Deny" popup window no respond when enable pointer location" into rvc-dev am: d22b5fbe34
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12086304

Change-Id: I706c530fedfac30a6a270d7a86686190de6826ff
2020-07-09 17:59:55 +00:00
Bill Yi
b614cf9129 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I02b0ad06665a51b03d15decac87215e46049525e
2020-07-09 10:55:47 -07:00
TreeHugger Robot
d22b5fbe34 Merge "Fix "Allow/Deny" popup window no respond when enable pointer location" into rvc-dev 2020-07-09 17:50:48 +00:00
Bill Yi
3fcba41cb1 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I9bd4e94276357c8fd68e943aa20d7e36652f5ee6
2020-07-09 10:28:17 -07:00
Adrian Roos
2f07569650 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: Ib984a4bc34f0527c809de35919340019a04b017a
2020-07-09 17:12:41 +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
TreeHugger Robot
d03b501796 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: I1a84ce3d8e8d50136455162e6d01c8a594289b2d
2020-07-09 16:48:32 +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
15f0a2590a 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: I59f7525c8f2230991d093e50ddbadd6f91ce7b6d
2020-07-09 16:44:18 +00:00
Jing Ji
219da992ad Fix javadoc error in ApplicationExitInfo#getDefiningUid()
Bug: 160875447
Test: m -j offline-sdk-docs & manual verify the javadoc
Change-Id: Iae09584b42990092166be3c9a2bb792fa2d0abef
2020-07-09 09:33:10 -07: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
2654c4465e 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: Ia2c54c4843f2a1743e3a3c7ec034208918b0b18b
2020-07-09 13:42:41 +00:00
arthurhung
351f4ebd72 Fix "Allow/Deny" popup window no respond when enable pointer location
Currently, all buffered layers are included in input occlusion
calculations, the overlay window which can't receive input event
should also need to explicitly opt out by setting window type.

- For overlap window, reuse the invalid input window handle and fill the
  necessary fileds, it could also fill some fileds in SurfaceFlinger
  because the token is null.

Bug: 160590776
Bug: 158717144
Test: enable pointer location, launch app which would popup grant
permission dialog
Test: atest WindowInputTests
Test: test suite on Cuttlefish API 30

Change-Id: I9d618a0a7d7cef7f8f90200b22138c78ae6d6cc8
2020-07-09 13:09:39 +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
Adrian Roos
e1be3292da Insets: make decorFitsSystemWindowInsets apply cutout insets
Fixes: 160698434
Test: atest WindowTest
Change-Id: I15d74c83daad3206c6f3fc4f6a3f082d20d3c769
Merged-In: I15d74c83daad3206c6f3fc4f6a3f082d20d3c769
2020-07-09 11:14:00 +00:00
Orion Hodson
cfe811b274 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: Id0772ed9e7ab179ab6cc82e55977bac15bb68280
2020-07-09 08:45:36 +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
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
8143dc878d Merge "Skip testPhysicalEthernet if the test run adb over network" into rvc-dev am: a973bf1a56
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12105761

Change-Id: Ib429b7ed5fddd2d1a766b8b2b7e57c191ce59559
2020-07-09 00:39:31 +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
dab4553f27 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: Iab86765bc67493c2e86b8eab31cfddacf1cca266
2020-07-08 23:21:28 +00:00
Evan Laird
b2641d1d13 Merge "Cache Display.Mode so we can ignore refresh rate changes" into rvc-d1-dev 2020-07-08 23:11:36 +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
fac896ec46 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: I370936c5febd92e7d21eb1c7b2355e9a47f13efe
2020-07-08 22:55:58 +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
a7a352b1d0 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: I6e0fcf511c9b8b28940544300edca5a3977afe20
2020-07-08 22:27:40 +00:00
TreeHugger Robot
89749a90da Merge "Fixed that data connections not tearing down when APN set id changes" into rvc-d1-dev 2020-07-08 22:18:18 +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
224d3e04d6 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: I87a9bcb4b052e4d961f1538bb7f892c1fd930350
2020-07-08 20:51:18 +00:00
Patrick Baumann
e505016e9b Merge "Fixes component-based visibility recompute" into rvc-dev 2020-07-08 20:42:22 +00:00
Ned Burns
11a2b95bb1 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: I38e1f2bebfaba00cf046cedbe51dc38bd4b83adf
2020-07-08 20:26:10 +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
2208d4b00b Merge "Fix customizer state" into rvc-dev am: 3aa9980879
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12099421

Change-Id: I3ffec60df44cb78f1f8334535f4a3d7d9b5715c9
2020-07-08 18:55:16 +00:00