Commit Graph

18247 Commits

Author SHA1 Message Date
Jean Chalard
993c5e1003 Merge "Allow VPN apps to ask for running the validation checks" am: cbb2fa2f00 am: 64ba50411e am: 1f929d9bd5 am: aac1b3a307
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962928

Change-Id: Iab6157c17d9f4c6554ba65296443eec42dd21e71
2022-02-09 06:57:05 +00:00
Jean Chalard
aac1b3a307 Merge "Allow VPN apps to ask for running the validation checks" am: cbb2fa2f00 am: 64ba50411e am: 1f929d9bd5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962928

Change-Id: Ie35764f5a4d7f9c1d3765a73331687450bbdbaf5
2022-02-09 06:56:37 +00:00
Jean Chalard
1f929d9bd5 Merge "Allow VPN apps to ask for running the validation checks" am: cbb2fa2f00 am: 64ba50411e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962928

Change-Id: I8dcb813cfe589411da7345bc2c4308e9f149b275
2022-02-09 06:38:31 +00:00
Jean Chalard
cbb2fa2f00 Merge "Allow VPN apps to ask for running the validation checks" 2022-02-09 06:03:45 +00:00
TreeHugger Robot
7fab305427 Merge "New API: DumpableContainer.removeDumpable." 2022-02-09 05:46:08 +00:00
Felipe Leme
8daa920d2d Fixes OWNERS on com.androd.internal.util
Somehow it was merged with a conflict.

Test: no, thanks
Bug: 149254050

Change-Id: I1dbb8a4c04817f39de147927c26c14e461eb564b
2022-02-08 21:19:55 +00:00
Maurice Lam
5c5cdad706 Merge "Roll forward "Show error dialog if activity is blocked from streaming"" 2022-02-08 19:58:13 +00:00
Felipe Leme
1b6ac220bb Merge "Adds OWNERS to com.androd.internal.util.Dump*" am: 0b6e3a959b am: 2727d1af13 am: a9428c51ac am: cc98604cbe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976675

Change-Id: Iee025490ce6b23fdf85d0441853120ac02bcfa77
2022-02-08 19:53:10 +00:00
Felipe Leme
cc98604cbe Merge "Adds OWNERS to com.androd.internal.util.Dump*" am: 0b6e3a959b am: 2727d1af13 am: a9428c51ac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976675

Change-Id: I613dd7d9e8e246aef420bda8c79817685a690be1
2022-02-08 19:22:08 +00:00
Felipe Leme
a9428c51ac Merge "Adds OWNERS to com.androd.internal.util.Dump*" am: 0b6e3a959b am: 2727d1af13
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976675

Change-Id: I9094e6421123193cc474520d43c00f299e64a3ac
2022-02-08 19:05:18 +00:00
Felipe Leme
0b6e3a959b Merge "Adds OWNERS to com.androd.internal.util.Dump*" 2022-02-08 18:14:23 +00:00
Dmitri Plotnikov
5d1735108a Merge "Remove some uses of deprecated BatteryStatsHelper" 2022-02-08 18:13:11 +00:00
Chiachang Wang
3fc98d5ebd Allow VPN apps to ask for running the validation checks
Expose an API to allow VPNs app to ask for running the validation
check on the VPN network built from Ikev2VpnProfile.

Bug: 184750836
Test: New test in Ikev2VpnTest
      Also FrameworksNetTests
Change-Id: I385bb887b6c697d8f5d87af750dbd2aab44afca6
CTS-Coverage-Bug: 184750836
 (but CTS is in the same topic, just not detected by the tool)
2022-02-09 02:19:15 +09:00
Felipe Leme
3c5dea3fe4 Adds OWNERS to com.androd.internal.util.Dump*
Test: no, thanks
Bug: 149254050

Change-Id: I1dbb8a4c04817f39de147927c26c14e461eb564b
2022-02-08 08:50:43 -08:00
Sailendra Bathi
f86b75c9f2 Merge "Use isCredentialSharedWithParent in LockSettingsService" 2022-02-08 16:00:52 +00:00
Shawn Lin
6a201acdc2 Merge "Support the ability to force-show navigation for GKS" 2022-02-08 06:49:09 +00:00
Treehugger Robot
ed3eb039b8 Merge "Delete legacy fs-verity support" am: 81568fa22f am: b4661e274c am: b754030dbe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966068

