Commit Graph

18290 Commits

Author SHA1 Message Date
Wu Ahan
766eca41a9 Merge "Add CUJ constants for SUW jank insturmentation" into tm-dev am: b6acbe6ce0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17055967

Change-Id: I441072097ca2b3797ddc0c516b010b42b2ed9e83
2022-03-09 10:34:20 +00:00
Wu Ahan
b6acbe6ce0 Merge "Add CUJ constants for SUW jank insturmentation" into tm-dev 2022-03-09 10:07:42 +00:00
Eric Biggers
031a23fa87 Stop trying to update FDE password from LockSettingsService
Since FDE is no longer supported, updating the FDE password never does
anything.  Stop trying to do so.  Remove updateEncryptionPassword() from
ILockSettings, since its only caller outside of LockSettingsService
itself was in LockPatternUtils, and the previous CL removed that caller.

Bug: 208476087
Change-Id: I46c2a472177836f0c9084e4c3b4ed2e6c0ab61d5
(cherry picked from commit 3762ada110)
Merged-In: I46c2a472177836f0c9084e4c3b4ed2e6c0ab61d5
2022-03-09 03:13:13 +00:00
Eric Biggers
50cfdac9ba Remove clearEncryptionPassword() from LockPatternUtils
Remove this method which cleared the FDE password, since is no longer
used.  It was only being used by the accessibility settings in the
Settings app, and that caller was removed by http://ag/16624515.

Bug: 208476087
Change-Id: If0c75774555d3503f21857e66cce527c5edfa586
(cherry picked from commit 8e265a9fd3)
Merged-In: If0c75774555d3503f21857e66cce527c5edfa586
2022-03-09 03:12:59 +00:00
Eric Biggers
87d60042aa Merge "Stop trying to get/set fields in FDE footer" into tm-dev 2022-03-09 03:08:05 +00:00
Eric Biggers
661fdb3d9f Stop trying to get/set fields in FDE footer
Now that FDE is no longer supported, getting/setting FDE fields is
always a no-op, so there is no need to do so.

Bug: 208476087
Change-Id: Iab7ba8d36890daa0645b2cedf33e4bd177a86b63
(cherry picked from commit c6ce767e59)
Merged-In: Iab7ba8d36890daa0645b2cedf33e4bd177a86b63
2022-03-08 17:08:39 -05:00
Xiang Wang
a138a782de Merge "Provide game task bitmap to TakeScreenshotService as screenshot" into tm-dev am: 81aa0eac27
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16938819

Change-Id: Ica276f86e62a5a86015eebd0e4f5269089869449
2022-03-08 20:21:50 +00:00
Xiang Wang
81aa0eac27 Merge "Provide game task bitmap to TakeScreenshotService as screenshot" into tm-dev 2022-03-08 20:06:57 +00:00
Evan Rosky
ca924a80b0 Merge "move shell_transit sysprop to persist.wm" into tm-dev am: 10dc2271c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17060214

Change-Id: I92f9092df6cf1cd6f8f10f57254f338a0500b7a8
2022-03-08 19:45:35 +00:00
Evan Rosky
10dc2271c1 Merge "move shell_transit sysprop to persist.wm" into tm-dev 2022-03-08 19:34:01 +00:00
TreeHugger Robot
fa6bdc334a Merge "Use parentUserId when reading config_imeDrawsImeNavBar" into tm-dev am: 18654af7fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17108239

Change-Id: I98ad80ce0886eff8e9b21f87962c4622f34921f8
2022-03-08 00:51:10 +00:00
TreeHugger Robot
18654af7fd Merge "Use parentUserId when reading config_imeDrawsImeNavBar" into tm-dev 2022-03-08 00:45:59 +00:00
TreeHugger Robot
d62c01d443 Merge "Introduce InputMethodNavButtonFlags" into tm-dev am: fca00d3193
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17108238

Change-Id: Iced5284614d59372477298d35290f0fa26167902
2022-03-07 22:09:59 +00:00
TreeHugger Robot
fca00d3193 Merge "Introduce InputMethodNavButtonFlags" into tm-dev 2022-03-07 22:00:58 +00:00
Yohei Yukawa
f93769b1ae Use parentUserId when reading config_imeDrawsImeNavBar
This CL rewrites my previous CLs [1][2], which were written with an
incorrect assumption that config_imeDrawsImeNavBar was overlaid for
the entire profile group.

While SysUI's navigation mode is dynamically configurable with Runtime
Resource Overlay (RRO), it turns out that we currently configure RRO
only for the profile parent user.  This means that processes run under
other profile users continue seeing the base resource value regardless
of how RRO is configured for the profile parent user.  This is the
root cause of Bug 219604375.

