Added in API level 17

CellInfoGsm


class CellInfoGsm : CellInfo, Parcelable

A CellInfo representing a GSM cell that provides identity and measurement info.

Summary

Inherited constants
Int CONNECTION_NONE

Cell is not a serving cell.

The cell has been measured but is neither a camped nor serving cell (3GPP 36.304).

Int CONNECTION_PRIMARY_SERVING

UE is connected to cell for signalling and possibly data (3GPP 36.331, 25.331).

Int CONNECTION_SECONDARY_SERVING

UE is connected to cell for data (3GPP 36.331, 25.331).

Int CONNECTION_UNKNOWN

Connection status is unknown.

Int UNAVAILABLE

This value indicates that the integer field is unreported.

Long UNAVAILABLE_LONG

This value indicates that the long field is unreported.

Int CONTENTS_FILE_DESCRIPTOR

Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.

Int PARCELABLE_WRITE_RETURN_VALUE

Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point.

Public methods
Int

Implement the Parcelable interface

Boolean
equals(other: Any?)

CellIdentityGsm

CellSignalStrengthGsm

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Implement the Parcelable interface

Inherited functions
Int getCellConnectionStatus()

Gets the connection status of this cell.

Long getTimeStamp()

Approximate time this cell information was received from the modem.

Long getTimestampMillis()

Approximate time this cell information was received from the modem.
Value is a non-negative timestamp in the android.os.SystemClock#elapsedRealtime() time base.

Boolean isRegistered()

True if the phone is registered to a mobile network that provides service on this cell and this cell is being used or would be used for network signaling.

Properties
static Parcelable.Creator<CellInfoGsm!>

Implement the Parcelable interface

Public methods

describeContents

Added in API level 17
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

Added in API level 17
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.

getCellIdentity

Added in API level 17
fun getCellIdentity(): CellIdentityGsm
Return
CellIdentityGsm a CellIdentityGsm instance. This value cannot be null.

getCellSignalStrength

Added in API level 17
fun getCellSignalStrength(): CellSignalStrengthGsm
Return
CellSignalStrengthGsm a CellSignalStrengthGsm instance. This value cannot be null.

hashCode

Added in API level 17
fun hashCode(): Int
Return
Int hash code

toString

Added in API level 17
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 17
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

Added in API level 17
static val CREATOR: Parcelable.Creator<CellInfoGsm!>

Implement the Parcelable interface