| | | |
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·mIpReachabilityDisconnectEnabled·=·1; | 342 | ········final·int·mIpReachabilityDisconnectEnabled·=·1; |
345 | ········this.mIpReachabilityDisconnectEnabled·=·(mIpReachabilityDisconnectEnabled·!=·0); | 343 | ········this.mIpReachabilityDisconnectEnabled·=·(mIpReachabilityDisconnectEnabled·!=·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(inetAddress); | 1019 | ····················((StringBuilder)o).append(inetAddress); |
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)inetAddress); | 1024 | ············this.mWifiInfo.setInetAddress((InetAddress)inetAddress); |
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 1597, 15 lines modified | Offset 1595, 15 lines modified |
1597 | ················final·byte[]·mRssiRanges·=·this.mRssiRanges; | 1595 | ················final·byte[]·mRssiRanges·=·this.mRssiRanges; |
1598 | ················if·(n2·>=·mRssiRanges.length)·{ | 1596 | ················if·(n2·>=·mRssiRanges.length)·{ |
1599 | ····················break; | 1597 | ····················break; |
1600 | ················} | 1598 | ················} |
1601 | ················if·(rssi·<·mRssiRanges[n2])·{ | 1599 | ················if·(rssi·<·mRssiRanges[n2])·{ |
1602 | ····················final·byte·b·=·mRssiRanges[n2]; | 1600 | ····················final·byte·b·=·mRssiRanges[n2]; |
1603 | ····················final·byte·b2·=·mRssiRanges[n2·-·1]; | 1601 | ····················final·byte·b2·=·mRssiRanges[n2·-·1]; |
1604 | ····················((WifiInfo)this.mWifiInfo).setRssi((int)rssi); | 1602 | ····················this.mWifiInfo.setRssi((int)rssi); |
1605 | ····················this.updateCapabilities(); | 1603 | ····················this.updateCapabilities(); |
1606 | ····················final·int·startRssiMonitoringOffload·=·this.startRssiMonitoringOffload(b,·b2,·wifiNative$WifiRssiEventHandler); | 1604 | ····················final·int·startRssiMonitoringOffload·=·this.startRssiMonitoringOffload(b,·b2,·wifiNative$WifiRssiEventHandler); |
1607 | ····················final·StringBuilder·sb·=·new·StringBuilder(); | 1605 | ····················final·StringBuilder·sb·=·new·StringBuilder(); |
1608 | ····················sb.append("Re-program·RSSI·thresholds·for·"); | 1606 | ····················sb.append("Re-program·RSSI·thresholds·for·"); |
1609 | ····················sb.append(this.getWhatToString(n)); | 1607 | ····················sb.append(this.getWhatToString(n)); |
1610 | ····················sb.append(":·["); | 1608 | ····················sb.append(":·["); |
1611 | ····················sb.append(b2); | 1609 | ····················sb.append(b2); |
Offset 1724, 20 lines modified | Offset 1722, 25 lines modified |
1724 | ············s2·=·this.getTargetSsid(); | 1722 | ············s2·=·this.getTargetSsid(); |
1725 | ········} | 1723 | ········} |
1726 | ········final·int·n3·=·-1; | 1724 | ········final·int·n3·=·-1; |
1727 | ········int·n4·=·1; | 1725 | ········int·n4·=·1; |
1728 | ········if·(n·!=·n4)·{ | 1726 | ········if·(n·!=·n4)·{ |
1729 | ············final·int·convertToBssidBlocklistMonitorFailureReason·=·this.convertToBssidBlocklistMonitorFailureReason(n,·n2); | 1727 | ············final·int·convertToBssidBlocklistMonitorFailureReason·=·this.convertToBssidBlocklistMonitorFailureReason(n,·n2); |
1730 | ············if·(convertToBssidBlocklistMonitorFailureReason·!=·n3)·{ | 1728 | ············if·(convertToBssidBlocklistMonitorFailureReason·!=·n3)·{ |
1731 | ················if·(wifiConfiguration·!=·null)·{ | 1729 | ················int·networkId; |
1732 | ····················final·int·networkId·=·wifiConfiguration.networkId; | 1730 | ················if·(wifiConfiguration·==·null)·{ |
| 1731 | ····················networkId·=·n3; |
1733 | ················} | 1732 | ················} |
1734 | ················this.mWifiScoreCard.noteConnectionFailure(this.mWifiInfo,·this.mLastScanRssi,·s2,·convertToBssidBlocklistMonitorFailureReason); | 1733 | ················else·{ |
| 1734 | ····················networkId·=·wifiConfiguration.networkId; |
| 1735 | ················} |
| 1736 | ················final·int·scanRssi·=·this.mWifiConfigManager.findScanRssi(networkId,·this.mWifiHealthMonitor.getScanRssiValidTimeMs()); |
| 1737 | ················this.mWifiScoreCard.noteConnectionFailure(this.mWifiInfo,·scanRssi,·s2,·convertToBssidBlocklistMonitorFailureReason); |
1735 | ················this.checkAbnormalConnectionFailureAndTakeBugReport(s2); | 1738 | ················this.checkAbnormalConnectionFailureAndTakeBugReport(s2); |
1736 | ················this.mBssidBlocklistMonitor.handleBssidConnectionFailure(s,·s2,·convertToBssidBlocklistMonitorFailureReason,·this.mLastScanRssi); | 1739 | ················this.mBssidBlocklistMonitor.handleBssidConnectionFailure(s,·s2,·convertToBssidBlocklistMonitorFailureReason,·scanRssi); |
1737 | ············} | 1740 | ············} |
1738 | ········} | 1741 | ········} |
1739 | ········final·int·n5·=·3; | 1742 | ········final·int·n5·=·3; |
1740 | ········if·(wifiConfiguration·!=·null·&&·wifiConfiguration.carrierId·!=·n3)·{ | 1743 | ········if·(wifiConfiguration·!=·null·&&·wifiConfiguration.carrierId·!=·n3)·{ |
1741 | ············if·(n·==·n4)·{ | 1744 | ············if·(n·==·n4)·{ |
1742 | ················this.mWifiMetrics.incrementNumOfCarrierWifiConnectionSuccess(); | 1745 | ················this.mWifiMetrics.incrementNumOfCarrierWifiConnectionSuccess(); |
1743 | ············} | 1746 | ············} |
Offset 1954, 26 lines modified | Offset 1957, 22 lines modified |
1954 | ············sb.append("·hidden="); | 1957 | ············sb.append("·hidden="); |
1955 | ············sb.append(mIsAutoRoaming); | 1958 | ············sb.append(mIsAutoRoaming); |
1956 | ············this.log(sb.toString()); | 1959 | ············this.log(sb.toString()); |
1957 | ········} | 1960 | ········} |
1958 | ········if·(!mIsAutoRoaming)·{ | 1961 | ········if·(!mIsAutoRoaming)·{ |
1959 | ············if·(mNetworkAgentState·!=·this.mNetworkAgentState)·{ | 1962 | ············if·(mNetworkAgentState·!=·this.mNetworkAgentState)·{ |
1960 | ················this.mNetworkAgentState·=·mNetworkAgentState; | 1963 | ················this.mNetworkAgentState·=·mNetworkAgentState; |
1961 | ················this.sendNetworkChangeBroadcastWithCurrentState(); | 1964 | ················final·Intent·intent·=·new·Intent("android.net.wifi.STATE_CHANGE"); |
| 1965 | ················intent.addFlags(67108864); |
| 1966 | ················intent.putExtra("networkInfo",·(Parcelable)this.makeNetworkInfo()); |
| 1967 | ················this.mContext.sendStickyBroadcastAsUser(intent,·UserHandle.ALL); |
1962 | ············} | 1968 | ············} |
1963 | ········} | 1969 | ········} |
1964 | ····} | 1970 | ····} |
1965 | ···· | 1971 | ···· |
1966 | ····private·void·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); | |
1971 | ····} | |
1972 | ···· | |
1973 | ····private·void·sendRssiChangeBroadcast(final·int·n)·{ | 1972 | ····private·void·sendRssiChangeBroadcast(final·int·n)·{ |
1974 | ········this.mBatteryStatsManager.reportWifiRssiChanged(n); | 1973 | ········this.mBatteryStatsManager.reportWifiRssiChanged(n); |
1975 | ········WifiStatsLog.write(38,·RssiUtil.calculateSignalLevel(this.mContext,·n)); | 1974 | ········WifiStatsLog.write(38,·RssiUtil.calculateSignalLevel(this.mContext,·n)); |
1976 | ········final·Intent·intent·=·new·Intent("android.net.wifi.RSSI_CHANGED"); | 1975 | ········final·Intent·intent·=·new·Intent("android.net.wifi.RSSI_CHANGED"); |
1977 | ········intent.addFlags(67108864); | 1976 | ········intent.addFlags(67108864); |
1978 | ········intent.putExtra("newRssi",·n); | 1977 | ········intent.putExtra("newRssi",·n); |
1979 | ········this.mContext.sendBroadcastAsUser(intent,·UserHandle.ALL,·"android.permission.ACCESS_WIFI_STATE"); | 1978 | ········this.mContext.sendBroadcastAsUser(intent,·UserHandle.ALL,·"android.permission.ACCESS_WIFI_STATE"); |
Offset 2052, 15 lines modified | Offset 2051, 15 lines modified |
2052 | ····private·void·setSuspendOptimizationsNative(int·mSuspendOptNeedsDisabled,·final·boolean·b)·{ | 2051 | ····private·void·setSuspendOptimizationsNative(int·mSuspendOptNeedsDisabled,·final·boolean·b)·{ |
2053 | ········final·boolean·mVerboseLoggingEnabled·=·this.mVerboseLoggingEnabled; | 2052 | ········final·boolean·mVerboseLoggingEnabled·=·this.mVerboseLoggingEnabled; |
2054 | ········final·int·n·=·5; | 2053 | ········final·int·n·=·5; |
2055 | ········final·int·n2·=·4; | 2054 | ········final·int·n2·=·4; |
2056 | ········final·int·n3·=·3; | 2055 | ········final·int·n3·=·3; |
2057 | ········final·int·n4·=·2; | 2056 | ········final·int·n4·=·2; |
2058 | ········final·String·s·=·"·stack:"; | 2057 | ········final·String·s·=·"·stack:"; |
2059 | ········final·int·n5·=·2130837535; | 2058 | ········final·int·n5·=·2130837534; |
2060 | ········final·String·s2·=·"·"; | 2059 | ········final·String·s2·=·"·"; |
2061 | ········final·String·s3·=·"·-·"; | 2060 | ········final·String·s3·=·"·-·"; |
2062 | ········if·(mVerboseLoggingEnabled)·{ | 2061 | ········if·(mVerboseLoggingEnabled)·{ |
2063 | ············final·StringBuilder·sb·=·new·StringBuilder(); | 2062 | ············final·StringBuilder·sb·=·new·StringBuilder(); |
2064 | ············sb.append("setSuspendOptimizationsNative:·"); | 2063 | ············sb.append("setSuspendOptimizationsNative:·"); |
2065 | ············sb.append(mSuspendOptNeedsDisabled); | 2064 | ············sb.append(mSuspendOptNeedsDisabled); |
2066 | ············sb.append(s2); | 2065 | ············sb.append(s2); |
Offset 2159, 27 lines modified | Offset 2158, 27 lines modified |
2159 | ········this.mLastNetworkId·=·mLastSignalLevel; | 2158 | ········this.mLastNetworkId·=·mLastSignalLevel; |
2160 | ········this.mLastSubId·=·mLastSignalLevel; | 2159 | ········this.mLastSubId·=·mLastSignalLevel; |
2161 | ········this.mLastSimBasedConnectionCarrierName·=·null; | 2160 | ········this.mLastSimBasedConnectionCarrierName·=·null; |
2162 | ········this.mLastSignalLevel·=·mLastSignalLevel; | 2161 | ········this.mLastSignalLevel·=·mLastSignalLevel; |
2163 | ········if·(this.isConnectedMacRandomizationEnabled())·{ | 2162 | ········if·(this.isConnectedMacRandomizationEnabled())·{ |
2164 | ············this.mWifiNative.setMacAddress(this.mInterfaceName,·MacAddressUtils.createRandomUnicastAddress()); | 2163 | ············this.mWifiNative.setMacAddress(this.mInterfaceName,·MacAddressUtils.createRandomUnicastAddress()); |
2165 | ········} | 2164 | ········} |
2166 | ········((WifiInfo)this.mWifiInfo).setMacAddress(this.mWifiNative.getMacAddress(this.mInterfaceName)); | 2165 | ········this.mWifiInfo.setMacAddress(this.mWifiNative.getMacAddress(this.mInterfaceName)); |
2167 | ········this.sendSupplicantConnectionChangedBroadcast(b); | 2166 | ········this.sendSupplicantConnectionChangedBroadcast(b); |
2168 | ········this.mWifiNative.setExternalSim(this.mInterfaceName,·b); | 2167 | ········this.mWifiNative.setExternalSim(this.mInterfaceName,·b); |
2169 | ········this.mCountryCode.setReadyForChange(b); | 2168 | ········this.mCountryCode.setReadyForChange(b); |
2170 | ········this.mWifiDiagnostics.startPktFateMonitoring(this.mInterfaceName); | 2169 | ········this.mWifiDiagnostics.startPktFateMonitoring(this.mInterfaceName); |
2171 | ········this.mWifiDiagnostics.startLogging(this.mInterfaceName); | 2170 | ········this.mWifiDiagnostics.startLogging(this.mInterfaceName); |
2172 | ········this.mMboOceController.enable(); | 2171 | ········this.mMboOceController.enable(); |
2173 | ········this.mWifiDataStall.enablePhoneStateListener(); | 2172 | ········this.mWifiDataStall.enablePhoneStateListener(); |
2174 | ········this.mWifiNative.setBluetoothCoexistenceScanMode(this.mInterfaceName,·this.mBluetoothConnectionActive); | 2173 | ········this.mWifiNative.setBluetoothCoexistenceScanMode(this.mInterfaceName,·this.mBluetoothConnectionActive); |
2175 | ········this.sendNetworkChangeBroadcast(NetworkInfo$DetailedState.DISCONNECTED); | 2174 | ········this.sendNetworkChangeBroadcast(NetworkInfo$DetailedState.DISCONNECTED); |
2176 | ········this.mWifiNative.stopFilteringMulticastV4Packets(this.mInterfaceName); | 2175 | ········this.mWifiNative.stopFilteringMulticastV4Packets(this.mInterfaceName); |
2177 | ········this.mWifiNative.stopFilteringMulticastV6Packets(this.mInterfaceName); | 2176 | ········this.mWifiNative.stopFilteringMulticastV6Packets(this.mInterfaceName); |
2178 | ········this.mWifiNative.setSuspendOptimizations(this.mInterfaceName,·this.mSuspendOptNeedsDisabled·==·0·&&·this.mContext.getResources().getBoolean(2130837535)·&&·b); | 2177 | ········this.mWifiNative.setSuspendOptimizations(this.mInterfaceName,·this.mSuspendOptNeedsDisabled·==·0·&&·this.mContext.getResources().getBoolean(2130837534)·&&·b); |
2179 | ········this.setPowerSave(b); | 2178 | ········this.setPowerSave(b); |
2180 | ········this.mWifiNative.enableStaAutoReconnect(this.mInterfaceName,·false); | 2179 | ········this.mWifiNative.enableStaAutoReconnect(this.mInterfaceName,·false); |
2181 | ········this.mWifiNative.setConcurrencyPriority(b); | 2180 | ········this.mWifiNative.setConcurrencyPriority(b); |
2182 | ····} | 2181 | ····} |
2183 | ···· | 2182 | ···· |
2184 | ····private·boolean·startIpClient(final·WifiConfiguration·wifiConfiguration,·final·boolean·b)·{ | 2183 | ····private·boolean·startIpClient(final·WifiConfiguration·wifiConfiguration,·final·boolean·b)·{ |
2185 | ········if·(this.mIpClient·==·null)·{ | 2184 | ········if·(this.mIpClient·==·null)·{ |
Offset 2541, 17 lines modified | Offset 2540, 17 lines modified |
2541 | ····} | 2540 | ····} |
2542 | ···· | 2541 | ···· |
2543 | ····private·void·updateWifiInfoAfterAssociation()·{ | 2542 | ····private·void·updateWifiInfoAfterAssociation()·{ |
2544 | ········final·WifiNative$ConnectionCapabilities·connectionCapabilities·=·this.mWifiNative.getConnectionCapabilities(this.mInterfaceName); | 2543 | ········final·WifiNative$ConnectionCapabilities·connectionCapabilities·=·this.mWifiNative.getConnectionCapabilities(this.mInterfaceName); |
2545 | ········final·ThroughputPredictor·throughputPredictor·=·this.mWifiInjector.getThroughputPredictor(); | 2544 | ········final·ThroughputPredictor·throughputPredictor·=·this.mWifiInjector.getThroughputPredictor(); |
2546 | ········final·int·predictMaxTxThroughput·=·throughputPredictor.predictMaxTxThroughput(connectionCapabilities); | 2545 | ········final·int·predictMaxTxThroughput·=·throughputPredictor.predictMaxTxThroughput(connectionCapabilities); |
2547 | ········final·int·predictMaxRxThroughput·=·throughputPredictor.predictMaxRxThroughput(connectionCapabilities); | 2546 | ········final·int·predictMaxRxThroughput·=·throughputPredictor.predictMaxRxThroughput(connectionCapabilities); |
2548 | ········((WifiInfo)this.mWifiInfo).setWifiStandard(connectionCapabilities.wifiStandard); | 2547 | ········this.mWifiInfo.setWifiStandard(connectionCapabilities.wifiStandard); |
2549 | ········((WifiInfo)this.mWifiInfo).setMaxSupportedTxLinkSpeedMbps(predictMaxTxThroughput); | 2548 | ········this.mWifiInfo.setMaxSupportedTxLinkSpeedMbps(predictMaxTxThroughput); |
2550 | ········((WifiInfo)this.mWifiInfo).setMaxSupportedRxLinkSpeedMbps(predictMaxRxThroughput); | 2549 | ········this.mWifiInfo.setMaxSupportedRxLinkSpeedMbps(predictMaxRxThroughput); |
2551 | ········this.mWifiMetrics.setConnectionMaxSupportedLinkSpeedMbps(predictMaxTxThroughput,·predictMaxRxThroughput); | 2550 | ········this.mWifiMetrics.setConnectionMaxSupportedLinkSpeedMbps(predictMaxTxThroughput,·predictMaxRxThroughput); |
2552 | ········this.mWifiDataStall.setConnectionCapabilities(connectionCapabilities); | 2551 | ········this.mWifiDataStall.setConnectionCapabilities(connectionCapabilities); |
2553 | ········if·(this.mVerboseLoggingEnabled)·{ | 2552 | ········if·(this.mVerboseLoggingEnabled)·{ |
2554 | ············final·StringBuilder·sb·=·new·StringBuilder(); | 2553 | ············final·StringBuilder·sb·=·new·StringBuilder(); |
2555 | ············sb.append("WifiStandard:·"); | 2554 | ············sb.append("WifiStandard:·"); |
2556 | ············sb.append(connectionCapabilities.wifiStandard); | 2555 | ············sb.append(connectionCapabilities.wifiStandard); |
2557 | ············sb.append("·maxTxSpeed:·"); | 2556 | ············sb.append("·maxTxSpeed:·"); |
Offset 2721, 15 lines modified | Offset 2720, 15 lines modified |
2721 | ········printWriter.println(sb8.toString()); | 2720 | ········printWriter.println(sb8.toString()); |
2722 | ········final·StringBuilder·sb9·=·new·StringBuilder(); | 2721 | ········final·StringBuilder·sb9·=·new·StringBuilder(); |
2723 | ········sb9.append("mOperationalMode·"); | 2722 | ········sb9.append("mOperationalMode·"); |
2724 | ········sb9.append(this.mOperationalMode); | 2723 | ········sb9.append(this.mOperationalMode); |
2725 | ········printWriter.println(sb9.toString()); | 2724 | ········printWriter.println(sb9.toString()); |
2726 | ········final·StringBuilder·sb10·=·new·StringBuilder(); | 2725 | ········final·StringBuilder·sb10·=·new·StringBuilder(); |
2727 | ········sb10.append("mSuspendOptimizationsEnabled·"); | 2726 | ········sb10.append("mSuspendOptimizationsEnabled·"); |
2728 | ········sb10.append(this.mContext.getResources().getBoolean(2130837535)); | 2727 | ········sb10.append(this.mContext.getResources().getBoolean(2130837534)); |
2729 | ········printWriter.println(sb10.toString()); | 2728 | ········printWriter.println(sb10.toString()); |
2730 | ········final·StringBuilder·sb11·=·new·StringBuilder(); | 2729 | ········final·StringBuilder·sb11·=·new·StringBuilder(); |
2731 | ········sb11.append("mSuspendOptNeedsDisabled·"); | 2730 | ········sb11.append("mSuspendOptNeedsDisabled·"); |
2732 | ········sb11.append(this.mSuspendOptNeedsDisabled); | 2731 | ········sb11.append(this.mSuspendOptNeedsDisabled); |
2733 | ········printWriter.println(sb11.toString()); | 2732 | ········printWriter.println(sb11.toString()); |
2734 | ········this.mCountryCode.dump(fileDescriptor,·printWriter,·array); | 2733 | ········this.mCountryCode.dump(fileDescriptor,·printWriter,·array); |
2735 | ········this.mNetworkFactory.dump(fileDescriptor,·printWriter,·array); | 2734 | ········this.mNetworkFactory.dump(fileDescriptor,·printWriter,·array); |
Offset 3083, 20 lines modified | Offset 3082, 20 lines modified |
3083 | ············} | 3082 | ············} |
3084 | ············case·131327:·{ | 3083 | ············case·131327:·{ |
3085 | ················sb.append(s10); | 3084 | ················sb.append(s10); |
3086 | ················sb.append(Integer.toString(message.arg1)); | 3085 | ················sb.append(Integer.toString(message.arg1)); |
3087 | ················sb.append(s10); | 3086 | ················sb.append(s10); |
3088 | ················sb.append(Integer.toString(message.arg2)); | 3087 | ················sb.append(Integer.toString(message.arg2)); |
3089 | ················sb.append("·txpkts="); | 3088 | ················sb.append("·txpkts="); |
3090 | ················sb.append(((WifiInfo)this.mWifiInfo).txSuccess); | 3089 | ················sb.append(this.mWifiInfo.txSuccess); |
3091 | ················final·String·s12·=·","; | 3090 | ················final·String·s12·=·","; |
3092 | ················sb.append(s12); | 3091 | ················sb.append(s12); |
3093 | ················sb.append(((WifiInfo)this.mWifiInfo).txBad); | 3092 | ················sb.append(this.mWifiInfo.txBad); |
3094 | ················sb.append(s12); | 3093 | ················sb.append(s12); |
3095 | ················sb.append(((WifiInfo)this.mWifiInfo).txRetries); | 3094 | ················sb.append(this.mWifiInfo.txRetries); |
3096 | ················break; | 3095 | ················break; |
3097 | ············} | 3096 | ············} |
3098 | ············case·131275:·{ | 3097 | ············case·131275:·{ |
3099 | ················final·StringBuilder·sb5·=·new·StringBuilder(); | 3098 | ················final·StringBuilder·sb5·=·new·StringBuilder(); |
3100 | ················sb5.append("·enabled="); | 3099 | ················sb5.append("·enabled="); |
3101 | ················sb5.append((boolean)(Boolean)message.obj); | 3100 | ················sb5.append((boolean)(Boolean)message.obj); |
3102 | ················sb.append(sb5.toString()); | 3101 | ················sb.append(sb5.toString()); |
Offset 3141, 16 lines modified | Offset 3140, 15 lines modified |
3141 | ····················final·Long·value·=·this.mClock.getWallClockMillis(); | 3140 | ····················final·Long·value·=·this.mClock.getWallClockMillis(); |
3142 | ····················sb.append("·bssid="); | 3141 | ····················sb.append("·bssid="); |
3143 | ····················sb.append(scanResult.BSSID); | 3142 | ····················sb.append(scanResult.BSSID); |
3144 | ····················sb.append(s9); | 3143 | ····················sb.append(s9); |
3145 | ····················sb.append(scanResult.level); | 3144 | ····················sb.append(scanResult.level); |
3146 | ····················sb.append(s3); | 3145 | ····················sb.append(s3); |
3147 | ····················sb.append(scanResult.frequency); | 3146 | ····················sb.append(scanResult.frequency); |
3148 | ····················final·long·seen·=·scanResult.seen; | 3147 | ····················if·(scanResult.seen·>·0L·&&·scanResult.seen·<·value)·{ |
3149 | ····················if·(seen·>·0L·&&·seen·<·value)·{ | |
3150 | ························sb.append("·seen="); | 3148 | ························sb.append("·seen="); |
3151 | ························sb.append((long)value·-·scanResult.seen); | 3149 | ························sb.append((long)value·-·scanResult.seen); |
3152 | ····················} | 3150 | ····················} |
3153 | ····················else·{ | 3151 | ····················else·{ |
3154 | ························sb.append("·!seen="); | 3152 | ························sb.append("·!seen="); |
3155 | ························sb.append(scanResult.seen); | 3153 | ························sb.append(scanResult.seen); |
3156 | ····················} | 3154 | ····················} |
Offset 3309, 15 lines modified | Offset 3307, 15 lines modified |
3309 | ········return·this.mOperationalMode; | 3307 | ········return·this.mOperationalMode; |
3310 | ····} | 3308 | ····} |
3311 | ···· | 3309 | ···· |
3312 | ····int·getPollRssiIntervalMsecs()·{ | 3310 | ····int·getPollRssiIntervalMsecs()·{ |
3313 | ········if·(this.mPollRssiIntervalMsecs·>·0)·{ | 3311 | ········if·(this.mPollRssiIntervalMsecs·>·0)·{ |
3314 | ············return·this.mPollRssiIntervalMsecs; | 3312 | ············return·this.mPollRssiIntervalMsecs; |
3315 | ········} | 3313 | ········} |
3316 | ········return·Math.min(this.mContext.getResources().getInteger(2131034160),·6000); | 3314 | ········return·Math.min(this.mContext.getResources().getInteger(2131034157),·6000); |
3317 | ····} | 3315 | ····} |
3318 | ···· | 3316 | ···· |
3319 | ····protected·String·getWhatToString(final·int·n)·{ | 3317 | ····protected·String·getWhatToString(final·int·n)·{ |
3320 | ········final·String·s·=·(String)ClientModeImpl.sGetWhatToString.get(n); | 3318 | ········final·String·s·=·(String)ClientModeImpl.sGetWhatToString.get(n); |
3321 | ········if·(s·!=·null)·{ | 3319 | ········if·(s·!=·null)·{ |
3322 | ············return·s; | 3320 | ············return·s; |
3323 | ········} | 3321 | ········} |
Offset 3564, 15 lines modified | Offset 3562, 15 lines modified |
3564 | ····} | 3562 | ····} |
3565 | ···· | 3563 | ···· |
3566 | ····public·boolean·isConnected()·{ | 3564 | ····public·boolean·isConnected()·{ |
3567 | ········return·this.getCurrentState()·==·this.mConnectedState; | 3565 | ········return·this.getCurrentState()·==·this.mConnectedState; |
3568 | ····} | 3566 | ····} |
3569 | ···· | 3567 | ···· |
3570 | ····public·boolean·isConnectedMacRandomizationEnabled()·{ | 3568 | ····public·boolean·isConnectedMacRandomizationEnabled()·{ |
3571 | ········return·this.mContext.getResources().getBoolean(2130837538); | 3569 | ········return·this.mContext.getResources().getBoolean(2130837537); |
3572 | ····} | 3570 | ····} |
3573 | ···· | 3571 | ···· |
3574 | ····public·boolean·isDisconnected()·{ | 3572 | ····public·boolean·isDisconnected()·{ |
3575 | ········return·this.getCurrentState()·==·this.mDisconnectedState; | 3573 | ········return·this.getCurrentState()·==·this.mDisconnectedState; |
3576 | ····} | 3574 | ····} |
3577 | ···· | 3575 | ···· |
3578 | ····public·boolean·isSupplicantTransientState()·{ | 3576 | ····public·boolean·isSupplicantTransientState()·{ |