To work around this limitation, this CL uses InputMethodManagerService
to monitor the value of config_imeDrawsImeNavBar for the profile
parent user then to propagate it to the IME process.  Luckily we have
already been doing a similar thing for the IME switcher visibility.
What this CL does is 1) adding a new flag to InputMethodNavButtonFlags
then 2) just using the flag sent from IMMS instead of directly reading

  config_imeDrawsImeNavBar

NavigationBarController.

Alternative solutions considered:

* Set RRO for profile users

  One of straightforward ways to address this problem is letting the
  Setting app apply the same RRO for other profile users.  However,
  this could be tricky when 1) the user changes navigation mode then
  2) sets up a new profile, because the Settings app is not an
  always-running process.  While we might be able to rely on

    com.android.settings.SettingsInitialize#onReceive()

  to do so, the profile user's state could be left in a broken state
  if that method was somehow interrupted.  To minimize the risk, we
  decided to not take this approach for T.

* Make OverlayManager be aware of profile groups

  Given how RRO is used in SysUI, it's make more sense if
  OverlayManager natively supports resource overlay for the entire
  profile group.  However, introducing such a new concept is too late
  for Android T.  We have filed Bug 221443458 to see if we can do this
  in a future version of Android.

 [1]: I3e7e1f83554444131e2765dc159617bb9e2337c7
      ff7b453ca8
 [2]: Id0cfa44cce5de515dc5d28254e1d41bdfc01e201
      177e4aafdb

Fix: 219820813
Test: Manually verified as follows
  1. Build aosp_coral-userdebug then flash it.
  2. adb root
  3. adb shell setprop persist.sys.ime.can_render_gestural_nav_buttons true
  4. adb reboot
  5. adb install -r TestDPC-normalv8001.apk
  6. adb shell am start -n com.afwsamples.testdpc/.SetupManagementLaunchActivity
  7. Set up work-profile
  8. make -j EditTextVariations
  9. adb install -r \
   $ANDROID_TARGET_OUT_TESTCASES/EditTextVariations/arm64/EditTextVariations.apk
 10. adb shell am start --user 0 -n \
   com.android.inputmethod.tools.edittextvariations/.EditTextVariations
 11. adb shell dumpsys input_method | grep mNavigation
      -> "mNavigationBarController={mImeDrawsImeNavBar=false, ..."
 12. Enable gesture navigation
 13. adb shell dumpsys input_method | grep mNavigation
      -> "mNavigationBarController={mImeDrawsImeNavBar=true, ..."
 14. adb shell am start --user 10 -n \
   com.android.inputmethod.tools.edittextvariations/.EditTextVariations
 15. adb shell dumpsys input_method | grep mNavigation
      -> "mNavigationBarController={mImeDrawsImeNavBar=true, ..."
Change-Id: Id3d6a71d8ba1bfa49131350b68aa8d3424eca381
2022-03-07 11:13:58 -08:00
Yohei Yukawa
5f9f1ca560 Introduce InputMethodNavButtonFlags
This CL reworks my previous CL [1], which let
InputMethodManagerService report whether the IME switcher icon needs
to be shown or not to the IME process by using IInputMethod IPCs.

It turns out that we need to propagate one more boolean value in order
to address Bug 219820813.  It'd be much clearer if we use bit flags
rather than adding a new boolean parameter to each IPC method.  Thus
this CL rewrites my previous CL by using a bit flag defined in a newly
introduced InputMethodNavButtonFlags.

This is a purely mechanical refactroing.  There should be no behavior
change.

 [1]: I5de9ac0dc8670842edf66306bb4c281c77cea376
      75b935a12b

Bug: 215551357
Bug: 219820813
Test: Manually verified with for the following scenarios:
 * Enabling/disabling multiple IMEs
 * Attaching/detaching a hardware keyboard
 * Showing/hinding the IME switcher
 * Showing an IME on the lock screen
Change-Id: I81cb062a08d484ec8ce5d7b2fea64ce19028f82e
2022-03-07 10:47:47 -08:00
Julia Tuttle
6c56b7dea8 Make StatusBarService.clearNotificationEffects oneway
This doesn't need to be blocking (as far as me and a colleague can tell)
and was causing ANRs.

Bug: 204160836
Test: tbd
Change-Id: I16f7e20ddbcdb7546038273aede545a920fce87e
(cherry picked from commit 340cf6fdad)
2022-03-07 17:35:56 +00:00
Issei Suzuki
2623ae999e Merge "Apply right animation type on translucent window containers." into tm-dev am: 4a785a1407
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17002646

