Commit Graph

17842 Commits

Author SHA1 Message Date
Dmitri Plotnikov
19196aff5c Merge "Add BatteryStatsManager.getWakeLockStats() API" 2022-01-06 18:05:14 +00:00
Pat Manning
5f66d30856 Merge "Create API to set taskbar to kids mode." 2022-01-06 17:26:05 +00:00
Junyu Lai
fb715a951d Merge changes from topics "ms34-tm", "ms40-clock" am: beb9fb3cc8 am: 08c51b04ca am: d312550ff8 am: f23caacaf1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1914533

Change-Id: I7db7bdf217c982ef6011a948b68d238c54e2a47e
2022-01-06 14:39:44 +00:00
Junyu Lai
f23caacaf1 Merge changes from topics "ms34-tm", "ms40-clock" am: beb9fb3cc8 am: 08c51b04ca am: d312550ff8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1914533

Change-Id: I13c1439933d33c81e3f8668ad0b86bea2b6b68a7
2022-01-06 14:23:37 +00:00
Junyu Lai
d312550ff8 Merge changes from topics "ms34-tm", "ms40-clock" am: beb9fb3cc8 am: 08c51b04ca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1914533

Change-Id: I244779c19fab00eede1b7e9f3980679131e75cbb
2022-01-06 14:09:31 +00:00
Joanne Chung
93cbc8aa8e Merge "Refine FloatingToolbarPopup to allow multiple implementations" 2022-01-06 11:55:30 +00:00
Pedro Loureiro
72049508c5 Merge "Rename updatable-library to apex-library" 2022-01-06 09:04:03 +00:00
Junyu Lai
0cf9e87c79 [MS27] Expose noteUntaggedSocket SystemApi
While Data usage related codes are moving to mainline module,
StrictMode#vmUntaggedSocketEnabled() and onUntaggedSocket()
can no longer be accessed from NetworkManagementSocketTagger.

Thus, expose alternative SystemApi to allow invocations from
the module.

Test: TH
Bug: 204830222
Exempt-From-Owner-Approval: 1. Owner approved the change with
  explicitly granted submission after adderessing the
  straight-forward comment. 2. Owner is OOO for 3 months.
Change-Id: Ib54ff54ce3617ae0d04080a1740e78b086bbb039
2022-01-06 08:49:46 +00:00
Haoyu Zhang
a58ffd37ff Merge "Scribe in View: Introduce HandwritingInitiator" 2022-01-05 23:14:09 +00:00
Haoyu Zhang
934fa21273 Scribe in View: Introduce HandwritingInitiator
This CL only implement the handwriting initiation for milestone 1:
a) handwriting is only initiated for a focused editor.
b) user must start handwriting within the editor's boundary.

Bug: 209854913
Test: atest FrameworksCoreTests:HandwritingInitiatorTest
Change-Id: Iab6d83f58aa74f0af8091731c80bbdb2eb29c024
2022-01-05 12:37:30 -08:00
Dmitri Plotnikov
e07408d447 Include saved battery history buffers into BatteryUsageStats parcel
Bug: 209297031
Test: atest FrameworksCoreTests:BatteryUsageStatsTest FrameworksCoreTests:BatteryUsageStatsProviderTest
Change-Id: I369d863b6f6fd488030aa031cc465bef6ce99ab8
2022-01-05 19:45:43 +00:00
Pat Manning
8ffa58cdea Create API to set taskbar to kids mode.
- Disables recents in taskbar.
- Changes back and home icons and centers them in the taskbar.

Test: manual
Bug: 203749295
Change-Id: I9aa2a213728549509da4cf7f50abceb690ba31cf
2022-01-05 11:35:41 +00:00
Dmitri Plotnikov
46993bfa99 Merge "Fix concurrency issue with BatteryUsageStats" 2022-01-04 19:53:03 +00:00
TreeHugger Robot
7eb99cea1a Merge "Changes to support unbundled ChooserActivityTest" 2022-01-04 19:45:31 +00:00
Aleksandr Litovchenko
c2dc611aca Merge "Upstream Wear Keyguard changes" 2021-12-31 10:41:54 +00:00
Dmitri Plotnikov
c635cfddc7 Fix concurrency issue with BatteryUsageStats
BatteryUsageStats is created under a BatteryStatsImpl lock.  One of
the elements of BatteryUsageStats is the battery history buffer Parcel.
Once the BatteryUsageStats object is created, the BatteryStatsImpl lock
is released and the history buffer parcel continues to be appended
by BatteryStatsImpl.  The Parcel may even be reset altogether if the
battery stats session is reset.  The BatteryUsageStats object is parceled
during the getBatteryUsageStats binder call. Any modification of the
history buffer concurrent with parceling causes a crash.

