Commit Graph

18318 Commits

Author SHA1 Message Date
Rambo Wang
58e76a792e Merge "Introduce CarrierPrivilegesCallback to replace CarrierPrivilegesListener" into tm-dev am: 01da996576
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17124493

Change-Id: I2e81cfbbac53828b9cef15399cc318a9817bfee0
2022-03-10 23:54:12 +00:00
Dmitri Plotnikov
886e2fe0f5 Merge "Exclude SDK Sandbox virtual UID from BatteryUsageStats" into tm-dev am: 1f90015283
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17088443

Change-Id: If93fa29ffc54d12506df2b84083da06850c7880e
2022-03-10 23:52:47 +00:00
Rambo Wang
01da996576 Merge "Introduce CarrierPrivilegesCallback to replace CarrierPrivilegesListener" into tm-dev 2022-03-10 23:26:08 +00:00
Dmitri Plotnikov
1f90015283 Merge "Exclude SDK Sandbox virtual UID from BatteryUsageStats" into tm-dev 2022-03-10 23:25:00 +00:00
Julia Tuttle
f5d211c8ce Merge "Make IStatusBarService.clearInlineReplyUriPermissions oneway" into tm-dev am: 835b4f7d63
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17144161

Change-Id: I4cc77fb73b0de97e291d6ac031d06c7e0a6cd6f4
2022-03-10 21:05:31 +00:00
Fabian Kozynski
aed7ff46ca Merge changes from topics "172251878", "presubmit-am-7890421506ee474b9057d3c5d333e341" into tm-dev am: 82b2876457
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17124902

Change-Id: Ida0f9d3874fd53c4da4ac75c81d633598a1a68ce
2022-03-10 20:44:09 +00:00
Dmitri Plotnikov
347638ee5c Merge "Fold SDK Sandbox UID battery stats into parent UID stats" into tm-dev am: 27df8ca365
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17039352

Change-Id: Ic04cf8ebe7105e2074ac148e743ac6e1946b05e4
2022-03-10 20:36:42 +00:00
Derek Jedral
184a1e1e21 Merge "Change LockPatternUtils to return empty list" into tm-dev am: e20b057da5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17128134

Change-Id: I3d81fa5569281c55cb87522484a9d3b46b487ddc
2022-03-10 20:34:47 +00:00
TreeHugger Robot
dca99afb31 Merge "Add a few TODOs for removing getSfInstance" into tm-dev am: 4827ea25a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17084523

Change-Id: I9eb553f66d45556622dee94d55099c8c40988322
2022-03-10 20:33:57 +00:00
TreeHugger Robot
e260fdb2b7 Merge "Introduce a flag to enable shell caption" into tm-dev am: 771ed53fc2 am: 164ca72e0b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17045911

Change-Id: I75e7ff1a6a9ce87aec680606314a6dea97e3d2cf
2022-03-10 20:06:53 +00:00
Rambo Wang
b66e3e3aa8 Introduce CarrierPrivilegesCallback to replace CarrierPrivilegesListener
Add new interface in CarrierPrivilegesCallback to notify the registrants
that carrier service for current user has changed.

Reshape the parameters of onCarrierPrivilegesChanged callback with
both Set instead of List/Array.

CarrierPrivilegesListener is deprecated. Once all clients have migrated
to CarrierPrivilegesCallback, it will be throughly cleaned up.

Bug: 216549778
Test: atest CarrierPrivilegesTrackerTest CarrierServiceTest
Test: atest WifiCarrierInfoManagerTest TelephonyRegistryManagerTest
Test: atest TelephonySubscriptionTrackerTest

Change-Id: I195a99ec6508c7fe3398908bfca632d8446ab29c
2022-03-10 12:00:14 -08:00
Julia Tuttle
835b4f7d63 Merge "Make IStatusBarService.clearInlineReplyUriPermissions oneway" into tm-dev 2022-03-10 19:40:01 +00:00
Fabian Kozynski
82b2876457 Merge changes from topics "172251878", "presubmit-am-7890421506ee474b9057d3c5d333e341" into tm-dev
* changes:
  CompatChange to use hidden API in TileService
  Fix loopers in TileServices
