571475 Commits

Author SHA1 Message Date
Treehugger Robot
2c0b1b672e Merge "Correct comments" 2021-08-25 07:04:22 +00:00
Jooyung Han
e53a76adec telephony: suppress warnings in AIDL
This was missed in 133879b6836c0d00f2c89bf480e48bbe14cfb536.

Emergency number list is internally represented as Map<Integer,
List<EmergencyNumber>>, which is not supported by AIDL.

Bug: 192615532
Test: m
Change-Id: I5dc8b0f94b13b6625bb31933c6488dc87c9db713
2021-08-25 15:17:56 +09:00
Jooyung Han
89242df0c9 Merge "telephony: suppress warnings in AIDL" 2021-08-25 04:51:37 +00:00
Christopher Ferris
2d5dfb0203 Remove unused libbacktrace library.
Bug: 120606663

Test: Builds.
Change-Id: I762bedc1622f6f773fd68cd84339d5f21b0e26c2
2021-08-24 15:49:25 -07:00
Jeff Sharkey
e4550434e5 Merge "Test mapping changes can be made by anyone." 2021-08-24 19:15:48 +00:00
Treehugger Robot
15d1ab2fdd Merge "Fix key alias string comparison" 2021-08-24 17:37:06 +00:00
Jeff DeCew
39366563d3 Merge "Add notifications team as OWNERS of notification-related utilities and their tests" 2021-08-24 16:56:43 +00:00
Jeff Sharkey
d304221306 Test mapping changes can be made by anyone.
Since TEST_MAPPING files can reference test suites flung far across
the source tree, allow anyone to make changes to them.

Bug: 174932174
Test: none
Change-Id: I11dd436ac55e516263a587f9f82b17ce56e9e2e2
2021-08-24 09:45:58 -06:00
wescande
f460deca54 remove getSystemConfigEnabledProfilesForPackage
Remove hidden api for mainline project.
This commit is only for
getSystemConfigEnabledProfilesForPackage
because this will trigger a SEDenial

Bug: 190440540
Test: Manual
Tag: #refactor
Merged-In: Icb822ab703e7617d2c96275d94f682d30171998f
Change-Id: Icb822ab703e7617d2c96275d94f682d30171998f
2021-08-24 09:59:25 +00:00
Łukasz Rymanowski
c1b80e05e8 csip: Add constants for the Coordinated Set Identification Profile
Bug: 150670922
Tag: #feature
Test: compilation
Sponsor: jpawlowski@
Change-Id: I331fe270b75f306d57a15933ab4afa2e48c8bf50
2021-08-24 08:35:01 +00:00
Treehugger Robot
497e28ecf3 Merge "OverlayManager: use typed collection type in AIDL" 2021-08-24 01:47:11 +00:00
Jooyung Han
4d9fc0aea9 devicepolicy: use typed List<String> in AIDL
Bug: 192615532
Test: m
Merged-In: I0ea1c35f7ce4dd6f6bde02874e02ed190fa2e904
Change-Id: I0ea1c35f7ce4dd6f6bde02874e02ed190fa2e904
2021-08-24 09:11:54 +09:00
Eric Laurent
5a76779d3a Merge "audio:should stop btsco when client died" 2021-08-23 20:38:04 +00:00
Treehugger Robot
0ce930a02e Merge "ServiceManager APIs for Wi-Fi mainline module" 2021-08-23 19:25:20 +00:00
Treehugger Robot
95d77312a9 Merge "Add a system api to fetch uuids by the specific transport" 2021-08-23 19:23:26 +00:00
Makoto Onuki
f4d7116b49 Merge "Change Shallow Copy to Deep Copy in UsageStats" 2021-08-23 19:17:38 +00:00
liuxiaoyu7
df9a560868 audio:should stop btsco when client died
1.app start btsco ,it will use bt-sco preferrer device
2.kill app process,currently only client is removed without closing sco

Signed-off-by: liuxiaoyu7 <liuxiaoyu7@xiaomi.com>
Change-Id: I0738a7f8dee16ea68f7de012c5d7020387f160f9
Merged-In: I381537f61740f9a9fcbf3232ef4336943b0826c5
2021-08-23 10:08:33 +00:00
Orion Hodson
c3e8e916eb Drop system_server dexopt in ZygoteInit
system_server artifacts should be present in the system image or
generated by on-device signing.

