Commit Graph

8555 Commits

Author SHA1 Message Date
Treehugger Robot
f4f42950c9 Merge "Throw BadParcelableException from set/getParcelable" am: 294dd8f1da am: c661b70d60 am: 848458fae1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503133

Change-Id: I8df231d1a87fa0ddd63b609cf42834b24b7177e6
2020-12-07 21:02:20 +00:00
Treehugger Robot
848458fae1 Merge "Throw BadParcelableException from set/getParcelable" am: 294dd8f1da am: c661b70d60
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503133

Change-Id: I9cab7d61cfe9fcf6e551b6c225bd36fd222b1753
2020-12-07 08:22:22 +00:00
Treehugger Robot
c661b70d60 Merge "Throw BadParcelableException from set/getParcelable" am: 294dd8f1da
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503133

Change-Id: If26fbc900b82beeab1f68d6e68c7eb1903ee9db9
2020-12-07 08:13:58 +00:00
Treehugger Robot
294dd8f1da Merge "Throw BadParcelableException from set/getParcelable" 2020-12-07 07:32:29 +00:00
Manish Singh
3b8d8bc781 Introduce new preference indicating user control.
If the user enables this, then that means that we will respect user's
choices for all the preferences, i.e. we will not update the preferences
based on the updates from server.
On the other hand, if it's disabled, then the rest of the preferences
would not be considered.  And we'd decide their values based on the
values from the DeviceConfig (which in turn come from the server).

Also, renaming the set prop key for enabling-transcode to match the one
in DeviceConfig - transcode_enabled.

Also, the "transcode_enable_all" controller now enables (instead of
disabling) the global level transcoding.

BUG:169327180

Test: manual testing.

Change-Id: I183b3b5496b647943be377c02c8c9e2a0df71752
2020-12-06 23:37:15 +00:00
TreeHugger Robot
b7cee931e2 Merge "Add SystemMemory pulled atom in statsd" 2020-12-04 22:05:46 +00:00
Dmitri Plotnikov
75affe2132 Merge "Introduce BatteryUsageStats API" 2020-12-04 00:00:46 +00:00
Dmitri Plotnikov
bfe822007b Introduce BatteryUsageStats API
Bug: 158137862
Test: Start Settings app, navigate to Apps, pick an app, navigate to Battery

Change-Id: I8da8cc9501e01282b855f1bee6032911d91aaf77
2020-12-03 10:42:41 -08:00
Ioannis Ilkos
83b88de75e Add SystemMemory pulled atom in statsd
Initial implementation of kernel-level memory metrics

Bug: 149462065
Bug: 172201884
Test: statsd_testdrive
Change-Id: I9c0e24f2771ce398942845af6934f0cbc64044c0
2020-12-03 13:54:53 +00:00
Xin Li
9e27e114af Merge "Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855" into stage-aosp-master 2020-12-03 03:18:49 +00:00
Treehugger Robot
61f71c3d88 Merge "Update comment for new proto directory" am: 777d7d838a am: 9f5b01e691 am: 1592b52b91
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513316

Change-Id: Iee4145492ba8f6821b1e0ddeb97e6205e778fd1a
2020-12-02 15:25:42 +00:00
Treehugger Robot
1592b52b91 Merge "Update comment for new proto directory" am: 777d7d838a am: 9f5b01e691
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513316

Change-Id: I6123688f943713d9baf1d98ebbe59ae86f6d6426
2020-12-02 14:29:42 +00:00
Treehugger Robot
777d7d838a Merge "Update comment for new proto directory" 2020-12-02 13:08:47 +00:00
Xin Li
d31ee38811 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: I78222391b83a4add8e964340ec08bb8a1306e1c6
Change-Id: I28bbf40820674675ccf765c912aa8140d3f74ab2
2020-12-02 00:38:58 -08:00
Treehugger Robot
70edf54d81 Merge "Deprecated UserManager.getUsers(excludeDying) / added getAliveUsers()" am: c0b44fca8b am: bd2f82c88c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1406256

Change-Id: I44114ea2abcba197c8614c1e93db8b28faf16afe
2020-12-01 18:07:01 +00:00
Treehugger Robot
c0b44fca8b Merge "Deprecated UserManager.getUsers(excludeDying) / added getAliveUsers()" 2020-12-01 16:52:45 +00:00
Zimuzo Ezeozue
46e59fe8b3 Merge "Fixed a race contidion in StorageManagerService" am: 782ef476df am: c6536c8794 am: 93a82398b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1508499

