Commit Graph

647303 Commits

Author SHA1 Message Date
Jayachandran C
feef48ebff Update telephony OWNERS file
Bug: 195421431
Test: Build
Change-Id: I7b0c70ff193c64ff7a569c899107441c8de867cd
2021-08-03 10:20:11 -07:00
Jayachandran C
874b716420 Update telephony OWNERS file
Bug: 195421431
Test: Build
Change-Id: I285eefd9abe2d8bef86ce189b6c19ee273b9e924
2021-08-03 10:13:34 -07:00
Nate Myren
50ff5ac8b8 Merge "Revert sync app op chain changes" into sc-dev 2021-08-03 15:16:35 +00:00
Jeff DeCew
2458c8f8c6 Merge "Fix hidden EmptyShadeView" into sc-dev 2021-08-03 13:28:10 +00:00
Joanne Chung
6791ed0112 Merge "Bug fix: fix System crash due to NullPointerException." into sc-dev 2021-08-03 12:45:43 +00:00
Ming-Shin Lu
0077be7bfa Merge "Fix Stay on 'SELECT INPUT METHOD' page after choosing input method" into sc-dev 2021-08-03 10:05:30 +00:00
Joanne Chung
223060d6f4 Bug fix: fix System crash due to NullPointerException.
If the voice interaction doesn't set RecognitionService, it may cause
NPE when it tries to get recognizer name. We don't need recognizer
name since Android 12, we delete it directly. To avoid the app does
not set RecognitionService then updating the app to earlier platform
that may cause boot loop. We add a warning log and set empty service
for voiceinteraction to let app aware the problem. Also logging and
unset the voiceinteraction service if the app try to update the app
without recognition service.

Bug: 170742278
Test: Use sample VoiceInteractionService without a RecognitionService
The system doesn't crash when choosing the sample app as the default
assistant app from Settings. And make sure the VoiceInteractionService
is unset.
Test: Install sample VoiceInteractionService with a RecognitionService
and then update it without a RecognitionService. Make sure the voice
interaction service is unset.

Change-Id: I79ab3d6449984ead0be28a94adaad57ab24d1fb9
2021-08-03 07:34:05 +00:00
Bill Lin
a017823717 Merge "Fix Multi user avater View overlap privacy dot" into sc-dev 2021-08-03 07:07:31 +00:00
Bill Yi
3dde81de83 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 9f10e214d5 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Icc5e2d53b0cfa1df62b3c139ec0e70676bdd84ea
2021-08-03 05:37:19 +00:00
Bill Yi
8bc7d250c0 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 2bf6a0e06c -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iaa0fc0971f4715971a28e77f5de2f0389cf68b9f
2021-08-03 05:29:25 +00:00
TreeHugger Robot
d07084aa5a Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-08-03 05:19:01 +00:00
TreeHugger Robot
6c9b2fc393 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-08-03 04:57:33 +00:00
Bill Yi
1cd73a062d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib14972fb3047cb1ef362e603d4141f8d20e522bf
2021-08-03 03:16:27 +00:00
Bill Yi
9f10e214d5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I297308cbfbd3b44adcbd100db63d173b2ff106fa
2021-08-03 03:05:37 +00:00
Bill Yi
2bf6a0e06c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I760f028a35c3b74b79dd6ec1595a83931a6d996c
2021-08-03 02:43:40 +00:00
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
Bill Yi
984e09a179 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I986d98864f062b019498ea13b3ac2468bec5f4f9
2021-08-02 23:07:53 +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
Nate Myren
86c337659a Revert sync app op chain changes
These changes cause some noted app ops to be swallowed due to one-way
app ops.

Fixes: 187721493
Test: atest AppOpsLoggingTest
Change-Id: I3b761b65b2e06138fc1d130bf80587f8885bb1d5
2021-08-02 12:50:44 -07: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
f4f68a3eb2 Fix Stay on 'SELECT INPUT METHOD' page after choosing input method
CL[1] aims to fix a potential ANR issue happen when the IME focused app
popup IME picker dialog and then switching another task through
status bar settings button or notifications, system will filter the IME
selection dialog window to not be the focused window when finding the next
focus during switching to the next task.

However, that filtering rule mistakes to ignore the IME picker dialog as
focus window when Gboard 'SELECT INPUT METHOD' page popup IME picker dialog
by using IMM#showInputMethodPicker (i.e. Gboard page still keeps focused),
so that after choosed input method from picker, Gboard page will not
receive onWindowFocusChanged callback to update the IME selection status,
because the page has already focused.

To fix this window focus issue of IME picker dialog and CL[1] issue scenerio
, use WindowState#isAnimating() to check if the app window with IME
picker dialog is under app transitioning, if so, then we can say it's
safe to ignore IME picker focus.

[1]: Iae3dd713b1e980067d28debea4e0a03707aa7938

Bug: 195073688
Bug: 194214768
Test: atest InputMethodManagerTest#testShowInputMethodPicker
Test: atest atest DisplayContentTests#\
        testImeMenuDialogFocusWhenImeLayeringTargetChanges
Test: manual as issue steps:
      0. Current input method is not Gboard (Canary).
      1. Tap Gboard (Canary) icon on App list.
      2. Tap 'SELECT INPUT METHOD' icon and select Gboard (Canary).
      3. Verify the IME status should updated after dismissed IME picker
         dialog.
Change-Id: I771d9817cd6dfcb1bf0d576d94bea9d1b9adc80e
2021-08-02 23:23:19 +08: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