Merge "Get the correct operator name"

am: 297e9f9a32

Change-Id: Ic4c433e9b7e70427275fbbba785bb365e0ced8d5
This commit is contained in:
Robert Greenwalt
2016-12-02 03:39:30 +00:00
committed by android-build-merger

View File

@@ -20,6 +20,7 @@ import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.telephony.Rlog;
import android.text.TextUtils;
/**
* Contains phone state and service related information.
@@ -589,6 +590,24 @@ public class ServiceState implements Parcelable {
return mDataOperatorAlphaShort;
}
/**
* Get current registered operator name in long alphanumeric format if
* available or short otherwise.
*
* @see #getOperatorAlphaLong
* @see #getOperatorAlphaShort
*
* @return name of operator, null if unregistered or unknown
* @hide
*/
public String getOperatorAlpha() {
if (TextUtils.isEmpty(mVoiceOperatorAlphaLong)) {
return mVoiceOperatorAlphaShort;
}
return mVoiceOperatorAlphaLong;
}
/**
* Get current registered operator numeric id.
*