Commit Graph

743456 Commits

Author SHA1 Message Date
Robert Horvath
e57eb6d07e Add TestApi to force Low Power Standby to be active
Since Low Power Standby depends on multiple factors to activate,
including the private device configuration for the delay after the
device becomes non-interactive, having this TestApi makes testing
faster and more reliable.

Bug: 190822356
Test: atest LowPowerStandbyTest
Change-Id: I5a16083f996bd7421197b08c6632655c8c3d8c29
2022-01-27 23:08:32 +01:00
Robert Horvath
4845efb60d Add TestApi wakelock flag to have system acquire wakelock
Allows CTS tests to test power restrictions that disable wakelocks
without the system suspending (since system-wakelocks are exempt).

Bug: 190822356
Test: atest LowPowerStandbyTest
Change-Id: I91f44ae93480be992151d845175606fb66ecb127
2022-01-27 23:08:32 +01:00
Robert Horvath
287a3a7b94 Allowlist active voice interaction session from Low Power Standby
If a voice interaction session is started, then it should be allowed to
use the network & wakelocks unrestricted while it is ongoing, since it
is direct user interaction.

Bug: 190822356
Test: atest LowPowerStandbyControllerTest PowerManagerServiceTest
Test: With reference VIS: adb shell cmd voiceinteraction show
      To verify allowlist/wakelock state: adb shell dumpsys power
Change-Id: I63cd0cf2e97b574ba8fa6c6caa8f046cce2bb821
2022-01-27 23:08:32 +01:00
Robert Horvath
570645567f Introduce Low Power Standby API and wakelock restrictions
In Low Power Standby, additional restrictions are placed on apps that
are in a process state of FOREGROUND_SERVICE or less important
during standby (while the device is non-interactive):
- Wakelocks are disabled
- Network access is blocked
During doze maintenance windows the restrictions are lifted temporarily.

This change introduces the APIs for Low Power Standby, as well as
the wakelock restrictions.

This feature is targeting TVs. To prevent Low Power Standby from being
enabled on other devices, the feature is guarded by the config flag
config_lowPowerStandbySupported.

Bug: 190822356
Test: atest LowPowerStandbyControllerTest PowerManagerServiceTest
Ignore-AOSP-First: New permission only added internally for now.
Change-Id: Ia40f8a0fc4b366860af58ad76c988f93a5d41936
2022-01-27 23:08:26 +01:00
Mark Chien
f7e59f08d2 Merge "Update UidCounterSetMap directly from NetworkStatsService" am: c84a601379 am: 8a0386ab52 am: dd44ffdacc am: 5afa9a1aca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958917

Change-Id: I9859228494613e234ed109068e0019a463edfe1a
2022-01-27 11:43:12 +00:00
Chiachang Wang
dd512633c4 Merge "Expose local route exclusion APIs" am: 377dd020fe am: 8a26f53a68 am: 5417b89233 am: d9ff943b80
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962799

Change-Id: I0331f6a0bfd41990ffd22d06eb2b62ddf2c7f612
2022-01-27 11:42:06 +00:00
Jean Chalard
43aee0df67 Merge "Support building Ikev2VpnProfile from an IkeTunnelConnectionParams" am: b083799699 am: 5f01f6cb66 am: e5550847ee am: 599fe55867
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958911

Change-Id: I71891242e13bf3183c14e3a11969c16c38c3b3c9
2022-01-27 11:40:44 +00:00
TreeHugger Robot
c06881f4dd Merge changes from topic "presubmit-am-91774b822616430495e3cd353411036e"
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 939c3bf6af 2p: 5d4fc1385e
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 939c3bf6af
  Import translations. DO NOT MERGE ANYWHERE
2022-01-27 11:40:41 +00:00
Treehugger Robot
02e9d83488 Merge "Updates to Dolby Vision Levels" am: e7dd66d7db am: d1928adcae am: 498e2b7944 am: cd60d3b2e6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1961619

