Commit Graph

15976 Commits

Author SHA1 Message Date
Ming-Shin Lu
bf5ceedda8 Merge "Restore the last IME visiblity of the app window when allowed" into sc-dev am: 02116c6a4f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13674731

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1f950de6ab4d8927a58bef777a4a11e25fccc5a8
2021-03-03 14:46:37 +00:00
Ming-Shin Lu
02116c6a4f Merge "Restore the last IME visiblity of the app window when allowed" into sc-dev 2021-03-03 14:30:15 +00:00
Alex Buynytskyy
d1b10269b0 Merge "Remove INCREMENTAL_VERSION and add version to INCREMENTAL feature." into sc-dev am: 967b81014f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13738376

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia31d9442a8f4439f701fcd3f2fbb0cc0e24fcb98
2021-03-02 21:33:03 +00:00
Alex Buynytskyy
967b81014f Merge "Remove INCREMENTAL_VERSION and add version to INCREMENTAL feature." into sc-dev 2021-03-02 21:24:41 +00:00
Remi NGUYEN VAN
939a74ff51 Merge "Move SocketUtils out of the connectivity module" am: 4eb9b18e02 am: b3bc93fbcf am: 1efb1bf4a8 am: 0442bbca78
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1592273

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icfb31202a29f70a210f07121d2f202230dee4b15
2021-03-02 20:12:20 +00:00
Remi NGUYEN VAN
0442bbca78 Merge "Move SocketUtils out of the connectivity module" am: 4eb9b18e02 am: b3bc93fbcf am: 1efb1bf4a8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1592273

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9de14464ebb9d43e7c4fdc683c23ddbbcc7ef269
2021-03-02 19:56:48 +00:00
Remi NGUYEN VAN
1efb1bf4a8 Merge "Move SocketUtils out of the connectivity module" am: 4eb9b18e02 am: b3bc93fbcf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1592273

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icb9911ad2933d76acbfc8b23463639ffc82bb58b
2021-03-02 19:52:44 +00:00
Remi NGUYEN VAN
b3bc93fbcf Merge "Move SocketUtils out of the connectivity module" am: 4eb9b18e02
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1592273

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib2d4b5574ba710eb50c438144e2b87f6c8954336
2021-03-02 19:48:26 +00:00
Alex Buynytskyy
78c789d33f Remove INCREMENTAL_VERSION and add version to INCREMENTAL feature.
This is addressing the API feedback.

Bug: 181015045
Fixes: 181015045
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I3ea745a4f0f0a0d9ae90f0625dfce61a8649a76d
2021-03-02 10:26:20 -08:00
Abhijeet Kaur
d41a537ed0 Merge "Removed unused mount mode constants" into rvc-qpr-dev-plus-aosp 2021-03-02 13:54:01 +00:00
Galia Peycheva
903b1fcc0d Merge changes from topic "add-runtime-blur-disabling" into sc-dev am: fd98c576c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13603505

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I89145e4bbba0d367194593c96923f813738f2dfa
2021-03-02 05:33:47 +00:00
Galia Peycheva
cf9a5c1848 Make WM.LP.blurBehindRadius a setter+getter am: 7fe1a92c60
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13676887

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7f5ce803a14c1cb2062dbe2eb1060e3948614ddd
2021-03-02 05:33:40 +00:00
Galia Peycheva
fd98c576c7 Merge changes from topic "add-runtime-blur-disabling" into sc-dev
* changes:
  Create listener for dynamic blurEnabled changes
  Make WM.LP.blurBehindRadius a setter+getter
2021-03-02 04:45:06 +00:00
Galia Peycheva
6e842a730c Create listener for dynamic blurEnabled changes
This CL exposes an API to let apps know when the blur has been enabled
or disabled dynamically.

This could be due to battery saving mode turned on, tunnel mode being
used, minimal post processing requested, etc.