Bug: 194256984
Test: atest FrameworksCoreTests:BatteryUsageStatsTest FrameworksCoreTests:BatteryUsageStatsProviderTest
Change-Id: Ifb03a32275dfbea172cd28309a42349d6dd4bcd5
2021-12-29 02:19:42 +00:00
Wilson Wu
bc6a601f58 Merge "Add getInputMethodList API for locked user state" 2021-12-29 02:00:02 +00:00
Joe Bolinger
d79387b5de Merge changes from topic "udfps-light"
* changes:
  Instrument UDFPS touch affordance CUJ.
  Split UdfpsController and backfill tests.
  Migrate small UDFPS classes to kotlin and backfill missing tests.
2021-12-28 17:31:51 +00:00
Joanne Chung
f0f831e546 Refine FloatingToolbarPopup to allow multiple implementations
This change refined the FloatingToolbarPopup to allow the local and
system implementation. Use the flag to control which implementation
will be used. Use the local implementation as default, we will switch
the system version when it is done and stable.

Bug: 190030331
Bug: 205822301
Test: manual. The toolbar still work after refinement
Test: atest TextViewActivityTest
Test: atest TextViewIntegrationTest
Ignore-AOSP-First: new feature for T.

Change-Id: I191cb02fc4857855f5b63bdab21c014fa0879a0c
2021-12-28 16:59:28 +08:00
Chiachang Wang
e920dac785 Merge "Add configuration whether to exclude local traffic in the VPN" am: 80178db312 am: 0ea8189d38 am: 4974ca5f52 am: ba123cee70
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1926899

Change-Id: I431fe80bf87637e50f1cf3023ac59cad9bc8a05c
2021-12-28 08:24:16 +00:00
Chiachang Wang
ba123cee70 Merge "Add configuration whether to exclude local traffic in the VPN" am: 80178db312 am: 0ea8189d38 am: 4974ca5f52
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1926899

Change-Id: I7cd9bc4cb5e7ff27e773137cb73a490733b27170
2021-12-28 08:22:57 +00:00
Chiachang Wang
4974ca5f52 Merge "Add configuration whether to exclude local traffic in the VPN" am: 80178db312 am: 0ea8189d38
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1926899

Change-Id: I0827c33efc8661a1788f124812c9685bfa57733b
2021-12-28 08:09:40 +00:00
Wilson Wu
04a226334d Add getInputMethodList API for locked user state
When work profile disable by quick settings, the
user would be locked then we cannot query installed
input method lists for work user by existings API
InputMethodManager#getInputMethodListAsUser().

Adding a new API to query input method services
regardless of the user state. This API currently
only used by Settings, it shouldn't affect the
original behavior for other usages.

Bug: 210083408
Test: verify we can get input methods list after
      disable work apps by quick settings
Test: atest CtsInputMethodTestCases
Change-Id: I54d5dbec7e76d6a68935007ed3af0641f717a7c5
2021-12-28 15:40:36 +08:00
Chiachang Wang
de8c621832 Add configuration whether to exclude local traffic in the VPN
Add a extra variable to store whether the local traffic is
exempted from the VPN.

Bug: 184750836
Test: atest FrameworksNetTests
Change-Id: I70301901c2374ded9fdf179d0ce64e7bb2d7b1ab
2021-12-28 11:14:01 +08:00
Joshua Trask
16f6130607 Changes to support unbundled ChooserActivityTest
1. Assert the logging package name matches the one we read off of
 instrumentation at runtime, instead of hard-coding a package that will
 only match in one version of the tests.

 2. Set up infrastructure for UnbundledChooserActivityTest to disable
 part of the APS availability test that doesn't make sense in the
 unbundled version.

 3. Expose the name of an extra that we now need to use more widely.

 4. Disable a test that seems non-trivial to fix for the unbundled
 implementation. This could reflect a real issue with the unbundled
 behavior and should be addressed ASAP, but I don't want this to block
 ag/16516860 so we can at least get some baseline tests running.