Change-Id: If68ccff8bad40fd9c74f38a7cd935a00c1575ba8
2022-02-08 01:50:05 +00:00
Treehugger Robot
b754030dbe Merge "Delete legacy fs-verity support" am: 81568fa22f am: b4661e274c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966068

Change-Id: I797f197a29a811795fc5be5339be1afbde2e5fcd
2022-02-08 01:26:39 +00:00
Felipe Leme
f888255510 Merge "Adds OWNERS to com.androd.internal.util.dump" am: 5f09bb49f0 am: 4019688e39 am: 72c121d807 am: 77d989649b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1975006

Change-Id: I86327fcb09c4be3fd80d42dbb56f89815e850712
2022-02-08 01:14:52 +00:00
Felipe Leme
77d989649b Merge "Adds OWNERS to com.androd.internal.util.dump" am: 5f09bb49f0 am: 4019688e39 am: 72c121d807
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1975006

Change-Id: I95b4f23001815a4d3423a779a4427656199e9a3e
2022-02-08 01:02:47 +00:00
Treehugger Robot
81568fa22f Merge "Delete legacy fs-verity support" 2022-02-08 00:48:19 +00:00
Felipe Leme
72c121d807 Merge "Adds OWNERS to com.androd.internal.util.dump" am: 5f09bb49f0 am: 4019688e39
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1975006

Change-Id: Ic92a701e2fe530cad0f74e0cc5bb28dc67df9b2d
2022-02-08 00:45:31 +00:00
Felipe Leme
5f09bb49f0 Merge "Adds OWNERS to com.androd.internal.util.dump" 2022-02-08 00:24:38 +00:00
Felipe Leme
e5ae1783f8 New API: DumpableContainer.removeDumpable.
Test: m update-api
Test: atest com.android.internal.util.DumpableContainerImplTest

Bug: 149254050
Bug: 217567642
CTS-Coverage-Bug: 149254050

Change-Id: I4efe99a545bd3db2308d0956eaa85e0f799f0f1d
2022-02-07 22:59:23 +00:00
Maurice Lam
de16f7176f Roll forward "Show error dialog if activity is blocked from streaming"
Added BlockedAppStreamingActivity to an "always allow" list so that it
can always be displayed even if no other activities are allowed. Also,
instead of reusing BlockedAppActivity, separated it out to a different
activity that doesn't have the lockTaskMode="always".

Bug: 203834118
Test: atest CtsVirtualDevicesTestsCases
Change-Id: I5f0b68cd8ac701847489130e6018ecafb1ebc4a8
2022-02-07 11:41:04 -08:00
Felipe Leme
16c1aedbf3 Adds OWNERS to com.androd.internal.util.dump
Test: no, thanks
Bug: 149254050

Change-Id: I7af006ffdfa768b887ff2c7bde970efbc1b1f297
2022-02-07 09:42:26 -08:00
Alan Viverette
7c9b826042 Merge "Nullability annotations for view and widget" 2022-02-07 17:36:41 +00:00
Felipe Leme
be91b4287e Adds test for DumpableContainerImpl.
Test: atest com.android.internal.util.DumpableContainerImplTest
Bug: 149254050

Change-Id: I0d9ad45500b4580682b9eb12c29530c3647af045
2022-02-04 16:16:14 -08:00
Felipe Leme
2eea07021e Changes Activity to use Dumpable for "legacy" cases.
Test: adb shell am start com.android.settings && adb shell dumpsys activity com.android.settings --autofill
Test: atest CtsAppTestCases:android.app.cts.ActivityDumpTest

Bug: 149254050

Change-Id: I658b18a965f3d35c3ecbb2aae58c7c7d7527c6e4
2022-02-04 15:39:13 -08:00
Maurice Lam
84380108d8 Merge "Revert "Show error dialog if activity is blocked from streaming"" 2022-02-04 00:31:08 +00:00
Alan Viverette
68c65e58b4 Nullability annotations for view and widget
I inferred nullability annotations in Jetpack based on the guaranteed
behavior of the platform, so now I'm propagating those inferences back
to the platform as annotations.

Test: nullability presubmit checks
Fixes: 206801689
Change-Id: I78a1997faeecdafc51d303b0fc766369938b9101
2022-02-03 15:51:17 -05:00
Maurice Lam
66e861949a Revert "Show error dialog if activity is blocked from streaming"
This reverts commit 62f05520bf.

Reason for revert: b/217599896