This adds a WindowManager.addCrossWindowBlurEnabledListener, which allows
apps to add/remove a listener for blur enabled state changes. The
listeners are registered in a CrossWindowBlurListeners, which receives
updates from WindowManagerService when blurEnabled changes.
CrossWindowBlurListeners only registers a remote listener if the client
initializes it. I.e. if the app is not interested in blurs, the
CrossWindowBlurListeners won't get initialized and won't register a
remote listener.

WindowManagerService holds a RemoteCallbackList, which holds listeners
for each client process and notifies them when there are updates. If any
of the listeners' process dies, the entry is removed from the list.

Bug: 177524486
Test: m
CTS-Coverage-Bug: 179990440
Change-Id: I3fe8f2d2008171d6b069e8ee6f3b47e5b5d60cfa
2021-03-01 22:23:22 +01:00
Galia Peycheva
7fe1a92c60 Make WM.LP.blurBehindRadius a setter+getter
Bug: 181014794
Test: m && atest BlurTests
CTS-Coverage-Bug: 179990440
Change-Id: I3d8ceddcf1219df8decbbb0bf9a6bbb9d41799fb
2021-03-01 22:23:21 +01:00
Evan Rosky
47fc921576 Merge "Fix some bugs in input rotation" into sc-dev am: ee971e5648
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13693625

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I046cb9aa1e34ee02ffabce5438686b6412e37262
2021-03-01 20:07:47 +00:00
Evan Rosky
ee971e5648 Merge "Fix some bugs in input rotation" into sc-dev 2021-03-01 19:20:50 +00:00
Yohei Yukawa
cd0cf05bf0 Merge "Revert "Avoid IME restart for configChanges"" into sc-dev am: b2e45a2dc6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13713406

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7c3745ca21c85eac1fe672302a215f1603f20579
2021-03-01 18:45:38 +00:00
Yohei Yukawa
b2e45a2dc6 Merge "Revert "Avoid IME restart for configChanges"" into sc-dev 2021-03-01 18:30:36 +00:00
Taran Singh
712fc24a34 Revert "Avoid IME restart for configChanges"
Revert "Add cts for InputMethodService configChanges"

Revert submission 13417792-b/167948419

Reason for revert: Causes bugs like b/181195100
Reverted Changes:
Iff88b768c:Avoid IME restart for configChanges
Ib7ce13340:Add cts for InputMethodService configChanges

Bug: 167948419
Fix: 181195100
Change-Id: I36bca545b09b4f870560964ec61fa6bb344fceaf
2021-03-01 18:28:10 +00:00
Ming-Shin Lu
e99a1b491d Restore the last IME visiblity of the app window when allowed
Since when bring an existing app task to foreground or quick switching
app task with gesture navigation will first see the task snapshot
during app transition,

If the task previously focused and shown IME, even the task may hide
IME when switching to the next task, As the goal of
go/ime-transition-improve-s mentioned, if the task is still focused by
editor, we should keep the original focused IME shown and keep
the input connection focused state when navigating back to the
original task.

Bug: 166736352
Test: atest CtsInputMethodTestcases
Test: manual by focusing app with an editor to show keyboard,
      switch the app task to the next with gesture nav and then
      switched back, expected the soft-keyboard is still shown.

Change-Id: I63b144bed6c37569d79fba1c2b63dd4f1074f0f6
2021-03-01 23:41:22 +08:00
Connor O'Brien
187fd234ec Merge "Revert "Revert "Clear BPF data in KernelCpuUidTimeReader.removeUid()""" am: a0bbd188e4 am: 9267c31a1c am: fad30e4c7b am: f35f453e93
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1602665

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I211b83977c23685157713597de2a52fcf999f92d
2021-03-01 08:22:06 +00:00
Connor O'Brien
f35f453e93 Merge "Revert "Revert "Clear BPF data in KernelCpuUidTimeReader.removeUid()""" am: a0bbd188e4 am: 9267c31a1c am: fad30e4c7b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1602665

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I47f3e39fa42b7eb377f829bd4c1e255cd0f676cb
2021-03-01 08:17:14 +00:00
Remi NGUYEN VAN
914dca36ee Move SocketUtils out of the connectivity module
SocketUtils contains system APIs for modules to interact for sockets,
wrapping internal APIs. It should be part of the platform to keep access
to the internal APIs.