Change-Id: I7d526af15e6c6513252ef39f2fd01721898d8dd5
2022-03-07 12:08:00 +00:00
Issei Suzuki
4a785a1407 Merge "Apply right animation type on translucent window containers." into tm-dev 2022-03-07 11:46:47 +00:00
Sarup Dalwani
2076e74831 Merge "Renaming isCredentialSharedWithParent to isCredentialSharableWithParent" 2022-03-07 10:44:17 +00:00
Chiachang Wang
e0055a16e4 Merge "Set local routes exclusion in the networkAgent" am: 4734b5810b am: b8cda9d7e0 am: c30f82b94b am: 7d2434fb76
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978095

Change-Id: Iba6e900e6b9b684c7ea1bca5b09af1f8735a3a2c
2022-03-07 08:50:17 +00:00
Chiachang Wang
7d2434fb76 Merge "Set local routes exclusion in the networkAgent" am: 4734b5810b am: b8cda9d7e0 am: c30f82b94b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978095

Change-Id: I6bb0fc565b0596a17b47cf58878193b132b887cf
2022-03-07 08:30:24 +00:00
Chiachang Wang
c30f82b94b Merge "Set local routes exclusion in the networkAgent" am: 4734b5810b am: b8cda9d7e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978095

Change-Id: I46931b7926b1da889989384159b012826e02d96a
2022-03-07 08:09:05 +00:00
Chiachang Wang
b8cda9d7e0 Merge "Set local routes exclusion in the networkAgent" am: 4734b5810b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978095

Change-Id: I03eaf7cf1ffc7237f267a85d2d1a25d93afe3896
2022-03-07 07:46:21 +00:00
Chiachang Wang
4734b5810b Merge "Set local routes exclusion in the networkAgent" 2022-03-07 07:25:52 +00:00
Chiachang Wang
68e528d468 Set local routes exclusion in the networkAgent
Add a field in the VpnConfig to store local route exclusion
bit from VpnProfile, and set the value into the networkAgent
of VPN network.

Bug: 184750836
Test: atest FrameworksNetTests HostsideVpnTests
Change-Id: I22b9a5990a3dab0418b44ec19d2996ead6529231
2022-03-07 04:26:52 +00:00
Xiang Wang
ab322f8521 Provide game task bitmap to TakeScreenshotService as screenshot
* Move the BitmapUtil to com.android.internal package
* Remove bitmap result from GameSession#takeScreenshot API

Bug: 219992742
Test: atest GameServiceProviderInstanceImplTest
Change-Id: I4bf29d623f781434ec7ffe4443e658880c31e619
Move the BitmapUtil to com.android.internal package
2022-03-04 17:23:07 -08:00
TreeHugger Robot
861feb383e Merge "Make StatusBarService.clearNotificationEffects oneway" 2022-03-04 19:31:09 +00:00
Matt Casey
edbf1f7afe Merge "Don't show mini resolver if no same-profile targets" into tm-dev am: 8da492907e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17069665

Change-Id: I95e7a7b8f6c7272e7ec0c8bd14e3299a2cba7287
2022-03-04 17:34:31 +00:00
Matt Casey
8da492907e Merge "Don't show mini resolver if no same-profile targets" into tm-dev 2022-03-04 17:32:26 +00:00
TreeHugger Robot
f2b8547fd8 Merge "Restrict getInputMethodWindowVisibleHeight" into tm-dev am: 761938ea59
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16941141

Change-Id: I454208e50356ef61eadd9650f99a41a29771e1db
2022-03-04 10:31:35 +00:00
TreeHugger Robot
761938ea59 Merge "Restrict getInputMethodWindowVisibleHeight" into tm-dev 2022-03-04 10:08:20 +00:00
Julia Tuttle
340cf6fdad Make StatusBarService.clearNotificationEffects oneway
This doesn't need to be blocking (as far as me and a colleague can tell)
and was causing ANRs.

Bug: 204160836
Test: tbd
Change-Id: I16f7e20ddbcdb7546038273aede545a920fce87e
2022-03-03 17:03:29 -05:00
Sarup Dalwani
ece66c4116 Renaming isCredentialSharedWithParent to isCredentialSharableWithParent
Renaming isCredentialSharedWithParent to isCredentialSharableWithParent,
as for work profile there is possibility to enroll its own credential.

Bug: 222108271
Test: atest android.multiuser.cts.UserManagerTest
atest LockSettingsServiceTests

Change-Id: If343342d0a5e996cbd430a4063b25fbc4874c5c0
2022-03-03 17:23:49 +00:00
Matt Casey
fdfb05e384 Don't show mini resolver if no same-profile targets
Previously we assumed there was at least one.

