Commit Graph

496050 Commits

Author SHA1 Message Date
Heemin Seog
434a416769 Merge "Ensure the notif panel is inflated" into rvc-qpr-dev 2020-09-23 23:30:09 +00:00
TreeHugger Robot
36019e12b2 Merge "Add BIND_INCLUDE_CAPABILITIES flag when binding to the service." into rvc-qpr-dev 2020-09-23 22:00:36 +00:00
Hongwei Wang
c4f7aa4577 Merge "[DO NOT MERGE] Bail early if mToken.asBinder() not found" into rvc-qpr-dev 2020-09-23 21:47:22 +00:00
Heemin Seog
fbec38f2ae Ensure the notif panel is inflated
Bug: 168823233
Test: manual
Change-Id: I1ed35a0c240acb2fa06241f34aa9c7a549dc360b
2020-09-23 14:19:25 -07:00
Heemin Seog
63276b9b70 Merge "DO NOT MERGE Only check internal inset types if they exist" into rvc-qpr-dev 2020-09-23 21:13:00 +00:00
Hongwei Wang
3de034371b [DO NOT MERGE] Bail early if mToken.asBinder() not found
Not able to reproduce what's in the original bug report, this null check
is added as a safe guard. A possible scenario is
PipTaskOrganizer#exitPip is called twice and there is a race condition
that the first applySyncTransaction is not ready yet and leave the
internal state as it was, the second call tries to get configuration and
it is null, which leads to a NPE.

Bug: 169173459
Test: N/A
Change-Id: Ie5292e8749bc186fba930dfee59c26d10ea680cd
2020-09-23 13:22:38 -07:00
Jay Aliomer
d40a7cf8ae Merge "DarkMode Tile affects all users + security bug" into rvc-qpr-dev 2020-09-23 19:54:16 +00:00
Heemin Seog
d5f7ed2782 DO NOT MERGE Only check internal inset types if they exist
Bug: 169205727
Test: atest WindowInsetsControllerTests (sdk_gphone_x86 && gcar_emu_x86)
Change-Id: I4d4a21ac3fc1b17d848c33917efae1f80571a37a
2020-09-23 18:07:42 +00:00
Jay Aliomer
3e605760ed DarkMode Tile affects all users + security bug
When setNightModeActivated is called, the change affects the current logged in user
Also, permission checks are made before changing dark theme
Test: manual
Bug: 168039904
Merged-In: I7786d9dde10f7547f5dd9fb00661fb89fde9f05c
Change-Id: I7786d9dde10f7547f5dd9fb00661fb89fde9f05c
(cherry picked from commit f16e87a992)
2020-09-23 18:03:16 +00:00
Patrick Baumann
e530998c9e Merge "Expose grantImplicitAccess in IPackageManager" into rvc-qpr-dev 2020-09-23 17:48:57 +00:00
Govinda Wasserman
01c000eff1 Merge "Adds Assistant Handles learning state to backed up settings" into rvc-qpr-dev 2020-09-23 17:21:47 +00:00
TreeHugger Robot
533f629fee Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-09-23 16:31:26 +00:00
Arnaud Berry
76724683e3 Add BIND_INCLUDE_CAPABILITIES flag when binding to the service.
This allows headless media applications to access the location if they
have the permission and is needed for AAOS apps in particular.

Bug: 169242810
Bug: 156904507
Test: manual with AAOS Media app
Change-Id: I1196718638fba336a815809578f643814545baf4
2020-09-23 16:21:50 +00:00
Tiger Huang
022e779ae5 Merge "Don't let IME window fit status bar" into rvc-qpr-dev 2020-09-23 16:18:17 +00:00
TreeHugger Robot
3f5064bbd5 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-09-23 16:17:24 +00:00
Alison Cichowlas
96c7d2368f Merge "Set the default screenshot delay to 0ms" into rvc-qpr-dev 2020-09-23 15:39:42 +00:00
Alison Cichowlas
d6e25d49fd Merge "Add a flag to change the screenshot keychord delay" into rvc-qpr-dev 2020-09-23 15:39:42 +00:00
Ming-Shin Lu
1c62ec882f Merge "DO NOT MERGE Revert "Fix showing keyboard without editor focused in some case..."" into rvc-qpr-dev 2020-09-23 15:29:16 +00:00
Heemin Seog
7c6a4eee44 Merge "Ensure notif panel behavior in immersive mode" into rvc-qpr-dev 2020-09-23 15:20:47 +00:00
Miranda Kephart
c632e0f8df Set the default screenshot delay to 0ms
Bug: 165267251
Test: manual -- ensured that the time needed to hold is 0ms if the
screenshot_keychord_delay debug value is not set, and that the
delay can still be changed using

adb shell device_config put systemui screenshot_keychord_delay <ms>

