IT. Expert System.

Android Reference

SignalStrength


android.telephony

Class SignalStrength

  • All Implemented Interfaces:
    Parcelable


    public class SignalStrength
    extends Object
    implements Parcelable
    Contains phone signal strength related information.
    • Constructor Detail

      • SignalStrength

        public SignalStrength()
        Empty constructor
      • SignalStrength

        public SignalStrength(boolean gsmFlag)
        This constructor is used to create SignalStrength with default values and set the isGsmFlag with the value passed in the input
        Parameters:
        gsmFlag - true if Gsm Phone,false if Cdma phone
      • SignalStrength

        public SignalStrength(int gsmSignalStrength,
                      int gsmBitErrorRate,
                      int cdmaDbm,
                      int cdmaEcio,
                      int evdoDbm,
                      int evdoEcio,
                      int evdoSnr,
                      int lteSignalStrength,
                      int lteRsrp,
                      int lteRsrq,
                      int lteRssnr,
                      int lteCqi,
                      boolean gsmFlag)
        Constructor
      • SignalStrength

        public SignalStrength(int gsmSignalStrength,
                      int gsmBitErrorRate,
                      int cdmaDbm,
                      int cdmaEcio,
                      int evdoDbm,
                      int evdoEcio,
                      int evdoSnr,
                      boolean gsmFlag)
        Constructor
      • SignalStrength

        public SignalStrength(SignalStrength s)
        Copy constructors
        Parameters:
        s - Source SignalStrength
      • SignalStrength

        public SignalStrength(Parcel in)
        Construct a SignalStrength object from the given parcel.
    • Method Detail

      • newFromBundle

        public static SignalStrength newFromBundle(Bundle m)
        Create a new SignalStrength from a intent notifier Bundle This method is used by PhoneStateIntentReceiver and maybe by external applications.
        Parameters:
        m - Bundle from intent notifier
        Returns:
        newly created SignalStrength
      • initialize

        public void initialize(int gsmSignalStrength,
                      int gsmBitErrorRate,
                      int cdmaDbm,
                      int cdmaEcio,
                      int evdoDbm,
                      int evdoEcio,
                      int evdoSnr,
                      boolean gsm)
        Initialize gsm/cdma values, sets lte values to defaults.
        Parameters:
        gsmSignalStrength -
        gsmBitErrorRate -
        cdmaDbm -
        cdmaEcio -
        evdoDbm -
        evdoEcio -
        evdoSnr -
        gsm -
      • initialize

        public void initialize(int gsmSignalStrength,
                      int gsmBitErrorRate,
                      int cdmaDbm,
                      int cdmaEcio,
                      int evdoDbm,
                      int evdoEcio,
                      int evdoSnr,
                      int lteSignalStrength,
                      int lteRsrp,
                      int lteRsrq,
                      int lteRssnr,
                      int lteCqi,
                      boolean gsm)
        Initialize all the values
        Parameters:
        gsmSignalStrength -
        gsmBitErrorRate -
        cdmaDbm -
        cdmaEcio -
        evdoDbm -
        evdoEcio -
        evdoSnr -
        lteSignalStrength -
        lteRsrp -
        lteRsrq -
        lteRssnr -
        lteCqi -
        gsm -
      • validateInput

        public void validateInput()
        Validate the individual signal strength fields as per the range specified in ril.h Set to invalid any field that is not in the valid range Cdma, evdo, lte rsrp & rsrq values are sign converted when received from ril interface
      • setGsm

        public void setGsm(boolean gsmFlag)
        Parameters:
        true - - Gsm, Lte phones false - Cdma phones Used by voice phone to set the isGsm flag
      • getGsmSignalStrength

        public int getGsmSignalStrength()
        Get the GSM Signal Strength, valid values are (0-31, 99) as defined in TS 27.007 8.5
      • getGsmBitErrorRate

        public int getGsmBitErrorRate()
        Get the GSM bit error rate (0-7, 99) as defined in TS 27.007 8.5
      • getCdmaDbm

        public int getCdmaDbm()
        Get the CDMA RSSI value in dBm
      • getCdmaEcio

        public int getCdmaEcio()
        Get the CDMA Ec/Io value in dB*10
      • getEvdoDbm

        public int getEvdoDbm()
        Get the EVDO RSSI value in dBm
      • getEvdoEcio

        public int getEvdoEcio()
        Get the EVDO Ec/Io value in dB*10
      • getEvdoSnr

        public int getEvdoSnr()
        Get the signal to noise ratio. Valid values are 0-8. 8 is the highest.
      • getLteSignalStrenght

        public int getLteSignalStrenght()
      • getLteRsrp

        public int getLteRsrp()
      • getLteRsrq

        public int getLteRsrq()
      • getLteRssnr

        public int getLteRssnr()
      • getLteCqi

        public int getLteCqi()
      • getLevel

        public int getLevel()
        Get signal level as an int from 0..4
      • getAsuLevel

        public int getAsuLevel()
        Get the signal level as an asu value between 0..31, 99 is unknown
      • getDbm

        public int getDbm()
        Get the signal strength as dBm
      • getGsmDbm

        public int getGsmDbm()
        Get Gsm signal strength as dBm
      • getGsmLevel

        public int getGsmLevel()
        Get gsm as level 0..4
      • getGsmAsuLevel

        public int getGsmAsuLevel()
        Get the gsm signal level as an asu value between 0..31, 99 is unknown
      • getCdmaLevel

        public int getCdmaLevel()
        Get cdma as level 0..4
      • getCdmaAsuLevel

        public int getCdmaAsuLevel()
        Get the cdma signal level as an asu value between 0..31, 99 is unknown
      • getEvdoLevel

        public int getEvdoLevel()
        Get Evdo as level 0..4
      • getEvdoAsuLevel

        public int getEvdoAsuLevel()
        Get the evdo signal level as an asu value between 0..31, 99 is unknown
      • getLteDbm

        public int getLteDbm()
        Get LTE as dBm
      • getLteLevel

        public int getLteLevel()
        Get LTE as level 0..4
      • getLteAsuLevel

        public int getLteAsuLevel()
        Get the LTE signal level as an asu value between 0..97, 99 is unknown Asu is calculated based on 3GPP RSRP. Refer to 3GPP 27.007 (Ver 10.3.0) Sec 8.69
      • isGsm

        public boolean isGsm()
        Returns:
        true if this is for GSM
      • hashCode

        public int hashCode()
        Description copied from class: Object
        Returns an integer hash code for this object. By contract, any two objects for which Object.equals(java.lang.Object) returns true must return the same hash code value. This means that subclasses of Object usually override both methods or neither method.

        Note that hash values must not change over time unless information used in equals comparisons also changes.

        See Writing a correct hashCode method if you intend implementing your own hashCode method.

        Overrides:
        hashCode in class Object
        Returns:
        hash code
        See Also:
        Object.equals(java.lang.Object)
      • equals

        public boolean equals(Object o)
        Description copied from class: Object
        Compares this instance with the specified object and indicates if they are equal. In order to be equal, o must represent the same object as this instance using a class-specific comparison. The general contract is that this comparison should be reflexive, symmetric, and transitive. Also, no object reference other than null is equal to null.

        The default implementation returns true only if this == o. See Writing a correct equals method if you intend implementing your own equals method.

        The general contract for the equals and Object.hashCode() methods is that if equals returns true for any two objects, then hashCode() must return the same value for these objects. This means that subclasses of Object usually override either both methods or neither of them.

        Overrides:
        equals in class Object
        Parameters:
        o - the object to compare this instance with.
        Returns:
        true if the signal strengths are the same
        See Also:
        Object.hashCode()
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        string representation.
      • fillInNotifierBundle

        public void fillInNotifierBundle(Bundle m)
        Set intent notifier Bundle based on SignalStrength
        Parameters:
        m - intent notifier Bundle


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 280 / 158859328. Delta: 0.03761 с