Skip to content

Commit 3caf66d

Browse files
author
Wink Saville
committed
Unhide the new location API's
Change-Id: I41cc89998b8bd1e6686ea30475ab8905a133e312
1 parent 10d940d commit 3caf66d

15 files changed

+120
-31
lines changed

api/current.txt

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20203,12 +20203,110 @@ package android.speech.tts {
2020320203

2020420204
package android.telephony {
2020520205

20206+
public abstract class CellIdentity implements android.os.Parcelable {
20207+
method public int describeContents();
20208+
method public abstract int hashCode();
20209+
method public void writeToParcel(android.os.Parcel, int);
20210+
field public static final android.os.Parcelable.Creator CREATOR;
20211+
}
20212+
20213+
public final class CellIdentityCdma extends android.telephony.CellIdentity implements android.os.Parcelable {
20214+
method public int getBasestationId();
20215+
method public int getLatitude();
20216+
method public int getLongitude();
20217+
method public int getNetworkId();
20218+
method public int getSystemId();
20219+
method public int hashCode();
20220+
field public static final android.os.Parcelable.Creator CREATOR;
20221+
}
20222+
20223+
public final class CellIdentityGsm extends android.telephony.CellIdentity implements android.os.Parcelable {
20224+
method public int getCid();
20225+
method public int getLac();
20226+
method public int getMcc();
20227+
method public int getMnc();
20228+
method public int getPsc();
20229+
method public int hashCode();
20230+
field public static final android.os.Parcelable.Creator CREATOR;
20231+
}
20232+
20233+
public final class CellIdentityLte extends android.telephony.CellIdentity implements android.os.Parcelable {
20234+
method public int getCi();
20235+
method public int getMcc();
20236+
method public int getMnc();
20237+
method public int getPci();
20238+
method public int getTac();
20239+
method public int hashCode();
20240+
field public static final android.os.Parcelable.Creator CREATOR;
20241+
}
20242+
20243+
public class CellInfo implements android.os.Parcelable {
20244+
method public int describeContents();
20245+
method public long getTimeStamp();
20246+
method public boolean isRegistered();
20247+
method public void writeToParcel(android.os.Parcel, int);
20248+
field public static final android.os.Parcelable.Creator CREATOR;
20249+
}
20250+
20251+
public final class CellInfoCdma extends android.telephony.CellInfo implements android.os.Parcelable {
20252+
method public android.telephony.CellIdentityCdma getCellIdentity();
20253+
method public android.telephony.CellSignalStrengthCdma getCellSignalStrength();
20254+
field public static final android.os.Parcelable.Creator CREATOR;
20255+
}
20256+
20257+
public final class CellInfoGsm extends android.telephony.CellInfo implements android.os.Parcelable {
20258+
method public android.telephony.CellIdentityGsm getCellIdentity();
20259+
method public android.telephony.CellSignalStrengthGsm getCellSignalStrength();
20260+
field public static final android.os.Parcelable.Creator CREATOR;
20261+
}
20262+
20263+
public final class CellInfoLte extends android.telephony.CellInfo implements android.os.Parcelable {
20264+
method public android.telephony.CellIdentityLte getCellIdentity();
20265+
method public android.telephony.CellSignalStrengthLte getCellSignalStrength();
20266+
field public static final android.os.Parcelable.Creator CREATOR;
20267+
}
20268+
2020620269
public abstract class CellLocation {
2020720270
ctor public CellLocation();
2020820271
method public static android.telephony.CellLocation getEmpty();
2020920272
method public static void requestLocationUpdate();
2021020273
}
2021120274

20275+
public abstract class CellSignalStrength implements android.os.Parcelable {
20276+
method public int describeContents();
20277+
method public abstract boolean equals(java.lang.Object);
20278+
method public abstract int hashCode();
20279+
method public abstract void writeToParcel(android.os.Parcel, int);
20280+
field public static final android.os.Parcelable.Creator CREATOR;
20281+
}
20282+
20283+
public class CellSignalStrengthCdma extends android.telephony.CellSignalStrength implements android.os.Parcelable {
20284+
method public boolean equals(java.lang.Object);
20285+
method public int getCdmaDbm();
20286+
method public int getCdmaEcio();
20287+
method public int getEvdoDbm();
20288+
method public int getEvdoEcio();
20289+
method public int getEvdoSnr();
20290+
method public int hashCode();
20291+
method public void writeToParcel(android.os.Parcel, int);
20292+
field public static final android.os.Parcelable.Creator CREATOR;
20293+
}
20294+
20295+
public class CellSignalStrengthGsm extends android.telephony.CellSignalStrength implements android.os.Parcelable {
20296+
method public boolean equals(java.lang.Object);
20297+
method public int hashCode();
20298+
method public void writeToParcel(android.os.Parcel, int);
20299+
field public static final android.os.Parcelable.Creator CREATOR;
20300+
}
20301+
20302+
public class CellSignalStrengthLte extends android.telephony.CellSignalStrength implements android.os.Parcelable {
20303+
method public boolean equals(java.lang.Object);
20304+
method public int getTimingAdvance();
20305+
method public int hashCode();
20306+
method public void writeToParcel(android.os.Parcel, int);
20307+
field public static final android.os.Parcelable.Creator CREATOR;
20308+
}
20309+
2021220310
public class NeighboringCellInfo implements android.os.Parcelable {
2021320311
ctor public deprecated NeighboringCellInfo();
2021420312
ctor public deprecated NeighboringCellInfo(int, int);
@@ -20281,6 +20379,7 @@ package android.telephony {
2028120379
ctor public PhoneStateListener();
2028220380
method public void onCallForwardingIndicatorChanged(boolean);
2028320381
method public void onCallStateChanged(int, java.lang.String);
20382+
method public void onCellInfoChanged(java.util.List<android.telephony.CellInfo>);
2028420383
method public void onCellLocationChanged(android.telephony.CellLocation);
2028520384
method public void onDataActivity(int);
2028620385
method public void onDataConnectionStateChanged(int);
@@ -20291,6 +20390,7 @@ package android.telephony {
2029120390
method public void onSignalStrengthsChanged(android.telephony.SignalStrength);
2029220391
field public static final int LISTEN_CALL_FORWARDING_INDICATOR = 8; // 0x8
2029320392
field public static final int LISTEN_CALL_STATE = 32; // 0x20
20393+
field public static final int LISTEN_CELL_INFO = 1024; // 0x400
2029420394
field public static final int LISTEN_CELL_LOCATION = 16; // 0x10
2029520395
field public static final int LISTEN_DATA_ACTIVITY = 128; // 0x80
2029620396
field public static final int LISTEN_DATA_CONNECTION_STATE = 64; // 0x40
@@ -20416,6 +20516,7 @@ package android.telephony {
2041620516
}
2041720517

2041820518
public class TelephonyManager {
20519+
method public java.util.List<android.telephony.CellInfo> getAllCellInfo();
2041920520
method public int getCallState();
2042020521
method public android.telephony.CellLocation getCellLocation();
2042120522
method public int getDataActivity();

telephony/java/android/telephony/CellIdentity.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,26 @@
2222
/**
2323
* CellIdentity is immutable and represents ONE unique cell in the world
2424
* it contains all levels of info to identity country, carrier, etc.
25-
*
26-
* @hide
2725
*/
2826
public abstract class CellIdentity implements Parcelable {
2927

3028
// Type fields for parceling
29+
/** @hide */
3130
protected static final int TYPE_GSM = 1;
31+
/** @hide */
3232
protected static final int TYPE_CDMA = 2;
33+
/** @hide */
3334
protected static final int TYPE_LTE = 3;
3435

36+
/** @hide */
3537
protected CellIdentity() {
3638
}
3739

40+
/** @hide */
3841
protected CellIdentity(Parcel in) {
3942
}
4043

44+
/** @hide */
4145
protected CellIdentity(CellIdentity cid) {
4246
}
4347

telephony/java/android/telephony/CellIdentityCdma.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
/**
2424
* CellIdentity is to represent a unique CDMA cell
25-
*
26-
* @hide
2725
*/
2826
public final class CellIdentityCdma extends CellIdentity implements Parcelable {
2927

telephony/java/android/telephony/CellIdentityGsm.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
/**
2424
* CellIdentity to represent a unique GSM or UMTS cell
25-
*
26-
* @hide
2725
*/
2826
public final class CellIdentityGsm extends CellIdentity implements Parcelable {
2927

telephony/java/android/telephony/CellIdentityLte.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
/**
2424
* CellIdentity is to represent a unique LTE cell
25-
*
26-
* @hide
2725
*/
2826
public final class CellIdentityLte extends CellIdentity implements Parcelable {
2927

telephony/java/android/telephony/CellInfo.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@
2121

2222
/**
2323
* Immutable cell information from a point in time.
24-
*
25-
* @hide
2624
*/
2725
public class CellInfo implements Parcelable {
2826

2927
// Type fields for parceling
28+
/** @hide */
3029
protected static final int TYPE_GSM = 1;
30+
/** @hide */
3131
protected static final int TYPE_CDMA = 2;
32+
/** @hide */
3233
protected static final int TYPE_LTE = 3;
3334

3435
// Type to distinguish where time stamp gets recorded.
@@ -54,12 +55,14 @@ public class CellInfo implements Parcelable {
5455
// Value of TIMESTAMP_TYPE_XXXX
5556
private int mTimeStampType;
5657

58+
/** @hide */
5759
protected CellInfo() {
5860
this.mRegistered = false;
5961
this.mTimeStampType = TIMESTAMP_TYPE_UNKNOWN;
6062
this.mTimeStamp = Long.MAX_VALUE;
6163
}
6264

65+
/** @hide */
6366
protected CellInfo(CellInfo ci) {
6467
this.mRegistered = ci.mRegistered;
6568
this.mTimeStampType = ci.mTimeStampType;
@@ -168,6 +171,7 @@ public void writeToParcel(Parcel dest, int flags) {
168171
dest.writeLong(mTimeStamp);
169172
}
170173

174+
/** @hide */
171175
protected CellInfo(Parcel in) {
172176
mRegistered = (in.readInt() == 1) ? true : false;
173177
mTimeStampType = in.readInt();

telephony/java/android/telephony/CellInfoCdma.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
/**
2424
* Immutable cell information from a point in time.
25-
*
26-
* @hide
2725
*/
2826
public final class CellInfoCdma extends CellInfo implements Parcelable {
2927

telephony/java/android/telephony/CellInfoGsm.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
/**
2424
* Immutable cell information from a point in time.
25-
*
26-
* @hide
2725
*/
2826
public final class CellInfoGsm extends CellInfo implements Parcelable {
2927

telephony/java/android/telephony/CellInfoLte.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
/**
2424
* Immutable cell information from a point in time.
25-
*
26-
* @hide
2725
*/
2826
public final class CellInfoLte extends CellInfo implements Parcelable {
2927

telephony/java/android/telephony/CellSignalStrength.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818

1919
import android.os.Parcel;
2020
import android.os.Parcelable;
21-
import android.view.InputEvent;
2221

2322
/**
2423
* Abstract base class for cell phone signal strength related information.
25-
*
26-
* @hide
2724
*/
2825
public abstract class CellSignalStrength implements Parcelable {
2926

3027
// Type fields for parceling
28+
/** @hide */
3129
protected static final int TYPE_GSM = 1;
30+
/** @hide */
3231
protected static final int TYPE_CDMA = 2;
32+
/** @hide */
3333
protected static final int TYPE_LTE = 3;
3434

3535

@@ -50,6 +50,10 @@ public abstract class CellSignalStrength implements Parcelable {
5050
"none", "poor", "moderate", "good", "great"
5151
};
5252

53+
/** @hide */
54+
protected CellSignalStrength() {
55+
}
56+
5357
/** @hide */
5458
public abstract void setDefaultValues();
5559

0 commit comments

Comments
 (0)