Test: `atest ChooserActivityTest`. Also tested the unbundled version
(slightly modified from ag/16516860 based on the changes above).
Bug: 202166045

Change-Id: Icfca680aa437a9860548d46f9e221b19df36b5a5
2021-12-24 11:09:22 +00:00
Pedro Loureiro
c2d3032e88 Rename updatable-library to apex-library
Mostly for consistency with the names used in related changes.

Test: atest com.android.server.pm.parsing.library.ApexSharedLibraryUpdaterTest com.android.server.systemconfig.SystemConfigTest

Bug: 191978330
Change-Id: Ic4ccc0fdca100b576e28bc0918d378cabae9ce61
2021-12-22 19:42:44 +00:00
Kate Montgomery
03292ab69c Merge "SysUi: Display location icon on all deliveries." 2021-12-22 14:56:15 +00:00
Tom Natan
f6471579c5 Merge "Add API methods for adding/clearing compat overrides for multiple apps on release builds" 2021-12-22 13:14:11 +00:00
Pablo Gamito
3447e5cf43 Merge "Add support for WindowAnimationStyle theme attribute in shell" 2021-12-22 12:05:40 +00:00
tomnatan
6162b70349 Add API methods for adding/clearing compat overrides for multiple apps on release builds
This is important in cases where we want to add/clear overrides for
multiple apps at the same time, without having to make a binder call for
each package and have the compat config save the changes to file and
invalidate the cache each time.

Bug: 199730202
Test: atest FrameworksServicesTests:CompatConfigTest
Test: atest FrameworksServicesTests:PlatformCompatTest
Change-Id: I3b4a3d9db12fdf99eb78c486bdd8e248fff92e50
2021-12-22 10:27:41 +00:00
Wu Ahan
ceb8185fb8 Merge "Instrument screen off cuj" 2021-12-22 07:12:00 +00:00
Kate Montgomery
9e52a92e2b SysUi: Display location icon on all deliveries.
This change uses the current small location icon. This change is flagged
and off by default.

Bug: 191503437
Test: atest SystemUITests
Test: manual
Change-Id: I98195b2c607aeec36d56af75ab20a056b4d44e2f
2021-12-21 21:49:59 +00:00
Pablo Gamito
a4843175bf Add support for WindowAnimationStyle theme attribute in shell
Test: Make sure apps with custom animations set using WindowAnimationStyle actually use the custom animation when shell is enabled

Bug: 206960607
Change-Id: I1d982870837d67c74f76dd0a90aa5260d9441aba
2021-12-21 20:27:20 +01:00
Junyu Lai
0e27aa3be6 Merge "[MS10.1] Move multiplySafeByRational to NetworkStatsUtils" am: 6ff6240694 am: 239ffb98df am: c12c9ad508 am: 499790f024
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920477

Change-Id: I4d415add75f300bd01ecfeb231c9edd9892b4d1f
2021-12-21 02:04:30 +00:00
Junyu Lai
499790f024 Merge "[MS10.1] Move multiplySafeByRational to NetworkStatsUtils" am: 6ff6240694 am: 239ffb98df am: c12c9ad508
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920477

Change-Id: I6bff9f75d9426978d2d4077a3bc54d5c0cb0fe4a
2021-12-21 01:51:06 +00:00
Junyu Lai
c12c9ad508 Merge "[MS10.1] Move multiplySafeByRational to NetworkStatsUtils" am: 6ff6240694 am: 239ffb98df
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920477

Change-Id: Icf376927fd8c66ccf22e825f0157fc5b61d985a1
2021-12-21 01:46:03 +00:00
Junyu Lai
6ff6240694 Merge "[MS10.1] Move multiplySafeByRational to NetworkStatsUtils" 2021-12-21 01:22:14 +00:00
Joe Bolinger
b1c14109a9 Instrument UDFPS touch affordance CUJ.
Bug: 205875955
Test: atest UdfpsControllerTest
Change-Id: I735227bb2453d7c93d7d0350a32ea1f02f54d3a7
2021-12-20 15:03:05 -08:00
Junyu Lai
b241707f03 [MS10.1] Move multiplySafeByRational to NetworkStatsUtils
Since NetworkStats related code will be moved to the module.
multiplySafeByRational in the NetworkUtilsInternal cannot be
accessed after that. Thus, create another utils class that
will be moved with NetworkStats code and put the function
into it.

Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.NetworkStatsUtilsTest
Bug: 204830222
Change-Id: I96f3ac02e57b7325ed53988285770f478dee529e
2021-12-20 09:12:13 +00:00
Ruslan Tkhakokhov
16a8f596d5 Make IBackupTransport AIDL async
Make the transport AIDL async and introduce a callback AIDL for passing
back results. A follow-up CL will implement the client-side portion of
the callback class and update BackupTransportClient to use it.

