Commit Graph

659730 Commits

Author SHA1 Message Date
Rambo Wang
59cd9748a2 Merge "Do not allow null signal thresholds in SignalStrengthUpdateRequest" am: b6aa5b7d37
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1894915

Change-Id: I8d106c507913a9f1e0311ac47a5e1da5d34a6ee0
2021-11-19 23:21:26 +00:00
Rambo Wang
b6aa5b7d37 Merge "Do not allow null signal thresholds in SignalStrengthUpdateRequest" 2021-11-19 23:02:16 +00:00
Keith Mok
73357c61d0 Merge "Fix nanosleep in BootAnimation" am: 45e281ef2b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1891586

Change-Id: I19f359a175aa9596f400481029c029c2dd908aa5
2021-11-19 22:54:54 +00:00
Keith Mok
45e281ef2b Merge "Fix nanosleep in BootAnimation" 2021-11-19 22:37:57 +00:00
Keith Mok
0f2e66866c Fix nanosleep in BootAnimation
clock_nanosleep will return 0 or error no directly.

Bug: 207149564
Test: Build ok
Change-Id: I15866728719d0672a16b4a76a8fd3be4d53d420a
2021-11-19 20:38:22 +00:00
Yi Kong
2d2bd5fcf8 Merge "profcollect: check hardware capability on a background thread" am: c1e9c53fc3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1894823

Change-Id: I9ed7068ff02c4314058a7a7ffb97edae3e7b5d43
2021-11-19 10:11:11 +00:00
Yi Kong
c1e9c53fc3 Merge "profcollect: check hardware capability on a background thread" 2021-11-19 09:54:48 +00:00
Yi Kong
da9d0e669b profcollect: check hardware capability on a background thread
This is a blocking event, needs to be moved off from the main thread.

Also, don't schedule background processing service if the hardware
has no tracing support.

Test: manual
Bug: 79161490
Bug: 206986559
Change-Id: I039211b26f25ead66cf125f152e794b0c08057ee
2021-11-19 09:40:12 +00:00
Treehugger Robot
4e43b68f20 Merge "Bluetooth: make it possible to advertise Transport Discovery Data" am: e7adf14ea3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1454977

Change-Id: I603dfd54d43ad22c44630b984ea6829611f81b24
2021-11-19 08:53:56 +00:00
Treehugger Robot
e7adf14ea3 Merge "Bluetooth: make it possible to advertise Transport Discovery Data" 2021-11-19 08:42:55 +00:00
Treehugger Robot
c15f518369 Merge "Add LAUNCH_MULTI_PANE_SETTINGS_DEEP_LINK permission to Shell" am: 9b6a363c8c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892999

Change-Id: I178d7c006f1f4be80b02a49d90b4be8237129aa3
2021-11-19 03:33:15 +00:00
Treehugger Robot
9b6a363c8c Merge "Add LAUNCH_MULTI_PANE_SETTINGS_DEEP_LINK permission to Shell" 2021-11-19 03:17:16 +00:00
Sarah Chin
e876040336 Merge "Revert "Add config to use lower of IPv4/IPv6 MTU values"" am: c4631dca14
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1891498

Change-Id: Ib824a3c982a8dbfafb6b9770bad1a6a1859da568
2021-11-19 00:29:27 +00:00
Treehugger Robot
1f479b99ce Merge "Framework and system_server classes can access public vendor libraries" am: 8cb6d28329
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885792

Change-Id: Ia8fe285e3668fac4c2d6ca8ffff2976df88f90c3
2021-11-19 00:29:06 +00:00
Sarah Chin
c4631dca14 Merge "Revert "Add config to use lower of IPv4/IPv6 MTU values"" 2021-11-19 00:23:49 +00:00
Treehugger Robot
8cb6d28329 Merge "Framework and system_server classes can access public vendor libraries" 2021-11-19 00:08:57 +00:00
Treehugger Robot
c2566e6582 Merge "Create StatsBootstrapAtomService" am: e9f913aee8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885469

Change-Id: I9fe270fa5bffb2edd912ba59fbc6c002497e76b4
2021-11-18 23:48:16 +00:00
Treehugger Robot
e9f913aee8 Merge "Create StatsBootstrapAtomService" 2021-11-18 23:25:21 +00:00
Peiyong Lin
3afdacc87b Merge "Add owners for GameManager and GameManagerService" am: 6e9b910de2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1896952

