Commit Graph

14684 Commits

Author SHA1 Message Date
Songchun Fan
201c064d3b [resolver] only keep one preferred activity if selected with always=true
With this change, if user selects a preferred activity with "Always"
checked, there will only be one mAlways=true intent filter
for a given action.

BUG: 161394369
Test: manual
Test: atest FrameworksServicesTests
Change-Id: I3d5ee0130f6f07530bb53f9c1509d5121a46a34a
2020-07-16 13:15:31 -07:00
Kalesh Singh
566cc2f29d Merge "Don't cache suspend_control service" am: 1371e73894 am: da3a84e731 am: cc42fcbbc8 am: afe17a7045 am: 54b17ddbe6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1360077

Change-Id: I361e4477463384ed2567a07645269ff7212091cb
2020-07-13 18:49:01 +00:00
Kalesh Singh
54b17ddbe6 Merge "Don't cache suspend_control service" am: 1371e73894 am: da3a84e731 am: cc42fcbbc8 am: afe17a7045
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1360077

Change-Id: I7ffd281376232b4ca71699dbc3f0f0d9c8367599
2020-07-13 18:38:18 +00:00
Kalesh Singh
cc42fcbbc8 Merge "Don't cache suspend_control service" am: 1371e73894 am: da3a84e731
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1360077

Change-Id: I18605eee1565df6476ea53990eaecf726335c6c0
2020-07-13 18:09:39 +00:00
Kalesh Singh
1371e73894 Merge "Don't cache suspend_control service" 2020-07-13 17:39:22 +00:00
Kalesh Singh
d781ff68f1 Don't cache suspend_control service
Caching a reference to the service can lead to a DeadObject if
if the service was restarted. Additially we attempt to wait for
the service if it is not immediately available.

Bug: 160741383
Test: atest FrameworksCoreTests:KernelWakelockReaderTest

Change-Id: If54d644a66bed8a0da6a2f5b34168cad8f954187
2020-07-13 14:58:00 +00:00
TreeHugger Robot
27c69329ab Merge "Don't update height if recycler view was scrolled" into rvc-qpr-dev am: a7f7189c11 am: f6d59d47f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12065946

Change-Id: Ic0099dc368438f4c453b4e05f73b764121efdc5d
2020-07-13 13:36:50 +00:00
Antoan Angelov
edccecc983 Merge "Add bottom offset to the intial padding rather than accumulating it." into rvc-qpr-dev am: f3c9998a48 am: 43e48bab7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12105703

Change-Id: Ib8e8cf61878f57e838c39e40fa0f6928a36b9a14
2020-07-13 13:36:29 +00:00
TreeHugger Robot
f6d59d47f0 Merge "Don't update height if recycler view was scrolled" into rvc-qpr-dev am: a7f7189c11
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12065946

Change-Id: I6c985b4cfab343e1adef1db586ca4357752f57b4
2020-07-13 13:25:50 +00:00
Antoan Angelov
43e48bab7d Merge "Add bottom offset to the intial padding rather than accumulating it." into rvc-qpr-dev am: f3c9998a48
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12105703

Change-Id: I1c4b37c1b980809351fea66ef4f66baff0931aab
2020-07-13 13:24:33 +00:00
TreeHugger Robot
a7f7189c11 Merge "Don't update height if recycler view was scrolled" into rvc-qpr-dev 2020-07-13 13:22:08 +00:00
Antoan Angelov
f3c9998a48 Merge "Add bottom offset to the intial padding rather than accumulating it." into rvc-qpr-dev 2020-07-13 13:14:32 +00:00
Alison Cichowlas
e2f6051eb8 Merge "Call toString instead of casting." 2020-07-13 13:09:41 +00:00
TreeHugger Robot
efdd289d94 Merge "Force enable vertical scrolling on profile tab change" into rvc-qpr-dev am: bcd952aec4 am: d11465be48
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12066922

Change-Id: I02882a2e3bbbe4d5d8f7be1e2b9c51e752ae0309
2020-07-13 12:10:13 +00:00
TreeHugger Robot
d11465be48 Merge "Force enable vertical scrolling on profile tab change" into rvc-qpr-dev am: bcd952aec4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12066922

Change-Id: I1826d834b79e1580d1ce85dbec590ffd05c65c3b
2020-07-13 11:56:54 +00:00
TreeHugger Robot
bcd952aec4 Merge "Force enable vertical scrolling on profile tab change" into rvc-qpr-dev 2020-07-13 11:43:16 +00:00
Treehugger Robot
187e3b89ce Merge "StateMachine: check for null curState in dump()" am: 2ca1abc174 am: e12727ce1d am: 932962ac33 am: 5b147f3a76 am: 505cbcd8da
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1360902

