public class WifiCountryCode extends Object
Constructor and Description |
---|
WifiCountryCode(WifiNative wifiNative,
String oemDefaultCountryCode,
String persistentCountryCode,
boolean revertCountryCodeOnCellularLoss) |
Modifier and Type | Method and Description |
---|---|
void |
airplaneModeEnabled()
This is called when airplane mode is enabled.
|
void |
enableVerboseLogging(int verbose)
Enable verbose logging for WifiCountryCode.
|
String |
getCountryCode()
Method to return the currently reported Country Code from the SIM or phone default setting.
|
String |
getCountryCodeSentToDriver()
Method to get the Country Code that was sent to wpa_supplicant.
|
boolean |
setCountryCode(String countryCode,
boolean persist)
Handle country code change request.
|
void |
setReadyForChange(boolean ready)
Change the state to indicates if wpa_supplicant is ready to handle country code changing
request or not.
|
void |
simCardRemoved()
This is called when sim card is removed.
|
public WifiCountryCode(WifiNative wifiNative, String oemDefaultCountryCode, String persistentCountryCode, boolean revertCountryCodeOnCellularLoss)
public void enableVerboseLogging(int verbose)
public void simCardRemoved()
public void airplaneModeEnabled()
public void setReadyForChange(boolean ready)
public boolean setCountryCode(String countryCode, boolean persist)
countryCode
- The country code intended to set.
This is supposed to be from Telephony service.
otherwise we think it is from other applications.public String getCountryCodeSentToDriver()
public String getCountryCode()