Bug: 187711479
Fix: 163019104
Test: m & boot
Change-Id: I19094e1a60b903d04cf7ba23e65cc9ef10f7f243
2021-08-23 10:52:41 +01:00
Treehugger Robot
493baa1280 Merge "RESTRICT AUTOMERGE Avoid the scenario Where taskdisplayarea is null" 2021-08-23 09:46:12 +00:00
Steven Moreland
ce81994f5f ServiceManager APIs for Wi-Fi mainline module
ServiceManager.waitForDeclaredService and .isDeclared needed for Wi-Fi mainline module.

Test: boot
Change-Id: I9e82dd1a6663396f1c79bc3f27c36711b0b6f3eb
2021-08-20 22:21:35 +00:00
Santiago Seifert
c875fc5613 Merge "Clean up ownership in frameworks/base/" 2021-08-20 16:29:34 +00:00
Santiago Seifert
432e98eb50 Clean up ownership in frameworks/base/
Bug: 197217250
Change-Id: I04bee764bf50734523ff2210d30ed052dcb036bd
Test: No code changes done.
2021-08-20 13:59:15 +00:00
Treehugger Robot
d079236881 Merge "Add SharedMemory.fromFileDescriptor" 2021-08-20 04:50:26 +00:00
Keun young Park
39c4f40746 Add SharedMemory.fromFileDescriptor
- Rename existing SharedMemory.create and make it public
- Passed file is now detached after creating shared memory and is
  not usable any more.

Bug: 188780895
CTS-Coverage-Bug: 197226773
Test: atest com.android.car.internal.test.LargeParcelableJavaStableAIDLTest
      (runs only in auto. will add matching CTS tests for non-auto devices)

(This combines two CL in internal tree, so Change-Id and Merged-In id are
different)
Change-Id: I8a634062d10ff0c114f3add1d2a5e8056f17b788
Merged-In: I11381e78580b97982b25a52aa06f2192def7353f
2021-08-20 01:18:11 +00:00
Treehugger Robot
97fe4d0cc4 Merge "Remove unused but set variables" 2021-08-19 22:51:23 +00:00
Jooyung Han
6f3ebef588 Merge "tuner: use typed Map<String, String>" 2021-08-19 21:01:19 +00:00
Hongguang Chen
332cd02609 Merge "Update tuner OWNERS." 2021-08-19 20:49:18 +00:00
Seth Moore
11cce949b6 Fix key alias string comparison
The code was doing a reference compare, not object value comparison,
resulting in failures in the KeyStore setEntry API.

Test: CtsKeystoreTestCases:android.keystore.cts.AndroidKeyStoreTest
Fixes: 197138784
Change-Id: I2c5e47283eed5694951869e9ea3853364ddef9d1
2021-08-19 12:44:08 -07:00
Yi Kong
82ac868c8c Remove unused but set variables
Discovered by unused-but-set-variable diagnostics.

Test: build
Bug: 197240255
Change-Id: I32a1185f9714848c91860fbaa76521d490c842b9
2021-08-19 18:57:56 +00:00
Zoey Chen
a6f8188539 Merge "[PhysicalChannelConfig] UL's frequency should not be same with DL's" 2021-08-19 17:56:20 +00:00
Treehugger Robot
e476546592 Merge "Disable errorprone for platformtestprotos" 2021-08-19 17:18:42 +00:00
Alice Kuo
ee29136541 Add a system api to fetch uuids by the specific transport
The functionality is similar with fetchUuidsWithSdp which uses TRANSPORT_AUTO. Bt stack depends on the devie type and address type to do sdp or gatt service discovery. Add an api to specific the transport. It would be fexible to handle the dual mode device.

