660080 Commits

Author SHA1 Message Date
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
Arc Wang
0d7cc7a8a6 Add LAUNCH_MULTI_PANE_SETTINGS_DEEP_LINK permission to Shell
So we can test system APIs in cts.

Bug: 201017875
Test: atest android.settings.cts.SettingsMultiPaneDeepLinkTest
Change-Id: I8bedd571a4d3385042533fe7dd5ded250894d14a
Merged-In: I8bedd571a4d3385042533fe7dd5ded250894d14a
2021-11-17 07:01:56 +00:00
Yifan Hong
45ddf12cbc Merge "Add ServiceManager.registerForNotifications" am: ce80de5db0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1883550

Change-Id: I65215f414aced825be29e036c378057d9c861138
2021-11-17 05:23:59 +00: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
Rambo Wang
511e11af60 Do not allow null signal thresholds in SignalStrengthUpdateRequest
SignalStrengthUpdateRequest is designed to not allow null nor empty
signal thresholds for public apps.

To support system privileged app (Bluetooth) which is only interested
in requiring to report system thresholds while idle. An exemption was
made (aosp/1569861) which was to allow empty thresholds but the null
thresholds was also allowed by mistake. This will cause Bluetooth
crash if no signal thresholds are set.

To fix the issue, we only allow Bluetooth to set EMPTY thresholds
but not null one.

Bug: 205585585
Test: atest SignalStrengthUpdateRequestTest
Change-Id: I245ecb87ab807a6005b32fa320c8820a2c0b1a9e
2021-11-16 17:51:34 -08:00
Rahul Sabnis
cce0326ec3 Create memory safe overload of
BluetoothGattServer#notifyCharacteristicChanged

Tag: #feature
Bug: 195157393
Test: Manual
CTS-Coverage-Bug: 205190062
Change-Id: I27a59a1dac73f10f5a25c0f40d399a265544e577
2021-11-16 22:43:00 +00: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
80b29f8241 Merge "Fix EINTR handling" am: 7d0bdd39fd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1891496

Change-Id: I02d1281a2789b6554432a0e852e713af503bc5c8
2021-11-16 19:54:22 +00:00
Hunsuk Choi
267ee57f27 Merge "Add ImsStateCallback" am: b636aacf1d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892996

Change-Id: Ie21d1b5d249e5d0801468f0a3ee42e382242e11c
2021-11-16 19:53:46 +00: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
3ef6e00c42 Merge "AndroidRuntime: when CheckJNI is enabled log a message" am: b0993999eb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892922

Change-Id: I85b52928d317ec5a079946255b31a01b9f8c7814
2021-11-16 19:04:02 +00:00
Treehugger Robot
b0993999eb Merge "AndroidRuntime: when CheckJNI is enabled log a message" 2021-11-16 18:42:48 +00:00
Treehugger Robot
26fedd6afe Merge "Fix NPE for UDFPS devices without HBM" am: 6893b19adc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1893387

Change-Id: I715fd67585d6163a3de8d5bcc940698754c25b22
2021-11-16 18:16:57 +00:00
Treehugger Robot
6893b19adc Merge "Fix NPE for UDFPS devices without HBM" 2021-11-16 18:11:38 +00:00
Treehugger Robot
6d5a079682 Merge "Fix typo in BaseIWindow.java owners file" am: b2f814064e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1893295

Change-Id: I886b0db4e2bf83f8c2e0cacd5acb0f6070b2fb5d
2021-11-16 18:09:43 +00:00
Treehugger Robot
b2f814064e Merge "Fix typo in BaseIWindow.java owners file" 2021-11-16 17:57:38 +00:00
Chen Xu
a30c964449 Merge "[MEP] Platform initial support for eSim Multiple Enabled Profiles." am: e1e1bf599b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1893000

Change-Id: Ib21c52f3d5ce8e2856a7d5e0a6c2aaa66a231ab0
2021-11-16 17:52:29 +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
4f95da1943 Merge "Make mainline API defs visible to CTS." am: d1c32c0cac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682037

