Commit Graph

420988 Commits

Author SHA1 Message Date
lumark
280cb21137 Make sure to clear previous display's last focus window when reparenting task
This CL is to fix IME can't show up on reparented task in auto device with per-display
focus enabled.

When reparenting task from display A to display B, if the current display focus from
display of the task changed to another display (i.e. received a pointer outside touch),

It made in DisplayContent#reParentWindowToken logic won't clear prevDc#mLastFocus
(the reparent task's window in previous display), since mCurrentFocus
(the target display's window) is not the same as prevDc#mLastFocus during reparent,
caused the client side will end up receive window focus lost change (this issue won't
happen w/o per-display focus, since prevDc#mLastFocus will always null due to only
single focus window), so IME can't show up when tapping the EditText of the reparented
task.

The fix is to consolide clear prevDc#mLastFocus check, if last focused window of
previous display is contained in a reparented window token, which means
the reparent task will end up to gain window focus on the target display & won't need to
receive focus lost event from previous display & the state should be cleared.

Bug: 136503036
Test: atest MultiDisplaySystemDecorationTests#testImeWindowCanShownWhenActivityMovedToDisplay
Change-Id: Ifd5b7bbf381440c302194c9efff595bf51b5b42b
2019-09-09 23:56:29 +08:00
James O'Leary
8a91775d3f Merge "Add completion handler for ScreenshotHelper" into qt-qpr1-dev 2019-09-07 03:42:36 +00:00
Mehdi Alizadeh
ae4ab469bf Merge "Check for component availability before all AppPrediction logic" into qt-qpr1-dev 2019-09-07 00:53:30 +00:00
Pengquan Meng
c12bf8a9e0 Merge "Support maximum wait time for Cell broadcast" into qt-qpr1-dev 2019-09-06 23:07:37 +00:00
TreeHugger Robot
46e4dd099c Merge "Reduce the delay of showing unlock dialog to 0" into qt-qpr1-dev 2019-09-06 19:58:47 +00:00
Mehdi Alizadeh
5cc5f713f9 Check for component availability before all AppPrediction logic
Bug: 138595943
Test: Manual test by removing the AiAi package from device
Change-Id: I9d1e5be52e8ca5fadce2d3107279fa77d488f697
2019-09-06 12:23:44 -07:00
TreeHugger Robot
299cd3ccae Merge "[DO NOT MERGE] Copy appop modes on write to avoid locked IO" into qt-qpr1-dev 2019-09-06 19:21:56 +00:00
TreeHugger Robot
9c81f1754c Merge "Fix zen alarms only mode check" into qt-qpr1-dev 2019-09-06 19:21:32 +00:00
Erin Yan
bc4b741979 Reduce the delay of showing unlock dialog to 0
Bug: 136049501
Test: Manually on IHU
Change-Id: I0016290a5181b9acba73503f938772b90f583f66
Merged-in: I0016290a5181b9acba73503f938772b90f583f66
(cherry picked from commit 13ae817be2)
2019-09-06 18:12:57 +00:00
James O'Leary
fa5bb7af25 Add completion handler for ScreenshotHelper
The Next-Generation Assistant can call SysUI to request a screenshot.
Adding an indicator that a screenshot has completed successfully enables
the Next-Generation Assistant to show the assistant UI again once the
screenshot has completed.

Bug: 137201206
Bug: 131082115
Test: Wired up SysUIG's NGA integration's touch outside handler to call
take screenshot, confirmed it behaved as expected when a touch outside
occurred.
Change-Id: Ie83af6c9dd8e93b3e18a820d79c02125a19bd62a
2019-09-06 18:11:38 +00:00
TreeHugger Robot
7ca7382a6e Merge "Make unlock dialog exit if the person taps outside of the dialog" into qt-qpr1-dev 2019-09-06 18:11:10 +00:00
Beverly
dcc5cfc561 Fix zen alarms only mode check
Also fixes setting the consolidated zen policy logging.

Fixes: 140329813
Test: android.app.cts.NotificationManagerTest#testTotalSilenceOnlyMuteStreams
Test: android.app.cts.NotificationManagerTest#testAlarmsOnlyMuteStreams
Change-Id: I43d503ac23d7b0b141930d77cb76f1f589b22525
2019-09-06 17:25:47 +00:00
Lucas Dupin
8de3b785c4 Merge "Fix default wallpaper transition issue" into qt-qpr1-dev 2019-09-06 17:16:23 +00:00
Blake Kragten
cf1268a5f5 Merge "Connection change and high tx power Q port Changed missed Q merge back in April" into qt-qpr1-dev 2019-09-06 17:03:30 +00:00
TreeHugger Robot
eff156093c Merge "Fix bootloop issue with UsageStatsService." into qt-qpr1-dev 2019-09-06 16:00:48 +00:00
Jonathan Scott
00386d79f5 Merge "Add MANAGED_PROVISIONING_DPC_DOWNLOADED." into qt-dev am: b01fe73ed3
am: 68f73efcb9

Change-Id: Ied2f83b88c7e2f596fb03597fce7bebbd4fa615c
2019-09-06 04:57:05 -07:00
Jonathan Scott
68f73efcb9 Merge "Add MANAGED_PROVISIONING_DPC_DOWNLOADED." into qt-dev
am: b01fe73ed3

Change-Id: Idd7424cf00a3c5d8d41e3e051d78d0ac4d6c4a19
2019-09-06 04:44:06 -07:00
Jonathan Scott
b01fe73ed3 Merge "Add MANAGED_PROVISIONING_DPC_DOWNLOADED." into qt-dev 2019-09-06 11:20:56 +00:00
Ahan Wu
c6e84a1340 Fix default wallpaper transition issue
The dimension of default wallpaper is only 1243x1024, this causes the
transition looks not smooth.

Bug: 139297053
Test: Manually kill current wallpaper serveral times.
Test: After fallback wallpaper appears, look the transition.
Change-Id: Ie3eb1a61753cf30210414139c9af492b60c7334b
2019-09-06 19:19:05 +08:00
Erin Yan
5eb60a2c0d Make unlock dialog exit if the person taps outside of the dialog
Bug: 136049501
Test: Manually on IHU
Change-Id: Iabbca72bf65b5e93aafd53296d77a88ccaaf5dfd
Merged-in: Iabbca72bf65b5e93aafd53296d77a88ccaaf5dfd
(cherry picked from commit fe3efb667f)
2019-09-06 01:52:12 +00:00
Erin Yan
b1af47bec8 Remove PASSWORD_QUALITY_MANAGED from CarTrustAgentUnlockDialogHelper
Bug: 140231719
Test: Manually on IHU
Change-Id: I5e848ca3183f624158dc192159f57aaa9d27a89c
Merged-in: I5e848ca3183f624158dc192159f57aaa9d27a89c
(cherry picked from commit 7bed781be5)
2019-09-06 00:13:12 +00:00
Heemin Seog
59db7b8d01 Merge "Handle USB eject and unmount via Car Settings" into qt-qpr1-dev 2019-09-06 00:07:32 +00:00
TreeHugger Robot
cf885ef399 Merge "Create dialog to show detecting Batmobile device & unlocking" into qt-qpr1-dev 2019-09-06 00:07:30 +00:00
Erin Yan
8182bfd415 Create dialog to show detecting Batmobile device & unlocking
Bug: 136049501
Test: Manually on IHU
Change-Id: I47b55e3032c814623aa5bf5c5c3ec1899c03e98e
Merged-in: I47b55e3032c814623aa5bf5c5c3ec1899c03e98e
(cherry picked from commit 16258e3e98)
2019-09-05 23:24:53 +00:00
Pengquan Meng
1e1099a123 Support maximum wait time for Cell broadcast
Geo-Fencing Maximum Wait Time a device shall allow to determines it
location meeting operator policy. If the device is unable to determine
its position meeting operator policy within the GeoFencing Maximum Wait Time,
it shall present the alert to the user and discontinue further positioning
determination for the alert.

Bug: 139022202
Test: manual
Merged-In: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
Change-Id: I5b5c79257706e8606ca6952c5396e4abf2aaf28d
2019-09-05 14:06:14 -07:00
Pinyao Ting
a86312e067 [automerger skipped] fixes a security vulnerability in slice provider am: 46368e4f5c -s ours am: d16ceb6e8e -s ours
am: 122636b4f5 -s ours
am skip reason: change_id Ib1b4fba54ebd3599fe11021d21dc9b09d34e8965 with SHA1 2b415a4c44 is in history

Change-Id: I5036fa074195c2294c8b040136bd0a7263ef60d0
2019-09-05 12:47:55 -07:00
TreeHugger Robot
6183d81af6 Merge "Bind voice interactor as top-app when it is being used" into qt-qpr1-dev 2019-09-05 19:41:09 +00:00
Pinyao Ting
122636b4f5 [automerger skipped] fixes a security vulnerability in slice provider am: 46368e4f5c -s ours
am: d16ceb6e8e -s ours
am skip reason: change_id Ib1b4fba54ebd3599fe11021d21dc9b09d34e8965 with SHA1 a6364d92ed is in history

Change-Id: Ice282a3bab56a6defb124967d84e47b83893cca1
2019-09-05 12:29:24 -07:00
Nicholas Sauer
b255146be2 Merge "Require that the caller has INTERACT_ACROSS_USERS in order to retrieve home tasks of other users." into qt-qpr1-dev 2019-09-05 19:26:09 +00:00
Pinyao Ting
d16ceb6e8e [automerger skipped] fixes a security vulnerability in slice provider
am: 46368e4f5c -s ours
am skip reason: change_id Ib1b4fba54ebd3599fe11021d21dc9b09d34e8965 with SHA1 a6364d92ed is in history

Change-Id: I62e3dde45298fd57b903cd4dfa1210041789c214
2019-09-05 12:05:29 -07:00
Nicholas Sauer
f307365579 Require that the caller has INTERACT_ACROSS_USERS in order to retrieve
home tasks of other users.

This prevents users from observing home tasks of other users on the device.

bug: 140274903
Test: cts-tradefed run cts-dev -m CtsPermissionTestCases -t android.permission.cts.NoActivityRelatedPermissionTest#testGetTask
cts-tradefed run cts-dev -m CtsWindowManagerDeviceTestCases
cts-tradefed run cts-dev -m CtsAppTestCases
Change-Id: Ia5fdb1ba1ab7d9ec27d1afbb3a359b454c7075c0
Merged-In: Ia5fdb1ba1ab7d9ec27d1afbb3a359b454c7075c0
2019-09-05 17:37:33 +00:00
Fabian Kozynski
739e027684 Merge "Add BIND_WAIVE_PRIORITY for TileService" into qt-qpr1-dev 2019-09-05 16:50:59 +00:00
Jonathan Scott
a5e4422d14 Add MANAGED_PROVISIONING_DPC_DOWNLOADED.
Test: Just adding a constant
Bug: 132261064
Change-Id: I2bce277ff8f2de4614e19d5385fe6712b076f9c9
Merged-In: I2bce277ff8f2de4614e19d5385fe6712b076f9c9
2019-09-05 17:31:12 +01:00
Heemin Seog
e1292f71ae Merge "Listen for changes to IME and show/hide nav bar" into qt-qpr1-dev 2019-09-05 14:42:47 +00:00
Julia Reynolds
1b1771108b Merge "DO NOT MERGE Temporarily increase notificationchannel limit" into qt-qpr1-dev 2019-09-05 13:33:59 +00:00
Heemin Seog
28097c4723 Listen for changes to IME and show/hide nav bar
This feature is configurable and set to false as the default value. It
is overlayed as true for Automotive.

Bug: 138242566
Test: manual
Change-Id: I5dde8adc9d4ce749d895287ccf63017b284caec8
Merged-In: I5dde8adc9d4ce749d895287ccf63017b284caec8
2019-09-05 05:32:06 +00:00
Fabian Kozynski
ab7ce8dd0e Merge "Use UnlockMethodCache#canSkipBouncer in user switcher" into qt-dev am: 57e8d83cab
am: 3963e204bb

Change-Id: I130fb9c236238a5095a1a621592d346e9340f440
2019-09-04 19:38:22 -07:00
Fabian Kozynski
3963e204bb Merge "Use UnlockMethodCache#canSkipBouncer in user switcher" into qt-dev
am: 57e8d83cab

Change-Id: I961586609af7d995b30b0a7bb61a7785a281a41e
2019-09-04 19:30:30 -07:00
TreeHugger Robot
57e8d83cab Merge "Use UnlockMethodCache#canSkipBouncer in user switcher" into qt-dev 2019-09-05 02:17:20 +00:00
Fabian Kozynski
ffa02fadce Merge "Fixes regression caused by ag/9259064" into qt-qpr1-dev 2019-09-05 00:14:03 +00:00
Pinyao Ting
add9e2eba9 [automerger skipped] Merge "fixes a security vulnerability in slice provider" into qt-dev am: bc59740fe4
am: e3f595c0a4 -s ours
am skip reason: change_id Ib1b4fba54ebd3599fe11021d21dc9b09d34e8965 with SHA1 2b415a4c44 is in history

Change-Id: Iac06ef3d7f2b739798dea2b2d79ee595aebcfb67
2019-09-04 16:51:29 -07:00
Pinyao Ting
e3f595c0a4 Merge "fixes a security vulnerability in slice provider" into qt-dev
am: bc59740fe4

Change-Id: Iba3a00da2706910d34cb53cc999047c16023cf93
2019-09-04 16:40:54 -07:00
TreeHugger Robot
bc59740fe4 Merge "fixes a security vulnerability in slice provider" into qt-dev 2019-09-04 23:17:52 +00:00
Fabian Kozynski
d2eb34b689 Use UnlockMethodCache#canSkipBouncer in user switcher
KeyguardMonitor#canSkipBouncer was not updated properly when the phone
was unlocked using fingerprint.

This CL removes that method and changes UserSwitcherController to query
UnlockMethodCache directly, as it was KeyguardMonitor's only client for
that method.

Test: manual unlocking with FP and with pattern
Test: no automated test yet
Bug: 140486529
Merged-In: Idbff4fbabca962c632ff5d78b25418c0502db9a7
Change-Id: Idbff4fbabca962c632ff5d78b25418c0502db9a7
2019-09-04 22:55:12 +00:00
Fabian Kozynski
8f571e5954 Fixes regression caused by ag/9259064
Makes sure that onClickListeners are always up to date.

Fixes: 139920678
Test: manual
Test: atest UserDetailViewAdapterTest (fails on old code)
Change-Id: I1060cb432b7e24a46a3472754efdf004798d6b6e
2019-09-04 17:23:33 -04:00
Tej Singh
2e477bf54b Increase stats hardware rpc threadpool.
Increase the threadpool count to 4.

Test: builds, boots
Test: adb shell cmd stats pull-source 10020 returns a battery capcity
Bug: 139453643
Merged-In: I2929fd6ca300781e67dde97d6196939d7928b350
Change-Id: I2929fd6ca300781e67dde97d6196939d7928b350
(cherry picked from commit 3174c0da99)
2019-09-04 21:22:32 +00:00
Varun Shah
5d9031dbee Fix bootloop issue with UsageStatsService.
When the configurations are being read from the proto file, if a
duplicate locale is found in the list, an exception is thrown from
LocaleList which causes the UsageStatsService to crash. Instead, we'll
now log a WTF if duplicate locales are found when parsing the
configuration proto and not add the duplicate locale to the list.

Bug: 140197723
Test: atest UsageStatsDatabaseTest
Change-Id: Ie178b3cfdd45e6771a7c0e4bb42e47f79b5c30cc
2019-09-04 19:12:08 +00:00
Long Ling
402c7bb521 Merge "[DO NOT MERGE] Move device config high_refresh_rate_blacklist to display_manager" into qt-qpr1-dev 2019-09-04 18:07:57 +00:00
Fabian Kozynski
6fdfdbed1d Merge "Do not animate QSCustomizer when screen off" into qt-qpr1-dev 2019-09-04 17:50:59 +00:00
Julia Reynolds
b8bec9e55f DO NOT MERGE Temporarily increase notificationchannel limit
Test: atest
Bug: 140321555
Change-Id: I683871d900d531319c918e40aa01c5cb80c01e3d
2019-09-04 16:22:54 +00:00