Change-Id: I956e7ec5404c9b6908f730d764baa391d02555e7
2022-02-03 17:34:42 +00:00
Vadim Caen
8e59ca9a3a Merge "Save the OnBackInvokedCallback in WindowState" 2022-02-03 17:26:12 +00:00
Dmitri Plotnikov
6be687b645 Merge "Include per process state data in the BatteryUsageStats atom" 2022-02-03 01:24:37 +00:00
Dmitri Plotnikov
1825a0f5b1 Remove some uses of deprecated BatteryStatsHelper
Bug: 217618527
Test: presubmit
Change-Id: Ieb3c0e00cc0a5e380967b795387a2f5196deb8e2
2022-02-02 16:58:12 -08:00
Jing Ji
a3dac676fc Merge "Add support to pre-config bg restriction exemptions in system config" 2022-02-02 21:24:57 +00:00
Vadim Caen
717e53a6a7 Save the OnBackInvokedCallback in WindowState
This CL enable OnBackInvokedCallback to be saved in a WindowState and
queried by the BackNavigationController to be returned when
ATM.startBackNavigation() is called.

The DecorView provides a PendingOnBackInvokedDispatcher that can receive
callback registration before being added to a ViewRootImpl.

Test: atest FrameworksCoreTests:BackNavigationTest
Bug: 131727607
Change-Id: I01528a22ea4a6583a56ade4eab69136d727855d0
2022-02-02 22:08:02 +01:00
Caitlin Cassidy
f759b1ebee Merge "[Media TTT] Add @SystemApis for all the media transfer callbacks." 2022-02-02 21:00:56 +00:00
Matt Casey
d22d1e1f8d Merge "Add 'miniresolver' UI for cross-profile single app resolution." 2022-02-02 20:57:32 +00:00
Jing Ji
ffa8a189ff Add support to pre-config bg restriction exemptions in system config
Also exempt packages with allow-except-idle.

Bug: 200326767
Bug: 203105544
Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest
Change-Id: Ifd3362dae4115b19337c3ecde059bd2941ad031e
2022-02-02 10:08:45 -08:00
Caitlin Cassidy
44386a5a2e [Media TTT] Add @SystemApis for all the media transfer callbacks.
This migrates the media transfer from just a service to a full-fledged
@SystemApi. Some of the testing infrastructure has not yet been migrated
to keep this CL slightly smaller.

Bug: 216318437
Test: systemui media.taptotransfer tests *still need to be updated*
Change-Id: Idf1f72de1343020668e158d74051c1dfb970cfcd
2022-02-02 16:14:33 +00:00
Pablo Gamito
48d292a2f5 Merge changes I602852b1,Ibb863815
* changes:
  Use legacy transitions in legacy transition system
  Update default activity animations
2022-02-02 13:16:04 +00:00
sailendrabathi
7a799535e1 Use isCredentialSharedWithParent in LockSettingsService
Created property isCredentialSharedWithParent in UserTypeDetails which
is true for managed and clone profiles. This is used in
LockSettingsService for sharing the locking credentials with its parent
user.

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

Change-Id: I6ceaf498aadce7e713b20a4d24e4a29e812eb0ca
2022-02-02 06:27:02 +00:00
Victor Hsieh
e97a8700b0 Delete legacy fs-verity support
The "legacy" fs-verity was introduced in P in Pixel 3 kernel. During
fs-verity upstream to Linux, the API has changed. During Pixel 4 / Q
development, fs-verity was upstreamed to Linux kernel. By setting
ro.apk_verity.mode = 2, device vendors such as Pixel 4 can opt in to
enable the support. The feature has become mandatory for new devices
shipped with R.

Since Pixel 3 family is no longer supported, it's time to remove the
dead code.

Bug: 120629632
Test: m
Test: TH
Change-Id: I6dacd9bbd38b502ee510ff12970e76342d7b72dd
Merged-In: I6dacd9bbd38b502ee510ff12970e76342d7b72dd
2022-02-01 23:09:43 +00:00
Matt Casey
81e474d7a7 Add 'miniresolver' UI for cross-profile single app resolution.
When the current profile only has web browsers and the other profile has
a single non-browser app to handle the given intent, simplify the
resolver UI to present the user with a yes/no question about how to
handle.

Canonical example of this is "clicking a youtube link in your work
profile".