Bug: 202716271
Test: m -j
Change-Id: I79cb376bd2a805bf2739470a3f538207ae6bd9a0
2021-12-19 18:40:50 +00:00
Dmitri Plotnikov
a633941cec Add BatteryStatsManager.getWakeLockStats() API
Bug: 200753927
Test: atest FrameworksCoreTests:BatteryStatsImplTest
Change-Id: Iafb216250e26b93cec5106d1305fa68c6f20282f
2021-12-17 23:14:36 +00:00
TreeHugger Robot
895a377861 Merge "Detect broken IC#endBatchEdit() impl at runtime" 2021-12-17 02:48:08 +00:00
Hunter Knepshield
d95546ffed Merge "Create CarrierPrivilegesListener callback." am: d54e1126ab am: e66c82b449 am: c7a0de9f6f am: 93a25e9cd1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1912993

Change-Id: Ica9fba211d8cc8c866a370a83c57e070dd6f338c
2021-12-16 20:48:34 +00:00
Yohei Yukawa
60c7c55c36 Detect broken IC#endBatchEdit() impl at runtime
This is a safeguard against cases like Bug 203086369, where the UI
thread can be locked up if IC#endBatchEdit() never returns false no
matter how many times it gets called.

With this CL, the system will have a max retry count on how many times
it attempts to call IC#endBatchEdit(), which is currently set to 16,
then fall back to InputMethodManager#restartInput(View) if it hits
such a limit.

This CL also introduces a volatile type cache to early fall back to
the fallback implementation if the same type of InputConnection
implementation class appears again.

As long as InputConnection#{begin,end}BatchEdit() is correctly
implemented, there should be no developer observable behavior change
in this CL.

See the corresponding test CL [1] about when the fallback
implementation is used.

 [1]: Ifb80015ab0f0c32c917a80c4e5f60e836648e7b4

Bug: 203086369
Bug: 208941904
Bug: 209008342
Test: atest CtsInputMethodTestCases:InputMethodStartInputLifecycleTest
Change-Id: I109e0c26d8249fc2e01323e3e1cb36395fa7cc97
2021-12-16 12:45:41 -08:00
Hunter Knepshield
93a25e9cd1 Merge "Create CarrierPrivilegesListener callback." am: d54e1126ab am: e66c82b449 am: c7a0de9f6f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1912993

Change-Id: Id89455067252fd32f2c8890af120c4241185fcf7
2021-12-16 19:48:39 +00:00
Hunter Knepshield
c7a0de9f6f Merge "Create CarrierPrivilegesListener callback." am: d54e1126ab am: e66c82b449
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1912993

Change-Id: Ia3a4afac2c703b6ff411dd981d4899be78d78281
2021-12-16 19:40:11 +00:00
Hunter Knepshield
d54e1126ab Merge "Create CarrierPrivilegesListener callback." 2021-12-16 19:00:24 +00:00
Dmitri Plotnikov
553429ae39 Merge "Attribution of modem power per process state" 2021-12-16 18:59:50 +00:00
Ayush Sharma
7fd1f1cc2d Merge "Revert "Add APIs that allow to exclude routes from VPN"" am: da37e0f471 am: d48a67e944 am: 05fad87223 am: e41e71aca7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1927301

Change-Id: I2d6f52d4c11e8b3064f816a4a125ada8b344866c
2021-12-16 15:55:07 +00:00
Ayush Sharma
e41e71aca7 Merge "Revert "Add APIs that allow to exclude routes from VPN"" am: da37e0f471 am: d48a67e944 am: 05fad87223
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1927301

Change-Id: I84505e56bfdb32ab4dc43559d56390d60bc1ff73
2021-12-16 15:52:37 +00:00