Change-Id: I743b627784dd5b39cfd645fe41eb67bd5587acf0
2021-11-18 22:47:30 +00:00
Peiyong Lin
6e9b910de2 Merge "Add owners for GameManager and GameManagerService" 2021-11-18 22:20:52 +00:00
Vince Harron
6e008cbb2a Merge "BSD grep doesn't support -P" am: 3ad0c61146
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1891500

Change-Id: Ib7267a0b908187432d1b7cd753ca27e707a2a2f1
2021-11-18 21:59:12 +00:00
Vince Harron
3ad0c61146 Merge "BSD grep doesn't support -P" 2021-11-18 21:34:19 +00:00
Xin Li
8fb8921a5d Merge "Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918" into stage-aosp-master 2021-11-18 21:28:55 +00:00
Tej Singh
da79f2a110 Create StatsBootstrapAtomService
Design doc is at go/statsd-bootstrap-logging. Creates a proxy service for
logging atoms from bootstrap processes to statsd. Service has one API,
which converts StatsBootstrapAtom into StatsEvent and logs to statsd.
This should only used by processes that start in the bootstrap namespace
and cannot directly link statsd's libraries to log to statsd.

Bug: 204889815
Test: booted, made sure binder service was published.
Change-Id: I09709a30a42a7a398234c995324f62a0d62ad24f
2021-11-18 13:27:21 -08:00
Peiyong Lin
ab0ae6b571 Add owners for GameManager and GameManagerService
Bug: N/A
Test: N/A
Change-Id: I48f986e1ca5eadc6c23ca693143f122e415eeefd
2021-11-18 18:25:14 +00:00
Keith Mok
1b9106268f Merge "Improper EINTR handling logic" am: bd0a86f9d7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1891585

Change-Id: I3037743d6b8e09252d37f92b1de1907fa19898a1
2021-11-18 17:27:13 +00:00
Keith Mok
bd0a86f9d7 Merge "Improper EINTR handling logic" 2021-11-18 17:11:15 +00:00
Xin Li
10d9972786 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0
Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
2021-11-18 17:00:37 +00:00
Jiyong Park
24c57c33ea Framework and system_server classes can access public vendor libraries
This CL fixes a regression caused by [1] which introduced
<uses-native-library> tag [2]. With the change, public vendor libraries
[3] became accessible only when they are listed in the caller's
AndroidManifest.xml using the new tag. However, this caused a problem to
the places where AndroidManifest.xml doesn't exist: framework and
system_server classes. For those cases, [1] incorrectly used a null list
as the requested native libraries, and as a result, no public vendor
libraries were accessible.

This CL fixes the issue by not doing the filtering for the class loaders
created for non-app contexts like zygote or system_server. Specifically,
it uses the magic keyword "ALL" which let libnativeloader.so
accept all public vendor libraries.

[1] 6a5b8b1f6d
[2] https://developer.android.com/guide/topics/manifest/uses-native-library-element
[3] https://source.android.com/devices/tech/config/namespaces_libraries#adding-additional-native-libraries

Bug: 205164833
Test: libcuttlefish_fs.so is loaded when built with the other CLs in the
same topic

Change-Id: Id92c59642773851d70d05a05f43eb5873e9de86b
2021-11-18 23:09:27 +09:00
Jakub Pawlowski
3327af5d7b Bluetooth: make it possible to advertise Transport Discovery Data
Bug: 159363165
Tag: #feature
Test: called the API in test app, verified advertisement content
Change-Id: I92fe0671717bda2de1be3ff022713133ad681ab6
2021-11-18 09:52:37 +00:00
Yi Kong
d353c81c5c Merge "profcollect: trace on background thread" am: f8eb7b136c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1894997

Change-Id: Ib0fa8116de75f3f2282e4ef53a9f26b67edd29de
2021-11-18 09:12:49 +00:00
Yi Kong
f8eb7b136c Merge "profcollect: trace on background thread" 2021-11-18 08:53:52 +00:00
Gopalakrishnan Nallasamy
6e5f8b40b3 Merge "MediaCodecInfo: Add constant for YUVP010 color format" am: 0781fcf7da
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1894738

Change-Id: I78b78832b68114966fe9afd02dcfa4407dddfad6
2021-11-18 08:41:28 +00:00
Gopalakrishnan Nallasamy
0781fcf7da Merge "MediaCodecInfo: Add constant for YUVP010 color format" 2021-11-18 08:21:35 +00:00
Gopalakrishnan Nallasamy
f71f4089d8 MediaCodecInfo: Add constant for YUVP010 color format
Bug: 206456921

