Skip to content

Commit 97d28d9

Browse files
Wink SavilleAndroid (Google) Code Review
authored andcommitted
Merge "Unhide some CellSignalStrength methods." into jb-mr1-dev
2 parents a3b63c0 + 82e6ee6 commit 97d28d9

File tree

5 files changed

+20
-34
lines changed

5 files changed

+20
-34
lines changed

api/current.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20439,32 +20439,46 @@ package android.telephony {
2043920439
public abstract class CellSignalStrength implements android.os.Parcelable {
2044020440
method public int describeContents();
2044120441
method public abstract boolean equals(java.lang.Object);
20442+
method public abstract int getAsuLevel();
20443+
method public abstract int getDbm();
20444+
method public abstract int getLevel();
2044220445
method public abstract int hashCode();
2044320446
method public abstract void writeToParcel(android.os.Parcel, int);
2044420447
field public static final android.os.Parcelable.Creator CREATOR;
2044520448
}
2044620449

2044720450
public class CellSignalStrengthCdma extends android.telephony.CellSignalStrength implements android.os.Parcelable {
2044820451
method public boolean equals(java.lang.Object);
20452+
method public int getAsuLevel();
2044920453
method public int getCdmaDbm();
2045020454
method public int getCdmaEcio();
20455+
method public int getCdmaLevel();
20456+
method public int getDbm();
2045120457
method public int getEvdoDbm();
2045220458
method public int getEvdoEcio();
20459+
method public int getEvdoLevel();
2045320460
method public int getEvdoSnr();
20461+
method public int getLevel();
2045420462
method public int hashCode();
2045520463
method public void writeToParcel(android.os.Parcel, int);
2045620464
field public static final android.os.Parcelable.Creator CREATOR;
2045720465
}
2045820466

2045920467
public class CellSignalStrengthGsm extends android.telephony.CellSignalStrength implements android.os.Parcelable {
2046020468
method public boolean equals(java.lang.Object);
20469+
method public int getAsuLevel();
20470+
method public int getDbm();
20471+
method public int getLevel();
2046120472
method public int hashCode();
2046220473
method public void writeToParcel(android.os.Parcel, int);
2046320474
field public static final android.os.Parcelable.Creator CREATOR;
2046420475
}
2046520476

2046620477
public class CellSignalStrengthLte extends android.telephony.CellSignalStrength implements android.os.Parcelable {
2046720478
method public boolean equals(java.lang.Object);
20479+
method public int getAsuLevel();
20480+
method public int getDbm();
20481+
method public int getLevel();
2046820482
method public int getTimingAdvance();
2046920483
method public int hashCode();
2047020484
method public void writeToParcel(android.os.Parcel, int);

telephony/java/android/telephony/CellSignalStrength.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,16 @@ protected CellSignalStrength() {
5959

6060
/**
6161
* Get signal level as an int from 0..4
62-
*
63-
* @hide
6462
*/
6563
public abstract int getLevel();
6664

6765
/**
6866
* Get the signal level as an asu value between 0..31, 99 is unknown
69-
*
70-
* @hide
7167
*/
7268
public abstract int getAsuLevel();
7369

7470
/**
7571
* Get the signal strength as dBm
76-
*
77-
* @hide
7872
*/
7973
public abstract int getDbm();
8074

telephony/java/android/telephony/CellSignalStrengthCdma.java

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ public void setDefaultValues() {
113113
}
114114

115115
/**
116-
* Get LTE as level 0..4
117-
*
118-
* @hide
116+
* Get signal level as an int from 0..4
119117
*/
120118
@Override
121119
public int getLevel() {
@@ -140,8 +138,6 @@ public int getLevel() {
140138
/**
141139
* Get the LTE signal level as an asu value between 0..97, 99 is unknown
142140
* Asu is calculated based on 3GPP RSRP. Refer to 3GPP 27.007 (Ver 10.3.0) Sec 8.69
143-
*
144-
* @hide
145141
*/
146142
@Override
147143
public int getAsuLevel() {
@@ -172,8 +168,6 @@ public int getAsuLevel() {
172168

173169
/**
174170
* Get cdma as level 0..4
175-
*
176-
* @hide
177171
*/
178172
public int getCdmaLevel() {
179173
final int cdmaDbm = getCdmaDbm();
@@ -201,8 +195,6 @@ public int getCdmaLevel() {
201195

202196
/**
203197
* Get Evdo as level 0..4
204-
*
205-
* @hide
206198
*/
207199
public int getEvdoLevel() {
208200
int evdoDbm = getEvdoDbm();
@@ -228,9 +220,7 @@ public int getEvdoLevel() {
228220
}
229221

230222
/**
231-
* Get as dBm
232-
*
233-
* @hide
223+
* Get the signal strength as dBm
234224
*/
235225
@Override
236226
public int getDbm() {

telephony/java/android/telephony/CellSignalStrengthGsm.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ public void setDefaultValues() {
100100
}
101101

102102
/**
103-
* Get LTE as level 0..4
104-
*
105-
* @hide
103+
* Get signal level as an int from 0..4
106104
*/
107105
@Override
108106
public int getLevel() {
@@ -123,9 +121,7 @@ public int getLevel() {
123121
}
124122

125123
/**
126-
* Get LTE as dBm
127-
*
128-
* @hide
124+
* Get the signal strength as dBm
129125
*/
130126
@Override
131127
public int getDbm() {
@@ -145,8 +141,6 @@ public int getDbm() {
145141
/**
146142
* Get the LTE signal level as an asu value between 0..97, 99 is unknown
147143
* Asu is calculated based on 3GPP RSRP. Refer to 3GPP 27.007 (Ver 10.3.0) Sec 8.69
148-
*
149-
* @hide
150144
*/
151145
@Override
152146
public int getAsuLevel() {

telephony/java/android/telephony/CellSignalStrengthLte.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ public void setDefaultValues() {
134134
}
135135

136136
/**
137-
* Get LTE as level 0..4
138-
*
139-
* @hide
137+
* Get signal level as an int from 0..4
140138
*/
141139
@Override
142140
public int getLevel() {
@@ -170,9 +168,7 @@ else if (mRssnr == Integer.MAX_VALUE)
170168
}
171169

172170
/**
173-
* Get LTE as dBm
174-
*
175-
* @hide
171+
* Get signal strength as dBm
176172
*/
177173
@Override
178174
public int getDbm() {
@@ -182,8 +178,6 @@ public int getDbm() {
182178
/**
183179
* Get the LTE signal level as an asu value between 0..97, 99 is unknown
184180
* Asu is calculated based on 3GPP RSRP. Refer to 3GPP 27.007 (Ver 10.3.0) Sec 8.69
185-
*
186-
* @hide
187181
*/
188182
@Override
189183
public int getAsuLevel() {

0 commit comments

Comments
 (0)