Tag: #feature
Bug: 197195548
Test: atest BluetoothInstrumentationTests
Test: Take two headphone to test the dual mode behavior
Change-Id: I32c8dde68969e0bdc42e4e898c43a4f2c1d3379a
Merged-In: I32c8dde68969e0bdc42e4e898c43a4f2c1d3379a
2021-08-19 15:29:32 +00:00
Victor Chang
480f33c187 Regenerate LocaleDataTables.cpp due to ICU 69 upgrade
The command:
./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP > libs/androidfw/LocaleDataTables.cpp

Bug: 195953235
Test: atest CtsIcu4cTestCases CtsIcuTestCases CtsLibcoreTestCases CtsLibcoreOjTestCases CtsBionicTestCases CtsTextTestCases
Change-Id: Idd4329a83a27bd550185e815dc5c92e3f2882d12
2021-08-19 15:04:14 +01:00
Ashok Mutyala
26d8e9e85a RESTRICT AUTOMERGE Avoid the scenario Where taskdisplayarea is null
Problem: Framework Reboot i.e., NPE in android.ui Thread
E AndroidRuntime: FATAL EXCEPTION IN SYSTEM PROCESS: android.ui
E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'com.android.server.wm.ActivityStack com.android.server.wm.TaskDisplayArea.getRootHomeTask()' on a null object reference
E AndroidRuntime: **at com.android.server.wm.ActivityStarter.postStartActivityProcessing(ActivityStarter.java:1486)
E AndroidRuntime: **at com.android.server.wm.ActivityStarter.startActivityUnchecked(ActivityStarter.java:1533)
E AndroidRuntime: **at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:1190)
E AndroidRuntime: **at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:673)
E AndroidRuntime: **at com.android.server.wm.ActivityStartController.startHomeActivity(ActivityStartController.java:206)

Analysis:
getDisplayArea in Task and its Super Class is annotated with Nullable and can be return Null.

Bug: 196568035
Test: StabilityTest
Change-Id: I4f3c8fdca0202591e7ac07aa7b8e3de3b08b2475
Merged-In: I4f3c8fdca0202591e7ac07aa7b8e3de3b08b2475
2021-08-19 11:41:49 +00:00
Zoey Chen
bcf65aa1d0 [PhysicalChannelConfig] UL's frequency should not be same with DL's
Bug: 194042135
Test: atset PhysicalChannelConfigTest
Change-Id: I1225a1429ff77b33c54af0dfce60a8739494e47a
Merged-In: I1225a1429ff77b33c54af0dfce60a8739494e47a
2021-08-19 06:59:45 +00:00
Jooyung Han
8ed699e610 OverlayManager: use typed collection type in AIDL
Use Map<K,V> and List<V>.

Bug: 192615532
Test: m
Change-Id: I5ad7f67b4b08b646362a58214c3b62cd1ada28c0
2021-08-19 15:56:48 +09:00
Jooyung Han
54a1fd2e0f tuner: use typed Map<String, String>
Bug: 192615532
Test: m
Change-Id: Ifa4c9c56d642e1047397cc185872f76a5970f944
2021-08-19 15:29:23 +09:00
Hongguang
0daaeb1d8a Update tuner OWNERS.
Bug: 191825295
Test: N/A
Change-Id: I5cd78e277008897913dcd3a5ce4d382a66fa3d27
2021-08-19 02:43:19 +00:00
Treehugger Robot
cb8f9e3429 Merge "Rename ProcResult stdout and stderr fields" 2021-08-19 00:40:13 +00:00
Colin Cross
95f3535381 Disable errorprone for platformtestprotos
Running errorprone on platformtestprotos took more than 45 minutes.
Disable it.

Bug: 197157393
Test: m RUN_ERROR_PRONE=1 javac-check
Change-Id: I4e62adfddb93489d83c7e41e4ecba75fdf654004
2021-08-18 17:19:27 -07:00
Colin Cross
304793a811 Rename ProcResult stdout and stderr fields
stdout and stderr are macros in musl, which causes build failures
when they are used as field names.  Rename the fields to stdout_str
and stderr_str.

Test: builds
Merged-In: I04770d2d6e82ca8393308ab12a304838a80f0ae5
Change-Id: I04770d2d6e82ca8393308ab12a304838a80f0ae5
2021-08-18 23:01:24 +00:00
Samiul Islam
33dce2cffd Hook the new APIs in StagingManager to PackageManagerNative service
Also note, if a StagedApexObserver is observing through binder, they
might not be able to send the original observing object for
unregistration. As such, for binder observer we clean them up when they
die.