Bug: 175433480
Test: atest ResolverActivityTest
Change-Id: I213313ca87a8d1db5e586fe074f953060a91fc19
2022-02-01 21:29:01 +00:00
Pablo Gamito
6b600cf1a9 Use legacy transitions in legacy transition system
The new activity transitions are currently only supported in shell so we want to replace them with the old transitions when running using the legacy transition system

Fixes: 215512394

Test: Flash and make sure we are using the old activity transitions when shell transitions are disabled
Change-Id: I602852b16effa150fe697262a7d7e506c464d62a
2022-02-01 13:16:44 +01:00
Yohei Yukawa
c98b9c8f40 Support floating IMEs even when IMEs render the nav buttons
As discussed in Bug 201375975, the nevigation bar handling for
floating IMEs is a bit tricky.

This CL tweaks DecorView behabior only when

  InputMethodService#canImeRenderGesturalNavButtons(),

is true and the IME is floating in the gestural navigation mode.

Fix: 215550296
Test: Manually tested with ThemedNavBarKeyboard sample
  1. Build aosp_coral-userdebug and flash it
  2. adb root
  3. adb shell setprop \
      persist.sys.ime.can_render_gestural_nav_buttons true
  4. adb reboot
  5. make -j ThemedNavBarKeyboard
  6. adb install -r \
      $OUT/system/app/ThemedNavBarKeyboard/ThemedNavBarKeyboard.apk
  7. adb shell ime enable \
      com.example.android.themednavbarkeyboard/.ThemedNavBarKeyboard
  8. adb shell ime set \
      com.example.android.themednavbarkeyboard/.ThemedNavBarKeyboard
  9. Open the Dialer app
 10. Focus in the top edit field.
 11. Tap "FLOATING MODE" mode
 12. Make sure that the navigation buttons are visible.
Change-Id: Ia54499a3c2ac6e33e72f625eba3477fd81649d32
2022-01-31 18:56:59 -08:00
Yohei Yukawa
af1695a78a Introduce Window.DecorCallback
This is a follow up CL to my previous CL [1], which introduced a
hidden callback method into Window.Callback.

This CL does not change any observable behavior but consolidate that
hidden callback into a newly introduced Window.DecorCallback
interface.  In this approach, we no longer need to worry about
accidental method name collision in Window.Callback implementations
classes.

Here is the new callback chain.

 ViewRootImpl#performTraversals()
  -> DecorView#onSystemBarAppearanceChanged()
   -> Window.dispatchOnSystemBarAppearanceChanged()
    -> NavigationBarController.Impl#onSystemBarAppearanceChanged()

 [1]: I08566034bebfafff6777ce0152cd6ca1f66f6cad
      678ddce11c

Bug: 215549533
Test: Manually tested with ThemedNavBarKeyboard sample
  1. Build aosp_coral-userdebug and flash it
  2. adb root
  3. adb shell setprop \
      persist.sys.ime.can_render_gestural_nav_buttons true
  4. adb reboot
  5. make -j ThemedNavBarKeyboard
  6. adb install -r \
      $OUT/system/app/ThemedNavBarKeyboard/ThemedNavBarKeyboard.apk
  7. adb shell ime enable \
      com.example.android.themednavbarkeyboard/.ThemedNavBarKeyboard
  8. adb shell ime set \
      com.example.android.themednavbarkeyboard/.ThemedNavBarKeyboard
  9. Open the Dialer app
 10. Focus in the top edit field.
 11. Tap "EXTENDED LIGHT NAVIGARION BAR" mode
 12. Make sure that the navigation button color is optimized for light
     navigation bar.
 13. Tap "STANDARD LIGHT NAVIGARION BAR" mode
 14. Make sure that the navigation button color is optimized for light
     navigation bar.
Change-Id: I5168f76dfc9526e925c565dbfa87597b5543fcdc
2022-01-31 18:56:50 -08:00
Dmitri Plotnikov
9440f2d5ca Include per process state data in the BatteryUsageStats atom
Bug: 216564822
Test: atest BatteryUsageStatsProtoTests:BatteryUsageStatsPulledTest
Test: atest CtsStatsdAtomHostTestCases:BatteryUsageStatsTests
Test: atest FrameworksCoreTests:MeasuredEnergyStatsTest
Change-Id: I944724b6be3a0ea0f03271d2d33a821ce275a98e
2022-01-31 18:39:18 -08:00
TreeHugger Robot
ca4633dd18 Merge "Allow overriding managed profile switching animation" 2022-01-31 22:39:51 +00:00