Change-Id: If6b1b4d78b28e70e7739726e70089d485c15f7c4
2020-12-01 11:55:33 +00:00
Zimuzo Ezeozue
93a82398b0 Merge "Fixed a race contidion in StorageManagerService" am: 782ef476df am: c6536c8794
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1508499

Change-Id: Ia52c056e856950dcad38187fb78243ebc728a8cc
2020-12-01 11:42:48 +00:00
Zimuzo Ezeozue
782ef476df Merge "Fixed a race contidion in StorageManagerService" 2020-12-01 10:52:23 +00:00
Felipe Leme
b0402e7bf3 Deprecated UserManager.getUsers(excludeDying) / added getAliveUsers()
The existing method is confusing (the argument used to be called
includeDying) and it puts the burden on the caller (which need to
understand what the parameter means).

Furthermore:

- The majority of calls are for getUsers(excludeDying=true).
- The calls for getUsers(excludeDying=false) are equivalent to
  calls to getUsers()

Test: m
Test: a VpnTest ConnectivityServiceTest PermissionMonitorTest

Bug: 157921703
Change-Id: Ife767a40b7b7790ba28b5377046de822ddbf275c
Merged-In: Ife767a40b7b7790ba28b5377046de822ddbf275c
(cherry picked from commit 6dc6d2b964)
2020-12-01 15:25:52 +08:00
Lais Andrade
9c3ddc9cbd Merge "Fix documentation of delay param in VibrationEffect.Composition" am: 040919bef5 am: d95f42a4ee am: 8c54f99eba
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513870

Change-Id: I8f5eb7cbf2aca09f05d8c29f674058a3c510c91f
2020-12-01 01:18:47 +00:00
Lais Andrade
8c54f99eba Merge "Fix documentation of delay param in VibrationEffect.Composition" am: 040919bef5 am: d95f42a4ee
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513870

Change-Id: Ia7dfebf9187054eccb3ca9a2309a94ac674995f7
2020-12-01 01:02:24 +00:00
Zimuzo Ezeozue
d8c36b5888 Merge "Remove dead isolated storage code from StorageManagerService" 2020-11-30 20:55:29 +00:00
Jeffrey Huang
ca10c36424 Update comment for new proto directory
Bug: 167962588
Test: m -j
Change-Id: I539212aa9f5fd86d58116e32abbe48190dd3ca16
2020-11-30 12:44:45 -08:00
Lais Andrade
cc8210d370 Fix documentation of delay param in VibrationEffect.Composition
Change-Id: I9aca87e8d804d39ad61b651cc7653c8ef57e13e3
Fix: 150715908
Test: N/A
2020-11-30 16:46:18 +00:00
Olof Axelsson
ed2716dd24 Fixed a race contidion in StorageManagerService
StorageManagerService#onVolumeStateChanged passes on a mutable
object to onVolumeStateChangedLocked and onVolumeStateChangedAsync.
This causes a race since the state of the object being passed can
be updated while onVolumeStateChangedAsync is processing it.

To fix this, a clone of the object is passed instead.

Bug: 174056195
Test: atest AdoptableHostTest
Test: atest com.android.tests.fused.host.FuseDaemonHostTest
Change-Id: I4de32279ae740544bd3abe33d788ebdbef1eab00
2020-11-30 15:45:43 +00:00
Zim
7ac598f2ad Remove dead isolated storage code from StorageManagerService
Isolated storage was added in Q (and enabled by default) and has been
replaced by FUSE in R

Additionally, we can remove the ExternalStorageMountPolicy concept
which is only required if isolated storage is false

Cleanup in preparation to introduce DeviceConfig changes for
transcoding

Bug: 169327180
Test: Builds
Change-Id: Ie2686d8efa6654ea6c4b4ca8c121c0c1841a6356
2020-11-27 09:45:50 +00:00
Treehugger Robot
8d840085e4 Merge "ParcelableHolder shouldn't write anything for empty case" am: 97c2606bbd am: a539a7a3b2 am: 594ccb4851
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1509888