Change-Id: Iab989ecf14ef379658130adbced241e084554e63
Merged-In: Iab989ecf14ef379658130adbced241e084554e63
(cherry picked from commit bf82822698)
2020-09-23 13:58:41 +00:00
Miranda Kephart
488f0a688d Add a flag to change the screenshot keychord delay
Allows overriding the configured keychord delay (the time it takes,
after both the power button and volume down have been pressed, for
a screenshot to be registered/taken). If not set, reads from the
config file (as before). Can be updated with

adb shell device_config put systemui screenshot_keychord_delay <n>

where <n> is the desired timeout, in ms.

Bug: 165267251
Test: manual -- tried setting multiple values, ensured that deleting
the override reverts to the configured value

Change-Id: I2f86abe0332f8072ab4f53baa55f1999aed3865a
Merged-In: I2f86abe0332f8072ab4f53baa55f1999aed3865a
(cherry picked from commit 6e44e9d5b4)
2020-09-23 13:58:15 +00:00
Bill Yi
9a2d24ffaa Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I116eae7aaedccf5e8f29f58325c666b12dd719a8
2020-09-23 13:14:51 +00:00
TreeHugger Robot
b2bf4c16d1 Merge "Observe mic mute changes, consider recordingss paused when muted" into rvc-qpr-dev 2020-09-23 12:39:16 +00:00
Harpreet "Eli" Sangha
12ed7d3ef0 DO NOT MERGE Revert "Fix showing keyboard without editor focused in some case..."
Reason for revert: b/169215792
Reverted Changes:
I37ae6e30d:Fix showing keyboard without editor focused in som...

Change-Id: Ia370070d42aedc5aa411ec34d4c7aa43c1c65bcf
2020-09-23 10:42:37 +00:00
TreeHugger Robot
3b5abd1335 Merge "Introduce INPUT_CONSUMER permission for InputConsumer" into rvc-qpr-dev 2020-09-23 10:16:56 +00:00
TreeHugger Robot
0015e454b6 Merge "[RESTRICT AUTOMERGE]Don't finish noHistory activity while it is on the topmost." into rvc-qpr-dev 2020-09-23 09:51:55 +00:00
TreeHugger Robot
697b5fe297 Merge "Ignore screen decor tests" into rvc-qpr-dev 2020-09-23 08:38:09 +00:00
Heemin Seog
0a29fc6361 Ignore screen decor tests
Screen decors is not well supported in WM since
PRIVATE_FLAG_IS_SCREEN_DECOR is no longer supported.

Bug: 169115543
Test: atest ScreenDecorWindowTests
Change-Id: I27cdc1d882f770b1567984ffbda6b55ce6f41c69
2020-09-23 06:58:58 +00:00
TreeHugger Robot
12b807701f Merge "Fix showing keyboard without editor focused in some cases (1/2)" into rvc-qpr-dev 2020-09-23 02:51:49 +00:00
Govinda Wasserman
6c6e754f63 Adds Assistant Handles learning state to backed up settings
This solves the issue where the device would forget the learned state
when restoring from a backup.

Test: Tested locally
BUG: 159807978
FIX: 159807978
Change-Id: Ia1d5926621c4b45402036aaf06cbab19c12869bd
Merged-In: Ia1d5926621c4b45402036aaf06cbab19c12869bd
2020-09-23 02:18:28 +00:00
TreeHugger Robot
322120364a Merge "Add DisplayContent#forceDesktopMode" into rvc-qpr-dev 2020-09-23 01:20:21 +00:00
Bill Yi
3819752e62 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8ffa4b80f2962e45751865e7355ea11d080879de
2020-09-22 15:05:18 -07:00
TreeHugger Robot
0c04c70178 Merge "DO NOT MERGE Fix bug in getCurrentLocation cancellation" into rvc-qpr-dev 2020-09-22 21:50:04 +00:00
Nicholas Sauer
1688d946aa Merge "Use MATCH_ANY_USER when retrieving PackageInfo." into rvc-qpr-dev 2020-09-22 21:33:17 +00:00
TreeHugger Robot
79a1219925 Merge "Move all BluetoothCodecConfig and BluetoothCodecStatus APIs moved from the non-SDK API list to the blocklist in Android 11 back to the non-SDK API list." into rvc-qpr-dev 2020-09-22 21:00:17 +00:00
Winson Chung
d88d71e67a Clean up back handler from prototracer
Bug: 160161606
Test: Switch darkmode serveral times and verify there aren't
      old refs in the heap dump
Change-Id: I1678d10e725f6bdcbc807064413b4bc549ef8ef2
Merged-In: I1678d10e725f6bdcbc807064413b4bc549ef8ef2
(cherry picked from commit 469a3084b7)
2020-09-22 19:13:16 +00:00
Fabian Kozynski
c121ae683d Merge "Check ServiceState when showing dialog" into rvc-qpr-dev 2020-09-22 18:10:00 +00:00
Winson Chung
08c5191cfb Merge "Make specific nav touchable region when the IME is showing" into rvc-qpr-dev 2020-09-22 18:07:15 +00:00
Soonil Nagarkar
05f32ddfab DO NOT MERGE Fix bug in getCurrentLocation cancellation
Cancellation was not being propagated to the system server due to a
misunderstanding on how CancellationSignal functions. There is no
noticable impact for the user, as cancellation did properly prevent any
further locations, however this would have resulted in extra
power draw since the system server would not have canceled the
associated provider location request. This would have left
getCurrentLocation() as equivalent to requestSingleUpdate() where it was
supposed to be an all-around improvement that could save power.