Change-Id: I820a527914981546f5966f61ea2bfb54cb8b6f53
2022-01-27 11:39:24 +00:00
Mark Chien
5afa9a1aca Merge "Update UidCounterSetMap directly from NetworkStatsService" am: c84a601379 am: 8a0386ab52 am: dd44ffdacc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958917

Change-Id: I5243cd8de7b7414d27d539aec0a88baec6c9257d
2022-01-27 11:23:55 +00:00
Chiachang Wang
d9ff943b80 Merge "Expose local route exclusion APIs" am: 377dd020fe am: 8a26f53a68 am: 5417b89233
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962799

Change-Id: Id2abe8239abea750b9cd09c271e2b2729acb0c66
2022-01-27 11:23:28 +00:00
Jean Chalard
599fe55867 Merge "Support building Ikev2VpnProfile from an IkeTunnelConnectionParams" am: b083799699 am: 5f01f6cb66 am: e5550847ee
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958911

Change-Id: I9e9cae764b06b68818c2eea70ecc317221d3d393
2022-01-27 11:23:00 +00:00
Treehugger Robot
cd60d3b2e6 Merge "Updates to Dolby Vision Levels" am: e7dd66d7db am: d1928adcae am: 498e2b7944
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1961619

Change-Id: I621e97adabcd9ff2dc8b9ddabdb1684eaba3f55d
2022-01-27 11:21:54 +00:00
Mark Chien
dd44ffdacc Merge "Update UidCounterSetMap directly from NetworkStatsService" am: c84a601379 am: 8a0386ab52
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958917

Change-Id: Ibf3aafe11b818decaf43f5a76ec2c1f22b06011f
2022-01-27 11:07:07 +00:00
Chiachang Wang
5417b89233 Merge "Expose local route exclusion APIs" am: 377dd020fe am: 8a26f53a68
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962799

Change-Id: Ic8ef185597752c19c9c5b4c63cd220b844880ec5
2022-01-27 11:06:32 +00:00
Jean Chalard
e5550847ee Merge "Support building Ikev2VpnProfile from an IkeTunnelConnectionParams" am: b083799699 am: 5f01f6cb66
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958911

Change-Id: I52c513e28fbf89355c6fa8dbe3ff9b84a82f9dd6
2022-01-27 11:06:14 +00:00
Treehugger Robot
498e2b7944 Merge "Updates to Dolby Vision Levels" am: e7dd66d7db am: d1928adcae
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1961619

Change-Id: I4efc107ec69ac886a8408490d63c71a54f2b323d
2022-01-27 11:05:19 +00:00
Mark Chien
8a0386ab52 Merge "Update UidCounterSetMap directly from NetworkStatsService" am: c84a601379
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958917

Change-Id: I36115a00c7b4feb5ee069bd9894318ea4133a005
2022-01-27 10:49:03 +00:00
Chiachang Wang
8a26f53a68 Merge "Expose local route exclusion APIs" am: 377dd020fe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962799

Change-Id: I53f7d4726ca00850ca06661ea6c0ab1135bf9b4a
2022-01-27 10:47:56 +00:00
Junyu Lai
8b33a21870 Merge "[MS59.1] Add NetworkStatsDataMigrationUtils" am: c428b10a74 am: a5beb8b8f9 am: b7a3ae056c am: 93feaa875e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1951480

Change-Id: Ieff101d7da2bdc533873b3ed1b63fb0c609243db
2022-01-27 10:47:40 +00:00
Jean Chalard
5f01f6cb66 Merge "Support building Ikev2VpnProfile from an IkeTunnelConnectionParams" am: b083799699
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958911

Change-Id: I514cfbc8f2d3c8c246e6dd215af1ddf73d75272f
2022-01-27 10:47:33 +00:00
Treehugger Robot
d1928adcae Merge "Updates to Dolby Vision Levels" am: e7dd66d7db
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1961619

Change-Id: Icb45dd4df89cb5f42dc9a7b5a37ab7acd0f1ce8f
2022-01-27 10:47:07 +00:00
Frank Li
97df64fa41 Merge "[DU10]Fix the NetworkCycleDataForUidLoaderTest error" am: 8f5f7a2230 am: 6664edbb78 am: 10cfac9d98 am: 5411bbaff7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958910