Change-Id: I2e10b617dc3073b726ffc455a305a64bc73bc178
2020-07-13 02:59:17 +00:00
Treehugger Robot
932962ac33 Merge "StateMachine: check for null curState in dump()" am: 2ca1abc174 am: e12727ce1d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1360902

Change-Id: Id0b084d4aae3dcb72203147f1cdeb2c98141d240
2020-07-13 02:34:10 +00:00
David Su
704f33f253 StateMachine: check for null curState in dump()
After the StateMachine has quit, getCurrentState()
returns null, which will throw an exception in dump().

Bug: 160283853
Test: atest StateMachineTest
Change-Id: I4f9906eef6210b037d2170904a7c3aa483f5b4e9
2020-07-10 12:09:33 -07:00
TreeHugger Robot
b7bc3b7d64 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: I8369e696a9a6e1d7dd74f1c2420e519b167c03f1
2020-07-09 21:31:45 +00:00
TreeHugger Robot
e15860371f Merge "Insets: make decorFitsSystemWindowInsets apply cutout insets" into rvc-dev 2020-07-09 21:18:44 +00:00
Adrian Roos
c9f51fe239 Merge "Fix IME flicker: move hiding the surface into the control target" into rvc-dev am: 895a2e626a am: 2f07569650 am: 2b8b39ec24 am: 679ed2e0cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12070682

Change-Id: Idfed2355c5072990709623fcacd96e5a2d56c001
2020-07-09 17:54:27 +00:00
Adrian Roos
2b8b39ec24 Merge "Fix IME flicker: move hiding the surface into the control target" into rvc-dev am: 895a2e626a am: 2f07569650
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12070682

Change-Id: Id91802e75d496b824c22d53bb2ee86868cb80d79
2020-07-09 17:24:23 +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
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
Alison Cichowlas
d0b3d1a11c Call toString instead of casting.
Fixes: 142704267
Test: check for crashes with apk using labeledintent
Change-Id: I98108a4cd6280066eec009abadf0eb889974a5b6
2020-07-09 10:14:44 -04: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
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
Adrian Roos
a7fa92bc5c Insets: make decorFitsSystemWindowInsets apply cutout insets
Fixes: 160698434
Test: atest WindowTest
Change-Id: I15d74c83daad3206c6f3fc4f6a3f082d20d3c769
2020-07-09 11:13:04 +00:00
Dmitri Plotnikov
ce28b2572e Collect native TIDs for binder threads
This information will be used for attribution of CPU
usage to work source UIDs.

Bug: 158232997
Test: atest FrameworksCoreTests:com.android.internal.os.BinderCallsStatsTest

Change-Id: Ic9fcc1d62515dd11a1fbade80264412615014919
2020-07-08 23:48:44 +00:00
TreeHugger Robot
94eb3025be Merge "[pm] minor refactoring" 2020-07-08 23:47:37 +00:00
Ahaan Ugale
6f9ef39507 Merge "Change to drop down when the inline suggestions don't be shown in IME." into rvc-dev am: 5fa3f11717 am: eea21c14bd am: 2b4e7a9d55 am: 09f8901d9b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12066145

Change-Id: Ibb00026d93dc4d4ef7eeea5d6a311528e2b1a157
2020-07-08 23:30: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
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
arangelov
96078b1052 Add bottom offset to the intial padding rather than accumulating it.
This prevents the padding from growing on screen rotations.

Fixes: 160005616
Test: manual
Test: atest ChooserActivityTest
Change-Id: I87fcfede3cf9cfad63adeb07b67ed68df403453f
2020-07-08 15:57:25 +01:00
arangelov
b85215ff62 Don't update height if recycler view was scrolled
Fixes: 159999176
Fixes: 159997845
Test: manual
Test: atest ChooserActivityTest
Change-Id: Ie867ee419b3595023195022b0f9f12e5da214938
2020-07-06 14:34:47 +00:00
arangelov
61d251fb66 Force enable vertical scrolling on profile tab change
This fixes an edge case where after performing
a variety of gestures vertical scrolling ends
up disabled. That's because at some point
the old tab's vertical scrolling is disabled
and the new tab's is enabled.

