-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCellNr.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Networknetworkprivate final Longnciprivate final Integertacprivate final Integerpciprivate final BandNrbandprivate final SignalNrsignalprivate final IConnectionconnectionStatusprivate final IntegersubscriptionIdprivate final Longtimestamp
-
Method Summary
Modifier and Type Method Description NetworkgetNetwork()PLMN of current network, in case of CDMA is can be guessed from other serving cells. final LonggetNci()36-bit NR Cell Identity in range from CID_MIN to CID_MAX, null if unavailable final IntegergetTac()24-bit Tracking Area Code in range from TAC_MIN to TAC_MAX, null if unavailable final IntegergetPci()10-bit Physical Cell Id in range from PCI_MIN to PCI_MAX, null if unavailable BandNrgetBand()Band of cell containing downlink & uplink frequencies (if applicable) SignalNrgetSignal()Signal of this cell IConnectiongetConnectionStatus()Current state of connection to cell - connected and serving or neighbouring. IntegergetSubscriptionId()Subscription id into which cell is bound to, Int.MAX_VALUE if subscriptions are not supported yet LonggetTimestamp()Timestamp of this cell data. final <ERROR CLASS>gnbId(Integer gnbBitLength)NCI can be split into two identifiers - gNodeB ID and cell local id. final <ERROR CLASS>clId(Integer gnbBitLength)NCI can be split into two identifiers - gNodeB ID and cell local id. <T extends Any> Tlet(ICellProcessor<T> processor)Using visitor pattern invokes one method of processor with proper ICell instance. -
-
Method Detail
-
getNetwork
Network getNetwork()
PLMN of current network, in case of CDMA is can be guessed from other serving cells. Generally null for non-serving cells if no postprocessing is done.
-
getConnectionStatus
IConnection getConnectionStatus()
Current state of connection to cell - connected and serving or neighbouring.
-
getSubscriptionId
Integer getSubscriptionId()
Subscription id into which cell is bound to, Int.MAX_VALUE if subscriptions are not supported yet
-
getTimestamp
Long getTimestamp()
Timestamp of this cell data. Unit: milliseconds since device boot
-
gnbId
final <ERROR CLASS> gnbId(Integer gnbBitLength)
NCI can be split into two identifiers - gNodeB ID and cell local id. Depending of the network configuration length of gNB can vary. This method will extract gNB from NCI using provided gnbBitLength which must be in range from GNB_LENGTH_MIN to GNB_LENGTH_MAX. Length is currently not present in Android APIs and you need to obtain it directly from the carrier or other sources.
-
clId
final <ERROR CLASS> clId(Integer gnbBitLength)
NCI can be split into two identifiers - gNodeB ID and cell local id. Depending of the network configuration length of gNB can vary. This method will extract cell local id from NCI using provided gnbBitLength which must be in range from GNB_LENGTH_MIN to GNB_LENGTH_MAX. Length is currently not present in Android APIs and you need to obtain it directly from the carrier or other sources.
-
-
-
-