diff options
| author | 2018-03-20 20:49:13 +0000 | |
|---|---|---|
| committer | 2018-03-20 20:49:13 +0000 | |
| commit | cd6bb7242cc20d7ee4b28df28439b07778653990 (patch) | |
| tree | b6ec45b89424f5fe5aec6fb8cee2e2c9c7cbec9f | |
| parent | 039deb4390fee97d50c474202dfe5de0616f9772 (diff) | |
| parent | 9ba450d805e64525cae9f58c7d4a26cb9c0f66d8 (diff) | |
Merge "Add @Nullable annotations to getOperatorAlphaLong and getOperatorAlphaShort to CellIdentity." into pi-dev
4 files changed, 12 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CellIdentityCdma.java b/telephony/java/android/telephony/CellIdentityCdma.java index 105ddb0e8f25..713ac00a2d3a 100644 --- a/telephony/java/android/telephony/CellIdentityCdma.java +++ b/telephony/java/android/telephony/CellIdentityCdma.java @@ -16,6 +16,7 @@ package android.telephony; +import android.annotation.Nullable; import android.os.Parcel; import android.text.TextUtils; @@ -181,6 +182,7 @@ public final class CellIdentityCdma extends CellIdentity { * @return The long alpha tag associated with the current scan result (may be the operator * name string or extended operator name string). May be null if unknown. */ + @Nullable public CharSequence getOperatorAlphaLong() { return mAlphaLong; } @@ -189,6 +191,7 @@ public final class CellIdentityCdma extends CellIdentity { * @return The short alpha tag associated with the current scan result (may be the operator * name string or extended operator name string). May be null if unknown. */ + @Nullable public CharSequence getOperatorAlphaShort() { return mAlphaShort; } diff --git a/telephony/java/android/telephony/CellIdentityGsm.java b/telephony/java/android/telephony/CellIdentityGsm.java index 52944a8ac261..aae7929b6799 100644 --- a/telephony/java/android/telephony/CellIdentityGsm.java +++ b/telephony/java/android/telephony/CellIdentityGsm.java @@ -16,6 +16,7 @@ package android.telephony; +import android.annotation.Nullable; import android.os.Parcel; import android.text.TextUtils; @@ -191,6 +192,7 @@ public final class CellIdentityGsm extends CellIdentity { * @return The long alpha tag associated with the current scan result (may be the operator * name string or extended operator name string). May be null if unknown. */ + @Nullable public CharSequence getOperatorAlphaLong() { return mAlphaLong; } @@ -199,6 +201,7 @@ public final class CellIdentityGsm extends CellIdentity { * @return The short alpha tag associated with the current scan result (may be the operator * name string or extended operator name string). May be null if unknown. */ + @Nullable public CharSequence getOperatorAlphaShort() { return mAlphaShort; } diff --git a/telephony/java/android/telephony/CellIdentityLte.java b/telephony/java/android/telephony/CellIdentityLte.java index 37fb07521b0e..9b3ef568751b 100644 --- a/telephony/java/android/telephony/CellIdentityLte.java +++ b/telephony/java/android/telephony/CellIdentityLte.java @@ -16,6 +16,7 @@ package android.telephony; +import android.annotation.Nullable; import android.os.Parcel; import android.text.TextUtils; @@ -201,6 +202,7 @@ public final class CellIdentityLte extends CellIdentity { * @return The long alpha tag associated with the current scan result (may be the operator * name string or extended operator name string). May be null if unknown. */ + @Nullable public CharSequence getOperatorAlphaLong() { return mAlphaLong; } @@ -209,6 +211,7 @@ public final class CellIdentityLte extends CellIdentity { * @return The short alpha tag associated with the current scan result (may be the operator * name string or extended operator name string). May be null if unknown. */ + @Nullable public CharSequence getOperatorAlphaShort() { return mAlphaShort; } diff --git a/telephony/java/android/telephony/CellIdentityWcdma.java b/telephony/java/android/telephony/CellIdentityWcdma.java index affa0c15862d..52fa54f373d4 100644 --- a/telephony/java/android/telephony/CellIdentityWcdma.java +++ b/telephony/java/android/telephony/CellIdentityWcdma.java @@ -16,6 +16,7 @@ package android.telephony; +import android.annotation.Nullable; import android.os.Parcel; import android.text.TextUtils; @@ -182,6 +183,7 @@ public final class CellIdentityWcdma extends CellIdentity { * @return The long alpha tag associated with the current scan result (may be the operator * name string or extended operator name string). May be null if unknown. */ + @Nullable public CharSequence getOperatorAlphaLong() { return mAlphaLong; } @@ -190,6 +192,7 @@ public final class CellIdentityWcdma extends CellIdentity { * @return The short alpha tag associated with the current scan result (may be the operator * name string or extended operator name string). May be null if unknown. */ + @Nullable public CharSequence getOperatorAlphaShort() { return mAlphaShort; } |