CellSignalStrengthCdma
class CellSignalStrengthCdma : CellSignalStrength, Parcelable
| kotlin.Any | ||
| ↳ | android.telephony.CellSignalStrength | |
| ↳ | android.telephony.CellSignalStrengthCdma | |
Signal strength related information.
Summary
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int |
Implement the Parcelable interface |
| Boolean | |
| Int |
Get the 1xRTT Level in (Android) ASU. |
| Int |
Get the CDMA RSSI value in dBm |
| Int |
Get the CDMA Ec/Io value in dB*10 |
| Int |
Get cdma as level 0. |
| Int |
getDbm()Get the signal strength as dBm |
| Int |
Get the EVDO RSSI value in dBm |
| Int |
Get the EVDO Ec/Io value in dB*10 |
| Int |
Get Evdo as level 0. |
| Int |
Get the signal to noise ratio. |
| Int |
getLevel()Retrieve an abstract level value for the overall signal quality. |
| Int |
hashCode() |
| String |
toString() |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Implement the Parcelable interface |
| Properties | |
|---|---|
| static Parcelable.Creator<CellSignalStrengthCdma!> |
Implement the Parcelable interface |
Public methods
describeContents
fun describeContents(): Int
Implement the Parcelable interface
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
equals
fun equals(other: Any?): Boolean
| Parameters | |
|---|---|
obj |
the reference object with which to compare. |
| Return | |
|---|---|
Boolean |
true if this object is the same as the obj argument; false otherwise. |
getAsuLevel
fun getAsuLevel(): Int
Get the 1xRTT Level in (Android) ASU. There is no standard definition of ASU for CDMA; however, Android defines it as the the lesser of the following two results (for 1xRTT):
| RSSI Range (dBm) | ASU Value |
|---|---|
| -75.. | 16 |
| -82..-76 | 8 |
| -90..-83 | 4 |
| -95..-91 | 2 |
| -100..-96 | 1 |
| ..-101 | 99 |
| Ec/Io Range (dB) | ASU Value |
|---|---|
| -90.. | 16 |
| -100..-91 | 8 |
| -115..-101 | 4 |
| -130..-116 | 2 |
| --150..-131 | 1 |
| ..-151 | 99 |
| Return | |
|---|---|
Int |
1xRTT Level in Android ASU {1,2,4,8,16,99} |
getDbm
fun getDbm(): Int
Get the signal strength as dBm
| Return | |
|---|---|
Int |
min(CDMA RSSI, EVDO RSSI) of the measured cell. |
getEvdoSnr
fun getEvdoSnr(): Int
Get the signal to noise ratio. Valid values are 0-8. 8 is the highest.
getLevel
fun getLevel(): Int
Retrieve an abstract level value for the overall signal quality.
| Return | |
|---|---|
Int |
Value is between android.telephony.CellSignalStrength#SIGNAL_STRENGTH_NONE_OR_UNKNOWN and android.telephony.CellSignalStrength#SIGNAL_STRENGTH_GREAT inclusive |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Implement the Parcelable interface
| Parameters | |
|---|---|
dest |
Parcel: The Parcel in which the object should be written. This value cannot be null. |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Properties
CREATOR
static val CREATOR: Parcelable.Creator<CellSignalStrengthCdma!>
Implement the Parcelable interface