summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/util/CarrierConfigTracker.java
Commit message (Collapse)AuthorAgeFilesLines
* First pass at setting up a mobile connectivity pipelineEvan Laird2022-10-041-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL is pretty WIP, but contains a rough overall structure for monitoring mobile subscriptions, and info for each subscription. Naming is still TBD. The general structure is this: [Repo] MobileSubscriptionRepo monitors the list of subscriptions known to the device via SubscriptionManager, and can vend out a listener for a given subscription ID that can be individually tracked UserSetupRepo just tracks the isUserSetup bit [Domain] MobileInteractor defines the Interactor for the overall mobile feature, and can vend out MobileConnectionInteractors which track the individual subscriptionID from the repo [UI] Currently this is the least fleshed out, but there is a similar pair of MobileConnectivityViewModel and MobileIconViewModel to track the same as above -- the overall state and the states for each subId. Test: adb shell settings put global systemui/tag/SbConnectivity verbose Test: adb logcat | grep SbConnectivity Test: should output: SbConnectivity: Output: subId(1) level: 1 Bug: 240492102 Change-Id: I22d7e9e5b449057a92071ac00bc823460d5f58a6
* Add carrier config support to operator name in statusbarNiklas Lindgren2022-03-291-8/+130
| | | | | | | | | | | | | Move configuration of showing operator name from resource to carrier config. By moving this to carrier config, this will also support Dual SIM scenario. Bug: 116847905 Test: Add item for carrier in vendor.xml and swap sim cards between ones that have the item enabled and disabled. We have also tested to swap data sim cards on dual sim device. Change-Id: If3b7bbe165c8f0d0305b8ae4f77c91a41a98ca14
* [Provider Model] Fix the issue of turning off carrier networkWeng Su2021-09-231-25/+63
| | | | | | | | | | | | - Refer to KEY_CARRIER_PROVISIONS_WIFI_MERGED_NETWORKS_BOOL carrier config - True: do not set the status of merged-carrier-wifi together - False: set the status of merged-carrier-wifi together Bug: 200222406 Test: manual test atest -c InternetDialogControllerTest Change-Id: Ied6487067307bc263320dd9d52e25b6973ee25e3
* Lazy fetch the default Carrier Configyinxu2021-06-081-8/+16
| | | | | | | | | Fetching the default Carrier Configs may cause some delay so move them out of the constructor. Bug: 188597489 Test: Manual testing Change-Id: I1c6093ab6f0f59f2c74bcb84c0392eaace6b907e
* Implement the CarrierConfig for call indicatorsyinxu2021-05-061-0/+96
This CL implements the CarirerConfigs for both no calling icons and call strength icons. 1. Carriers can choose to only show the no calling icons when there is no IP connections. 2. Carriers can choose to hide the call strength icon, and show either a blacnk icon (single SIM) or SIM card icon (multi SIM) Bug: 181667933 Test: Manual tests Change-Id: I54386cb7399c7e3b3160ad01e09cb71f7e1f1a6e Merged-In: I54386cb7399c7e3b3160ad01e09cb71f7e1f1a6e