Test: atest android.media.cts.ImageReaderDecoderTest
Change-Id: Ia93bd25ede40b39d6b799990c01e35b90a8ad8d4
2021-11-18 08:19:32 +00:00
Treehugger Robot
b74f548024 Merge changes I044d0363,I0be3b802,Ib584ea57,I92291023 am: 10640379e4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1888339

Change-Id: Ie6ea902d71f69457ddc85b5be41c9dbc7086dfbd
2021-11-18 08:12:33 +00:00
Treehugger Robot
10640379e4 Merge changes I044d0363,I0be3b802,Ib584ea57,I92291023
* changes:
  bpf is required so /sys/fs/bpf/map_netd_app_uid_stats_map always exists
  bpf is required - remove mUseBpfTrafficStats field
  bpf is required - remove checkBpfStatsEnable()
  remove qtaguid parsing
2021-11-18 07:52:14 +00:00
Treehugger Robot
2cbfa143b6 Merge "health: BatteryService etc. use health AIDL HAL" am: 104adeeb75
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1883551

Change-Id: Icd85791dc6b57f8993f500306ed1e7a9f86fd218
2021-11-18 06:36:34 +00:00
Yi Kong
092c15cfd9 profcollect: trace on background thread
trace is a blocking event, needs to be moved off from the main thread.

Test: build
Bug: 206893189
Change-Id: Iead5a8f2471c2c0dbe0903294b7dcaf0b810256d
2021-11-18 14:24:59 +08:00
Treehugger Robot
104adeeb75 Merge "health: BatteryService etc. use health AIDL HAL" 2021-11-18 06:20:40 +00:00
Maciej Żenczykowski
1af65153da bpf is required so /sys/fs/bpf/map_netd_app_uid_stats_map always exists
(we cannot just remove the argument, since the test code path still
 goes via the legacy xt_qtaguid code paths with sample data)

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I044d0363aaab0dbbb90c40ca466cc48f169d649a
2021-11-18 06:11:00 +00:00
Maciej Żenczykowski
c9b46078fc bpf is required - remove mUseBpfTrafficStats field
Test: git grep mUseBpfTrafficStats
  TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I0be3b802e2ebd175b2a58061bf821aba02a8ec8a
2021-11-18 06:10:46 +00:00
Maciej Żenczykowski
068d57a579 bpf is required - remove checkBpfStatsEnable()
Test: git grep 'nativeGetTotalStat|nativeGetIfaceStat|nativeGetUidStat'
    - shows all locations have been updated
  git grep 'checkBpfStatsEnable'
    - find nothings relevant (just services/art-profile)
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ib584ea57c39d5ab0605787b05133097fd2c82a39
2021-11-18 06:10:35 +00:00
Maciej Żenczykowski
536a03632e remove qtaguid parsing
This removes the legacy (and untested) xt_qtaguid
non-ebpf code path (ie. dead code).

Test: git grep 'QTAGUID_IFACE_STATS|QTAGUID_UID_STATS|parseIfaceStats|parseUidStats'
  finds nothing
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I922910238474f2cfb74eba19b219bc792ce4abc3
2021-11-18 06:10:14 +00:00
Yifan Hong
999f26ca03 health: BatteryService etc. use health AIDL HAL
Also add tests to ensure that HealthServiceWrapper.create
prioritize using the AIDL HAL, and service callbacks are
working.

Test: frameworks test
Test: install HAL on cuttlefish then boot
Bug: 177269435

Change-Id: Ic667a49528c63343fe602f193c0958f2ee57c04e
2021-11-18 04:48:07 +00:00
Treehugger Robot
7e0aeb84b0 Merge "SystemPreparer: remove support for FDE devices" am: 98f0a11a8a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1889876

Change-Id: I4041e5e2945fae7ec8551afcef5a0fb671414628
2021-11-17 23:01:06 +00:00
Treehugger Robot
98f0a11a8a Merge "SystemPreparer: remove support for FDE devices" 2021-11-17 22:48:27 +00:00
Vince Harron
b3a17c77be BSD grep doesn't support -P
Test: New grep command tested on Linux and macOS
Bug: b/206150971
Change-Id: I9f1684298672fee1561166a03392bd07be8c5cd6
2021-11-17 22:32:57 +00:00
Treehugger Robot
9966ff4bc5 Merge "[PeopleService] Catch exception when failed to query call log." am: 9220245e47
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1878225

Change-Id: Iedf435a92edc51083030b44c4a7bc3fa293efa8b
2021-11-17 22:20:18 +00:00
Treehugger Robot
9220245e47 Merge "[PeopleService] Catch exception when failed to query call log." 2021-11-17 21:59:43 +00:00