Test: atest ResolverActivityTests
Bug: 222497968
Change-Id: I4a5c43fe32e533841cb55cdfef6fc9aaea43f8cf
2022-03-03 12:03:07 -05:00
Issei Suzuki
a905fe439b Apply right animation type on translucent window containers.
Bug: 217174830
Test: atest TransitionTests
Change-Id: I97c5220b9fe3fde33e1426c8fc2598410fad3735
2022-03-03 15:08:10 +01:00
TreeHugger Robot
dc71c6ebf3 Merge "Incorporate API feedback: CAI requestCursorUpdates()" into tm-dev am: 33a2b4bacd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16977626

Change-Id: I29837bf7a2474d1e1f8e4562a54ecc94d50f027b
2022-03-03 13:38:47 +00:00
TreeHugger Robot
33a2b4bacd Merge "Incorporate API feedback: CAI requestCursorUpdates()" into tm-dev 2022-03-03 13:27:04 +00:00
Naomi Musgrave
769b37a901 Merge "MediaProjection sets content recording details in WM directly." into tm-dev am: 3302797586
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16933664

Change-Id: Ied0cd35f5fb924b0a47ffa862c9a19c82621606b
2022-03-03 10:52:52 +00:00
Naomi Musgrave
3302797586 Merge "MediaProjection sets content recording details in WM directly." into tm-dev 2022-03-03 10:45:36 +00:00
Vadim Caen
264ed1adbe Merge "Move OnBackInvokedCallback to window package." into tm-dev am: 8fa5667732
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17013983

Change-Id: Id59bf47b6ff48a22218519504c3994804f5cce06
2022-03-03 10:19:19 +00:00
Vadim Caen
8fa5667732 Merge "Move OnBackInvokedCallback to window package." into tm-dev 2022-03-03 10:03:41 +00:00
Ahan Wu
3bda078b54 Add CUJ constants for SUW jank insturmentation
Bug: 195899934
Test: build pass
Change-Id: Iece664bf3f69455670b0ca68e3c80b40acf05119
2022-03-03 15:28:14 +08:00
Evan Rosky
cf3d0a65a4 move shell_transit sysprop to persist.wm
This way we can use a context that systemui can set via flipper

Bug: 219067621
Test: manual
Change-Id: I29d1c39a1733e4d5f19f7f025e8a2cf2ca4f6d5a
2022-03-02 17:04:32 -08:00
Naomi Musgrave
27655e1fc3 MediaProjection sets content recording details in WM directly.
Content recording relies upon a class describing current state.
rather than passing around details from media > display > wm.
WMService keeps track of the session in ContentRecordingController.
ContentRecordingController manages hand-off between different
DisplayContent instances, as the session details are changed.

Manually tested that fold/unfold handling when screen recording
from QS tile still works, and that taking over a screen cast
with a screen recording works.

Refactoring logic from DisplayContent into new recording
delegate will come in a future change.

Bug: 216756854
Test: atest FrameworksCoreTests:ContentRecordingSessionTest
Test: atest WmTests:DisplayContentTests
Test: atest WmTests:ContentRecordingControllerTests
Change-Id: Ib4f125dd703d362ac13fcbe469d00b345827e706
2022-03-02 18:32:34 +00:00
TreeHugger Robot
987c93ce3c Merge "Configure handwriting window with the IME's pid and uid for ANRs" into tm-dev 2022-03-02 18:22:21 +00:00
David Samuelson
6061fe0b72 Merge "Improve handling of GameService when bound processes die." into tm-dev am: 7e5dfec3b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16945424

Change-Id: I182afb6af2bf706689710bb70d7df96e949ef7a6
2022-03-02 16:05:54 +00:00
David Samuelson
7e5dfec3b1 Merge "Improve handling of GameService when bound processes die." into tm-dev 2022-03-02 16:01:53 +00:00
Vadim Caen
72077726f5 Move OnBackInvokedCallback to window package.
Originally, View was implementing onBackInvokedDisptacherOwner, but now
only Activity and Dialog and since back event are related to the
window, it makes sense to move them into the android.window package

This follow up comment at:
ag/c/platform/frameworks/base/+/16764116/comments/e131f3ef_e3e1d2e0

Test: atest BackNavigationTests
Bug: 221401221
Change-Id: Ia2f26162beb6a41b6e162b31e599e882f8bf7320
2022-03-02 16:28:57 +01:00
Pat Manning
c285646041 Merge "Refactor force visible nav bar into new secure setting." into tm-dev am: 60b397e84a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17002888

Change-Id: Ic4d460e62abe780593735127554b75e1fed7adda
2022-03-02 14:11:46 +00:00