Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f1c2895f authored by SongFerngWang's avatar SongFerngWang
Browse files

Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType

- Save each of AllowedNetworkTypesForReason's values into SIMINFO DB.
- Notify the AllowedNetworkTypesForReasonChanged after set
AllowedNetworkTypesForReason.
- Replace "Settings.Global.PREFERRED_NETWORK_MODE" with
"getAllowedNetworkTypesForReason(USER)"
- Replace KEY_NR_ENABLED_BOOL with KEY_CARRIER_NR_AVAILABILITY_INT

Bug: 161434786
Test: atest TelephonyManagerTest#testSetAllowedNetworkTypesForReason
(PASS)
atest TelephonyManagerTest#\
testSetAllowedNetworkTypesForReason_moreReason
(PASS)
atest PhoneStateListenerTest#\
testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener
(PASS)
atest CarrierServiceStateTrackerTest (PASS)

Change-Id: I0bfb8f8f8aeb7981b6fd990b8a8fb6431a72b7fc
Merged-In: I0bfb8f8f8aeb7981b6fd990b8a8fb6431a72b7fc
parent 45afd727
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment