Commit Graph

647283 Commits

Author SHA1 Message Date
Winson Chiu
7708fd9733 Merge "Revert "Only dump necessary info when specifying a package"" into sc-dev 2021-08-03 00:32:30 +00:00
Vishnu Nair
40ddf958e6 Merge "SurfaceView: Synchronize destframe updates with SurfaceView size changes" into sc-dev 2021-08-02 23:35:38 +00:00
Joshua Mccloskey
308cc9919e Merge "Set package name for learn more action" into sc-dev 2021-08-02 19:59:32 +00:00
Evan Severson
b13bdd4ae2 Merge "Restrict the mic and cam phone call ops when toggle is muted" into sc-dev 2021-08-02 19:56:14 +00:00
TreeHugger Robot
7f95e16a0d Merge "Fix flickering when switched to the task without IME shown" into sc-dev 2021-08-02 16:59:45 +00:00
Fabian Kozynski
d9f207c042 Merge "Fix index when moving SecurityFooter" into sc-dev 2021-08-02 16:15:39 +00:00
Ming-Shin Lu
7d9eb2b6f9 Fix flickering when switched to the task without IME shown
When switching tasks from the task has IME shown to another task
without showing IME (e.g. youtube apps.), the flickering might happen
because the next activity accidentally received the IME insets attached
in the previous activity.

If the IME is attached to one app window on that time, even the next
app window is behind the IME window, conceptually the window should
not receive the IME insets if the next window is not eligible IME
requester and ready to show IME on top of it.

Fix the logic in InsetsPolicy#adjustVisibilityForIme for the above
case.

Fix: 192337037
Bug: 194746204
Test: atest WindowStateTests#\
        testAdjustImeInsetsVisibilityWhenTaskSwitchIsAnimating
