Commit Graph

655187 Commits

Author SHA1 Message Date
Vince Harron
3ad0c61146 Merge "BSD grep doesn't support -P" 2021-11-18 21:34:19 +00:00
Keith Mok
bd0a86f9d7 Merge "Improper EINTR handling logic" 2021-11-18 17:11:15 +00:00
Yi Kong
f8eb7b136c Merge "profcollect: trace on background thread" 2021-11-18 08:53:52 +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
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
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
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
9220245e47 Merge "[PeopleService] Catch exception when failed to query call log." 2021-11-17 21:59:43 +00:00
Daniel Norman
2df3d4e066 Merge "PackageManagerService: Check for duplicate inactive factory packages" 2021-11-17 21:24:28 +00:00
Jeff Sharkey
1716adec5c Merge "Add OWNERS file for AttestationVerificationTest" 2021-11-17 20:50:58 +00:00
Keith Mok
639e93ee9c Improper EINTR handling logic
When EINTR received,
we should just continue the loop
without update the byte counte and pointer
Use TEMP_FAILURE_RETRY for that

Test: CtsPrintTestCases
Bug: 206810144
Change-Id: Ia8b580ed0e3af00e9a2afefe554b81cbe014054b
2021-11-17 19:52:16 +00:00
Dave McCloskey
c9d71ec0f4 Add OWNERS file for AttestationVerificationTest
Change-Id: Ic8400aa7c7e4506f57e6ce50dd5856692108385d
2021-11-17 19:22:52 +00:00
Marcus Hagerott
911df4f515 Merge "Allow ContactsProvider to use compat change framework" 2021-11-17 19:19:21 +00:00
Maciej Żenczykowski
b86ab4ae44 Merge "switch to using OWNERS from master branch of Connectivity module" 2021-11-17 18:20:59 +00:00
Eric Biggers
de6e672d6a SystemPreparer: remove support for FDE devices
Bug: 191796797
Change-Id: I82fd9aeb5330444436f004e8971066c253ede0cf
2021-11-17 17:29:11 +00:00
Nicolas Geoffray
637477eb87 Merge "Remove obsolete files on preloaded classes." 2021-11-17 10:36:58 +00:00
Bernardo Rufino
9f8b914c9f Merge "Deprecate unsafe parcel APIs" 2021-11-17 09:43:11 +00:00
Maciej Żenczykowski
7069443319 switch to using OWNERS from master branch of Connectivity module
Test: N/A
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ifa4a38522ac3aa830e2a7f8b23ad190a334458bc
2021-11-17 00:37:40 -08:00
Yifan Hong
ce80de5db0 Merge "Add ServiceManager.registerForNotifications" 2021-11-17 05:02:35 +00:00
qinyige1
28367ba78a [PeopleService] Catch exception when failed to query call log.
It's unnecessary to throw exception when failed to query call
log in PeopleService. So catch this exception to avoid system
server crash.

Bug: 204923224
Test: PeopleServiceTest
Change-Id: I77ee31ff456455721c3401f36d4a79390db2f9b5
2021-11-17 10:10:26 +08:00
Marcus Hagerott
6c681056bb Allow ContactsProvider to use compat change framework
BUG=188347648
Test: m droid

Change-Id: Ifb6675777c76ca1c44af96ceb02a6207d28bd045
2021-11-16 13:40:41 -08:00
Sanjana Sunil
cdaa918edc PackageManagerService: Check for duplicate inactive factory packages
If after a factory reset, APEX modules are updated, duplicate package
names are returned from the API - factory packages are added first and
then inactive factory packages leading to duplication.

After updating APEX modules, inactive factory packages would always be a
subset of factory packages. The fix adds inactive packages only if there
was no factory reset done.

Bug: 200519752
Bug: 200120056
Test: atest 'PackageManagerTest#testGetInstalledPackages_WithFactoryFlag_ContainsNoDuplicates'
Change-Id: I5b5469fc6879bbeee4dc2ea47b2046ab011a65ce
Merged-In: I5b5469fc6879bbeee4dc2ea47b2046ab011a65ce
2021-11-16 13:20:33 -08:00
Keith Mok
7d0bdd39fd Merge "Fix EINTR handling" 2021-11-16 19:43:29 +00:00
Hunsuk Choi
b636aacf1d Merge "Add ImsStateCallback" 2021-11-16 19:26:16 +00:00
Treehugger Robot
b0993999eb Merge "AndroidRuntime: when CheckJNI is enabled log a message" 2021-11-16 18:42:48 +00:00
Treehugger Robot
6893b19adc Merge "Fix NPE for UDFPS devices without HBM" 2021-11-16 18:11:38 +00:00
Treehugger Robot
b2f814064e Merge "Fix typo in BaseIWindow.java owners file" 2021-11-16 17:57:38 +00:00
Chen Xu
e1e1bf599b Merge "[MEP] Platform initial support for eSim Multiple Enabled Profiles." 2021-11-16 17:35:04 +00:00
Treehugger Robot
d1c32c0cac Merge "Make mainline API defs visible to CTS." 2021-11-16 14:40:00 +00:00
Muralidhar Reddy
fb1b6a3056 [MEP] Platform initial support for eSim Multiple Enabled Profiles.
Port concept is introduced to support MEP feature. Refactoring UiccController, UiccCard, and
UiccProfile to add UiccPort between UiccCard and UiccProfile. Most of the UiccCard functioning is
moved to UiccPort.