Change-Id: I1dde6fb17cb43885eaefe97fbd9ca1c8c965973b
2020-11-26 03:34:03 +00:00
Treehugger Robot
594ccb4851 Merge "ParcelableHolder shouldn't write anything for empty case" am: 97c2606bbd am: a539a7a3b2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1509888

Change-Id: I1cb4b8601947e050c4186d485c161addfd3a640c
2020-11-26 03:33:35 +00:00
Jeongik Cha
3f5ffa615a ParcelableHolder shouldn't write anything for empty case
If neither Parcel nor Parcelable exists, ParcelableHolder'd better
write nothing like NDK and C++ backend.

In the case of empty ParcelableHolder
As-is(Java):
 4 -> Size
 -1 -> Existence(empty string)

To-be(NDK, C++ now):
 0 -> Size

Test: atest CtsNdkBinderTestCases
Bug: 173682663
Change-Id: I816108fdc59170ea7408f0633295ba978f1ef9d5
2020-11-24 22:44:42 +09:00
Michael Wachenschwanz
26acf27957 Merge changes I9b91ed27,Ia77d0eac,I014c2ee9
* changes:
  Fix PowerStatsView AppPicker activity start
  Utilize Measured Energy data in PowerStatsViewer
  Introduce MeasuredEnergyStats to BatteryStatsImpl
2020-11-23 17:38:05 +00:00
Jeongik Cha
eaf5d14c1e Throw BadParcelableException from set/getParcelable
As-is: It returns false or null, so it could fail silently.
To-be: In exceptional cases, it throws Runtime exception

Test: atest aidl_integration_test
Bug: 171982001
Change-Id: Ia5902bc2d35d7e72b5f014722453b6d9e313f1ed
2020-11-23 19:42:43 +09:00
Treehugger Robot
579a490a1b Merge "Update UntaggedSocketViolation StrictMode message to reference TrafficStats.setThreadStatsTag instead of the erroneous TrafficStats.setThreadSocketTag." am: 00326a8902 am: 935bacec4a am: 048727199b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503394

Change-Id: I1004128862e64979395bd79b66f36b085ef5d030
2020-11-21 02:04:44 +00:00
Treehugger Robot
048727199b Merge "Update UntaggedSocketViolation StrictMode message to reference TrafficStats.setThreadStatsTag instead of the erroneous TrafficStats.setThreadSocketTag." am: 00326a8902 am: 935bacec4a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503394

Change-Id: I43a09e2c3fbaa93b700b7e028aecf2b5a20e74bd
2020-11-21 01:28:59 +00:00
Treehugger Robot
00326a8902 Merge "Update UntaggedSocketViolation StrictMode message to reference TrafficStats.setThreadStatsTag instead of the erroneous TrafficStats.setThreadSocketTag." 2020-11-21 00:42:47 +00:00
Michael Wachenschwanz
d23a7c4f03 Introduce MeasuredEnergyStats to BatteryStatsImpl
Initial checkin that plumbs the flow of energy consumption data through
BatteryStatsService, BatteryStatsImpl, and BatteryExternalStatsWorker.

Also, start monitoring the display subsystem measured enegy consumption
and attribute energy to screen on and screen doze state.

Fixes: 171728122
Test: atest FrameworksCoreTests:MeasuredEnergyStatsTest
Change-Id: I014c2ee99da773ebc93e18d026b2e2e694d0d4b2
2020-11-20 14:59:36 -08:00
Chiachang Wang
debe20edd7 Merge changes from topic "move_BSCH" am: 1b414d61b4 am: 2ea9048daa am: 7becf08476
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503395

Change-Id: I09068be6ac4d220c3e9e9242f3e0eb2cf5d01e23
2020-11-20 09:04:31 +00:00
Chiachang Wang
61199f587e Move BasicShellCommandHandler to frameworks/lib/modules-utils am: d5726c1916 am: d3e4d83eb7 am: b6f524b2df
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1483965

Change-Id: Ib09544e292d472e8dcd7dcf218035a0ec6de293c
2020-11-20 09:04:26 +00:00
Chiachang Wang
7becf08476 Merge changes from topic "move_BSCH" am: 1b414d61b4 am: 2ea9048daa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503395

