1. The carrier or privileged apps will enable/disable network types on
the device, so Settings references the allowed network type to show/hide
5G preferred network type option.
2. For mainline, copy the getNetworkTypeFromRaf() from RadioFamily to
Settings.
Bug: 136730709
Test: Manual test & EnabledNetworkModePreferenceControllerTest
1. Enable allowed_network_type
2. Disable allowed_network_type
Change-Id: I493f2a2c7f4bc32b3fcb8ab2bace5839d8667bd5
replaced with @SystemApi setPreferredNetworkTypeBitmask
Bug: 147405973
Test: make RunSettingsRoboTests ROBOTEST_FILTER=EnabledNetworkModePreferenceControllerTest
make RunSettingsRoboTests ROBOTEST_FILTER=PreferredNetworkModePreferenceControllerTest
Change-Id: I8ae86595b104dcd16daacbf52cc8eaa5e7a3d08b