Change-Id: I5a7129e2c6ecc65d2fef48b04214b58cb536b28f
2021-11-16 14:58:25 +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
e9736ffc78 Merge "Reverse ReferenceWithHistory.dump() order" am: a1afeb6910
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892637

Change-Id: Ife6269d4967a7d2588bc8f5bcc51eb06a1642a36
2021-11-16 09:40:50 +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
8d888d92ed Merge "remove PROP_QTAGUID_ENABLED" am: 999147b4ab
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1888335

Change-Id: I695b9b491873fba378affcc540ae03ddfae5e51a
2021-11-16 04:18:54 +00: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
fc60d843e6 Merge "Document that Log can quietly swallow UnknownHostExceptions." am: 9d01845696
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1873073

Change-Id: Ie844b6702567a50388f4ff62e9bc28dbebdd4e81
2021-11-16 00:39:41 +00:00
Jonathan Lepage
9d01845696 Merge "Document that Log can quietly swallow UnknownHostExceptions." 2021-11-16 00:35:08 +00:00
Treehugger Robot
7a51a5f114 [automerger skipped] Merge "DO NOT MERGE" am: 02d371d6e4 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ia828b447667dcf10cdf5275cdf6cb6873baa3e76
2021-11-16 00:31:55 +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
Treehugger Robot
fb8dbf9157 Merge "Fix the scanning on non-APEX devices." am: 6589fd106d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1889637

Change-Id: I96575cfdec30d5b9e7183d6559fc223c359b34d7
2021-11-15 22:57:09 +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
79f3ff5ad6 Merge "MediaUtils: Tag HAL_PIXEL_FORMAT_RAW12 as non-YUV" am: beca87b413
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1887496

Change-Id: Iaf856ef795edadf93e0d10f89a97fbcaef36ab65
2021-11-15 21:46:11 +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
c4b75122e7 Use ISO 8601 format for LocalLog local timestamps
Change to using ISO 8601 duration formatting for LocalLog local
timestamps, which makes it consistent with other time / time zone
detection dumpsys for easier comparison.

LocalLog is used by NetworkStack code as a standalone library, so
therefore has to depend on public SDK APIs, hence the use of Duration.

The local timestamp logging mode is only currently used for time / time
zone detection, which is low-frequency logging.

Bug: 204855374
Test: atest core/tests/coretests/src/android/util/LocalLogTest.java
Change-Id: Idce0d39c59670facdf48deca852b862ff0d71991
2021-11-15 17:30:27 +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
Yi Kong
72dda57c0a Merge "profcollectd: Move threading from native side" am: 206e10a3a3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892335

Change-Id: I160d6dabf1660ad2ca434c8b14c74c5216c8c9a4
2021-11-15 14:21:46 +00:00
Yi Kong
206e10a3a3 Merge "profcollectd: Move threading from native side" 2021-11-15 14:07:14 +00:00
Yi Kong
a1c7df76d3 profcollectd: Move threading from native side
Previously trace processing's threading is handled on the native side
while the report creation's threading is on the framework side. Move
them all to the frameworks side to reduce complexity.

Test: build
Bug: 183487233
Change-Id: I5dd405b7a73e5be9e0141c20c6c100acbc6defa9
2021-11-15 14:06:38 +00:00
Mark Chien
9a542a9799 Merge "Compile android-non-updatable with framework-tethering module-lib stub" am: 1176dd4409
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885796

Change-Id: Ica92eac0cb4a0318f7e6699312aa1f38a91d408d
2021-11-15 13:53:34 +00:00
Mark Chien
1176dd4409 Merge "Compile android-non-updatable with framework-tethering module-lib stub" 2021-11-15 13:36:51 +00:00
Treehugger Robot
a86b8d258b Merge "Migrate telephony to use modules-utils" am: a25edb88a8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1888741

Change-Id: I8f99d21b74b281ada1746d0067dd286c78c267e5
2021-11-15 12:04:38 +00:00
Treehugger Robot
a25edb88a8 Merge "Migrate telephony to use modules-utils" 2021-11-15 11:48:10 +00:00