Change-Id: I455d07c9968e6d4b7bb8b411de24b1a506203d3a
2022-01-27 10:46:50 +00:00
Frank Li
8e29d14c67 [automerger skipped] Merge "[MS48.5]Remove INetworkStatsSession from SummaryForAllUidLoader" am: 2c1d4eec79 am: af700e251f am: a97de322c8 am: 7f9026f84f -s ours
am skip reason: Merged-In Iac733a5021d0d79111c0350b694e4ed0ec90e262 with SHA-1 678760023e is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960184

Change-Id: I4bd9cf0976b3a02e9274ea52fcf2a50f8d87eb18
2022-01-27 10:46:09 +00:00
Frank Li
9662acd18d [automerger skipped] Merge "[MS48.1] Remove INetworkStatsSession from ChartDataLoader" am: 9be1e260e8 am: 959a2cdef3 am: e54384c15d am: e84c0fe190 -s ours
am skip reason: Merged-In I5336ceef43193343d707724066e2da40f1ff0633 with SHA-1 87be5d5f37 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960183

Change-Id: Ieea668f9417df3455116d2ed091e7d33e281ba78
2022-01-27 10:45:56 +00:00
Fiona Campbell
159ae360c2 Merge "Don't invalidate short term model when idle" 2022-01-27 10:33:59 +00:00
TreeHugger Robot
4c4cd6f670 Merge changes from topics "CAI-filters", "onPrepareStylusHandwriting"
* changes:
  Scribe in IMF: Introduce filters in CursoAnchorInfo API 7/N
  Scribe in IMF: Early InkWindow preparation 6/N
2022-01-27 10:32:06 +00:00
Yohei Yukawa
89048f9502 Merge ""rounded_corner_content_padding" as a FW resource" 2022-01-27 10:16:41 +00:00
Mark Chien
c84a601379 Merge "Update UidCounterSetMap directly from NetworkStatsService" 2022-01-27 10:02:35 +00:00
Chiachang Wang
377dd020fe Merge "Expose local route exclusion APIs" 2022-01-27 09:52:26 +00:00
Junyu Lai
93feaa875e Merge "[MS59.1] Add NetworkStatsDataMigrationUtils" am: c428b10a74 am: a5beb8b8f9 am: b7a3ae056c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1951480

Change-Id: Iebc807ae214159ec696a2ebbb037bbe7234f9e88
2022-01-27 09:46:12 +00:00
Frank Li
5411bbaff7 Merge "[DU10]Fix the NetworkCycleDataForUidLoaderTest error" am: 8f5f7a2230 am: 6664edbb78 am: 10cfac9d98
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958910

Change-Id: Ia6010bba3522bd74995b97c05f81a582007ebf32
2022-01-27 09:45:52 +00:00
Jean Chalard
b083799699 Merge "Support building Ikev2VpnProfile from an IkeTunnelConnectionParams" 2022-01-27 09:45:24 +00:00
Frank Li
7f9026f84f Merge "[MS48.5]Remove INetworkStatsSession from SummaryForAllUidLoader" am: 2c1d4eec79 am: af700e251f am: a97de322c8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960184

Change-Id: I85fc63a47dc06878d96076ec980c6fdec607eded
2022-01-27 09:45:20 +00:00
Frank Li
e84c0fe190 Merge "[MS48.1] Remove INetworkStatsSession from ChartDataLoader" am: 9be1e260e8 am: 959a2cdef3 am: e54384c15d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960183

Change-Id: Ic95ef8ab0267698c117ff845d3d9e9e931f172a8
2022-01-27 09:45:15 +00:00
Sudheer Shanka
077c836e99 Merge "Add APIs for querying broadcast response stats." 2022-01-27 09:38:37 +00:00
Treehugger Robot
e7dd66d7db Merge "Updates to Dolby Vision Levels" 2022-01-27 09:34:53 +00:00
Aaron Huang
96a16c6cd5 Merge "Move the implement of getAllCollapsedRatTypes to StatsPullAtomService" am: e48ca58c47 am: 828ae80219 am: f82b4fe8a7 am: 4cba369177
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960191