Change-Id: I3c14ab887a0c8529f17b9ed1eb49e1d01bc02be1
2020-11-20 08:21:56 +00:00
Chiachang Wang
b6f524b2df Move BasicShellCommandHandler to frameworks/lib/modules-utils am: d5726c1916 am: d3e4d83eb7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1483965

Change-Id: I0c01c2355d990e6e819ba6ac368ead2166f068f4
2020-11-20 08:21:53 +00:00
Chiachang Wang
d3e4d83eb7 Move BasicShellCommandHandler to frameworks/lib/modules-utils am: d5726c1916
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1483965

Change-Id: Ib2a99f1aeb31b89e69a5b313ca3774ba145dde33
2020-11-20 07:47:11 +00:00
Chiachang Wang
1b414d61b4 Merge changes from topic "move_BSCH"
* changes:
  Remove BasicShellCommandHandler from frameworks/base
  Move BasicShellCommandHandler to frameworks/lib/modules-utils
2020-11-20 07:29:56 +00:00
Charles Chen
7d77103f1e Release detectIncorrectContextUse
also link it in Context#isUiContext(Context).

Test: build & run
Bug: 170275820
Change-Id: Ide1195af1d11bb33a846420b92de70325c0ecf61
2020-11-19 13:45:33 +08:00
Chiachang Wang
a68fbfafb7 Remove BasicShellCommandHandler from frameworks/base
BasicShellCommandHandler is used by mainline modules and the
framwork. There is a new repo that was created for putting
this kind of utility class. Remove BasicShellCommandHandler
from frameworks/base to frameworks/lib/modules-utils.

Bug: 170598012
Test: m
Change-Id: I81e01ba097392e8fe6eb27c01212a8fa1e4cbfad
Merged-In: Ida30c877116090616d4bf3f87fdad835446dac84
2020-11-19 05:32:14 +00:00
Chiachang Wang
d5726c1916 Move BasicShellCommandHandler to frameworks/lib/modules-utils
BasicShellCommandHandler is used by mainline modules and the
framwork. There is a new repo that was created for putting
this kind of utility class. Move BasicShellCommandHandler for
the incoming ConnectivityService mainline and updating the
related usage.

Bug: 170598012
Test: m ; verify with adb shell cmd
Change-Id: I8a2873df6e7d8342b7a8b466bda155f74c807ee3
Merged-In: Ida30c877116090616d4bf3f87fdad835446dac84
2020-11-19 03:16:03 +00:00
Alexander Zlatin
739620f26f Update UntaggedSocketViolation StrictMode message to reference TrafficStats.setThreadStatsTag instead of the erroneous TrafficStats.setThreadSocketTag.
Bug: 143923100

Change-Id: I1a4f75d7e3fff538d418a956b8eead79bc0b3e55
2020-11-18 23:23:50 +00:00
Chiachang Wang
6a555279ec Move BasicShellCommandHandler to frameworks/lib/modules-utils
BasicShellCommandHandler is used by mainline modules and the
framwork. There is a new repo that was created for putting
this kind of utility class. Move BasicShellCommandHandler for
the incoming ConnectivityService mainline and updating the
related usage.

Bug: 170598012
Test: m ; verify with adb shell cmd
Change-Id: Ida30c877116090616d4bf3f87fdad835446dac84
2020-11-18 09:18:06 +00:00
Jeff Sharkey
9242fb8b48 Mechanical refactoring to new XML resolvers.
Related changes are introducing new TypedXmlSerializer and
TypedXmlPullParser interfaces which offer efficient access to
primitive attributes.

This change is a purely mechanical refactoring to prepare for
upcoming data format shifts, and has no behavior changes.

Bug: 171832118
Test: manual
Change-Id: I716193540e8a8baeca72cffbc2ba62bb1f731c49
2020-11-16 14:43:40 -07:00
Aurimas Liutikas
59d98a07a9 Merge "Remove legacy style metalava suppression" am: e1bb600fc7 am: 66574f225e am: 1c505e8cda
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1421698

Change-Id: Ib1b078a6e6c6e19391277d19c0f8d748eee6300b
2020-11-16 21:40:21 +00:00
Aurimas Liutikas
1c505e8cda Merge "Remove legacy style metalava suppression" am: e1bb600fc7 am: 66574f225e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1421698

Change-Id: Idd656e3803c247b03808259c582599898c064b27
2020-11-16 21:13:46 +00:00