This involves splitting NetworkUtils.protectVpn to NetworkUtilsInternal,
since SocketUtils and VpnService are the only users of that method.

The @UnsupportedAppUsage NetworkUtils.protectVpn has low usage
count, and is already available through VpnService.protect.

Bug: 181512874
Test: boots, VPN working
Change-Id: I7028d334975f7536c06afac7a22200c33db707ac
2021-03-01 16:50:08 +09:00
Dmitri Plotnikov
2dd963b2ad Merge "Add battery history to BatteryStatsUsage" into sc-dev am: 1a0e70c7bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13702419

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2e959609767eaf7c9e186925d3abfc61f3c1ae83
2021-03-01 04:53:28 +00:00
Dmitri Plotnikov
4281d08354 Merge "Break out battery history reading into a separate class" into sc-dev am: cda90b4cf5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13636686

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If2573b6d62aa2b9342df3f690346326d60487d44
2021-03-01 01:58:07 +00:00
Dmitri Plotnikov
20720fa188 Add battery history to BatteryStatsUsage
Bug: 173745486
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryUsageStatsProviderTest
Change-Id: Icfd9e49b68f1be99312c88ac889b06aa669367ef
2021-02-28 17:05:39 -08:00
Dmitri Plotnikov
5ab97fffe0 Break out battery history reading into a separate class
This class will be used by BatteryUsageStats

Bug: 180765532
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsHistoryTest
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsNoteTest
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsHistoryIteratorTest

Change-Id: Ic392bcdb6eb815afcc3cd882aa32dd4c78b6484f
2021-02-28 10:34:01 -08:00
Dmitri Plotnikov
155ae26728 Merge "Remove support for OLD_HISTORY" into sc-dev am: 7fa1f6129e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13677957

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia0f1c9bd12de9353a0ab790b669656071585fc48
2021-02-28 06:53:35 +00:00
Dmitri Plotnikov
7fa1f6129e Merge "Remove support for OLD_HISTORY" into sc-dev 2021-02-28 06:01:04 +00:00
Jeff DeCew
09ef67529c Merge changes I57fb542a,If2a13daf into sc-dev am: 6cd5cb738d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13713266

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5bbd00c8c70184c0818a22d27ebeb4747f584c2b
2021-02-27 03:57:40 +00:00
Jeff DeCew
6cd5cb738d Merge changes I57fb542a,If2a13daf into sc-dev
* changes:
  Fix the vertical positioning of the text in collapsed notifications.
  Increase the notification height to 88dp
2021-02-27 03:08:17 +00:00
Evan Rosky
ba7e1a521f Fix some bugs in input rotation
Set deviceWidth/Height properly when setting displayviewport

Remove unnecessary rotation from pointerlocationview (which was
double rotating PointerEventDispatcher).

Fixed PointerEventDispatcher to use "real" size.

Bug: 179308296
Test: enable input rotation, rotate, and touch things
Change-Id: I156b6b3e0bf6d71996901c6e616c5710b12e3f0c
2021-02-26 17:16:03 -08:00
Connor O'Brien
fad30e4c7b Merge "Revert "Revert "Clear BPF data in KernelCpuUidTimeReader.removeUid()""" am: a0bbd188e4 am: 9267c31a1c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1602665

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia7275e44e3f4cd090cf5c03e25a8b83a8acbbf26
2021-02-27 01:05:46 +00:00
Connor O'Brien
9267c31a1c Merge "Revert "Revert "Clear BPF data in KernelCpuUidTimeReader.removeUid()""" am: a0bbd188e4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1602665

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I31e00f5aa8eec8fb3246a375f002820338d4572f
2021-02-27 00:27:16 +00:00
Connor O'Brien
a0bbd188e4 Merge "Revert "Revert "Clear BPF data in KernelCpuUidTimeReader.removeUid()""" 2021-02-27 00:04:47 +00:00
Dmitri Plotnikov
3539f8eea2 Remove support for OLD_HISTORY
The OLD_HISTORY constants has been set to false for almost
ten years. Need to simplify history support in preparation for
including history in BatteryUsageStats.