Added default port index value of uicc card.

Bug: 199559346
Test: Manual
Change-Id: Iaf6af6d5573976a6f85a36570900fb03778e1909
Merged-In: Iaf6af6d5573976a6f85a36570900fb03778e1909
2021-11-16 13:42:26 +00:00
Orion Hodson
3d2f62fda8 AndroidRuntime: when CheckJNI is enabled log a message
This matches behaviour described in:
 https://developer.android.com/training/articles/perf-jni#extended-checking

All output from CheckJNI state was disabled as part of quietening
logspam, but now we log a message only if CheckJNI is
enabled. CheckJNI is off by default and only used as a developer
correctness tool.

Bug: N/A
Test: adb root; adb shell stop;                        \
      adb shell setprop dalvik.vm.checkjni 1;          \
      adb shell start; adb logcat -d | grep CheckJNI
Change-Id: I93bc2d097a8769b7768c633b705b29fc1aac634a
2021-11-16 11:11:28 +00:00
Neil Fuller
a1afeb6910 Merge "Reverse ReferenceWithHistory.dump() order" 2021-11-16 09:30:11 +00:00
Ilya Matyukhin
7bae086001 Fix NPE for UDFPS devices without HBM
Bug: 197723951
Bug: 200295570
Test: run with a null HbmProvider on a UDFPS device
Change-Id: Ia184978d453dc449a6f9f8882cf2b4205c14c1d6
Merged-In: Id89552d3228b4770331e0eda558f0f97101ad8ca
2021-11-15 23:21:28 -08:00
Treehugger Robot
999147b4ab Merge "remove PROP_QTAGUID_ENABLED" 2021-11-16 04:01:55 +00:00
Hunsuk Choi
9725d66837 Add ImsStateCallback
registerImsStateCallback and unregisterImsStateCallback are
added to ImsMmTelManager, ImsRcsManager, and SipDelegateManager.
Those are used to receive updates about the connection state
of the underlying ImsService.

Bug: 178016400
Test: atest ImsStateCallbackTest

Change-Id: If547ce637725d4f98942b0b554187a0ba91f60de
Merged-In: If547ce637725d4f98942b0b554187a0ba91f60de
Merged-In: I3ac14cc3bcb28f5f966a1b3c215727784527e475
2021-11-16 01:55:41 +00:00
Jonathan Lepage
9d01845696 Merge "Document that Log can quietly swallow UnknownHostExceptions." 2021-11-16 00:35:08 +00:00
Treehugger Robot
02d371d6e4 Merge "DO NOT MERGE" 2021-11-16 00:15:32 +00:00
Vishnu Nair
8cd9256c50 Fix typo in BaseIWindow.java owners file
Change-Id: I7ea7fb4a9fc16aa007e4a6970d550f906da202f7
2021-11-15 23:38:05 +00:00
liulvping
068903a93f DO NOT MERGE
Use remote context to inflate layout for RemoteView

Bug: 205749786
Test: atest CtsAppWidgetTestCases
Test: atest CtsWidgetTestCases:RemoteViewsTest

Change-Id: I6d5772f0642e8a56e17ccbe7fddae46d844897a0
2021-11-15 22:46:18 +00:00
Treehugger Robot
6589fd106d Merge "Fix the scanning on non-APEX devices." 2021-11-15 22:36:44 +00:00
Treehugger Robot
beca87b413 Merge "MediaUtils: Tag HAL_PIXEL_FORMAT_RAW12 as non-YUV" 2021-11-15 21:32:03 +00:00
Neil Fuller
1a5a874401 Reverse ReferenceWithHistory.dump() order
This commit switches the ordering of ReferenceWithHistory.dump() so the oldest
entries are output first followed by newer ones, i.e. traditional log ordering.

Tests are updated to confirm ReferenceWithHistory dump output.

Bug: 204855374
Test: atest services/tests/servicestests/src/com/android/server/timedetector/ReferenceWithHistoryTest.java
Test: adb shell dumpsys time_zone_detector
Change-Id: Ia098492fc6056fdbb8ef9d8ca1128bf0f51d113b
2021-11-15 17:29:38 +00:00