Commit Graph

475477 Commits

Author SHA1 Message Date
Aran Ink
d397b9084d Add dismissImmediate to ListPopupWindow to prevent window leaks in GlobalActionsDialog.
Fixes: 154640131
Test: Manual -- Use 'adb shell dumpsys window windows || grep "PopupWindow"' to confirm number of PopupWindows displayed (should be zero at home screen.)
Open GlobalActions. Tap the power overflow menu and check number of PopupWindows while the overflow dropdown is visible (should be 1).
Put the phone to sleep by pressing the power button. Wake phone and make sure number of PopupWindows is 0.
Repeat with Controls structure switcher dropdown and add controls dropdown.

Change-Id: I4ae2d86e981465e8e6c0adf924a6fc2eabfc88ee
2020-04-24 18:06:14 -04:00
TreeHugger Robot
8f0b08f178 Merge "Migrate clients from Binder.waitForService to ServiceManager.waitForService" into rvc-dev 2020-04-24 21:16:54 +00:00
Matt Pietal
2e9b2b3204 Merge "Global Actions - Close and long press while open" into rvc-dev 2020-04-24 21:11:28 +00:00
Collin Fijalkovich
cffe947079 Merge "Cache getDefaultSubscriptionId Binder calls" into rvc-dev 2020-04-24 20:54:04 +00:00
TreeHugger Robot
3ccae84e2f Merge "Maintain alignment of subtitle in mgmt screen" into rvc-dev 2020-04-24 20:53:54 +00:00
Christine Tsai
eea03ac1be Merge "Annotate state atoms" into rvc-dev 2020-04-24 20:43:27 +00:00
TreeHugger Robot
31d3998a05 Merge "Mock sourceDir for ActivityThreadClientTest" into rvc-dev 2020-04-24 20:21:33 +00:00
Sally Yuen
8ab42a27ce Merge "Add @TestApi to registerSystemAction and unregisterSystemAction" into rvc-dev 2020-04-24 20:12:16 +00:00
Anton Hansson
09d9391dab Merge "Update reference to test in TEST_MAPPING" into rvc-dev 2020-04-24 19:53:14 +00:00
Patrick Baumann
80888dbb00 Merge "Fixes shouldFilterApplication usages" into rvc-dev 2020-04-24 19:47:41 +00:00
Fabian Kozynski
bac4388d2b Maintain alignment of subtitle in mgmt screen
The subtitle aligns on top to an invisible checkbox, so it's position
remains the same between different screens.

Test: visual
Fixes: 154759251
Change-Id: I75c28dd02e099680555acdab200a0de909b57c51
2020-04-24 15:24:59 -04:00
TreeHugger Robot
7e76c85d57 Merge "Only save conversation modifications on 'apply'" into rvc-dev 2020-04-24 18:57:56 +00:00
Ytai Ben-tsvi
141c3d3c22 Merge "Revert "Revert "Reboot sound trigger HAL on exception""" into rvc-dev 2020-04-24 18:50:08 +00:00
TreeHugger Robot
91dd9efe81 Merge "Pass user to SecureSetting constructor" into rvc-dev 2020-04-24 18:46:35 +00:00
TreeHugger Robot
fc9bda17d6 Merge "Prevent Kotlin NPE" into rvc-dev 2020-04-24 18:46:15 +00:00
TreeHugger Robot
53897fd7d1 Merge "media: fix MediaCodec operations using HardwareBuffer" into rvc-dev 2020-04-24 18:44:45 +00:00
Antoan Angelov
ed64206471 Merge "Improvements on layout with default intent resolver" into rvc-dev 2020-04-24 17:52:59 +00:00
Collin Fijalkovich
4ffdedfd4b Cache getDefaultSubscriptionId Binder calls
Use PropertyInvalidatedCache to avoid redundant
calls to SubscriptionController.getDefaultSubscriptionId
Bug: 151953109
Test: Flashed build and verified that the phone booted
and executed the cache

