Loading telephony/java/android/telephony/ServiceState.java +19 −0 Original line number Original line Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.os.Bundle; import android.os.Parcel; import android.os.Parcel; import android.os.Parcelable; import android.os.Parcelable; import android.telephony.Rlog; import android.telephony.Rlog; import android.text.TextUtils; /** /** * Contains phone state and service related information. * Contains phone state and service related information. Loading Loading @@ -589,6 +590,24 @@ public class ServiceState implements Parcelable { return mDataOperatorAlphaShort; 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. * Get current registered operator numeric id. * * Loading Loading
telephony/java/android/telephony/ServiceState.java +19 −0 Original line number Original line Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.os.Bundle; import android.os.Parcel; import android.os.Parcel; import android.os.Parcelable; import android.os.Parcelable; import android.telephony.Rlog; import android.telephony.Rlog; import android.text.TextUtils; /** /** * Contains phone state and service related information. * Contains phone state and service related information. Loading Loading @@ -589,6 +590,24 @@ public class ServiceState implements Parcelable { return mDataOperatorAlphaShort; 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. * Get current registered operator numeric id. * * Loading