| | | |
Offset 245, 15 lines modified | Offset 245, 14 lines modified |
245 | ····private·long·mLastConnectAttemptTimestamp; | 245 | ····private·long·mLastConnectAttemptTimestamp; |
246 | ····private·long·mLastDriverRoamAttempt; | 246 | ····private·long·mLastDriverRoamAttempt; |
247 | ····private·Pair·mLastL2KeyAndGroupHint; | 247 | ····private·Pair·mLastL2KeyAndGroupHint; |
248 | ····private·WifiLinkLayerStats·mLastLinkLayerStats; | 248 | ····private·WifiLinkLayerStats·mLastLinkLayerStats; |
249 | ····private·long·mLastLinkLayerStatsUpdate; | 249 | ····private·long·mLastLinkLayerStatsUpdate; |
250 | ····private·int·mLastNetworkId; | 250 | ····private·int·mLastNetworkId; |
251 | ····private·long·mLastOntimeReportTimeStamp; | 251 | ····private·long·mLastOntimeReportTimeStamp; |
252 | ····private·int·mLastScanRssi; | |
253 | ····private·long·mLastScreenStateChangeTimeStamp; | 252 | ····private·long·mLastScreenStateChangeTimeStamp; |
254 | ····private·int·mLastSignalLevel; | 253 | ····private·int·mLastSignalLevel; |
255 | ····private·String·mLastSimBasedConnectionCarrierName; | 254 | ····private·String·mLastSimBasedConnectionCarrierName; |
256 | ····private·int·mLastStatusDataStall; | 255 | ····private·int·mLastStatusDataStall; |
257 | ····private·int·mLastSubId; | 256 | ····private·int·mLastSubId; |
258 | ····private·final·LinkProbeManager·mLinkProbeManager; | 257 | ····private·final·LinkProbeManager·mLinkProbeManager; |
259 | ····private·LinkProperties·mLinkProperties; | 258 | ····private·LinkProperties·mLinkProperties; |
Offset 336, 15 lines modified | Offset 335, 14 lines modified |
336 | ········this.mVerboseLoggingEnabled·=·false; | 335 | ········this.mVerboseLoggingEnabled·=·false; |
337 | ········this.mDidBlackListBSSID·=·false; | 336 | ········this.mDidBlackListBSSID·=·false; |
338 | ········this.mP2pConnected·=·new·AtomicBoolean(false); | 337 | ········this.mP2pConnected·=·new·AtomicBoolean(false); |
339 | ········this.mTemporarilyDisconnectWifi·=·false; | 338 | ········this.mTemporarilyDisconnectWifi·=·false; |
340 | ········this.mScreenOn·=·false; | 339 | ········this.mScreenOn·=·false; |
341 | ········final·int·n·=·-1; | 340 | ········final·int·n·=·-1; |
342 | ········this.mLastSignalLevel·=·n; | 341 | ········this.mLastSignalLevel·=·n; |
343 | ········this.mLastScanRssi·=·-127; | |
344 | ········final·int·n2·=·1; | 342 | ········final·int·n2·=·1; |
345 | ········this.mIpReachabilityDisconnectEnabled·=·(n2·!=·0); | 343 | ········this.mIpReachabilityDisconnectEnabled·=·(n2·!=·0); |
346 | ········this.mEnableRssiPolling·=·false; | 344 | ········this.mEnableRssiPolling·=·false; |
347 | ········this.mPollRssiIntervalMsecs·=·n; | 345 | ········this.mPollRssiIntervalMsecs·=·n; |
348 | ········this.mRssiPollToken·=·0; | 346 | ········this.mRssiPollToken·=·0; |
349 | ········this.mOperationalMode·=·4; | 347 | ········this.mOperationalMode·=·4; |
350 | ········this.mModeChange·=·false; | 348 | ········this.mModeChange·=·false; |
Offset 509, 18 lines modified | Offset 507, 18 lines modified |
509 | ········} | 507 | ········} |
510 | ········return·true; | 508 | ········return·true; |
511 | ····} | 509 | ····} |
512 | ···· | 510 | ···· |
513 | ····private·void·cleanWifiScore()·{ | 511 | ····private·void·cleanWifiScore()·{ |
514 | ········final·ExtendedWifiInfo·mWifiInfo·=·this.mWifiInfo; | 512 | ········final·ExtendedWifiInfo·mWifiInfo·=·this.mWifiInfo; |
515 | ········final·double·n·=·0.0; | 513 | ········final·double·n·=·0.0; |
516 | ········((WifiInfo)mWifiInfo).setLostTxPacketsPerSecond(n); | 514 | ········mWifiInfo.setLostTxPacketsPerSecond(n); |
517 | ········((WifiInfo)this.mWifiInfo).setSuccessfulTxPacketsPerSecond(n); | 515 | ········this.mWifiInfo.setSuccessfulTxPacketsPerSecond(n); |
518 | ········((WifiInfo)this.mWifiInfo).setRetriedTxPacketsRate(n); | 516 | ········this.mWifiInfo.setRetriedTxPacketsRate(n); |
519 | ········((WifiInfo)this.mWifiInfo).setSuccessfulRxPacketsPerSecond(n); | 517 | ········this.mWifiInfo.setSuccessfulRxPacketsPerSecond(n); |
520 | ········this.mWifiScoreReport.reset(); | 518 | ········this.mWifiScoreReport.reset(); |
521 | ········this.mLastLinkLayerStats·=·null; | 519 | ········this.mLastLinkLayerStats·=·null; |
522 | ····} | 520 | ····} |
523 | ···· | 521 | ···· |
524 | ····private·void·clearLinkProperties()·{ | 522 | ····private·void·clearLinkProperties()·{ |
525 | ········Object·o·=·this.mDhcpResultsParcelableLock; | 523 | ········Object·o·=·this.mDhcpResultsParcelableLock; |
526 | ········synchronized·(o)·{ | 524 | ········synchronized·(o)·{ |
Offset 713, 35 lines modified | Offset 711, 35 lines modified |
713 | ············if·(currentRssiDbm·>·129)·{ | 711 | ············if·(currentRssiDbm·>·129)·{ |
714 | ················final·StringBuilder·sb2·=·new·StringBuilder(); | 712 | ················final·StringBuilder·sb2·=·new·StringBuilder(); |
715 | ················sb2.append("Error!·+ve·value·RSSI:·"); | 713 | ················sb2.append("Error!·+ve·value·RSSI:·"); |
716 | ················sb2.append(currentRssiDbm); | 714 | ················sb2.append(currentRssiDbm); |
717 | ················Log.wtf("WifiClientModeImpl",·sb2.toString()); | 715 | ················Log.wtf("WifiClientModeImpl",·sb2.toString()); |
718 | ················currentRssiDbm·-=·256; | 716 | ················currentRssiDbm·-=·256; |
719 | ············} | 717 | ············} |
720 | ············((WifiInfo)this.mWifiInfo).setRssi(currentRssiDbm); | 718 | ············this.mWifiInfo.setRssi(currentRssiDbm); |
721 | ············final·int·calculateSignalLevel·=·RssiUtil.calculateSignalLevel(this.mContext,·currentRssiDbm); | 719 | ············final·int·calculateSignalLevel·=·RssiUtil.calculateSignalLevel(this.mContext,·currentRssiDbm); |
722 | ············if·(calculateSignalLevel·!=·this.mLastSignalLevel)·{ | 720 | ············if·(calculateSignalLevel·!=·this.mLastSignalLevel)·{ |
723 | ················this.updateCapabilities(); | 721 | ················this.updateCapabilities(); |
724 | ················this.sendRssiChangeBroadcast(currentRssiDbm); | 722 | ················this.sendRssiChangeBroadcast(currentRssiDbm); |
725 | ············} | 723 | ············} |
726 | ············this.mLastSignalLevel·=·calculateSignalLevel; | 724 | ············this.mLastSignalLevel·=·calculateSignalLevel; |
727 | ········} | 725 | ········} |
728 | ········else·{ | 726 | ········else·{ |
729 | ············((WifiInfo)this.mWifiInfo).setRssi(rssi); | 727 | ············this.mWifiInfo.setRssi(rssi); |
730 | ············this.updateCapabilities(); | 728 | ············this.updateCapabilities(); |
731 | ········} | 729 | ········} |
732 | ········if·(txBitrateMbps·>·0)·{ | 730 | ········if·(txBitrateMbps·>·0)·{ |
733 | ············((WifiInfo)this.mWifiInfo).setLinkSpeed(txBitrateMbps); | 731 | ············this.mWifiInfo.setLinkSpeed(txBitrateMbps); |
734 | ············((WifiInfo)this.mWifiInfo).setTxLinkSpeedMbps(txBitrateMbps); | 732 | ············this.mWifiInfo.setTxLinkSpeedMbps(txBitrateMbps); |
735 | ········} | 733 | ········} |
736 | ········if·(rxBitrateMbps·>·0)·{ | 734 | ········if·(rxBitrateMbps·>·0)·{ |
737 | ············((WifiInfo)this.mWifiInfo).setRxLinkSpeedMbps(rxBitrateMbps); | 735 | ············this.mWifiInfo.setRxLinkSpeedMbps(rxBitrateMbps); |
738 | ········} | 736 | ········} |
739 | ········if·(associationFrequencyMHz·>·0)·{ | 737 | ········if·(associationFrequencyMHz·>·0)·{ |
740 | ············((WifiInfo)this.mWifiInfo).setFrequency(associationFrequencyMHz); | 738 | ············this.mWifiInfo.setFrequency(associationFrequencyMHz); |
741 | ········} | 739 | ········} |
742 | ········this.mWifiConfigManager.updateScanDetailCacheFromWifiInfo((WifiInfo)this.mWifiInfo); | 740 | ········this.mWifiConfigManager.updateScanDetailCacheFromWifiInfo((WifiInfo)this.mWifiInfo); |
743 | ········this.mWifiMetrics.handlePollResult((WifiInfo)this.mWifiInfo); | 741 | ········this.mWifiMetrics.handlePollResult((WifiInfo)this.mWifiInfo); |
744 | ····} | 742 | ····} |
745 | ···· | 743 | ···· |
746 | ····private·void·getAdditionalWifiServiceInterfaces()·{ | 744 | ····private·void·getAdditionalWifiServiceInterfaces()·{ |
747 | ········if·(this.mP2pSupported)·{ | 745 | ········if·(this.mP2pSupported)·{ |
Offset 754, 15 lines modified | Offset 752, 15 lines modified |
754 | ···· | 752 | ···· |
755 | ····private·NetworkCapabilities·getCapabilities(final·WifiConfiguration·wifiConfiguration)·{ | 753 | ····private·NetworkCapabilities·getCapabilities(final·WifiConfiguration·wifiConfiguration)·{ |
756 | ········final·NetworkCapabilities$Builder·networkCapabilities$Builder·=·new·NetworkCapabilities$Builder(this.mNetworkCapabilitiesFilter); | 754 | ········final·NetworkCapabilities$Builder·networkCapabilities$Builder·=·new·NetworkCapabilities$Builder(this.mNetworkCapabilitiesFilter); |
757 | ········networkCapabilities$Builder.setNetworkSpecifier((NetworkSpecifier)null); | 755 | ········networkCapabilities$Builder.setNetworkSpecifier((NetworkSpecifier)null); |
758 | ········if·(wifiConfiguration·==·null)·{ | 756 | ········if·(wifiConfiguration·==·null)·{ |
759 | ············return·networkCapabilities$Builder.build(); | 757 | ············return·networkCapabilities$Builder.build(); |
760 | ········} | 758 | ········} |
761 | ········final·boolean·trusted·=·((WifiInfo)this.mWifiInfo).isTrusted(); | 759 | ········final·boolean·trusted·=·this.mWifiInfo.isTrusted(); |
762 | ········final·int·n·=·14; | 760 | ········final·int·n·=·14; |
763 | ········if·(trusted)·{ | 761 | ········if·(trusted)·{ |
764 | ············networkCapabilities$Builder.addCapability(n); | 762 | ············networkCapabilities$Builder.addCapability(n); |
765 | ········} | 763 | ········} |
766 | ········else·{ | 764 | ········else·{ |
767 | ············networkCapabilities$Builder.removeCapability(n); | 765 | ············networkCapabilities$Builder.removeCapability(n); |
768 | ········} | 766 | ········} |
Offset 1019, 47 lines modified | Offset 1017, 47 lines modified |
1019 | ····················((StringBuilder)o).append(this.mWifiInfo); | 1017 | ····················((StringBuilder)o).append(this.mWifiInfo); |
1020 | ····················((StringBuilder)o).append("·got:·"); | 1018 | ····················((StringBuilder)o).append("·got:·"); |
1021 | ····················((StringBuilder)o).append(inet4Address); | 1019 | ····················((StringBuilder)o).append(inet4Address); |
1022 | ····················o·=·((StringBuilder)o).toString(); | 1020 | ····················o·=·((StringBuilder)o).toString(); |
1023 | ····················this.logd((String)o); | 1021 | ····················this.logd((String)o); |
1024 | ················} | 1022 | ················} |
1025 | ············} | 1023 | ············} |
1026 | ············((WifiInfo)this.mWifiInfo).setInetAddress((InetAddress)inet4Address); | 1024 | ············this.mWifiInfo.setInetAddress((InetAddress)inet4Address); |
1027 | ············o·=·this.getCurrentWifiConfiguration(); | 1025 | ············o·=·this.getCurrentWifiConfiguration(); |
1028 | ············if·(o·!=·null)·{ | 1026 | ············if·(o·!=·null)·{ |
1029 | ················((WifiInfo)this.mWifiInfo).setEphemeral(((WifiConfiguration)o).ephemeral); | 1027 | ················this.mWifiInfo.setEphemeral(((WifiConfiguration)o).ephemeral); |
1030 | ················((WifiInfo)this.mWifiInfo).setTrusted(((WifiConfiguration)o).trusted); | 1028 | ················this.mWifiInfo.setTrusted(((WifiConfiguration)o).trusted); |
1031 | ················this.mWifiConfigManager.updateRandomizedMacExpireTime((WifiConfiguration)o,·(long)mDhcpResultsParcelable.leaseDuration); | 1029 | ················this.mWifiConfigManager.updateRandomizedMacExpireTime((WifiConfiguration)o,·(long)mDhcpResultsParcelable.leaseDuration); |
1032 | ················this.mBssidBlocklistMonitor.handleDhcpProvisioningSuccess(this.mLastBssid,·((WifiInfo)this.mWifiInfo).getSSID()); | 1030 | ················this.mBssidBlocklistMonitor.handleDhcpProvisioningSuccess(this.mLastBssid,·((WifiInfo)this.mWifiInfo).getSSID()); |
1033 | ············} | 1031 | ············} |
1034 | ············final·String·vendorInfo·=·mDhcpResultsParcelable.vendorInfo; | 1032 | ············final·String·vendorInfo·=·mDhcpResultsParcelable.vendorInfo; |
1035 | ············if·(vendorInfo·!=·null·&&·vendorInfo.contains("ANDROID_METERED"))·{ | 1033 | ············if·(vendorInfo·!=·null·&&·vendorInfo.contains("ANDROID_METERED"))·{ |
1036 | ················final·ExtendedWifiInfo·mWifiInfo·=·this.mWifiInfo; | 1034 | ················final·ExtendedWifiInfo·mWifiInfo·=·this.mWifiInfo; |
1037 | ················final·boolean·meteredHint·=·true; | 1035 | ················final·boolean·meteredHint·=·true; |
1038 | ················((WifiInfo)mWifiInfo).setMeteredHint(meteredHint); | 1036 | ················mWifiInfo.setMeteredHint(meteredHint); |
1039 | ················this.mWifiMetrics.addMeteredStat((WifiConfiguration)o,·meteredHint); | 1037 | ················this.mWifiMetrics.addMeteredStat((WifiConfiguration)o,·meteredHint); |
1040 | ············} | 1038 | ············} |
1041 | ············else·{ | 1039 | ············else·{ |
1042 | ················this.mWifiMetrics.addMeteredStat((WifiConfiguration)o,·false); | 1040 | ················this.mWifiMetrics.addMeteredStat((WifiConfiguration)o,·false); |
1043 | ············} | 1041 | ············} |
1044 | ············this.updateCapabilities((WifiConfiguration)o); | 1042 | ············this.updateCapabilities((WifiConfiguration)o); |
1045 | ········} | 1043 | ········} |
1046 | ····} | 1044 | ····} |
1047 | ···· | 1045 | ···· |
1048 | ····private·void·handleIpConfigurationLost()·{ | 1046 | ····private·void·handleIpConfigurationLost()·{ |
1049 | ········((WifiInfo)this.mWifiInfo).setInetAddress((InetAddress)null); | 1047 | ········this.mWifiInfo.setInetAddress((InetAddress)null); |
1050 | ········((WifiInfo)this.mWifiInfo).setMeteredHint(false); | 1048 | ········this.mWifiInfo.setMeteredHint(false); |
1051 | ········this.mWifiConfigManager.updateNetworkSelectionStatus(this.mLastNetworkId,·3); | 1049 | ········this.mWifiConfigManager.updateNetworkSelectionStatus(this.mLastNetworkId,·3); |
1052 | ········this.mWifiNative.disconnect(this.mInterfaceName); | 1050 | ········this.mWifiNative.disconnect(this.mInterfaceName); |
1053 | ····} | 1051 | ····} |
1054 | ···· | 1052 | ···· |
1055 | ····private·void·handleIpReachabilityLost()·{ | 1053 | ····private·void·handleIpReachabilityLost()·{ |
1056 | ········this.mWifiScoreCard.noteIpReachabilityLost(this.mWifiInfo); | 1054 | ········this.mWifiScoreCard.noteIpReachabilityLost(this.mWifiInfo); |
1057 | ········((WifiInfo)this.mWifiInfo).setInetAddress((InetAddress)null); | 1055 | ········this.mWifiInfo.setInetAddress((InetAddress)null); |
1058 | ········((WifiInfo)this.mWifiInfo).setMeteredHint(false); | 1056 | ········this.mWifiInfo.setMeteredHint(false); |
1059 | ········this.mWifiNative.disconnect(this.mInterfaceName); | 1057 | ········this.mWifiNative.disconnect(this.mInterfaceName); |
1060 | ····} | 1058 | ····} |
1061 | ···· | 1059 | ···· |
1062 | ····private·boolean·handleL3MessagesWhenNotConnected(final·Message·message)·{ | 1060 | ····private·boolean·handleL3MessagesWhenNotConnected(final·Message·message)·{ |
1063 | ········if·(!this.mIpClientWithPreConnection)·{ | 1061 | ········if·(!this.mIpClientWithPreConnection)·{ |
1064 | ············return·false; | 1062 | ············return·false; |
1065 | ········} | 1063 | ········} |
Offset 1155, 15 lines modified | Offset 1153, 15 lines modified |
1155 | ········this.mWifiDataStall.reset(); | 1153 | ········this.mWifiDataStall.reset(); |
1156 | ········this.updateLayer2Information(); | 1154 | ········this.updateLayer2Information(); |
1157 | ····} | 1155 | ····} |
1158 | ···· | 1156 | ···· |
1159 | ····private·void·handleScreenStateChanged(final·boolean·b)·{ | 1157 | ····private·void·handleScreenStateChanged(final·boolean·b)·{ |
1160 | ········this.mScreenOn·=·b; | 1158 | ········this.mScreenOn·=·b; |
1161 | ········final·boolean·mVerboseLoggingEnabled·=·this.mVerboseLoggingEnabled; | 1159 | ········final·boolean·mVerboseLoggingEnabled·=·this.mVerboseLoggingEnabled; |
1162 | ········final·int·n·=·2130837535; | 1160 | ········final·int·n·=·2130837534; |
1163 | ········if·(mVerboseLoggingEnabled)·{ | 1161 | ········if·(mVerboseLoggingEnabled)·{ |
1164 | ············final·StringBuilder·sb·=·new·StringBuilder(); | 1162 | ············final·StringBuilder·sb·=·new·StringBuilder(); |
1165 | ············sb.append("·handleScreenStateChanged·Enter:·screenOn="); | 1163 | ············sb.append("·handleScreenStateChanged·Enter:·screenOn="); |
1166 | ············sb.append(b); | 1164 | ············sb.append(b); |
1167 | ············sb.append("·mSuspendOptimizationsEnabled="); | 1165 | ············sb.append("·mSuspendOptimizationsEnabled="); |
1168 | ············sb.append(this.mContext.getResources().getBoolean(n)); | 1166 | ············sb.append(this.mContext.getResources().getBoolean(n)); |
1169 | ············sb.append("·state·"); | 1167 | ············sb.append("·state·"); |
Offset 1219, 50 lines modified | Offset 1217, 50 lines modified |
1219 | ········this.mWifiScoreCard.noteIpConfiguration(this.mWifiInfo); | 1217 | ········this.mWifiScoreCard.noteIpConfiguration(this.mWifiInfo); |
1220 | ····} | 1218 | ····} |
1221 | ···· | 1219 | ···· |
1222 | ····private·SupplicantState·handleSupplicantStateChange(final·Message·message)·{ | 1220 | ····private·SupplicantState·handleSupplicantStateChange(final·Message·message)·{ |
1223 | ········final·StateChangeResult·stateChangeResult·=·(StateChangeResult)message.obj; | 1221 | ········final·StateChangeResult·stateChangeResult·=·(StateChangeResult)message.obj; |
1224 | ········final·SupplicantState·state·=·stateChangeResult.state; | 1222 | ········final·SupplicantState·state·=·stateChangeResult.state; |
1225 | ········this.mWifiScoreCard.noteSupplicantStateChanging(this.mWifiInfo,·state); | 1223 | ········this.mWifiScoreCard.noteSupplicantStateChanging(this.mWifiInfo,·state); |
1226 | ········((WifiInfo)this.mWifiInfo).setSupplicantState(state); | 1224 | ········this.mWifiInfo.setSupplicantState(state); |
1227 | ········if·(SupplicantState.isConnecting(state))·{ | 1225 | ········if·(SupplicantState.isConnecting(state))·{ |
1228 | ············((WifiInfo)this.mWifiInfo).setNetworkId(stateChangeResult.networkId); | 1226 | ············this.mWifiInfo.setNetworkId(stateChangeResult.networkId); |
1229 | ············((WifiInfo)this.mWifiInfo).setBSSID(stateChangeResult.BSSID); | 1227 | ············this.mWifiInfo.setBSSID(stateChangeResult.BSSID); |
1230 | ············((WifiInfo)this.mWifiInfo).setSSID(stateChangeResult.wifiSsid); | 1228 | ············this.mWifiInfo.setSSID(stateChangeResult.wifiSsid); |
1231 | ············if·(state·==·SupplicantState.ASSOCIATED)·{ | 1229 | ············if·(state·==·SupplicantState.ASSOCIATED)·{ |
1232 | ················this.updateWifiInfoAfterAssociation(); | 1230 | ················this.updateWifiInfoAfterAssociation(); |
1233 | ············} | 1231 | ············} |
1234 | ········} | 1232 | ········} |
1235 | ········else·{ | 1233 | ········else·{ |
1236 | ············((WifiInfo)this.mWifiInfo).setNetworkId(-1); | 1234 | ············this.mWifiInfo.setNetworkId(-1); |
1237 | ············((WifiInfo)this.mWifiInfo).setBSSID((String)null); | 1235 | ············this.mWifiInfo.setBSSID((String)null); |
1238 | ············((WifiInfo)this.mWifiInfo).setSSID((WifiSsid)null); | 1236 | ············this.mWifiInfo.setSSID((WifiSsid)null); |
1239 | ············((WifiInfo)this.mWifiInfo).setWifiStandard(0); | 1237 | ············this.mWifiInfo.setWifiStandard(0); |
1240 | ········} | 1238 | ········} |
1241 | ········this.updateLayer2Information(); | 1239 | ········this.updateLayer2Information(); |
1242 | ········this.updateCapabilities(); | 1240 | ········this.updateCapabilities(); |
1243 | ········WifiConfiguration·wifiConfiguration·=·this.getCurrentWifiConfiguration(); | 1241 | ········WifiConfiguration·wifiConfiguration·=·this.getCurrentWifiConfiguration(); |
1244 | ········if·(wifiConfiguration·==·null)·{ | 1242 | ········if·(wifiConfiguration·==·null)·{ |
1245 | ············wifiConfiguration·=·this.getTargetWifiConfiguration(); | 1243 | ············wifiConfiguration·=·this.getTargetWifiConfiguration(); |
1246 | ········} | 1244 | ········} |
1247 | ········if·(wifiConfiguration·!=·null·&&·wifiConfiguration.networkId·==·((WifiInfo)this.mWifiInfo).getNetworkId())·{ | 1245 | ········if·(wifiConfiguration·!=·null·&&·wifiConfiguration.networkId·==·((WifiInfo)this.mWifiInfo).getNetworkId())·{ |
1248 | ············((WifiInfo)this.mWifiInfo).setEphemeral(wifiConfiguration.ephemeral); | 1246 | ············this.mWifiInfo.setEphemeral(wifiConfiguration.ephemeral); |
1249 | ············((WifiInfo)this.mWifiInfo).setTrusted(wifiConfiguration.trusted); | 1247 | ············this.mWifiInfo.setTrusted(wifiConfiguration.trusted); |
1250 | ············((WifiInfo)this.mWifiInfo).setOsuAp(wifiConfiguration.osu); | 1248 | ············this.mWifiInfo.setOsuAp(wifiConfiguration.osu); |
1251 | ············if·(wifiConfiguration.fromWifiNetworkSpecifier·||·wifiConfiguration.fromWifiNetworkSuggestion)·{ | 1249 | ············if·(wifiConfiguration.fromWifiNetworkSpecifier·||·wifiConfiguration.fromWifiNetworkSuggestion)·{ |
1252 | ················((WifiInfo)this.mWifiInfo).setRequestingPackageName(wifiConfiguration.creatorName); | 1250 | ················this.mWifiInfo.setRequestingPackageName(wifiConfiguration.creatorName); |
1253 | ············} | 1251 | ············} |
1254 | ············final·ScanDetailCache·scanDetailCacheForNetwork·=·this.mWifiConfigManager.getScanDetailCacheForNetwork(wifiConfiguration.networkId); | 1252 | ············final·ScanDetailCache·scanDetailCacheForNetwork·=·this.mWifiConfigManager.getScanDetailCacheForNetwork(wifiConfiguration.networkId); |
1255 | ············if·(scanDetailCacheForNetwork·!=·null)·{ | 1253 | ············if·(scanDetailCacheForNetwork·!=·null)·{ |
1256 | ················final·ScanDetail·scanDetail·=·scanDetailCacheForNetwork.getScanDetail(stateChangeResult.BSSID); | 1254 | ················final·ScanDetail·scanDetail·=·scanDetailCacheForNetwork.getScanDetail(stateChangeResult.BSSID); |
1257 | ················if·(scanDetail·!=·null)·{ | 1255 | ················if·(scanDetail·!=·null)·{ |
1258 | ····················((WifiInfo)this.mWifiInfo).setFrequency(scanDetail.getScanResult().frequency); | 1256 | ····················this.mWifiInfo.setFrequency(scanDetail.getScanResult().frequency); |
1259 | ····················final·NetworkDetail·networkDetail·=·scanDetail.getNetworkDetail(); | 1257 | ····················final·NetworkDetail·networkDetail·=·scanDetail.getNetworkDetail(); |
1260 | ····················if·(networkDetail·!=·null·&&·networkDetail.getAnt()·==·NetworkDetail$Ant.ChargeablePublic)·{ | 1258 | ····················if·(networkDetail·!=·null·&&·networkDetail.getAnt()·==·NetworkDetail$Ant.ChargeablePublic)·{ |
1261 | ························((WifiInfo)this.mWifiInfo).setMeteredHint(true); | 1259 | ························this.mWifiInfo.setMeteredHint(true); |
1262 | ····················} | 1260 | ····················} |
1263 | ················} | 1261 | ················} |
1264 | ············} | 1262 | ············} |
1265 | ········} | 1263 | ········} |
1266 | ········this.mWifiScoreCard.noteSupplicantStateChanged(this.mWifiInfo); | 1264 | ········this.mWifiScoreCard.noteSupplicantStateChanged(this.mWifiInfo); |
1267 | ········return·state; | 1265 | ········return·state; |
1268 | ····} | 1266 | ····} |
Offset 1600, 15 lines modified | Offset 1598, 15 lines modified |
1600 | ················final·byte[]·mRssiRanges·=·this.mRssiRanges; | 1598 | ················final·byte[]·mRssiRanges·=·this.mRssiRanges; |
1601 | ················if·(n2·>=·mRssiRanges.length)·{ | 1599 | ················if·(n2·>=·mRssiRanges.length)·{ |
1602 | ····················break; | 1600 | ····················break; |
1603 | ················} | 1601 | ················} |
1604 | ················if·(i·<·mRssiRanges[n2])·{ | 1602 | ················if·(i·<·mRssiRanges[n2])·{ |
1605 | ····················final·byte·j·=·mRssiRanges[n2]; | 1603 | ····················final·byte·j·=·mRssiRanges[n2]; |
1606 | ····················final·byte·k·=·mRssiRanges[n2·-·1]; | 1604 | ····················final·byte·k·=·mRssiRanges[n2·-·1]; |
1607 | ····················((WifiInfo)this.mWifiInfo).setRssi((int)i); | 1605 | ····················this.mWifiInfo.setRssi((int)i); |
1608 | ····················this.updateCapabilities(); | 1606 | ····················this.updateCapabilities(); |
1609 | ····················final·int·startRssiMonitoringOffload·=·this.startRssiMonitoringOffload(j,·k,·wifiNative$WifiRssiEventHandler); | 1607 | ····················final·int·startRssiMonitoringOffload·=·this.startRssiMonitoringOffload(j,·k,·wifiNative$WifiRssiEventHandler); |
1610 | ····················final·StringBuilder·sb·=·new·StringBuilder(); | 1608 | ····················final·StringBuilder·sb·=·new·StringBuilder(); |
1611 | ····················sb.append("Re-program·RSSI·thresholds·for·"); | 1609 | ····················sb.append("Re-program·RSSI·thresholds·for·"); |
1612 | ····················sb.append(this.getWhatToString(n)); | 1610 | ····················sb.append(this.getWhatToString(n)); |
1613 | ····················sb.append(":·["); | 1611 | ····················sb.append(":·["); |
1614 | ····················sb.append(k); | 1612 | ····················sb.append(k); |
Offset 1727, 20 lines modified | Offset 1725, 25 lines modified |
1727 | ············anObject·=·this.getTargetSsid(); | 1725 | ············anObject·=·this.getTargetSsid(); |
1728 | ········} | 1726 | ········} |
1729 | ········final·int·n3·=·-1; | 1727 | ········final·int·n3·=·-1; |
1730 | ········int·n4·=·1; | 1728 | ········int·n4·=·1; |
1731 | ········if·(n·!=·n4)·{ | 1729 | ········if·(n·!=·n4)·{ |
1732 | ············final·int·convertToBssidBlocklistMonitorFailureReason·=·this.convertToBssidBlocklistMonitorFailureReason(n,·n2); | 1730 | ············final·int·convertToBssidBlocklistMonitorFailureReason·=·this.convertToBssidBlocklistMonitorFailureReason(n,·n2); |
1733 | ············if·(convertToBssidBlocklistMonitorFailureReason·!=·n3)·{ | 1731 | ············if·(convertToBssidBlocklistMonitorFailureReason·!=·n3)·{ |
| 1732 | ················int·networkId; |
1734 | ················if·(wifiConfiguration·!=·null)·{ | 1733 | ················if·(wifiConfiguration·==·null)·{ |
1735 | ····················final·int·networkId·=·wifiConfiguration.networkId; | 1734 | ····················networkId·=·n3; |
1736 | ················} | 1735 | ················} |
| 1736 | ················else·{ |
| 1737 | ····················networkId·=·wifiConfiguration.networkId; |
| 1738 | ················} |
| 1739 | ················final·int·scanRssi·=·this.mWifiConfigManager.findScanRssi(networkId,·this.mWifiHealthMonitor.getScanRssiValidTimeMs()); |
1737 | ················this.mWifiScoreCard.noteConnectionFailure(this.mWifiInfo,·this.mLastScanRssi,·anObject,·convertToBssidBlocklistMonitorFailureReason); | 1740 | ················this.mWifiScoreCard.noteConnectionFailure(this.mWifiInfo,·scanRssi,·anObject,·convertToBssidBlocklistMonitorFailureReason); |
1738 | ················this.checkAbnormalConnectionFailureAndTakeBugReport(anObject); | 1741 | ················this.checkAbnormalConnectionFailureAndTakeBugReport(anObject); |
1739 | ················this.mBssidBlocklistMonitor.handleBssidConnectionFailure(s,·anObject,·convertToBssidBlocklistMonitorFailureReason,·this.mLastScanRssi); | 1742 | ················this.mBssidBlocklistMonitor.handleBssidConnectionFailure(s,·anObject,·convertToBssidBlocklistMonitorFailureReason,·scanRssi); |
1740 | ············} | 1743 | ············} |
1741 | ········} | 1744 | ········} |
1742 | ········final·int·n5·=·3; | 1745 | ········final·int·n5·=·3; |
1743 | ········if·(wifiConfiguration·!=·null·&&·wifiConfiguration.carrierId·!=·n3)·{ | 1746 | ········if·(wifiConfiguration·!=·null·&&·wifiConfiguration.carrierId·!=·n3)·{ |
1744 | ············if·(n·==·n4)·{ | 1747 | ············if·(n·==·n4)·{ |
1745 | ················this.mWifiMetrics.incrementNumOfCarrierWifiConnectionSuccess(); | 1748 | ················this.mWifiMetrics.incrementNumOfCarrierWifiConnectionSuccess(); |
1746 | ············} | 1749 | ············} |
Offset 1957, 26 lines modified | Offset 1960, 22 lines modified |
1957 | ············sb.append("·hidden="); | 1960 | ············sb.append("·hidden="); |
1958 | ············sb.append(mIsAutoRoaming); | 1961 | ············sb.append(mIsAutoRoaming); |
1959 | ············this.log(sb.toString()); | 1962 | ············this.log(sb.toString()); |
1960 | ········} | 1963 | ········} |
1961 | ········if·(!mIsAutoRoaming)·{ | 1964 | ········if·(!mIsAutoRoaming)·{ |
1962 | ············if·(networkInfo$DetailedState·!=·this.mNetworkAgentState)·{ | 1965 | ············if·(networkInfo$DetailedState·!=·this.mNetworkAgentState)·{ |
1963 | ················this.mNetworkAgentState·=·networkInfo$DetailedState; | 1966 | ················this.mNetworkAgentState·=·networkInfo$DetailedState; |
1964 | ················this.sendNetworkChangeBroadcastWithCurrentState(); | 1967 | ················final·Intent·intent·=·new·Intent("android.net.wifi.STATE_CHANGE"); |
| 1968 | ················intent.addFlags(67108864); |
| 1969 | ················intent.putExtra("networkInfo",·(Parcelable)this.makeNetworkInfo()); |
| 1970 | ················this.mContext.sendStickyBroadcastAsUser(intent,·UserHandle.ALL); |
1965 | ············} | 1971 | ············} |
1966 | ········} | 1972 | ········} |
1967 | ····} | 1973 | ····} |
1968 | ···· | 1974 | ···· |
1969 | ····private·void·sendNetworkChangeBroadcastWithCurrentState()·{ | |
1970 | ········final·Intent·intent·=·new·Intent("android.net.wifi.STATE_CHANGE"); | |
1971 | ········intent.addFlags(67108864); | |
1972 | ········intent.putExtra("networkInfo",·(Parcelable)this.makeNetworkInfo()); | |
1973 | ········this.mContext.sendStickyBroadcastAsUser(intent,·UserHandle.ALL); | |
1974 | ····} | |
1975 | ···· | |
1976 | ····private·void·sendRssiChangeBroadcast(final·int·n)·{ | 1975 | ····private·void·sendRssiChangeBroadcast(final·int·n)·{ |
1977 | ········this.mBatteryStatsManager.reportWifiRssiChanged(n); | 1976 | ········this.mBatteryStatsManager.reportWifiRssiChanged(n); |
1978 | ········WifiStatsLog.write(38,·RssiUtil.calculateSignalLevel(this.mContext,·n)); | 1977 | ········WifiStatsLog.write(38,·RssiUtil.calculateSignalLevel(this.mContext,·n)); |
1979 | ········final·Intent·intent·=·new·Intent("android.net.wifi.RSSI_CHANGED"); | 1978 | ········final·Intent·intent·=·new·Intent("android.net.wifi.RSSI_CHANGED"); |
1980 | ········intent.addFlags(67108864); | 1979 | ········intent.addFlags(67108864); |
1981 | ········intent.putExtra("newRssi",·n); | 1980 | ········intent.putExtra("newRssi",·n); |
1982 | ········this.mContext.sendBroadcastAsUser(intent,·UserHandle.ALL,·"android.permission.ACCESS_WIFI_STATE"); | 1981 | ········this.mContext.sendBroadcastAsUser(intent,·UserHandle.ALL,·"android.permission.ACCESS_WIFI_STATE"); |
Offset 2055, 15 lines modified | Offset 2054, 15 lines modified |
2055 | ····private·void·setSuspendOptimizationsNative(int·mSuspendOptNeedsDisabled,·final·boolean·b)·{ | 2054 | ····private·void·setSuspendOptimizationsNative(int·mSuspendOptNeedsDisabled,·final·boolean·b)·{ |
2056 | ········final·boolean·mVerboseLoggingEnabled·=·this.mVerboseLoggingEnabled; | 2055 | ········final·boolean·mVerboseLoggingEnabled·=·this.mVerboseLoggingEnabled; |
2057 | ········final·int·n·=·5; | 2056 | ········final·int·n·=·5; |
2058 | ········final·int·n2·=·4; | 2057 | ········final·int·n2·=·4; |
2059 | ········final·int·n3·=·3; | 2058 | ········final·int·n3·=·3; |
2060 | ········final·int·n4·=·2; | 2059 | ········final·int·n4·=·2; |
2061 | ········final·String·s·=·"·stack:"; | 2060 | ········final·String·s·=·"·stack:"; |
2062 | ········final·int·n5·=·2130837535; | 2061 | ········final·int·n5·=·2130837534; |
2063 | ········final·String·s2·=·"·"; | 2062 | ········final·String·s2·=·"·"; |
2064 | ········final·String·s3·=·"·-·"; | 2063 | ········final·String·s3·=·"·-·"; |
2065 | ········if·(mVerboseLoggingEnabled)·{ | 2064 | ········if·(mVerboseLoggingEnabled)·{ |
2066 | ············final·StringBuilder·sb·=·new·StringBuilder(); | 2065 | ············final·StringBuilder·sb·=·new·StringBuilder(); |
2067 | ············sb.append("setSuspendOptimizationsNative:·"); | 2066 | ············sb.append("setSuspendOptimizationsNative:·"); |
2068 | ············sb.append(mSuspendOptNeedsDisabled); | 2067 | ············sb.append(mSuspendOptNeedsDisabled); |
2069 | ············sb.append(s2); | 2068 | ············sb.append(s2); |
Offset 2162, 27 lines modified | Offset 2161, 27 lines modified |
2162 | ········this.mLastNetworkId·=·mLastSignalLevel; | 2161 | ········this.mLastNetworkId·=·mLastSignalLevel; |
2163 | ········this.mLastSubId·=·mLastSignalLevel; | 2162 | ········this.mLastSubId·=·mLastSignalLevel; |
2164 | ········this.mLastSimBasedConnectionCarrierName·=·null; | 2163 | ········this.mLastSimBasedConnectionCarrierName·=·null; |
2165 | ········this.mLastSignalLevel·=·mLastSignalLevel; | 2164 | ········this.mLastSignalLevel·=·mLastSignalLevel; |
2166 | ········if·(this.isConnectedMacRandomizationEnabled())·{ | 2165 | ········if·(this.isConnectedMacRandomizationEnabled())·{ |
2167 | ············this.mWifiNative.setMacAddress(this.mInterfaceName,·MacAddressUtils.createRandomUnicastAddress()); | 2166 | ············this.mWifiNative.setMacAddress(this.mInterfaceName,·MacAddressUtils.createRandomUnicastAddress()); |
2168 | ········} | 2167 | ········} |
2169 | ········((WifiInfo)this.mWifiInfo).setMacAddress(this.mWifiNative.getMacAddress(this.mInterfaceName)); | 2168 | ········this.mWifiInfo.setMacAddress(this.mWifiNative.getMacAddress(this.mInterfaceName)); |
2170 | ········this.sendSupplicantConnectionChangedBroadcast(b); | 2169 | ········this.sendSupplicantConnectionChangedBroadcast(b); |
2171 | ········this.mWifiNative.setExternalSim(this.mInterfaceName,·b); | 2170 | ········this.mWifiNative.setExternalSim(this.mInterfaceName,·b); |
2172 | ········this.mCountryCode.setReadyForChange(b); | 2171 | ········this.mCountryCode.setReadyForChange(b); |
2173 | ········this.mWifiDiagnostics.startPktFateMonitoring(this.mInterfaceName); | 2172 | ········this.mWifiDiagnostics.startPktFateMonitoring(this.mInterfaceName); |
2174 | ········this.mWifiDiagnostics.startLogging(this.mInterfaceName); | 2173 | ········this.mWifiDiagnostics.startLogging(this.mInterfaceName); |
2175 | ········this.mMboOceController.enable(); | 2174 | ········this.mMboOceController.enable(); |
2176 | ········this.mWifiDataStall.enablePhoneStateListener(); | 2175 | ········this.mWifiDataStall.enablePhoneStateListener(); |
2177 | ········this.mWifiNative.setBluetoothCoexistenceScanMode(this.mInterfaceName,·this.mBluetoothConnectionActive); | 2176 | ········this.mWifiNative.setBluetoothCoexistenceScanMode(this.mInterfaceName,·this.mBluetoothConnectionActive); |
2178 | ········this.sendNetworkChangeBroadcast(NetworkInfo$DetailedState.DISCONNECTED); | 2177 | ········this.sendNetworkChangeBroadcast(NetworkInfo$DetailedState.DISCONNECTED); |
2179 | ········this.mWifiNative.stopFilteringMulticastV4Packets(this.mInterfaceName); | 2178 | ········this.mWifiNative.stopFilteringMulticastV4Packets(this.mInterfaceName); |
2180 | ········this.mWifiNative.stopFilteringMulticastV6Packets(this.mInterfaceName); | 2179 | ········this.mWifiNative.stopFilteringMulticastV6Packets(this.mInterfaceName); |
2181 | ········this.mWifiNative.setSuspendOptimizations(this.mInterfaceName,·this.mSuspendOptNeedsDisabled·==·0·&&·this.mContext.getResources().getBoolean(2130837535)·&&·b); | 2180 | ········this.mWifiNative.setSuspendOptimizations(this.mInterfaceName,·this.mSuspendOptNeedsDisabled·==·0·&&·this.mContext.getResources().getBoolean(2130837534)·&&·b); |
2182 | ········this.setPowerSave(b); | 2181 | ········this.setPowerSave(b); |
2183 | ········this.mWifiNative.enableStaAutoReconnect(this.mInterfaceName,·false); | 2182 | ········this.mWifiNative.enableStaAutoReconnect(this.mInterfaceName,·false); |
2184 | ········this.mWifiNative.setConcurrencyPriority(b); | 2183 | ········this.mWifiNative.setConcurrencyPriority(b); |
2185 | ····} | 2184 | ····} |
2186 | ···· | 2185 | ···· |
2187 | ····private·boolean·startIpClient(final·WifiConfiguration·wifiConfiguration,·final·boolean·b)·{ | 2186 | ····private·boolean·startIpClient(final·WifiConfiguration·wifiConfiguration,·final·boolean·b)·{ |
2188 | ········if·(this.mIpClient·==·null)·{ | 2187 | ········if·(this.mIpClient·==·null)·{ |
Offset 2544, 17 lines modified | Offset 2543, 17 lines modified |
2544 | ····} | 2543 | ····} |
2545 | ···· | 2544 | ···· |
2546 | ····private·void·updateWifiInfoAfterAssociation()·{ | 2545 | ····private·void·updateWifiInfoAfterAssociation()·{ |
2547 | ········final·WifiNative$ConnectionCapabilities·connectionCapabilities·=·this.mWifiNative.getConnectionCapabilities(this.mInterfaceName); | 2546 | ········final·WifiNative$ConnectionCapabilities·connectionCapabilities·=·this.mWifiNative.getConnectionCapabilities(this.mInterfaceName); |
2548 | ········final·ThroughputPredictor·throughputPredictor·=·this.mWifiInjector.getThroughputPredictor(); | 2547 | ········final·ThroughputPredictor·throughputPredictor·=·this.mWifiInjector.getThroughputPredictor(); |
2549 | ········final·int·predictMaxTxThroughput·=·throughputPredictor.predictMaxTxThroughput(connectionCapabilities); | 2548 | ········final·int·predictMaxTxThroughput·=·throughputPredictor.predictMaxTxThroughput(connectionCapabilities); |
2550 | ········final·int·predictMaxRxThroughput·=·throughputPredictor.predictMaxRxThroughput(connectionCapabilities); | 2549 | ········final·int·predictMaxRxThroughput·=·throughputPredictor.predictMaxRxThroughput(connectionCapabilities); |
2551 | ········((WifiInfo)this.mWifiInfo).setWifiStandard(connectionCapabilities.wifiStandard); | 2550 | ········this.mWifiInfo.setWifiStandard(connectionCapabilities.wifiStandard); |
2552 | ········((WifiInfo)this.mWifiInfo).setMaxSupportedTxLinkSpeedMbps(predictMaxTxThroughput); | 2551 | ········this.mWifiInfo.setMaxSupportedTxLinkSpeedMbps(predictMaxTxThroughput); |
2553 | ········((WifiInfo)this.mWifiInfo).setMaxSupportedRxLinkSpeedMbps(predictMaxRxThroughput); | 2552 | ········this.mWifiInfo.setMaxSupportedRxLinkSpeedMbps(predictMaxRxThroughput); |
2554 | ········this.mWifiMetrics.setConnectionMaxSupportedLinkSpeedMbps(predictMaxTxThroughput,·predictMaxRxThroughput); | 2553 | ········this.mWifiMetrics.setConnectionMaxSupportedLinkSpeedMbps(predictMaxTxThroughput,·predictMaxRxThroughput); |
2555 | ········this.mWifiDataStall.setConnectionCapabilities(connectionCapabilities); | 2554 | ········this.mWifiDataStall.setConnectionCapabilities(connectionCapabilities); |
2556 | ········if·(this.mVerboseLoggingEnabled)·{ | 2555 | ········if·(this.mVerboseLoggingEnabled)·{ |
2557 | ············final·StringBuilder·sb·=·new·StringBuilder(); | 2556 | ············final·StringBuilder·sb·=·new·StringBuilder(); |
2558 | ············sb.append("WifiStandard:·"); | 2557 | ············sb.append("WifiStandard:·"); |
2559 | ············sb.append(connectionCapabilities.wifiStandard); | 2558 | ············sb.append(connectionCapabilities.wifiStandard); |
2560 | ············sb.append("·maxTxSpeed:·"); | 2559 | ············sb.append("·maxTxSpeed:·"); |
Offset 2724, 15 lines modified | Offset 2723, 15 lines modified |
2724 | ········printWriter.println(sb8.toString()); | 2723 | ········printWriter.println(sb8.toString()); |
2725 | ········final·StringBuilder·sb9·=·new·StringBuilder(); | 2724 | ········final·StringBuilder·sb9·=·new·StringBuilder(); |
2726 | ········sb9.append("mOperationalMode·"); | 2725 | ········sb9.append("mOperationalMode·"); |
2727 | ········sb9.append(this.mOperationalMode); | 2726 | ········sb9.append(this.mOperationalMode); |
2728 | ········printWriter.println(sb9.toString()); | 2727 | ········printWriter.println(sb9.toString()); |
2729 | ········final·StringBuilder·sb10·=·new·StringBuilder(); | 2728 | ········final·StringBuilder·sb10·=·new·StringBuilder(); |
2730 | ········sb10.append("mSuspendOptimizationsEnabled·"); | 2729 | ········sb10.append("mSuspendOptimizationsEnabled·"); |
2731 | ········sb10.append(this.mContext.getResources().getBoolean(2130837535)); | 2730 | ········sb10.append(this.mContext.getResources().getBoolean(2130837534)); |
2732 | ········printWriter.println(sb10.toString()); | 2731 | ········printWriter.println(sb10.toString()); |
2733 | ········final·StringBuilder·sb11·=·new·StringBuilder(); | 2732 | ········final·StringBuilder·sb11·=·new·StringBuilder(); |
2734 | ········sb11.append("mSuspendOptNeedsDisabled·"); | 2733 | ········sb11.append("mSuspendOptNeedsDisabled·"); |
2735 | ········sb11.append(this.mSuspendOptNeedsDisabled); | 2734 | ········sb11.append(this.mSuspendOptNeedsDisabled); |
2736 | ········printWriter.println(sb11.toString()); | 2735 | ········printWriter.println(sb11.toString()); |
2737 | ········this.mCountryCode.dump(fileDescriptor,·printWriter,·array); | 2736 | ········this.mCountryCode.dump(fileDescriptor,·printWriter,·array); |
2738 | ········this.mNetworkFactory.dump(fileDescriptor,·printWriter,·array); | 2737 | ········this.mNetworkFactory.dump(fileDescriptor,·printWriter,·array); |
Offset 3086, 20 lines modified | Offset 3085, 20 lines modified |
3086 | ············} | 3085 | ············} |
3087 | ············case·131327:·{ | 3086 | ············case·131327:·{ |
3088 | ················sb.append(str4); | 3087 | ················sb.append(str4); |
3089 | ················sb.append(Integer.toString(message.arg1)); | 3088 | ················sb.append(Integer.toString(message.arg1)); |
3090 | ················sb.append(str4); | 3089 | ················sb.append(str4); |
3091 | ················sb.append(Integer.toString(message.arg2)); | 3090 | ················sb.append(Integer.toString(message.arg2)); |
3092 | ················sb.append("·txpkts="); | 3091 | ················sb.append("·txpkts="); |
3093 | ················sb.append(((WifiInfo)this.mWifiInfo).txSuccess); | 3092 | ················sb.append(this.mWifiInfo.txSuccess); |
3094 | ················final·String·s7·=·","; | 3093 | ················final·String·s7·=·","; |
3095 | ················sb.append(s7); | 3094 | ················sb.append(s7); |
3096 | ················sb.append(((WifiInfo)this.mWifiInfo).txBad); | 3095 | ················sb.append(this.mWifiInfo.txBad); |
3097 | ················sb.append(s7); | 3096 | ················sb.append(s7); |
3098 | ················sb.append(((WifiInfo)this.mWifiInfo).txRetries); | 3097 | ················sb.append(this.mWifiInfo.txRetries); |
3099 | ················break; | 3098 | ················break; |
3100 | ············} | 3099 | ············} |
3101 | ············case·131275:·{ | 3100 | ············case·131275:·{ |
3102 | ················final·StringBuilder·sb5·=·new·StringBuilder(); | 3101 | ················final·StringBuilder·sb5·=·new·StringBuilder(); |
3103 | ················sb5.append("·enabled="); | 3102 | ················sb5.append("·enabled="); |
3104 | ················sb5.append((boolean)(Boolean)message.obj); | 3103 | ················sb5.append((boolean)(Boolean)message.obj); |
3105 | ················sb.append(sb5.toString()); | 3104 | ················sb.append(sb5.toString()); |
Offset 3144, 16 lines modified | Offset 3143, 15 lines modified |
3144 | ····················final·Long·value·=·this.mClock.getWallClockMillis(); | 3143 | ····················final·Long·value·=·this.mClock.getWallClockMillis(); |
3145 | ····················sb.append("·bssid="); | 3144 | ····················sb.append("·bssid="); |
3146 | ····················sb.append(scanResult.BSSID); | 3145 | ····················sb.append(scanResult.BSSID); |
3147 | ····················sb.append(s6); | 3146 | ····················sb.append(s6); |
3148 | ····················sb.append(scanResult.level); | 3147 | ····················sb.append(scanResult.level); |
3149 | ····················sb.append(s2); | 3148 | ····················sb.append(s2); |
3150 | ····················sb.append(scanResult.frequency); | 3149 | ····················sb.append(scanResult.frequency); |
3151 | ····················final·long·seen·=·scanResult.seen; | |
3152 | ····················if·(seen·>·0L·&&·seen·<·value)·{ | 3150 | ····················if·(scanResult.seen·>·0L·&&·scanResult.seen·<·value)·{ |
3153 | ························sb.append("·seen="); | 3151 | ························sb.append("·seen="); |
3154 | ························sb.append((long)value·-·scanResult.seen); | 3152 | ························sb.append((long)value·-·scanResult.seen); |
3155 | ····················} | 3153 | ····················} |
3156 | ····················else·{ | 3154 | ····················else·{ |
3157 | ························sb.append("·!seen="); | 3155 | ························sb.append("·!seen="); |
3158 | ························sb.append(scanResult.seen); | 3156 | ························sb.append(scanResult.seen); |
3159 | ····················} | 3157 | ····················} |
Offset 3312, 15 lines modified | Offset 3310, 15 lines modified |
3312 | ········return·this.mOperationalMode; | 3310 | ········return·this.mOperationalMode; |
3313 | ····} | 3311 | ····} |
3314 | ···· | 3312 | ···· |
3315 | ····int·getPollRssiIntervalMsecs()·{ | 3313 | ····int·getPollRssiIntervalMsecs()·{ |
3316 | ········if·(this.mPollRssiIntervalMsecs·>·0)·{ | 3314 | ········if·(this.mPollRssiIntervalMsecs·>·0)·{ |
3317 | ············return·this.mPollRssiIntervalMsecs; | 3315 | ············return·this.mPollRssiIntervalMsecs; |
3318 | ········} | 3316 | ········} |
3319 | ········return·Math.min(this.mContext.getResources().getInteger(2131034160),·6000); | 3317 | ········return·Math.min(this.mContext.getResources().getInteger(2131034157),·6000); |
3320 | ····} | 3318 | ····} |
3321 | ···· | 3319 | ···· |
3322 | ····protected·String·getWhatToString(final·int·i)·{ | 3320 | ····protected·String·getWhatToString(final·int·i)·{ |
3323 | ········final·String·s·=·(String)ClientModeImpl.sGetWhatToString.get(i); | 3321 | ········final·String·s·=·(String)ClientModeImpl.sGetWhatToString.get(i); |
3324 | ········if·(s·!=·null)·{ | 3322 | ········if·(s·!=·null)·{ |
3325 | ············return·s; | 3323 | ············return·s; |
3326 | ········} | 3324 | ········} |
Offset 3567, 15 lines modified | Offset 3565, 15 lines modified |
3567 | ····} | 3565 | ····} |
3568 | ···· | 3566 | ···· |
3569 | ····public·boolean·isConnected()·{ | 3567 | ····public·boolean·isConnected()·{ |
3570 | ········return·this.getCurrentState()·==·this.mConnectedState; | 3568 | ········return·this.getCurrentState()·==·this.mConnectedState; |
3571 | ····} | 3569 | ····} |
3572 | ···· | 3570 | ···· |
3573 | ····public·boolean·isConnectedMacRandomizationEnabled()·{ | 3571 | ····public·boolean·isConnectedMacRandomizationEnabled()·{ |
3574 | ········return·this.mContext.getResources().getBoolean(2130837538); | 3572 | ········return·this.mContext.getResources().getBoolean(2130837537); |
3575 | ····} | 3573 | ····} |
3576 | ···· | 3574 | ···· |
3577 | ····public·boolean·isDisconnected()·{ | 3575 | ····public·boolean·isDisconnected()·{ |
3578 | ········return·this.getCurrentState()·==·this.mDisconnectedState; | 3576 | ········return·this.getCurrentState()·==·this.mDisconnectedState; |
3579 | ····} | 3577 | ····} |
3580 | ···· | 3578 | ···· |
3581 | ····public·boolean·isSupplicantTransientState()·{ | 3579 | ····public·boolean·isSupplicantTransientState()·{ |