Bug: 180765532
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsHistoryTest
Change-Id: I8b7f55eb6e9e1c896dc046d2e6dafba885bf8970
2021-02-26 23:14:04 +00:00
Shuo Qian
8b8f2625db Merge changes from topic "cp-rvc-aosp" into sc-dev
* changes:
  [automerged blank] Add Emergency callback mode shell command 2p: b201f9b1e6
  Add Emergency callback mode shell command
2021-02-26 22:56:18 +00:00
Evgenii Stepanov
0ab80262df Merge "Implement memtagMode and nativeHeapZeroInit manifest attrs." am: d600f5067a am: ac811c4025
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556655

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4987b360e6ca7d6f60b50c233f60db555c98d1d1
2021-02-26 21:16:44 +00:00
Evgenii Stepanov
ac811c4025 Merge "Implement memtagMode and nativeHeapZeroInit manifest attrs." am: d600f5067a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556655

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9c84f162736af927f6cac041f4200dc3ab2b8efa
2021-02-26 20:50:30 +00:00
Evgenii Stepanov
d600f5067a Merge "Implement memtagMode and nativeHeapZeroInit manifest attrs." 2021-02-26 20:11:10 +00:00
Jeff DeCew
19864ec962 Fix the vertical positioning of the text in collapsed notifications.
Test: manual / visual
Bug: 181048615
Change-Id: I57fb542a776b254a6537dbed608259e69def411f
2021-02-26 14:19:00 -05:00
Hans Boehm
a15cde59cc Merge "Add zygote native fork loop" am: 43a9a8089f am: dd81ed70c7 am: 925ecc3f80 am: 1d550ecd10
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540230

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia212ba95b161d9df0257c3cefab8dd12dacc3e26
2021-02-26 17:35:42 +00:00
Todd Kennedy
e8f95cc1e5 Merge "Add self to owners for SystemConfig.java" am: 4b6dcc5192 am: 0e7a0c7ba9 am: 9a03d6f19e am: 5f9160b6cf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1606874

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6604bfc8f1ea2c6b9710459b615158b28a8b0d79
2021-02-26 17:35:27 +00:00
Adam Bookatz
85e74cc4e1 Merge "TEST_MAPPING for BatteryStats" into sc-dev am: 47fe2c6ade
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13562596

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibd3867d363fe0c70543886fd175ffe72a0cf9d72
2021-02-26 17:34:33 +00:00
Hans Boehm
1d550ecd10 Merge "Add zygote native fork loop" am: 43a9a8089f am: dd81ed70c7 am: 925ecc3f80
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540230

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3afb617aab80b073b56fa0c61398ae6d42800a75
2021-02-26 17:20:42 +00:00
Todd Kennedy
5f9160b6cf Merge "Add self to owners for SystemConfig.java" am: 4b6dcc5192 am: 0e7a0c7ba9 am: 9a03d6f19e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1606874

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I43f7e957d5c50d1762dbc2473eb0380b1ac168e3
2021-02-26 17:20:16 +00:00
Adam Bookatz
47fe2c6ade Merge "TEST_MAPPING for BatteryStats" into sc-dev 2021-02-26 17:11:40 +00:00
Galia Peycheva
525c824506 Merge "Fix synchronisation in BackgroundBlurDrawable" into sc-dev am: 656d774184
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13518706

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib53b4a5f5972a3e2ac6cc6286a2f30f316bda745
2021-02-26 14:53:11 +00:00
Galia Peycheva
656d774184 Merge "Fix synchronisation in BackgroundBlurDrawable" into sc-dev 2021-02-26 14:30:04 +00:00