Merged-In: I69b178b42a49b1eda6c2e72ce21d93906ff9d281
Change-Id: I69b178b42a49b1eda6c2e72ce21d93906ff9d281
2020-04-24 10:45:54 -07:00
TreeHugger Robot
8a5bba3e6a Merge "Check whether should auto launch after showing empty state screen" into rvc-dev 2020-04-24 17:44:37 +00:00
Anton Hansson
13c4457a95 Update reference to test in TEST_MAPPING
apiextensions_e2e_test doesn't exist, the right name is
sdkextensions_e2e_test.

Bug: 154931418
Test: presubmit
Change-Id: Ibb9618bf0f1fdce6ceceb808705dab910b38755d
2020-04-24 18:29:29 +01:00
Michael Groover
091b6ccd4f Merge "Add READ_PHONE_STATE back to pregranted phone permissions" into rvc-dev 2020-04-24 17:26:18 +00:00
TreeHugger Robot
137f875360 Merge "Use waitForDeclaredService to get Lights HAL" into rvc-dev 2020-04-24 17:23:42 +00:00
TreeHugger Robot
6335c26984 Merge "Use Lazy BioUnlockController in DozeServiceHost." into rvc-dev 2020-04-24 17:06:23 +00:00
Santiago Seifert
be0b165b6e Merge "Defer extractor init until after sniff" into rvc-dev 2020-04-24 16:56:35 +00:00
Santiago Seifert
aba783aae2 Defer extractor init until after sniff
Instead of doing it immediately after sniff success.
This prevents some extractor implementations from
outputting formats during the "sniffing" advance.

Bug: 154120292
Test: atest CtsMediaParserTestCases
Change-Id: I4f3349a8053d371cd06beaf24bd9745da0a4a093
2020-04-24 16:55:58 +00:00
TreeHugger Robot
153d5f6bf1 Merge "Controls UI - Haptics for touch/drag events" into rvc-dev 2020-04-24 16:42:08 +00:00
Nathan Harold
8c2fc26310 Merge "Make CellIdentity#getPlmn() Publicly Accessible" into rvc-dev 2020-04-24 16:36:38 +00:00
Patrick Baumann
79d1db2838 Fixes shouldFilterApplication usages
This change addresses one misuse of shouldFilter* where the binary logic
was inverted. It also makes the response of getPackageEnabled* and
getComponentEnabled* consistent by always throwing if a packageName is
not known to the caller.

Fixes: 145676437
Test: atest AppEnumerationTests
Change-Id: Ieaaa894a05c00c3cb3b3b2ebdf64a6948b23b475
2020-04-24 09:20:29 -07:00
arangelov
4e2951b2f4 Improvements on layout with default intent resolver
- nullcheck buttonBarDivider
- only apply padding to non-default layout resolver
- create header for user instead of just once, because
it gets updated after it's first created

Fixes: 154832840
Fixes: 154330193
Test: manual
Change-Id: Ia9f2a1112a406e898dcf66954887ababae48f001
2020-04-24 17:17:28 +01:00
arangelov
4d3be0bf0b Check whether should auto launch after showing empty state screen
Fixes: 154812743
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: I9f861bb6f7e4b7ff087aa74c554cc4e52f8ce614
2020-04-24 17:17:25 +01:00
Santiago Seifert
28354e5450 Merge "Revert "Call noteOperation() in ShellDelegate so that noteOp() really passes."" into rvc-dev 2020-04-24 16:14:11 +00:00
Aran Ink
23f855ea11 Merge "Disable RemoteInput image insertion." into rvc-dev 2020-04-24 16:10:34 +00:00
TreeHugger Robot
af2a708900 Merge "Corner cases handling." into rvc-dev 2020-04-24 16:09:41 +00:00
Santiago Seifert
623bbef1d4 Revert "Call noteOperation() in ShellDelegate so that noteOp() really passes."
This reverts commit 799ee34558.

Reason for revert: Broke tests in b/154910689

Change-Id: I006fb07dc29bff6f00324ae56099bc0a0a6a23a9
Bug: 154910689
2020-04-24 15:55:05 +00:00
TreeHugger Robot
f58030e8b2 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-04-24 15:31:57 +00:00
Dave Mankoff
159c6f48c1 Use Lazy BioUnlockController in DozeServiceHost.
Use Lazy BiometricUnlockController in DozeServiceHost instead of
assigning its result to a member field after initialization. It
appears as though, in some cases, the DozeServiceHost gets used
before it is initialized, meaning that the BiometricUnlockController
member field would be null.

