Skip to content

Commit e06747c

Browse files
Wink SavilleAndroid (Google) Code Review
authored andcommitted
Merge "Rename isTimeZoneFixNeeded to shouldFixTimeZoneNow." into jb-dev
2 parents 2c6200d + 1d7c1f1 commit e06747c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

telephony/java/com/android/internal/telephony/ServiceStateTracker.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ protected void cancelPollState() {
472472
* @param needToFixTimeZone
473473
* @return true if time zone needs to be fixed
474474
*/
475-
protected boolean isTimeZoneFixNeeded(PhoneBase phoneBase, String operatorNumeric,
475+
protected boolean shouldFixTimeZoneNow(PhoneBase phoneBase, String operatorNumeric,
476476
String prevOperatorNumeric, boolean needToFixTimeZone) {
477477
// Return false if the mcc isn't valid as we don't know where we are.
478478
// Return true if we have an IccCard and the mcc changed or we
@@ -485,7 +485,7 @@ protected boolean isTimeZoneFixNeeded(PhoneBase phoneBase, String operatorNumeri
485485
mcc = Integer.parseInt(operatorNumeric.substring(0, 3));
486486
} catch (Exception e) {
487487
if (DBG) {
488-
log("isTimeZoneFixNeeded: no mcc, operatorNumeric=" + operatorNumeric +
488+
log("shouldFixTimeZoneNow: no mcc, operatorNumeric=" + operatorNumeric +
489489
" retVal=false");
490490
}
491491
return false;
@@ -507,7 +507,7 @@ protected boolean isTimeZoneFixNeeded(PhoneBase phoneBase, String operatorNumeri
507507
// Determine retVal
508508
boolean retVal = ((iccCardExist && (mcc != prevMcc)) || needToFixTimeZone);
509509
if (DBG) {
510-
log("isTimeZoneFixNeeded: retVal=" + retVal +
510+
log("shouldFixTimeZoneNow: retVal=" + retVal +
511511
" iccCard=" + iccCard +
512512
" iccCard.state=" + (iccCard == null ? "null" : iccCard.getState().toString()) +
513513
" iccCardExist=" + iccCardExist +

telephony/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ protected void pollStateDone() {
396396
isoCountryCode);
397397
mGotCountryCode = true;
398398

399-
if (isTimeZoneFixNeeded(phone, operatorNumeric, prevOperatorNumeric,
399+
if (shouldFixTimeZoneNow(phone, operatorNumeric, prevOperatorNumeric,
400400
mNeedFixZone)) {
401401
fixTimeZone(isoCountryCode);
402402
}

telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ protected void pollStateDone() {
10241024
isoCountryCode);
10251025
mGotCountryCode = true;
10261026

1027-
if (isTimeZoneFixNeeded(phone, operatorNumeric, prevOperatorNumeric,
1027+
if (shouldFixTimeZoneNow(phone, operatorNumeric, prevOperatorNumeric,
10281028
mNeedFixZone)) {
10291029
fixTimeZone(isoCountryCode);
10301030
}

telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ private void pollStateDone() {
905905
}
906906
}
907907

908-
if (isTimeZoneFixNeeded(phone, operatorNumeric, prevOperatorNumeric,
908+
if (shouldFixTimeZoneNow(phone, operatorNumeric, prevOperatorNumeric,
909909
mNeedFixZone)) {
910910
// If the offset is (0, false) and the timezone property
911911
// is set, use the timezone property rather than

0 commit comments

Comments
 (0)