(Note: Unit tests have been removed to resolve merge conflict)

Bug: 187444679
Test: atest StagedInstallInternalTest
Change-Id: Ie2e01b01690a5882574282f3158e454a9b6056e7
Merged-In: Ie2e01b01690a5882574282f3158e454a9b6056e7
(cherry picked from commit 5ac0ee8278ea33a6f0bf14b96821d31576e81df4)
2021-08-18 15:26:52 +01:00
Samiul Islam
7675b5c154 Notify StagedApexObservers when there is a change in set of staged APEX
The set of staged APEX is changed whenever:
- a session containing APEX succesfully passes pre-reboot verification
  and gets marked ready
- a staged session gets abandoned

(Note: Unit tests have been removed to resolve cherry-pick conflict)

Bug: 187444679
Test: atest StagedInstallInternalTests
Change-Id: I5c5bb4523cdab46e22fe3c8e2373289d8619c10e
Merged-In: I5c5bb4523cdab46e22fe3c8e2373289d8619c10e
2021-08-18 14:01:52 +01:00
Samiul Islam
9a68bedca7 Open up new API in StagingManager to get information about staged APEX
These APIs will be later used by PackageManagerNative service to open up
the information to native clients.

The current implementation is a bit wasteful since everytime the client
makes a request, we ask the ApexManager to fetch us information about
the staged sessions N times, where N is the number of staged sessions
that are marked ready.

We can optimize it by caching the result of getStagedApexInfos(session)
method. This will be done in a separate CL.

(Note: Unit tests have been removed to resolve cherry-pick conflict)

Bug: 187444679
Test: atest StagedInstallInternalTests
Change-Id: I76803382db26a029f6d9cabb0d9ce9a2bf9c8ea1
Merged-In: I76803382db26a029f6d9cabb0d9ce9a2bf9c8ea1
(cherry picked from commit c8132a943723f56fb4850b96779ac39d41fec336)
2021-08-18 13:36:47 +01:00
Samiul Islam
43d5b8b3f7 Connect the new API from ApexService to ApexManager
Bug: 187444679
Test: atest ApexManagerTest
Change-Id: I60482a180d873a5f65887d0a5bb4230f75cb55df
Merged-In: I60482a180d873a5f65887d0a5bb4230f75cb55df
(cherry picked from commit 2bcdaf91d59cec2b007e211bd4e0107c7ec07147)
2021-08-18 12:02:34 +01:00
Max Bires
773a378390 Merge "Fixing a condition that can cause deadlock" 2021-08-18 01:45:15 +00:00
Treehugger Robot
6e3ea69863 Merge "Update OWNERS for Intent* and Content*" 2021-08-17 23:14:07 +00:00
Makoto Onuki
ea8407635c Update OWNERS for Intent* and Content*
Test: Build
Change-Id: I2232342d3e68cc8e1eea14bfa999f32b15ba5789
2021-08-17 14:27:35 -07:00
Treehugger Robot
dee731ad0b Merge "Suppress AIDL warnings: untyped-collection" 2021-08-17 11:46:23 +00:00
Max Bires
c9be198afe Fixing a condition that can cause deadlock
Callbacks on ServiceConnection happen on the main UI thread for an
application. Since the thread that calls bindService then immediately
blocks to wait for the service to be connected, this will cause a
deadlock if key operations are happening on the main UI thread.

This bug has likely not been detected yet since key operations are not
supposed to be performed on the main UI thread, however it was uncovered
in a similar application during other testing. This fix ensures the
ServiceConnection object's callbacks will be triggered from a separate
thread from the calling thread.

Bug: 196571032
Test: Apps that run key operations on the UI thread don't hang.
Change-Id: I630a0ef2560a8ebd962de54c65e3d6277133a1cb
Merged-In: I630a0ef2560a8ebd962de54c65e3d6277133a1cb
2021-08-17 06:43:46 +00:00