Commit Graph

8227 Commits

Author SHA1 Message Date
Treehugger Robot
b704222433 Merge "Change log tag of DynamicSystemClient to match class name" am: 916dfddfd0 am: 198e4b4c4b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537885

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I36612768f8f876e93c624ed59d7c92bed7ae8b2d
2021-01-06 11:24:01 +00:00
Treehugger Robot
916dfddfd0 Merge "Change log tag of DynamicSystemClient to match class name" 2021-01-06 11:11:58 +00:00
Yo Chiang
ddff5bca30 Merge "DynamicSystemInstallationService: Support remount for DSU guest system" am: 4896c7f2ac am: b64a3f5871
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537222

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic2468f5f90cc7ae789ab0a1b5eaa4262e279c429
2021-01-06 09:45:56 +00:00
Yo Chiang
4896c7f2ac Merge "DynamicSystemInstallationService: Support remount for DSU guest system" 2021-01-06 08:37:43 +00:00
Yo Chiang
cd65cd4e04 Change log tag of DynamicSystemClient to match class name
Expand the "DynSystem" abbreviation to "DynamicSystem".
For simpler log grepping.

Bug: 165471299
Test: No
Change-Id: Ibec692ae45539dacd55e13ffaa903b58f3bf0417
2021-01-06 08:24:16 +00:00
Steven Moreland
9209ce0c19 Merge "TransactionTooLargeException: doc clarification" am: e51328b36c am: db1696ee21
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537983

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5128044c589118624c216cd640bc19e68c19a17c
2021-01-05 19:33:20 +00:00
Steven Moreland
e51328b36c Merge "TransactionTooLargeException: doc clarification" 2021-01-05 18:32:33 +00:00
Yo Chiang
848bcdc42a DynamicSystemInstallationService: Support remount for DSU guest system
DSU service would try to install a DSU scratch partition if host system
is debuggable.
If the scratch partition failed to install, then skip installing
scratch, as remount support should be optional.
Otherwise if the guest system is non-debuggable, then the scratch
partition would be ignored by guest, which is harmless.
Otherwise the guest system is debuggable, which means the guest system
would be able to do adb remount.

Relax partition allocation status polling rate from 10ms -> 100ms,
because there's no point polling faster than the screen framerate.

Bug: 165925766
Test: TH
Test: Install a DSU system on a debuggable host, reboot into the guest
  system, and guest system can remount.
Change-Id: I9a8255483cc963ebcf7a2909e68ac69371cb369f
2021-01-05 15:38:42 +08:00
Yo Chiang
df076f3e17 Merge "Update OWNERS file for DynamicSystemInstallationService related files" am: d15cbc37d5 am: da54c495b6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537268

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I88527e0b97e6a3705935bde0e89760435e0bb46b
2021-01-05 04:42:37 +00:00
Yo Chiang
d15cbc37d5 Merge "Update OWNERS file for DynamicSystemInstallationService related files" 2021-01-05 03:34:39 +00:00
Yo Chiang
70aa429243 Update OWNERS file for DynamicSystemInstallationService related files
Also sort OWNERS by alphabetical order.

Bug: 165925766
Test: No
Change-Id: Ib272ba802d0f7281aa2d1bbc8b74dc5954dbe13c
2020-12-31 14:10:36 +08:00
Steven Moreland
58311dcc70 TransactionTooLargeException: doc clarification
- buffer is in bytes, not bits (1MB vs 1Mb)
- this exception is actually a heuristic currently, pending b/28321379

Fixes: 149869862
Test: N/A
Change-Id: Id409a1ce7348666ec9ad6437acf67382be0a0a1f
2020-12-30 19:46:57 +00:00
Suren Baghdasaryan
4ab1e52df4 Merge "Add total GPU usage report into dumpsys meminfo output" am: 50a824abf7 am: 0eed51c4fd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1472569

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib3aa0cf7b052dad50273e1370218bbb4e4ecb375
2020-12-30 18:26:52 +00:00
Suren Baghdasaryan
aee45ee0bc Add total GPU usage report into dumpsys meminfo output
With latest kernel changes, total GPU memory usage is reported and can
be obtained via a BPF program. Create JNI interface to query it and
report inside dumpsys meminfo output.