2022-03-10 19:09:25 +00:00
Dmitri Plotnikov
64d4b30850 Exclude SDK Sandbox virtual UID from BatteryUsageStats
Bug: 219077358
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: I42e73348f787841677ce63e8cb2be98a0b8e53e2
2022-03-10 18:18:11 +00:00
Dmitri Plotnikov
27df8ca365 Merge "Fold SDK Sandbox UID battery stats into parent UID stats" into tm-dev 2022-03-10 18:17:38 +00:00
Derek Jedral
e20b057da5 Merge "Change LockPatternUtils to return empty list" into tm-dev 2022-03-10 17:36:21 +00:00
TreeHugger Robot
4827ea25a2 Merge "Add a few TODOs for removing getSfInstance" into tm-dev 2022-03-10 17:28:32 +00:00
Fabian Kozynski
af6c54c109 CompatChange to use hidden API in TileService
This adds a new hidden API in StatusBarManager for active
TileService#requestListeningState. That way, we can verify that the
calling package is the same as the one belonging to the tile.
This is enforced using CompatChange for apps that target T+.

Test: atest StatusBarManagerServiceTest
Test: atest TileServicesTest
Test: atest CtsSystemUiHostTestCases
Test: sample app targetting T
Fixes: 172251878

Change-Id: Ic9b8aca55dcfc2b32b018a5308f19e49a933c4c9
2022-03-10 16:47:27 +00:00
TreeHugger Robot
771ed53fc2 Merge "Introduce a flag to enable shell caption" into tm-dev 2022-03-10 09:34:19 +00:00
Yunfan Chen
40c0b8bdb9 Introduce a flag to enable shell caption
A new interface in WindowManagerProxy was introduced to let the shell be
able to set insets with a given frame. The interface won't work for
caption as we applied special logic to assemble the caption frame with
the attached task frame. To make it work with caption insets, we need to
disable all the special logics to make use of the shell interface.

A flag CAPTION_ON_SHELL is introduced to disable the calling path and
enable the above client owned logic. Turn the flag to true when the
caption is moved to shell.

Test: InsetsControllerTest, WindowContainerInsetsSourceProviderTest
Bug: 189998209
Change-Id: I989b319001a118d1f1ff8e34761b39ee18fde335
2022-03-10 16:06:22 +09:00
Sarup Dalwani
bf3f189a34 Merge "Renaming isCredentialSharedWithParent to isCredentialSharableWithParent" into tm-dev 2022-03-10 05:59:57 +00:00
Dmitri Plotnikov
70a3d9e8a4 Fold SDK Sandbox UID battery stats into parent UID stats
Bug: 219077358
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: Id1a9ed5865b62bfce6de0bfdefe1528973fd5c3c
2022-03-09 23:54:59 +00:00
Julia Tuttle
4ce8da6789 Make IStatusBarService.clearInlineReplyUriPermissions oneway
Bug: 221201054
Test: tbd
Change-Id: Ib766e7d366b9fb4312b7414cabd59b9ffcb3c6df
2022-03-09 16:38:59 -05:00
TreeHugger Robot
1eb0847ff9 Merge "Make LockPatternView dot hit area circular." into tm-dev am: 68c8926a12
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16978906

Change-Id: Id090406079db969ef5719b258c96f6cbb87be963
2022-03-09 18:34:58 +00:00
Aleksandr Litovchenko
15aafa78c9 Make LockPatternView dot hit area circular.
Dot hit area is rectangular. Make it circular to be able to increase the area and preserve diagonal connections.
Cover with tests to ensure that touches handled correctly.

Bug: 204870856
Bug: 215183631
Tests: LockPatternViewTest and manualy on watch and phone
Change-Id: I7d7b539afcdd4d86cb8f828030a2f4866963f8aa
2022-03-09 11:50:49 +00:00
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
Derek Jedral
2144f16876 Change LockPatternUtils to return empty list
LockPatternUtils currently returns null if there are no active trust
agents. Changed to return an empty list instead to avoid possible NPEs

Test: atest
Bug: 222014696
Change-Id: I0100c6efec75d78e94797fa056b4be40acd11989
2022-03-09 00:56:01 +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
Sarup Dalwani
61321ebc97 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
Merged-In: If343342d0a5e996cbd430a4063b25fbc4874c5c0
(cherry picked from commit ece66c4116)
2022-03-07 15:00:19 +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