Rambo Wang 6f7d92c926 Fix race condition when TelephonyRegistry handles multi-SIM config change
TelephonyRegistry only updates some internal statuses related to
active modem count after receiving ACTION_MULTI_SIM_CONFIG_CHANGED.
If another component receives the same intent firstly and calls
TelephonyRegistryManager to either register or notify an event,
the internal status related to active modem count may not be able
to update yet, causing IAE saying e.g. phoneId is invalid.

To fix the issue, onMultiSimConfigChanged will be called to update
the internal statuses firstly before accessing them.

Bug: 230799289
Fix: 230773760
Test: atest TelephonyRegistryTest
Test: manual DS<->SS switching test
Merged-In: I31506a07406dee424546bfe4927e069280a7b011
Change-Id: I31506a07406dee424546bfe4927e069280a7b011
(cherry picked from commit 80b47e83f6)
2022-05-26 15:16:30 -07:00
2022-04-14 21:57:52 +00:00
…
2022-03-28 09:25:17 -07:00
2021-05-13 08:24:32 +00:00
2022-04-01 16:46:46 +00:00
2022-03-31 19:37:56 -07:00
2022-05-11 21:11:57 +00:00
2022-05-24 12:27:31 +01:00
…
2022-03-10 18:07:50 +00:00
2022-01-05 13:13:50 +00:00
…
…
2022-03-07 08:44:25 +00:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%