Skip to content

Commit 390de22

Browse files
author
Jake Hamby
committed
Fix some typos and other cosmetic cleanups in telephony framework.
- Fix typos in Javadoc and comments. - Fix Javadoc @link references to other classes/methods. - Rename MISSING_UKNOWN_APN to MISSING_UNKNOWN_APN in DataConnection. - Remove unused (and misspelled) RETRYIES_* consts in RetryManager. Change-Id: I3b44ac8320d6c1e4c350be600c7ef266aaf735e4
1 parent 1b44ebd commit 390de22

20 files changed

+115
-121
lines changed

telephony/java/android/telephony/ServiceState.java

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class ServiceState implements Parcelable {
5757
public static final int STATE_EMERGENCY_ONLY = 2;
5858

5959
/**
60-
* Radio of telephony is explictly powered off.
60+
* Radio of telephony is explicitly powered off.
6161
*/
6262
public static final int STATE_POWER_OFF = 3;
6363

@@ -215,7 +215,8 @@ public int describeContents() {
215215
return 0;
216216
}
217217

218-
public static final Parcelable.Creator<ServiceState> CREATOR = new Parcelable.Creator() {
218+
public static final Parcelable.Creator<ServiceState> CREATOR =
219+
new Parcelable.Creator<ServiceState>() {
219220
public ServiceState createFromParcel(Parcel in) {
220221
return new ServiceState(in);
221222
}
@@ -226,7 +227,7 @@ public ServiceState[] newArray(int size) {
226227
};
227228

228229
/**
229-
* Get current servcie state of phone
230+
* Get current service state of phone
230231
*
231232
* @see #STATE_IN_SERVICE
232233
* @see #STATE_OUT_OF_SERVICE
@@ -278,10 +279,10 @@ public int getCdmaEriIconMode() {
278279
}
279280

280281
/**
281-
* Get current registered operator name in long alphanumeric format
282+
* Get current registered operator name in long alphanumeric format.
282283
*
283-
* In GSM/UMTS, long format can be upto 16 characters long
284-
* In CDMA, returns the ERI text, if set, otherwise the ONS
284+
* In GSM/UMTS, long format can be up to 16 characters long.
285+
* In CDMA, returns the ERI text, if set. Otherwise, returns the ONS.
285286
*
286287
* @return long name of operator, null if unregistered or unknown
287288
*/
@@ -290,9 +291,9 @@ public String getOperatorAlphaLong() {
290291
}
291292

292293
/**
293-
* Get current registered operator name in short lphanumeric format
294+
* Get current registered operator name in short alphanumeric format.
294295
*
295-
* In GSM/UMST, short format can be upto 8 characters long
296+
* In GSM/UMTS, short format can be up to 8 characters long.
296297
*
297298
* @return short name of operator, null if unregistered or unknown
298299
*/
@@ -301,12 +302,13 @@ public String getOperatorAlphaShort() {
301302
}
302303

303304
/**
304-
* Get current registered operator numeric id
305+
* Get current registered operator numeric id.
305306
*
306307
* In GSM/UMTS, numeric format is 3 digit country code plus 2 or 3 digit
307-
* network code
308+
* network code.
308309
*
309-
* The country code can be decoded using MccTable.countryCodeForMcc()
310+
* The country code can be decoded using
311+
* {@link com.android.internal.telephony.MccTable#countryCodeForMcc(int)}.
310312
*
311313
* @return numeric format of operator, null if unregistered or unknown
312314
*/
@@ -315,7 +317,7 @@ public String getOperatorNumeric() {
315317
}
316318

317319
/**
318-
* Get current network selection mode
320+
* Get current network selection mode.
319321
*
320322
* @return true if manual mode, false if automatic mode
321323
*/
@@ -442,7 +444,7 @@ public void setStateOutOfService() {
442444
mCdmaEriIconMode = -1;
443445
}
444446

445-
// TODO - can't this be combined with the above func..
447+
// TODO - can't this be combined with the above method?
446448
public void setStateOff() {
447449
mState = STATE_POWER_OFF;
448450
mRoaming = false;
@@ -503,8 +505,8 @@ public void setOperatorName(String longName, String shortName, String numeric) {
503505
}
504506

505507
/**
506-
* In CDMA mOperatorAlphaLong can be set from the ERI
507-
* text, this is done from the CDMAPhone and not from the CdmaServiceStateTracker
508+
* In CDMA, mOperatorAlphaLong can be set from the ERI text.
509+
* This is done from the CDMAPhone and not from the CdmaServiceStateTracker.
508510
*
509511
* @hide
510512
*/
@@ -517,7 +519,7 @@ public void setIsManualSelection(boolean isManual) {
517519
}
518520

519521
/**
520-
* Test whether two objects hold the same data values or both are null
522+
* Test whether two objects hold the same data values or both are null.
521523
*
522524
* @param a first obj
523525
* @param b second obj
@@ -528,7 +530,7 @@ private static boolean equalsHandlesNulls (Object a, Object b) {
528530
}
529531

530532
/**
531-
* Set ServiceState based on intent notifier map
533+
* Set ServiceState based on intent notifier map.
532534
*
533535
* @param m intent notifier map
534536
* @hide
@@ -549,7 +551,7 @@ private void setFromNotifierBundle(Bundle m) {
549551
}
550552

551553
/**
552-
* Set intent notifier Bundle based on service state
554+
* Set intent notifier Bundle based on service state.
553555
*
554556
* @param m intent notifier Bundle
555557
* @hide

telephony/java/android/telephony/gsm/SmsManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private SmsManager() {
5656
* the current default SMSC
5757
* @param text the body of the message to send
5858
* @param sentIntent if not NULL this <code>PendingIntent</code> is
59-
* broadcast when the message is sucessfully sent, or failed.
59+
* broadcast when the message is successfully sent, or failed.
6060
* The result code will be <code>Activity.RESULT_OK<code> for success,
6161
* or one of these errors:
6262
* <code>RESULT_ERROR_GENERIC_FAILURE</code>

telephony/java/com/android/internal/telephony/CallerInfoAsyncQuery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public static CallerInfoAsyncQuery startQuery(int token, Context context, Uri co
284284
*/
285285
public static CallerInfoAsyncQuery startQuery(int token, Context context, String number,
286286
OnQueryCompleteListener listener, Object cookie) {
287-
//contruct the URI object and start Query.
287+
//construct the URI object and start Query.
288288
Uri contactRef = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number));
289289

290290
CallerInfoAsyncQuery c = new CallerInfoAsyncQuery();

telephony/java/com/android/internal/telephony/Connection.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public enum DisconnectCause {
4545
POWER_OFF, /* radio is turned off explicitly */
4646
OUT_OF_SERVICE, /* out of service */
4747
ICC_ERROR, /* No ICC, ICC locked, or other ICC error */
48-
CALL_BARRED, /* call was blocked by call barrring */
48+
CALL_BARRED, /* call was blocked by call barring */
4949
FDN_BLOCKED, /* call was blocked by fixed dial number */
5050
CS_RESTRICTED, /* call was blocked by restricted all voice access */
5151
CS_RESTRICTED_NORMAL, /* call was blocked by restricted normal voice access */
@@ -56,7 +56,7 @@ public enum DisconnectCause {
5656
CDMA_INTERCEPT, /* INTERCEPT order received, MS state idle entered */
5757
CDMA_REORDER, /* MS has been redirected, call is cancelled */
5858
CDMA_SO_REJECT, /* service option rejection */
59-
CDMA_RETRY_ORDER, /* requeseted service is rejected, retry delay is set */
59+
CDMA_RETRY_ORDER, /* requested service is rejected, retry delay is set */
6060
CDMA_ACCESS_FAILURE,
6161
CDMA_PREEMPTED,
6262
CDMA_NOT_EMERGENCY, /* not an emergency call */
@@ -69,32 +69,32 @@ public enum DisconnectCause {
6969
/* Instance Methods */
7070

7171
/**
72-
* Gets address (e.g., phone number) associated with connection
73-
* TODO: distinguish reasons for unavailablity
72+
* Gets address (e.g. phone number) associated with connection.
73+
* TODO: distinguish reasons for unavailability
7474
*
7575
* @return address or null if unavailable
7676
*/
7777

7878
public abstract String getAddress();
7979

8080
/**
81-
* Gets cdma CNAP name associated with connection
81+
* Gets CDMA CNAP name associated with connection.
8282
* @return cnap name or null if unavailable
8383
*/
8484
public String getCnapName() {
8585
return null;
8686
}
8787

8888
/**
89-
* Get orignal dial string
90-
* @return orignal dial string or null if unavailable
89+
* Get original dial string.
90+
* @return original dial string or null if unavailable
9191
*/
9292
public String getOrigDialString(){
9393
return null;
9494
}
9595

9696
/**
97-
* Gets cdma CNAP presentation associated with connection
97+
* Gets CDMA CNAP presentation associated with connection.
9898
* @return cnap name or null if unavailable
9999
*/
100100

@@ -116,45 +116,45 @@ public int getCnapNamePresentation() {
116116
public abstract long getCreateTime();
117117

118118
/**
119-
* Connection connect time in currentTimeMillis() format
120-
* For outgoing calls: Begins at (DIALING|ALERTING) -> ACTIVE transition
121-
* For incoming calls: Begins at (INCOMING|WAITING) -> ACTIVE transition
122-
* Returns 0 before then
119+
* Connection connect time in currentTimeMillis() format.
120+
* For outgoing calls: Begins at (DIALING|ALERTING) -> ACTIVE transition.
121+
* For incoming calls: Begins at (INCOMING|WAITING) -> ACTIVE transition.
122+
* Returns 0 before then.
123123
*/
124124
public abstract long getConnectTime();
125125

126126
/**
127-
* Disconnect time in currentTimeMillis() format
128-
* The time when this Connection makes a transition into ENDED or FAIL
129-
* Returns 0 before then
127+
* Disconnect time in currentTimeMillis() format.
128+
* The time when this Connection makes a transition into ENDED or FAIL.
129+
* Returns 0 before then.
130130
*/
131131
public abstract long getDisconnectTime();
132132

133133
/**
134-
* returns the number of milliseconds the call has been connected,
134+
* Returns the number of milliseconds the call has been connected,
135135
* or 0 if the call has never connected.
136136
* If the call is still connected, then returns the elapsed
137-
* time since connect
137+
* time since connect.
138138
*/
139139
public abstract long getDurationMillis();
140140

141141
/**
142142
* If this connection is HOLDING, return the number of milliseconds
143-
* that it has been on hold for (approximently)
144-
* If this connection is in any other state, return 0
143+
* that it has been on hold for (approximately).
144+
* If this connection is in any other state, return 0.
145145
*/
146146

147147
public abstract long getHoldDurationMillis();
148148

149149
/**
150-
* Returns "NOT_DISCONNECTED" if not yet disconnected
150+
* Returns "NOT_DISCONNECTED" if not yet disconnected.
151151
*/
152152
public abstract DisconnectCause getDisconnectCause();
153153

154154
/**
155155
* Returns true of this connection originated elsewhere
156156
* ("MT" or mobile terminated; another party called this terminal)
157-
* or false if this call originated here (MO or mobile originated)
157+
* or false if this call originated here (MO or mobile originated).
158158
*/
159159
public abstract boolean isIncoming();
160160

telephony/java/com/android/internal/telephony/DataConnection.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public enum FailCause {
5757
NONE,
5858
OPERATOR_BARRED,
5959
INSUFFICIENT_RESOURCES,
60-
MISSING_UKNOWN_APN,
60+
MISSING_UNKNOWN_APN,
6161
UNKNOWN_PDP_ADDRESS,
6262
USER_AUTHENTICATION,
6363
ACTIVATION_REJECT_GGSN,
@@ -75,7 +75,7 @@ public enum FailCause {
7575
RADIO_ERROR_RETRY;
7676

7777
public boolean isPermanentFail() {
78-
return (this == OPERATOR_BARRED) || (this == MISSING_UKNOWN_APN) ||
78+
return (this == OPERATOR_BARRED) || (this == MISSING_UNKNOWN_APN) ||
7979
(this == UNKNOWN_PDP_ADDRESS) || (this == USER_AUTHENTICATION) ||
8080
(this == ACTIVATION_REJECT_GGSN) || (this == ACTIVATION_REJECT_UNSPECIFIED) ||
8181
(this == SERVICE_OPTION_NOT_SUPPORTED) ||
@@ -102,12 +102,12 @@ public String toString() {
102102
return "Operator Barred";
103103
case INSUFFICIENT_RESOURCES:
104104
return "Insufficient Resources";
105-
case MISSING_UKNOWN_APN:
105+
case MISSING_UNKNOWN_APN:
106106
return "Missing / Unknown APN";
107107
case UNKNOWN_PDP_ADDRESS:
108108
return "Unknown PDP Address";
109109
case USER_AUTHENTICATION:
110-
return "Error User Autentication";
110+
return "Error User Authentication";
111111
case ACTIVATION_REJECT_GGSN:
112112
return "Activation Reject GGSN";
113113
case ACTIVATION_REJECT_UNSPECIFIED:

telephony/java/com/android/internal/telephony/Phone.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,14 @@ enum SuppService {
243243
/**
244244
* Get the current DataState. No change notification exists at this
245245
* interface -- use
246-
* {@link com.android.telephony.PhoneStateListener PhoneStateListener}
247-
* instead.
246+
* {@link android.telephony.PhoneStateListener} instead.
248247
*/
249248
DataState getDataConnectionState();
250249

251250
/**
252251
* Get the current DataActivityState. No change notification exists at this
253252
* interface -- use
254-
* {@link TelephonyManager} instead.
253+
* {@link android.telephony.TelephonyManager} instead.
255254
*/
256255
DataActivityState getDataActivityState();
257256

@@ -853,7 +852,7 @@ enum SuppService {
853852
* @param dtmfString is string representing the dialing digit(s) in the active call
854853
* @param on the DTMF ON length in milliseconds, or 0 for default
855854
* @param off the DTMF OFF length in milliseconds, or 0 for default
856-
* @param onCompelte is the callback message when the action is processed by BP
855+
* @param onComplete is the callback message when the action is processed by BP
857856
*
858857
*/
859858
void sendBurstDtmf(String dtmfString, int on, int off, Message onComplete);
@@ -993,7 +992,7 @@ void setCallForwardingOption(int commandInterfaceCFReason,
993992
* ((AsyncResult)onComplete.obj) is an array of int, with a length of 2.
994993
*
995994
* @param onComplete a callback message when the action is completed.
996-
* @see com.android.internal.telephony.CommandsInterface.getCLIR for details.
995+
* @see com.android.internal.telephony.CommandsInterface#getCLIR for details.
997996
*/
998997
void getOutgoingCallerIdDisplay(Message onComplete);
999998

@@ -1015,7 +1014,7 @@ void setOutgoingCallerIdDisplay(int commandInterfaceCLIRMode,
10151014
* ((AsyncResult)onComplete.obj) is an array of int, with a length of 1.
10161015
*
10171016
* @param onComplete a callback message when the action is completed.
1018-
* @see com.android.internal.telephony.CommandsInterface.queryCallWaiting for details.
1017+
* @see com.android.internal.telephony.CommandsInterface#queryCallWaiting for details.
10191018
*/
10201019
void getCallWaiting(Message onComplete);
10211020

@@ -1485,7 +1484,7 @@ void selectNetworkManually(NetworkInfo network,
14851484
* setTTYMode
14861485
* sets a TTY mode option.
14871486
*
1488-
* @param enable is a boolean representing the state that you are
1487+
* @param ttyMode is a boolean representing the state that you are
14891488
* requesting, true for enabled, false for disabled.
14901489
* @param onComplete a callback message when the action is completed
14911490
*/

telephony/java/com/android/internal/telephony/PhoneSubInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public String getDeviceSvn() {
6060
}
6161

6262
/**
63-
* Retrieves the unique sbuscriber ID, e.g., IMSI for GSM phones.
63+
* Retrieves the unique subscriber ID, e.g., IMSI for GSM phones.
6464
*/
6565
public String getSubscriberId() {
6666
mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");

telephony/java/com/android/internal/telephony/PhoneSubInfoProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public String getDeviceSvn() {
4747
}
4848

4949
/**
50-
* Retrieves the unique sbuscriber ID, e.g., IMSI for GSM phones.
50+
* Retrieves the unique subscriber ID, e.g., IMSI for GSM phones.
5151
*/
5252
public String getSubscriberId() {
5353
return mPhoneSubInfo.getSubscriberId();

0 commit comments

Comments
 (0)