Bug: 168666216
Test: manual + presubmits
Change-Id: I5c77db4cc56cce1b984587f65d2bcfb488436bb8
2020-09-22 10:33:11 -07:00
Tiger Huang
3cd311415b Don't let IME window fit status bar
1. So that the IME position won't be affected by the status bar
   position.
2. When status bar is hidden, the fullscreen IME can fill the status bar
   area.

Since IME can be behind status bar now, we set the status bar color to
be transparent, so that there won't be a visible color view at the
status bar area.

Fix: 168657591
Test: 1. Steps in the bug.
      2. Play WindowInsetsTests with combinations of system bar
         visibilities, navigation mode, screen orientation, and display
         cutout.
      3. Show/hide status bar while IME is visible, and see if there is
         any flicker.
Change-Id: Ia133a62cfa98c47c0d3f8d118947a18246dd8d4f
2020-09-23 01:13:54 +08:00
Winson Chung
073d99fa1d Make specific nav touchable region when the IME is showing
- IMEs would like to receive touches that are near the bottom
  of the screen under the nav bar so we should allow this

Bug: 168552683
Test: Verify touchable region from dumpsys input in all nav
      modes w/ ime switcher
Change-Id: Ic2ee8cc8ce59c4025c6730195d6e1050daddf87a
Merged-In: Ic2ee8cc8ce59c4025c6730195d6e1050daddf87a
(cherry picked from commit fc53675a40)
2020-09-22 16:42:19 +00:00
Matt Pietal
bcf5c853d5 Media - Remove before adding for config changes
Views were not properly getting reinflated due to font/display size
changes. When this happens, remove the views and recreate them.

Fixes: 168812862
Test: manual, follow bug steps
Change-Id: I1390110f33eb9ac9a7c616fbde281186c34d2f3d
2020-09-22 14:59:32 +00:00
Jing-yan, Jang
29bedbcd95 Merge "LockSettingsService: Move down onAuthTokenKnownForUser()" into rvc-qpr-dev 2020-09-22 09:43:03 +00:00
Ming-Shin Lu
2b134a1d79 Add DisplayContent#forceDesktopMode
As WMS#mForceDesktopModeOnExternalDisplays is a flag to force enable
desktop mode on public secondary display.

Since some code points didn't check if the display is public
& secondary display, it may cause some issues like Bubbles using
private virtual display but the content can show system decorations and
IME always failed to show, if user enabled force desktop mode config
from developer option.

Add DC#forceDesktopMode to make sure the check is proper and consistent.

Fix: 163333691
Test: manual as test steps:
1) Enable "Force Desktop Mode on External display" from Settings ->
   Developer option.
2) Launch Message or FB messenger with chat head bubbles
3) Taping EditText and check if soft-keyboard can show up correctly.
Test: atest DisplayContentTests#testForceDesktopMode

Merged-In: I6ec52b6b1642fd547ebc222ae1bf9a2958e5fb2d
Change-Id: I6ec52b6b1642fd547ebc222ae1bf9a2958e5fb2d
2020-09-22 13:09:48 +08:00
TreeHugger Robot
8ca51bde8c Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-09-22 04:35:46 +00:00
Nicholas Sauer
e503f45548 Use MATCH_ANY_USER when retrieving PackageInfo.
bug: 157104172
Test: m gcar && emulator; cts-tradefed run cts -m CtsPermission2TestCases -t android.permission2.cts.PrivappPermissionsTest
Test: With a package set as <install-in user-type="FULL" />, but not SYSTEM, run: adb shell cmd package get-privapp-permissions <packagename> and get the expected output.

Change-Id: I816fc36b448856a0e0244211549b54e0a95f277e
2020-09-22 04:23:11 +00:00
TreeHugger Robot
ebf98f9705 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-09-22 04:22:54 +00:00
Rahul Sabnis
4bbbfaa6ec Move all BluetoothCodecConfig and BluetoothCodecStatus APIs moved from
the non-SDK API list to the blocklist in Android 11 back to the non-SDK
API list.

Tag: #feature
Bug: 168812851
Test: atest BluetoothHostTest#testCodecMethodsAccessible
Change-Id: I29983284b1a1c271d983c99b286e204604abdc72
2020-09-22 04:10:46 +00:00
Wei Sheng Shih
e966c47691 Merge "[wm] Use existing parent window token for child windows" into rvc-qpr-dev 2020-09-22 02:43:13 +00:00
John Reck
104baf809b Merge "Fix override setBufferCount" into rvc-qpr-dev 2020-09-22 01:18:13 +00:00