Android
android.telephony.gsm
public class

android.telephony.gsm.GsmCellLocation

java.lang.Object
android.telephony.CellLocation
android.telephony.gsm.GsmCellLocation

Represents the cell location on a GSM phone.

Summary

Public Constructors

            GsmCellLocation()
Empty constructor.
            GsmCellLocation(Bundle bundle)
Initialize the object from a bundle.

Public Methods

          boolean  equals(Object o)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
          void  fillInNotifierBundle(Bundle m)
Set intent notifier Bundle based on service state
          int  getCid()
          int  getLac()
          int  hashCode()
Returns an integer hash code for the receiver.
          void  setLacAndCid(int lac, int cid)
Set the location area code and the cell id.
          void  setStateInvalid()
Invalidate this object.
          String  toString()
Returns a string containing a concise, human-readable description of the receiver.
Methods inherited from class android.telephony.CellLocation
Methods inherited from class java.lang.Object

Details

Public Constructors

public GsmCellLocation()

Empty constructor. Initializes the LAC and CID to -1.

public GsmCellLocation(Bundle bundle)

Initialize the object from a bundle.

Public Methods

public boolean equals(Object o)

Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. The implementation in Object returns true only if the argument is the exact same object as the receiver (==).

Parameters

o Object the object to compare with this object.

Returns

  • boolean true if the object is the same as this object false if it is different from this object.

public void fillInNotifierBundle(Bundle m)

Set intent notifier Bundle based on service state

Parameters

m intent notifier Bundle

public int getCid()

Returns

  • gsm cell id, -1 if unknown, 0xffff max legal value

public int getLac()

Returns

  • gsm location area code, -1 if unknown, 0xffff max legal value

public int hashCode()

Returns an integer hash code for the receiver. Any two objects which answer true when passed to .equals must answer the same value for this method.

Returns

  • int the receiver's hash.

public void setLacAndCid(int lac, int cid)

Set the location area code and the cell id.

public void setStateInvalid()

Invalidate this object. The location area code and the cell id are set to -1.

public String toString()

Returns a string containing a concise, human-readable description of the receiver.

Returns

  • String a printable representation for the receiver.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56