Correct the naming of the variable
Test: atest FrameworksNetTests Bug: 269714970 (cherry picked from https://android-review.googlesource.com/q/commit:7577245b94488d0f192cb8ca054d2933985ddca2) Merged-In: If65e0ce229983a0b84fe3ad63710e18f76c3be17 Change-Id: If65e0ce229983a0b84fe3ad63710e18f76c3be17
This commit is contained in:
committed by
Chiachang Wang
parent
6a9342d76f
commit
f86a2b809a
@@ -456,22 +456,22 @@ public class Vpn {
|
||||
|
||||
private static class CarrierConfigInfo {
|
||||
public final String mccMnc;
|
||||
public final int keepaliveDelayMs;
|
||||
public final int keepaliveDelaySec;
|
||||
public final int encapType;
|
||||
public final int ipVersion;
|
||||
|
||||
CarrierConfigInfo(String mccMnc, int keepaliveDelayMs,
|
||||
CarrierConfigInfo(String mccMnc, int keepaliveDelaySec,
|
||||
int encapType,
|
||||
int ipVersion) {
|
||||
this.mccMnc = mccMnc;
|
||||
this.keepaliveDelayMs = keepaliveDelayMs;
|
||||
this.keepaliveDelaySec = keepaliveDelaySec;
|
||||
this.encapType = encapType;
|
||||
this.ipVersion = ipVersion;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CarrierConfigInfo(" + mccMnc + ") [keepaliveDelayMs=" + keepaliveDelayMs
|
||||
return "CarrierConfigInfo(" + mccMnc + ") [keepaliveDelaySec=" + keepaliveDelaySec
|
||||
+ ", encapType=" + encapType + ", ipVersion=" + ipVersion + "]";
|
||||
}
|
||||
}
|
||||
@@ -3603,7 +3603,7 @@ public class Vpn {
|
||||
}
|
||||
final CarrierConfigInfo carrierconfig = getCarrierConfigForUnderlyingNetwork();
|
||||
final int nattKeepaliveSec = (carrierconfig != null)
|
||||
? carrierconfig.keepaliveDelayMs : AUTOMATIC_KEEPALIVE_DELAY_SECONDS;
|
||||
? carrierconfig.keepaliveDelaySec : AUTOMATIC_KEEPALIVE_DELAY_SECONDS;
|
||||
if (carrierconfig != null) {
|
||||
Log.d(TAG, "Get customized keepalive (" + nattKeepaliveSec + "s) on SIM (mccmnc="
|
||||
+ carrierconfig.mccMnc + ")");
|
||||
|
||||
Reference in New Issue
Block a user