Commit Graph

18089 Commits

Author SHA1 Message Date
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
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
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
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
kholoud mohamed
dd7c79d26b Allow overriding managed profile switching animation
Bug: 203548565
Bug: 188410712
Test: manual
Change-Id: I1bf75abcee4309eee5c03f76238bb21fb8549c02
2022-01-31 19:49:49 +00:00
Songchun Fan
997c6f7514 [pm] small refactor for InstallLocationUtils
+ Renaming to reflect the actual functionality of the class.

+ Move freeStorage related code to PackageManagerService, we will want
to clean that up later.

BUG: 198177734
Test: atest InstallLocationUtilsTest
Change-Id: I951129ffb5e53df548ef78fcd9de79c0ef994914
2022-01-31 18:59:37 +00:00
Dmitri Plotnikov
5ae1bee477 Merge "Do not unparcel TimeInFreqMultiStateCounter with CPU freq count mismatch" 2022-01-31 18:04:35 +00:00
Kweku Adams
f86b09eaf1 Merge "Update callback delay when constant changes." 2022-01-31 15:51:17 +00:00
Etienne Ruffieux
fa43f240c4 Merge "Moving bt stats logging to BatteryStats." 2022-01-29 10:27:49 +00:00
Yohei Yukawa
7a7271ddea Merge "Support IME switcher icon visibility update" 2022-01-29 00:42:58 +00:00
Joe Bolinger
8a2f880221 Merge changes Id07e160b,I3ac8049c
* changes:
  Update client monitors to use HAL context methods.
  Add communication channel for AoD state for all biometric operations.
2022-01-28 23:35:17 +00:00
Kweku Adams
87f7b33534 Update callback delay when constant changes.
Update the delay of the ACTION_CHARGING/DISCHARGING broadcast whenever
the delay constant is updated to ensure that tests can run smoothly.

Bug: 214599394
Test: atest --rerun-until-failure 25 CtsJobSchedulerTestCases:BatteryConstraintTest
Test: atest --rerun-until-failure 25 CtsJobSchedulerTestCases:JobThrottlingTest
Change-Id: Ic664fa58edb3cab9980759baf356457158f66ead
2022-01-28 23:14:01 +00:00
Etienne Ruffieux
5c31c58990 Merge "Added BinderCallsStats Bluetooth initialization" 2022-01-28 22:05:17 +00:00