Merged-In: Ib3a1eacedd3763bcf1e6eed82e7efdf01c50b204
Change-Id: Ib3a1eacedd3763bcf1e6eed82e7efdf01c50b204
(cherry picked from commit f4eb054460)
2021-08-02 14:49:37 +00:00
Beverly Tai
72553d5124 Merge "If keyguard has preferred refresh rate, always use it" into sc-dev 2021-08-02 13:01:58 +00:00
Matt Pietal
1d3166e69d Merge "Password bouncer landscape fix" into sc-dev 2021-08-02 12:54:28 +00:00
TreeHugger Robot
e25f794261 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-08-01 03:21:00 +00:00
Kyunglyul Hyun
284388a267 Merge "Don't return selected routes as transferable" into sc-dev 2021-07-31 03:55:57 +00:00
TreeHugger Robot
b5eba64c2e [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: 9bf0c45e6d -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ib87a8128aee7d043d1ee95793a0a12e077bc528c
2021-07-31 02:17:39 +00:00
Jack He
cd9340419a Merge "Broadcast Bluetooth state to OFF properly" into sc-dev 2021-07-31 02:08:17 +00:00
TreeHugger Robot
78cfd906ac [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: d3552ecc9c -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ib15582507e35ecfc1d55a7c4ed56b888eed8aeda
2021-07-31 02:04:31 +00:00
TreeHugger Robot
9bf0c45e6d Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-07-31 02:01:01 +00:00
TreeHugger Robot
d3552ecc9c Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-07-31 01:54:30 +00:00
Bill Yi
4c215007cf Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-31 00:51:30 +00:00
Beverly Tai
bafe3db841 Merge "Replace 'use fingerprint to open'" into sc-dev 2021-07-31 00:10:54 +00:00
Kevin Chyn
c52f2f069f Merge "Fix condition where FP would require confirmation" into sc-dev 2021-07-31 00:10:05 +00:00
Joshua Mccloskey
eafbcef5fd Set package name for learn more action
Test: Verified correct activit is launched from settings info button.
Bug: 193577587
Change-Id: If691b7d494b4fb43a4224385bf08787bd17d1d35
2021-07-30 16:47:41 -07:00
Vishnu Nair
f13eac9f7e SurfaceView: Synchronize destframe updates with SurfaceView size changes
This CL fixes one of the issues with SurfaceView parent frame and
content syncing.

With BLAST, we have two surface controls each setting a scale. The
parent surface control sets a scale based on the requested surface
size and the SurfaceView layout size. The BlastBufferQueue surface
control scales the buffer to the requested buffer size if the buffer
has the appropriate scale mode.

The destination frame controls the second scaling and it must be
applied with the parent surface scale changes. This cl fixes flickers
where the requested fixed surface size changes without any view size
changes. This cl allows the caller to pass in a transaction to
BLASTBufferQueue#update which is updated with the destination frame
changes. This transaction can then be applied with the parent
surface changes.

This also fixes an issue where destination Frame was being set on
every buffer update and when we updated the BlastBufferQueue size.
Since buffer transactions can be queued up on the server side, a
stale value maybe applied for a few frames causing flickers.

Fixes: 194458377
Test: bug repro steps
Test: atest SurfaceViewSyncTest#testSurfaceViewSetFixedSize

Change-Id: I118bd1c3942b389e3951c3fd7389403895fc7b31
2021-07-30 16:18:21 -07:00
Ugo Yu
80f2ad68b9 Broadcast Bluetooth state to OFF properly
In current logic, we broadcast Bluetooth state OFF at BLE_ON state.
However, if Bluetooth gets crashed, we won't have the chance to send OFF
intent as we never get to BLE_ON.

This change makes the BluetoothManagerService skips the OFF intent only
if the previous state is a BLE state.

Bug: 189271317
Bug: 195032127
Test: manual
Change-Id: I3936766ab8bdd45d59550dacb64bdc0323bb424d
(cherry picked from commit 1b2f8bc9843b2d6ba7ba199a89412c8fb632f508)
2021-07-30 23:17:18 +00:00
Ahaan Ugale
a13d80321e Merge "Hotword: Treat preflight soft denial as granted." into sc-dev 2021-07-30 22:37:33 +00:00
Bill Yi
cd1ad293c4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie1b4fe96ed1933cba8d4afb15d8e5ec0f80e18b9
2021-07-30 20:44:29 +00:00
Mark Renouf
008af7300c Merge "Use OnImageAvailableListener to wait for buffer" into sc-dev 2021-07-30 20:37:20 +00:00
Fabian Kozynski
0ef21c1494 Fix index when moving SecurityFooter
When moving the security footer in the same container, correct the index if
it's before the desired position (because it will be removed from the
current position).

Also, extract moving logic so it can be easily tested.

Fixes: 195104944
Test: atest QSPanelTest QSPanelSwitchToParentTest
Change-Id: Ibc85cd5501010fcf9752d8af103500479c6f28c2
Merged-In: Ibc85cd5501010fcf9752d8af103500479c6f28c2
2021-07-30 20:29:30 +00:00
Bill Yi
0d53607491 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I58b70865951bfbdd7f64bd57a85fd2366a0d50e2
2021-07-30 20:18:44 +00:00
Bill Yi
d447e2c9b8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I579bfe6613d231e8882b5a0a44bbe057b9f9638f
2021-07-30 19:45:25 +00:00
Winson Chiu
d71a80ccde Revert "Only dump necessary info when specifying a package"
This reverts commit 9b34cca80f.

Reason for revert: restore info for S to not break tooling, can re-consider for T

Bug: 191386282

Change-Id: I3e6919c5ce8073f22c860e1be59264668643d910
2021-07-30 19:19:47 +00:00
Martin Brabham
e0276d9c70 Merge "Add implementation for IRK to parcelable functions." into sc-dev 2021-07-30 18:57:19 +00:00
Beverly
cf26667924 If keyguard has preferred refresh rate, always use it
Even if we're dozing b/c this # is ignored in low-power mode,
but we still want the display to already be at this refresh
rate when we exit doze.

Test: on device w/ udfps enrolled + preferred refresh rate config,
check dumpsys display when in AOD and check for refresh rate vote
(ie: PRIORITY_APP_REQUEST_REFRESH_RATE_RANGE = preferred rate)
Bug: 192699858
Change-Id: I9ae31e64c4d698eb9e7da46fad5331632b632090
2021-07-30 18:45:01 +00:00
TreeHugger Robot
16065df252 Merge "Clarify on return value of IC#setImeConsumesInput()" into sc-dev 2021-07-30 18:43:34 +00:00
Evan Severson
81c08f1d01 Restrict the mic and cam phone call ops when toggle is muted
This way other systems can see that the op is IGNORED and not ALLOWED
which will help with other privacy features when showing the mic
accesses.

Test: Make phone call, observe, flash with fix, make phone call, observe
Fixes: 195084844
Change-Id: I01bca852a9798e3de1aec6dfa7cd1ae8fdd6c87c
2021-07-30 11:18:22 -07:00
Li Li
ef12967b75 Merge "Freezer: fix exception when parsing /proc/locks" into sc-dev 2021-07-30 16:35:16 +00:00
Ryan Mitchell
f56550282e Merge "Apply overlay updates to widget provider info" into sc-dev 2021-07-30 16:04:00 +00:00
Evan Severson
705c7539eb Merge "Check the current user in the system server for SensorPrivacyManager" into sc-dev 2021-07-30 15:55:22 +00:00
Bill Yi
14a3d4f5ea [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 7c6a1b2f87 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ide9da06929ae5176883f2902e75c3b8f98c48d49
2021-07-30 14:53:59 +00:00
Bill Yi
ab93af3c44 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ff530f0a8d -s ours
am skip reason: subject contains skip directive

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

Change-Id: I02d051ef3c6b009679a10c06cdc36d09c4a080e0
2021-07-30 14:32:28 +00:00
Zimuzo Ezeozue
3fefc5c3ed Merge "Fix fd leak while bypassing transcoding in media APIs" into sc-dev 2021-07-30 14:23:48 +00:00
Matt Pietal
1ee7293d38 Password bouncer landscape fix
For the password security method, in order to provide a smoother
experience when closing the bouncer and transitioning to the home
screen, we tightly control ime insets animations. However, in
landscape mode, this request is denied which produces an immediate
call to onCancelled(). This leaves the bouncer up while unlocking the
phone (yikes), and leaves the user no way to get rid of the keyguard
until the screen is powered off.

If the call to control insets is denied, issue the finish callbacks to
ensure that downstream consumers know the bouncer is complete.

Fixes: 194782889
Test: manual - From lockscreen with password security method,
double-tap power to open camera, rotate to landscape, and hit the lock icon

Change-Id: Id34fb8932642b06b089f460713daed1d9a9fe6fa
2021-07-30 10:11:07 -04:00
Yohei Yukawa
d8c0b18ea5 Clarify on return value of IC#setImeConsumesInput()
This CL aims to clarify on what the return value of

  InputConnection#setImeConsumesInput()

means for both the IME authors and editor authors [1][2].

In short, the semantics is exactly the same as

  InputConnection#performSpellCheck()

hence this CL reuses its @return section.

Other than clarifying an API doc, this CL changes nothing.

 [1]: Ic04cacfd73f1f4cb254bb16caf6b04c00c91a318
      30fe6aa964
 [2]: I8ac1ea4d53f747b0086ed415ff90793dfc6155bc
      66b21086e3

Bug: 175362887
Fix: 194099171
Test: presubmit
Change-Id: Ibdfe81a9dd1448856797aaed2f14de1314da1cac
Merged-In: Ibdfe81a9dd1448856797aaed2f14de1314da1cac
(cherry picked from commit f9ca70be57)
2021-07-30 13:49:02 +00:00
Bill Yi
e1da2386ce Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0eb67fd596a48a262c766037893dfa5341396ac4
2021-07-30 11:01:55 +00:00
Bill Yi
ff530f0a8d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifbd45d9bb55f6450da12428e7d14b4d3d2299d86
2021-07-30 10:52:22 +00:00
Bill Yi
7c6a1b2f87 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifb46839ebfdd3cd2670a7218c5f3955399dc3097
2021-07-30 10:46:03 +00:00
Junyu Lai
b8364adc23 Add debug log for tracking NPE of mMobileIfaces
Test: TH
Bug: 192758557
Original-Change: https://android-review.googlesource.com/1777887
Merged-In: Ib048c18b1c64627de5a9d2b04d10e084a014ff64
Change-Id: Ib048c18b1c64627de5a9d2b04d10e084a014ff64
2021-07-30 06:08:30 +00:00
Junyu Lai
f5dc09bc7c Fix mMobileIfaces is not protected by lock
Currently, mMobileIfaces is accessed from multiple threads, and
should be protected from concurrent accessing. However, since the
variable could be accessed frequently, holding the mStatsLock
would make this be blocked by network stats I/O operations.
Thus, protect the variable by making it volatile.

Test: Wifi on/off stress test
Bug: 192758557
Original-Change: https://android-review.googlesource.com/1765686
Merged-In: Ie7694a63f5203ee7c83830ca13d97219b7949fd7
Change-Id: Ie7694a63f5203ee7c83830ca13d97219b7949fd7
2021-07-30 05:59:21 +00:00
Kyunglyul Hyun
91c76bc5f4 Don't return selected routes as transferable
MediaRouter2Manager returned selected routes
as "transferable" routes.
This CL fixes it.

Bug: 194370296
Test: manually
Change-Id: I85e0e94bd38e07ee1a99369e9de5a4564aee6d58
2021-07-30 05:23:04 +00:00
Kevin Chyn
bf637195e9 Merge "Disable face haptics during coex non-bypass by default" into sc-dev 2021-07-30 05:20:32 +00:00
Wesley Wang
614b1e94ae Merge "Adjust SystemUI PowerModule" into sc-dev 2021-07-30 04:10:00 +00:00
Kevin Chyn
4815db0d69 Fix condition where FP would require confirmation
Adds IconController#deactivate to allow clean transfer of view
ownership. Now we deactivate the face IconController once we know we
need to animate to the fingerprint state, and use the fingerprint
IconController to display subsequent animations.

This also fixes a hidden issue where the face IconController was
leaking (pulsing logic keeps running) even after BP is dismissed.

Bug: 194351208
Test: manual, for requireConfirmation=true and requireConfirmation=false
Test: atest com.android.systemui.biometrics

Change-Id: Iefd3df7a8706ce9213109862d509235a74aa8099
2021-07-29 18:31:52 -07:00