Bug: 171261987
Test: dumpsys meminfo
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Merged-In: I949a13836d5b5bc87fc43f60871b4fbf2add6480
Change-Id: I949a13836d5b5bc87fc43f60871b4fbf2add6480
2020-12-30 17:32:10 +00:00
Steven Moreland
3965021b86 Merge "OWNERS - for binders" am: 55fe3d16a4 am: 8461e26292
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1532277

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1fa886ccd48215983d6669ef09d80f528e1c73e8
2020-12-29 19:42:21 +00:00
Steven Moreland
55fe3d16a4 Merge "OWNERS - for binders" 2020-12-29 18:43:29 +00:00
Treehugger Robot
964778feb8 Merge "Add some comments about thread-safety" am: d0c6e0fa08 am: 8b1745b2eb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503391

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If74f558d5dd3dc64902ea55f8effa626532d4b86
2020-12-29 17:05:33 +00:00
Treehugger Robot
d0c6e0fa08 Merge "Add some comments about thread-safety" 2020-12-29 16:03:08 +00:00
Sudheer Shanka
0b39593d11 Merge "Update usage of allowlist/denylist in some method names/comments." am: 771aa062b9 am: b4c68c4216
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1402789

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I97e8af4a71f23438e830b1a44834719b7c488d67
2020-12-24 09:36:33 +00:00
Sudheer Shanka
771aa062b9 Merge "Update usage of allowlist/denylist in some method names/comments." 2020-12-24 08:16:51 +00:00
Sudheer Shanka
ab00eadcc0 Update usage of allowlist/denylist in some method names/comments.
In a previous change (https://r.android.com/1394342), we did a mass update of whitelist->allowlist
and blacklist->denylist in network policy related code. Updating
some usages of those (like allowlisted to allowed) to make them
sound natural.

Test: atest services/tests/servicestests/src/com/android/server/net/NetworkPolicyManagerServiceTest.java
Test: atest services/tests/servicestests/src/com/android/server/NetworkManagementInternalTest.java
Test: atest hostsidetests/net/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: I6d34b0bd3cdb64d5872874fd9378bfc962a24f8d
2020-12-24 04:03:33 +00:00
Steven Moreland
0306f8c174 OWNERS - for binders
Forward ownership of libbinder and libhwbinder related things to
respective libbinder and libhwbinder OWNERS sets, to support future
developments.

Bug: 149869862
Test: N/A
Change-Id: If14bfdd89719c7cb1e39594aecdb089d4d5c96e3
2020-12-24 01:16:52 +00:00
Chiachang Wang
df9fc2853d Merge "[IT02] Expose system api to report radio power state" am: b1de9a09bd am: 15cc8f0f71
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1517498

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I379193edf34a6371e9e2febe372fa238420a0caa
2020-12-23 06:48:53 +00:00
Chiachang Wang
b1de9a09bd Merge "[IT02] Expose system api to report radio power state" 2020-12-23 05:19:51 +00:00
Chiachang Wang
3f01a7a8c1 [IT02] Expose system api to report radio power state
In order to support ConnectivityService mainline, the dependency
with NMS should be removed. The idle timer control API should be
replaced with calling INetd interface instead of using NMS hidden
API.

The state reporting will be triggered from updating idle timer
and netd unsolicited interface activity changed events.
BatteryStatsService should be able to get the netd event by
registering the listener directly. This commit exposes two system
APIs to report the radio power state for wifi and mobile for
supporting update idle timer from CS directly to INetd.

Bug: 170598012
Test: make update-api ; m
Change-Id: I286d6aa237ecb2653e1464e26a3581b8eeeb9e63
2020-12-22 08:39:22 +08:00
Tianjie Xu
2aa7d539d3 Merge "Deprecate the old rebootAndApply API" am: cabef01cb3 am: 7a81aade1d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1533087

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie0418e182285ee86aefcafb8edba7002229dbc5e
2020-12-21 19:20:28 +00:00
Tianjie Xu
cabef01cb3 Merge "Deprecate the old rebootAndApply API" 2020-12-21 18:53:20 +00:00
Todd Kennedy
e01d70114c Merge "Add OWNERS for incremental" am: b8ff8f238e am: 25d1667e00
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1533458

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5df3b15db2ef7cc56583d00a7d6f2e588b87c8a3
2020-12-17 23:17:45 +00:00
Tianjie
4343e3ebca Deprecate the old rebootAndApply API
This API isn't aware of slot switch, and shouldn't be used by
phonesky. So we prefer to deprecate it in case new callers use
it accidentally. Also don't allow callers with REBOOT permission
to call it.

Bug: 170664917
Test: build
Change-Id: I540b87fad461cb2c900f3e9d177bb5147abc1a22
2020-12-17 13:05:36 -08:00
Todd Kennedy
a2991e1001 Add OWNERS for incremental
Change-Id: Id0acdfff82c625fe05c6966956d1478ce8355a71
2020-12-17 17:20:10 +00:00
Treehugger Robot
ccd634ec0c Merge "Make a copy of libcore.util.ArraysUtils in framework" am: f35963cb77 am: acd5ae1807
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1531681

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0232dc3e89ca638cf5097888946f7f70b3f116d1
2020-12-17 11:10:44 +00:00
Treehugger Robot
f35963cb77 Merge "Make a copy of libcore.util.ArraysUtils in framework" 2020-12-17 10:10:52 +00:00
Tianjie Xu
90c5c0509d Merge "Update the system API to support multi client RoR" am: 0b9d85dab5 am: 4bf68fc222
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1495397

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia8a094bf80c3fb0990d7011424f00508dcbcc356
2020-12-17 00:48:35 +00:00
Tianjie Xu
04218179bc Merge "Add multi client ror support" am: fa7173b8ac am: 0572043849
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1483936

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9099a372d0612e96c409029ca79fc7ecfbf06648
2020-12-17 00:47:48 +00:00
Victor Chang
37c6b6deeb Make a copy of libcore.util.ArraysUtils in framework
It helps remove it from the @CorePlatformApi

Bug: 154796679
Test: ArrayUtilsTest
Merged-In: I0c8f194a74a16b2cc46f9eea4571d5fb674fbc28
Change-Id: I0c8f194a74a16b2cc46f9eea4571d5fb674fbc28
2020-12-17 00:07:23 +00:00
Tianjie
41afcdc45b Update the system API to support multi client RoR
Detailed design in http://go/multi-client-ror. We will reuse most of
the old APIs, and there are a few notable changes
1. Infer the package name from the existing context
2. Remove the unused update token
3. Add the REBOOT permission, so phonesky can hold it.
4. Add a new API for rebootAndApply, which takes a slotSwitch parameter

Bug: 170664917
Test: build

Change-Id: Icb012138bd1789ce03564aa255e5bd4e84374130
2020-12-16 23:40:28 +00:00
Tianjie Xu
fa7173b8ac Merge "Add multi client ror support" 2020-12-16 23:39:31 +00:00
Tianjie
acea5f3b54 Add multi client ror support
Detailed design in http://go/multi-client-ror. This cl adds internal
states in RecoverySystemService to keep track of multiple RoR
callers. The general principles works as:
1. Each client should call prepare before reboot
2. One client cannot clear the preparation of another client
3. If multiple clients have prepared the update, the subsequent
   reboot will be first come, first served.

Bug: 170664917
Test: atest FrameworksServicesTests:RecoverySystemServiceTest

Change-Id: Ic8c7438f8a0300870ceed8857c46425fc0d006b9
2020-12-15 21:12:12 -08:00
Peiyong Lin
28613f9d31 Merge "[GraphicsEnvironment] Avoid null access." into rvc-qpr-dev am: 23ace73ac4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13229183

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I20f201739a456f9580328670189e506e284feb2e
2020-12-15 19:10:01 +00:00
Peiyong Lin
23ace73ac4 Merge "[GraphicsEnvironment] Avoid null access." into rvc-qpr-dev 2020-12-15 19:02:54 +00:00
TreeHugger Robot
946b5ee77a Merge "Combine uids for CpuTimePerUidFreq atom" into rvc-qpr-dev am: 9622b6d7d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13205190

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id450db7d6874e2e1f4832b8dc0c40f972d62bf18
2020-12-15 18:48:15 +00:00
Peiyong Lin
3cb225dc74 [GraphicsEnvironment] Avoid null access.
Currently when debug layer apk is not installed, GraphicsEnvironment
logs the message and proceeds, which results in null pointer access
crash when later trying to access primaryAbi. Avoid null access by an
early return statement.

Bug: N/A
Test: specify not installed debug layer apk and no crash
Change-Id: I4f3b86b0a8cfff4fc608b3a59ebf0872db0465ff
Merged-In: I4f3b86b0a8cfff4fc608b3a59ebf0872db0465ff
(cherry picked from commit c5c17e66ba)
2020-12-15 10:22:53 -08:00
Peiyong Lin
d22eebefdb [GraphicsEnvironment] Avoid null access.
Currently when debug layer apk is not installed, GraphicsEnvironment
logs the message and proceeds, which results in null pointer access
crash when later trying to access primaryAbi. Avoid null access by an
early return statement.

Bug: b/175699044
Test: specify not installed debug layer apk and no crash
Change-Id: I4f3b86b0a8cfff4fc608b3a59ebf0872db0465ff
Merged-In: I4f3b86b0a8cfff4fc608b3a59ebf0872db0465ff
(cherry picked from commit c5c17e66ba)
2020-12-15 17:54:45 +00:00
Jeff Sharkey
a2ae9eb6e1 Merge "Update the owner of recovery systems" am: 612b7e7d1d am: 483f980afe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1528978

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idffa8d9f4d9473b205244a92e222cee5e2d6f99b
2020-12-15 00:45:09 +00:00
Jeff Sharkey
44a90dab48 Merge "Add OTA team as the owner of recovery systems" am: 8ef2e0426a am: 305b2ce554
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1528858

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I47e7c56345f66dd137ba664eed24d01ba7a2cfab
2020-12-15 00:44:58 +00:00
Tianjie
a809a05b92 Update the owner of recovery systems
Use the same owner file from the services.

Test: build
Change-Id: I976c90c2fd16efe20ca3b944c6e45c30550e3226
2020-12-14 16:24:12 -08:00
Tianjie
221cad235d Add OTA team as the owner of recovery systems
The RecoverySystem mostly handles OTA update and interactions with
the recovery mode. Add the ota team as the owner.

Test: build
Change-Id: I81bae46d919ea70f04729d34b62d4a569541d914
2020-12-14 15:23:42 -08:00
Gavin Corkery
11c28aeb13 Merge "Replace broadcast with adding a method in BugreportCallback" am: d45d533b6e am: 7611ac2a5a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1507504

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib170bb6f36a086ac7fcab2c0bfc29153f9335a47
2020-12-14 19:19:08 +00:00
Gavin Corkery
d45d533b6e Merge "Replace broadcast with adding a method in BugreportCallback" 2020-12-14 18:55:55 +00:00
Rafal Slawik
47ac3aae22 Combine uids for CpuTimePerUidFreq atom
The puller for the atom frequently fails. We believe it is due to the
size of the pulled atoms. No metric can be correctly build from this
atom.

To reduce the size, we apply transformations that we would likely
perform when analyzing this data. We combine times for all shared app
gids together and combine times for the same apps. We also exclude
isolated uids which are frequently recycled and removed from the
underlying data source.

If these optimization do not help, we will need to introduce different
atoms.

Bug: 157535126
Test: cmd stats pull-source 10010
Change-Id: I0d9a18c78f456e1b0f9d7ad322f15354ead9f02b
Merged-In: I0d9a18c78f456e1b0f9d7ad322f15354ead9f02b
(cherry picked from commit e69ade3545)
2020-12-14 17:24:25 +00:00