Fixes: 160086572
Test: manually played with scrolling and swiping
Test: atest ChoserActivityTest
Test: atest ResolverActivityTest
Change-Id: Id241bef19af88a48bf43217627d636403a514568
2020-07-02 12:22:06 +00:00
Nicolas Geoffray
7d8bf62409 Merge "Remove references to Dalvik logger." am: 385a775e73 am: 40ab1cf73c am: 75f6223c7c am: c96e8b2184 am: eb3069cddd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1352358

Change-Id: I8f7490576e967ffec93b40edcc32317e0b187c38
2020-07-02 09:32:34 +00:00
Nicolas Geoffray
75f6223c7c Merge "Remove references to Dalvik logger." am: 385a775e73 am: 40ab1cf73c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1352358

Change-Id: Ib9cdd470cc9cb0f199dc97b1d05e1d833dd3808c
2020-07-02 08:52:23 +00:00
Songchun Fan
4b99e3bd49 [pm] minor refactoring
minor refactoring per comments of ag/11844801.

Test: atest CtsExtractNativeLibsHostTestCases
Test: atest CtsDynamicLinkerTestCases
BUG: 158795052
Change-Id: I0e96e489e48995d27ebf880005fb01cfac6b045b
2020-07-01 14:42:51 -07:00
Nicolas Geoffray
6074d56d4f Remove references to Dalvik logger.
Test: m
Bug: 154796679
Change-Id: Id03d9be728c920616a7218fc5435640fc732c87e
2020-06-30 18:30:38 +01:00
Soonil Nagarkar
1d7e0baad5 Remove onRemoved callbacks
Removes the necessity for LMS to call back into client code to inform
the client that a location listener has been removed. This is replaced
with weak references instead, which allows the garbage collector to
handle cleanup instead. This simplifies LMS implementation and makes it
less buggy.

Also includes some rewrites of getCurrentLocation to use a dedicated
AIDL interface now that the onRemoved channel is no longer available,
as well as various other minor refactors.

Test: manual + presubmits
Change-Id: Ic61ce278c44e23bc5da5b703f89f6e656e89dea2
2020-06-29 20:01:59 -07:00
TreeHugger Robot
77a27b5a9d Merge "Sharesheet - Fix crash when suspended app is selected" into rvc-dev am: 47f3249ce1 am: 7399ecfec7 am: 46d9fddee8 am: 920dc1b61d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12037672

Change-Id: I5417f885a0a442cdd3508147df6791be324fb549
2020-06-30 02:49:27 +00:00
TreeHugger Robot
46d9fddee8 Merge "Sharesheet - Fix crash when suspended app is selected" into rvc-dev am: 47f3249ce1 am: 7399ecfec7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12037672

Change-Id: I7918ddcfce3e5d4d8e2956cfa5ba586fc03a7831
2020-06-30 02:18:38 +00:00
TreeHugger Robot
334cc67507 Merge "Sharesheet - Fix crash when suspended app is selected" into rvc-dev am: 47f3249ce1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12037672

Change-Id: I2e500ae4440bded0dcbdfae2e81ced6a96f92728
2020-06-30 02:08:06 +00:00
TreeHugger Robot
47f3249ce1 Merge "Sharesheet - Fix crash when suspended app is selected" into rvc-dev 2020-06-30 01:46:20 +00:00
Matt Pietal
406a5a9331 Sharesheet - Fix crash when suspended app is selected
After selecting a suspended app, the package monitor would be
unregistered even though the app would never be launched. This would
cause an IllegalStateException on the next selection of any target,
and crash the sharesheet. Check for a suspended target before
unregistering.

Fixes: 160015744
Test: manual, follow BR steps and pause an app
Change-Id: I1b0c79bad0fa75aea6a543b6f8a4848720faa0c8
2020-06-29 17:49:20 -04:00
Jing Ji
7c4341473f Merge "Add support to detect and log excessive incoming binder calls" 2020-06-29 20:33:21 +00:00
Antoan Angelov
84eb4b2184 Merge "Also skip calling ShortcutManager APIs if work user is locked" into rvc-dev am: 625ada924d am: 2e53c54ab9 am: fae6068e4a am: 41931faee9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12034926

Change-Id: I4fc9ec33597a26d66bf24a4031dd5eeaed48d086
2020-06-29 17:32:54 +00:00
Antoan Angelov
fae6068e4a Merge "Also skip calling ShortcutManager APIs if work user is locked" into rvc-dev am: 625ada924d am: 2e53c54ab9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12034926

Change-Id: I8024630d70035eddd19e25bbb0dfe76afbf38411
2020-06-29 16:58:32 +00:00