Change-Id: Ic11bb6f312b1d8296b57e8cf5ebd6c04bdaac0f6
2022-01-27 09:30:26 +00:00
Aaron Huang
4d29273038 Merge "Move NETWORK_TYPE_5G_NSA from NetworkTemplate to NetworkStatsManager" am: 75ed57cd6a am: f8abec4fa5 am: e7000b64f9 am: 1094eb2150
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960190

Change-Id: I29e941b328b84986e1ef4a9fcfcce932c86ce69a
2022-01-27 09:29:49 +00:00
Aaron Huang
13a573ab59 Merge "Remove NetworkStats hidden API dependencies from StatsPullAtomService" am: 3f9910630b am: 9570d3f1fa am: 16856ba3fd am: c39849d986
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960189

Change-Id: Ic45e6b3a5697ce9d31ccc477805e980c6ab795cb
2022-01-27 09:29:11 +00:00
Treehugger Robot
cabe7e39f7 Merge "Revert "CTS of CtsMediaTestCases#android.media.cts.DecodeAccuracyTest may fail when video is cropped."" am: fbc849e9d8 am: 423a67e7aa am: 611cfb5d99 am: c736d8d0d5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959133

Change-Id: I31e6dcc0f08c151de7ee6df1ce914e22db5cf682
2022-01-27 09:28:29 +00:00
Junyu Lai
b7a3ae056c Merge "[MS59.1] Add NetworkStatsDataMigrationUtils" am: c428b10a74 am: a5beb8b8f9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1951480

Change-Id: I89721eb546340b66537c794f121da0cf96faad3b
2022-01-27 09:24:10 +00:00
Frank Li
10cfac9d98 Merge "[DU10]Fix the NetworkCycleDataForUidLoaderTest error" am: 8f5f7a2230 am: 6664edbb78
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958910

Change-Id: Ic6553cf5866fe5633b88d7284857a2cbb2b56a68
2022-01-27 09:23:57 +00:00
Junyu Lai
a5beb8b8f9 Merge "[MS59.1] Add NetworkStatsDataMigrationUtils" am: c428b10a74
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1951480

Change-Id: I17ff031dbaccd0a6804aa28a65d4e5befd82fc21
2022-01-27 09:23:50 +00:00
Frank Li
a97de322c8 Merge "[MS48.5]Remove INetworkStatsSession from SummaryForAllUidLoader" am: 2c1d4eec79 am: af700e251f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960184

Change-Id: I414674d0f8973702fee6f33c4242f6d93b78eb84
2022-01-27 09:23:38 +00:00
Frank Li
e54384c15d Merge "[MS48.1] Remove INetworkStatsSession from ChartDataLoader" am: 9be1e260e8 am: 959a2cdef3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960183

Change-Id: I4872d0a40f534cfa860ff83712a5a7d3fde26607
2022-01-27 09:23:36 +00:00
Frank Li
6664edbb78 Merge "[DU10]Fix the NetworkCycleDataForUidLoaderTest error" am: 8f5f7a2230
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958910

Change-Id: I425ae135e4b10366b328fee9ef13c40464f96c58
2022-01-27 09:23:17 +00:00
Kholoud Mohamed
01c5895d41 Merge "allow updating enterprise strings in sysUI" 2022-01-27 09:22:29 +00:00
Junyu Lai
c428b10a74 Merge "[MS59.1] Add NetworkStatsDataMigrationUtils" 2022-01-27 09:20:10 +00:00
Aaron Huang
4cba369177 Merge "Move the implement of getAllCollapsedRatTypes to StatsPullAtomService" am: e48ca58c47 am: 828ae80219 am: f82b4fe8a7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960191

Change-Id: I74cd4f4fe80a76fb1d946dbab5e8394832801ff8
2022-01-27 09:16:42 +00:00