Skip to content

Commit 82e6ee6

Browse files
author
Wink Saville
committed
Unhide some CellSignalStrength methods.
When submitting originally I'd missed unhiding these methods. Change-Id: I627a5ea0c8c29b6ddfe5b1c49f9c0789d5e86456
1 parent af18865 commit 82e6ee6

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
@@ -20433,32 +20433,46 @@ package android.telephony {
2043320433
public abstract class CellSignalStrength implements android.os.Parcelable {
2043420434
method public int describeContents();
2043520435
method public abstract boolean equals(java.lang.Object);
20436+
method public abstract int getAsuLevel();
20437+
method public abstract int getDbm();
20438+
method public abstract int getLevel();
2043620439
method public abstract int hashCode();
2043720440
method public abstract void writeToParcel(android.os.Parcel, int);
2043820441
field public static final android.os.Parcelable.Creator CREATOR;
2043920442
}
2044020443

2044120444
public class CellSignalStrengthCdma extends android.telephony.CellSignalStrength implements android.os.Parcelable {
2044220445
method public boolean equals(java.lang.Object);
20446+
method public int getAsuLevel();
2044320447
method public int getCdmaDbm();
2044420448
method public int getCdmaEcio();
20449+
method public int getCdmaLevel();
20450+
method public int getDbm();
2044520451
method public int getEvdoDbm();
2044620452
method public int getEvdoEcio();
20453+
method public int getEvdoLevel();
2044720454
method public int getEvdoSnr();
20455+
method public int getLevel();
2044820456
method public int hashCode();
2044920457
method public void writeToParcel(android.os.Parcel, int);
2045020458
field public static final android.os.Parcelable.Creator CREATOR;
2045120459
}
2045220460

2045320461
public class CellSignalStrengthGsm extends android.telephony.CellSignalStrength implements android.os.Parcelable {
2045420462
method public boolean equals(java.lang.Object);
20463+
method public int getAsuLevel();
20464+
method public int getDbm();
20465+
method public int getLevel();
2045520466
method public int hashCode();
2045620467
method public void writeToParcel(android.os.Parcel, int);
2045720468
field public static final android.os.Parcelable.Creator CREATOR;
2045820469
}
2045920470

2046020471
public class CellSignalStrengthLte extends android.telephony.CellSignalStrength implements android.os.Parcelable {
2046120472
method public boolean equals(java.lang.Object);
20473+
method public int getAsuLevel();
20474+
method public int getDbm();
20475+
method public int getLevel();
2046220476
method public int getTimingAdvance();
2046320477
method public int hashCode();
2046420478
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)