Fixes: 152187753
Test: atest SystemUITests
Change-Id: Ic1a31ded99b1cd07e25f9da530bcf155722bbe6a
2020-04-24 11:30:50 -04:00
Julia Reynolds
d5cc0ea6ea Only save conversation modifications on 'apply'
Test: atest
Fixes: 153754610
Change-Id: Ifddfb2115f7c1f582861b49860a41bcf2bb8385c
2020-04-24 11:30:29 -04:00
Wei Sheng Shih
b56d6e1356 Merge "Only adjust the task position when there is no move-to-top request." into rvc-dev 2020-04-24 14:32:09 +00:00
Matt Pietal
6ce0a909fd Global Actions - Close and long press while open
Handle the show request as a show/hide request depending on the
state. Use callbacks to alert the system that the dialog has been
properly handled before closing.

Bug: 153797802
Test: manual
Change-Id: I3911b35e485cca88c382bc26f2f5312d3323d273
2020-04-24 10:30:57 -04:00
TreeHugger Robot
f0de93d7b2 Merge "Use Arrays.hashCode in DeviceProductInfo" into rvc-dev 2020-04-24 14:24:25 +00:00
Robin Lee
9e1181302a Use waitForDeclaredService to get Lights HAL
We cache the reference to the HAL and use a DeathRecipient to keep track
of whether it's still good.

Adds waitForService and waitForDeclaredService to the ServiceManager
Java implementation because they were missing.

Test: atest LightsManagerTest
Test: atest LightsServiceTest
Bug: 152509747
Bug: 154631113
Bug: 154627432
Bug: 154629168
Change-Id: Ife8471f3a7e47b48bb31015ddf40f1d7fef6240f
2020-04-24 16:12:27 +02:00
Matt Pietal
b50808429a Controls UI - Haptics for touch/drag events
Following specs set out by UX for haptics, produce subtle haptic
feedback on touch as well as drag.

Bug: 154697212
Test: manual
Change-Id: I9a5b27de407529e61597784c22d002b1a4cfe724
2020-04-24 09:43:29 -04:00
Julia Reynolds
5f71bce0dc Add log message for shortcut error
Test: manual
Fixes: 154266027
Change-Id: I99e3b2e25eaf21bac6a87049878b2a00b2e5e998
2020-04-24 13:11:32 +00:00
Marin Shalamanov
90fd0b19f8 Use Arrays.hashCode in DeviceProductInfo
Using arrays in Objects.hash() is error prone. Instead we
call Arrays.hashCode().

Test: m services
Bug: 154302664
Change-Id: Icf00fbaa465ef60951998659ae0333b2faf7042b
2020-04-24 13:02:35 +00:00
Bernardo Rufino
78b06a4129 Merge "Allow sysUI to send a11y events for other package and user" into rvc-dev 2020-04-24 12:16:07 +00:00
Lais Andrade
ac9a71645a Merge "Wait for windows to be drawn before ending boot animation" into rvc-dev 2020-04-24 12:11:30 +00:00
Bill Yi
b12d740624 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Id818b18df56fc6bf352d7d90a8865474e9af4bba
2020-04-24 01:56:07 -07:00
TYM Tsai
4ddfdaf641 Merge "Filter the content of the Bundles used as extras and styling APIs" into rvc-dev 2020-04-24 08:42:56 +00:00
wilsonshih
a31e01fc25 Only adjust the task position when there is no move-to-top request.
Adjust the check order when adjusting the focus.
If there is no move-to-top request, only adjust the task position,
otherwise it may send top position change to unrelated activities.

Bug: 154685134
Test: atest ActivityLifecycleTopResumedStateTests
Test: atest ActivityRecordTests
Change-Id: I0827641b8f24e8f42e6b8e8703648dc540c902ef
2020-04-24 16:27:43 +08:00
Paul Chang
b43fb9b839 Merge "Send intent to let calling app show UI safely without interfering the bugreport/screenshot generation." into rvc-dev 2020-04-24 08:23:21 +00:00