| | | |
Offset 16, 15 lines modified | Offset 16, 14 lines modified |
16 | import·java.util.function.Function; | 16 | import·java.util.function.Function; |
17 | import·com.android.server.wifi.hotspot2.ANQPNetworkKey; | 17 | import·com.android.server.wifi.hotspot2.ANQPNetworkKey; |
18 | import·com.android.server.wifi.hotspot2.Utils; | 18 | import·com.android.server.wifi.hotspot2.Utils; |
19 | import·com.android.server.wifi.hotspot2.PasspointProvider; | 19 | import·com.android.server.wifi.hotspot2.PasspointProvider; |
20 | import·java.util.HashSet; | 20 | import·java.util.HashSet; |
21 | import·android.net.wifi.WifiInfo; | 21 | import·android.net.wifi.WifiInfo; |
22 | import·com.android.server.wifi.proto.WifiStatsLog; | 22 | import·com.android.server.wifi.proto.WifiStatsLog; |
23 | import·java.util.Set; | |
24 | import·org.json.JSONException; | 23 | import·org.json.JSONException; |
25 | import·org.json.JSONArray; | 24 | import·org.json.JSONArray; |
26 | import·org.json.JSONObject; | 25 | import·org.json.JSONObject; |
27 | import·android.util.Base64; | 26 | import·android.util.Base64; |
28 | import·com.android.wifi.x.com.google.protobuf.nano.MessageNano; | 27 | import·com.android.wifi.x.com.google.protobuf.nano.MessageNano; |
29 | import·java.io.FileDescriptor; | 28 | import·java.io.FileDescriptor; |
30 | import·com.android.server.wifi.hotspot2.NetworkDetail$HSRelease; | 29 | import·com.android.server.wifi.hotspot2.NetworkDetail$HSRelease; |
Offset 33, 24 lines modified | Offset 32, 25 lines modified |
33 | import·com.android.server.wifi.hotspot2.NetworkDetail; | 32 | import·com.android.server.wifi.hotspot2.NetworkDetail; |
34 | import·android.net.wifi.SupplicantState; | 33 | import·android.net.wifi.SupplicantState; |
35 | import·com.android.wifi.x.android.hardware.wifi.supplicant.V1_0.ISupplicantStaIfaceCallback$StatusCode; | 34 | import·com.android.wifi.x.android.hardware.wifi.supplicant.V1_0.ISupplicantStaIfaceCallback$StatusCode; |
36 | import·com.android.wifi.x.android.hardware.wifi.supplicant.V1_0.ISupplicantStaIfaceCallback$ReasonCode; | 35 | import·com.android.wifi.x.android.hardware.wifi.supplicant.V1_0.ISupplicantStaIfaceCallback$ReasonCode; |
37 | import·android.os.RemoteException; | 36 | import·android.os.RemoteException; |
38 | import·android.net.wifi.IOnWifiUsabilityStatsListener; | 37 | import·android.net.wifi.IOnWifiUsabilityStatsListener; |
39 | import·com.android.server.wifi.util.MetricsUtils$GenericBucket; | 38 | import·com.android.server.wifi.util.MetricsUtils$GenericBucket; |
40 | import·com.android.server.wifi.util.MetricsUtils; | |
41 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$WifiConfigStoreIO$DurationBucket; | 39 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$WifiConfigStoreIO$DurationBucket; |
42 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$NumConnectableNetworksBucket; | 40 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$NumConnectableNetworksBucket; |
43 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$NetworkSelectionExperimentDecisions; | 41 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$NetworkSelectionExperimentDecisions; |
44 | import·android.util.Pair; | 42 | import·android.util.Pair; |
45 | import·java.io.PrintWriter; | 43 | import·java.io.PrintWriter; |
46 | import·android.util.Log; | 44 | import·android.util.Log; |
47 | import·android.net.wifi.WifiUsabilityStatsEntry; | 45 | import·android.net.wifi.WifiUsabilityStatsEntry; |
48 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$WifiUsabilityStatsEntry; | 46 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$WifiUsabilityStatsEntry; |
49 | import·android.net.wifi.WifiConfiguration; | 47 | import·android.net.wifi.WifiConfiguration$NetworkSelectionStatus; |
| 48 | import·java.util.function.ToIntFunction; |
| 49 | import·com.android.server.wifi.util.MetricsUtils; |
50 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$PasspointProfileTypeCount; | 50 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$PasspointProfileTypeCount; |
51 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$HealthMonitorMetrics; | 51 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$HealthMonitorMetrics; |
52 | import·java.util.Iterator; | 52 | import·java.util.Iterator; |
53 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$InitPartialScanStats; | 53 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$InitPartialScanStats; |
54 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$ThroughputMbpsHistogram; | 54 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$ThroughputMbpsHistogram; |
55 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$ChannelUtilizationHistogram; | 55 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$ChannelUtilizationHistogram; |
56 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$PasspointProvisionStats$ProvisionFailureCount; | 56 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$PasspointProvisionStats$ProvisionFailureCount; |
Offset 81, 14 lines modified | Offset 81, 17 lines modified |
81 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$RssiPollCount; | 81 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$RssiPollCount; |
82 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$StaEvent$ConfigInfo; | 82 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$StaEvent$ConfigInfo; |
83 | import·java.util.BitSet; | 83 | import·java.util.BitSet; |
84 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$StaEvent; | 84 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$StaEvent; |
85 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$SoftApConnectedClientsEvent; | 85 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$SoftApConnectedClientsEvent; |
86 | import·android.net.wifi.ScanResult; | 86 | import·android.net.wifi.ScanResult; |
87 | import·android.os.Message; | 87 | import·android.os.Message; |
| 88 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$NetworkDisableReason; |
| 89 | import·java.util.Set; |
| 90 | import·android.net.wifi.WifiConfiguration; |
88 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$DeviceMobilityStatePnoScanStats; | 91 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$DeviceMobilityStatePnoScanStats; |
89 | import·android.util.ArrayMap; | 92 | import·android.util.ArrayMap; |
90 | import·java.util.HashMap; | 93 | import·java.util.HashMap; |
91 | import·java.util.ArrayList; | 94 | import·java.util.ArrayList; |
92 | import·android.os.Looper; | 95 | import·android.os.Looper; |
93 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$WifiToggleStats; | 96 | import·com.android.server.wifi.proto.nano.WifiMetricsProto$WifiToggleStats; |
94 | import·com.android.server.wifi.p2p.WifiP2pMetrics; | 97 | import·com.android.server.wifi.p2p.WifiP2pMetrics; |
Offset 326, 14 lines modified | Offset 329, 15 lines modified |
326 | ····private·final·WifiMetricsProto$WifiNetworkSuggestionApiLog·mWifiNetworkSuggestionApiLog; | 329 | ····private·final·WifiMetricsProto$WifiNetworkSuggestionApiLog·mWifiNetworkSuggestionApiLog; |
327 | ····private·final·WifiMetrics$WifiOffMetrics·mWifiOffMetrics; | 330 | ····private·final·WifiMetrics$WifiOffMetrics·mWifiOffMetrics; |
328 | ····private·final·WifiP2pMetrics·mWifiP2pMetrics; | 331 | ····private·final·WifiP2pMetrics·mWifiP2pMetrics; |
329 | ····private·WifiPowerMetrics·mWifiPowerMetrics; | 332 | ····private·WifiPowerMetrics·mWifiPowerMetrics; |
330 | ····private·WifiScoreCard·mWifiScoreCard; | 333 | ····private·WifiScoreCard·mWifiScoreCard; |
331 | ····private·final·SparseIntArray·mWifiScoreCounts; | 334 | ····private·final·SparseIntArray·mWifiScoreCounts; |
332 | ····private·int·mWifiState; | 335 | ····private·int·mWifiState; |
| 336 | ····private·WifiMetrics$WifiStatusBuilder·mWifiStatusBuilder; |
333 | ····private·final·SparseIntArray·mWifiSystemStateEntries; | 337 | ····private·final·SparseIntArray·mWifiSystemStateEntries; |
334 | ····private·final·WifiMetricsProto$WifiToggleStats·mWifiToggleStats; | 338 | ····private·final·WifiMetricsProto$WifiToggleStats·mWifiToggleStats; |
335 | ····private·final·SparseIntArray·mWifiUsabilityScoreCounts; | 339 | ····private·final·SparseIntArray·mWifiUsabilityScoreCounts; |
336 | ····private·int·mWifiUsabilityStatsCounter; | 340 | ····private·int·mWifiUsabilityStatsCounter; |
337 | ····private·final·LinkedList·mWifiUsabilityStatsEntriesList; | 341 | ····private·final·LinkedList·mWifiUsabilityStatsEntriesList; |
338 | ····private·final·LinkedList·mWifiUsabilityStatsListBad; | 342 | ····private·final·LinkedList·mWifiUsabilityStatsListBad; |
339 | ····private·final·LinkedList·mWifiUsabilityStatsListGood; | 343 | ····private·final·LinkedList·mWifiUsabilityStatsListGood; |
Offset 448, 14 lines modified | Offset 452, 15 lines modified |
448 | ········this.mProbeStatusSinceLastUpdate·=·n; | 452 | ········this.mProbeStatusSinceLastUpdate·=·n; |
449 | ········this.mProbeElapsedTimeSinceLastUpdateMs·=·mLastScoreNoReset; | 453 | ········this.mProbeElapsedTimeSinceLastUpdateMs·=·mLastScoreNoReset; |
450 | ········this.mProbeMcsRateSinceLastUpdate·=·mLastScoreNoReset; | 454 | ········this.mProbeMcsRateSinceLastUpdate·=·mLastScoreNoReset; |
451 | ········final·long·mCurrentDeviceMobilityStatePnoScanStartMs·=·(long)(-1); | 455 | ········final·long·mCurrentDeviceMobilityStatePnoScanStartMs·=·(long)(-1); |
452 | ········this.mScoreBreachLowTimeMillis·=·mCurrentDeviceMobilityStatePnoScanStartMs; | 456 | ········this.mScoreBreachLowTimeMillis·=·mCurrentDeviceMobilityStatePnoScanStartMs; |
453 | ········this.mStaEventList·=·new·LinkedList(); | 457 | ········this.mStaEventList·=·new·LinkedList(); |
454 | ········this.mUserActionEventList·=·new·LinkedList(); | 458 | ········this.mUserActionEventList·=·new·LinkedList(); |
| 459 | ········this.mWifiStatusBuilder·=·new·WifiMetrics$WifiStatusBuilder(this); |
455 | ········this.mLastPollRssi·=·-127; | 460 | ········this.mLastPollRssi·=·-127; |
456 | ········this.mLastPollLinkSpeed·=·mLastScoreNoReset; | 461 | ········this.mLastPollLinkSpeed·=·mLastScoreNoReset; |
457 | ········this.mLastPollRxLinkSpeed·=·mLastScoreNoReset; | 462 | ········this.mLastPollRxLinkSpeed·=·mLastScoreNoReset; |
458 | ········this.mLastPollFreq·=·mLastScoreNoReset; | 463 | ········this.mLastPollFreq·=·mLastScoreNoReset; |
459 | ········this.mLastScore·=·mLastScoreNoReset; | 464 | ········this.mLastScore·=·mLastScoreNoReset; |
460 | ········this.mAdaptiveConnectivityEnabled·=·(n·!=·0); | 465 | ········this.mAdaptiveConnectivityEnabled·=·(n·!=·0); |
461 | ········this.mWifiLogProto·=·new·WifiMetricsProto$WifiLog(); | 466 | ········this.mWifiLogProto·=·new·WifiMetricsProto$WifiLog(); |
Offset 611, 26 lines modified | Offset 616, 28 lines modified |
611 | ············Label_0028:·{ | 616 | ············Label_0028:·{ |
612 | ················if·(n·==·2)·{ | 617 | ················if·(n·==·2)·{ |
613 | ····················break·Label_0028; | 618 | ····················break·Label_0028; |
614 | ················} | 619 | ················} |
615 | ················try·{ | 620 | ················try·{ |
616 | ····················//·monitorexit(mLock) | 621 | ····················//·monitorexit(mLock) |
617 | ····················return; | 622 | ····················return; |
618 | ····················List·list·=·this.mSoftApEventListTethered; | 623 | ····················//·iftrue(Label_0067:,·list.size()·<=·256) |
619 | ····················Label_0043:·{ | 624 | ····················List·list; |
620 | ························break·Label_0043; | 625 | ····················while·(true)·{ |
621 | ························Label_0067:·{ | |
622 | ····························wifiMetricsProto$SoftApConnectedClientsEvent.timeStampMillis·=·this.mClock.getElapsedSinceBootMillis(); | |
623 | ························} | |
624 | ························list.add(wifiMetricsProto$SoftApConnectedClientsEvent); | |
625 | ························return; | 626 | ························return; |
| 627 | ························list·=·this.mSoftApEventListTethered; |
| 628 | ························continue; |
626 | ························list·=·this.mSoftApEventListLocalOnly; | 629 | ························list·=·this.mSoftApEventListLocalOnly; |
| 630 | ························continue; |
627 | ····················} | 631 | ····················} |
| 632 | ····················Label_0067:·{ |
| 633 | ························wifiMetricsProto$SoftApConnectedClientsEvent.timeStampMillis·=·this.mClock.getElapsedSinceBootMillis(); |
| 634 | ····················} |
| 635 | ····················list.add(wifiMetricsProto$SoftApConnectedClientsEvent); |
628 | ················} | 636 | ················} |
629 | ················//·iftrue(Label_0067:,·list.size()·<=·256) | |
630 | ················finally·{ | 637 | ················finally·{ |
631 | ················} | 638 | ················} |
632 | ················//·monitorexit(mLock) | 639 | ················//·monitorexit(mLock) |
633 | ············} | 640 | ············} |
634 | ········} | 641 | ········} |
635 | ····} | 642 | ····} |
636 | ···· | 643 | ···· |
Offset 1060, 36 lines modified | Offset 1067, 36 lines modified |
1060 | ············linkProbeStats.successRssiCounts·=·this.mLinkProbeSuccessRssiCounts.toProto(); | 1067 | ············linkProbeStats.successRssiCounts·=·this.mLinkProbeSuccessRssiCounts.toProto(); |
1061 | ············linkProbeStats.failureRssiCounts·=·this.mLinkProbeFailureRssiCounts.toProto(); | 1068 | ············linkProbeStats.failureRssiCounts·=·this.mLinkProbeFailureRssiCounts.toProto(); |
1062 | ············linkProbeStats.successLinkSpeedCounts·=·this.mLinkProbeSuccessLinkSpeedCounts.toProto(); | 1069 | ············linkProbeStats.successLinkSpeedCounts·=·this.mLinkProbeSuccessLinkSpeedCounts.toProto(); |
1063 | ············linkProbeStats.failureLinkSpeedCounts·=·this.mLinkProbeFailureLinkSpeedCounts.toProto(); | 1070 | ············linkProbeStats.failureLinkSpeedCounts·=·this.mLinkProbeFailureLinkSpeedCounts.toProto(); |
1064 | ············linkProbeStats.successSecondsSinceLastTxSuccessHistogram·=·this.mLinkProbeSuccessSecondsSinceLastTxSuccessHistogram.toProto(); | 1071 | ············linkProbeStats.successSecondsSinceLastTxSuccessHistogram·=·this.mLinkProbeSuccessSecondsSinceLastTxSuccessHistogram.toProto(); |
1065 | ············linkProbeStats.failureSecondsSinceLastTxSuccessHistogram·=·this.mLinkProbeFailureSecondsSinceLastTxSuccessHistogram.toProto(); | 1072 | ············linkProbeStats.failureSecondsSinceLastTxSuccessHistogram·=·this.mLinkProbeFailureSecondsSinceLastTxSuccessHistogram.toProto(); |
1066 | ············linkProbeStats.successElapsedTimeMsHistogram·=·this.mLinkProbeSuccessElapsedTimeMsHistogram.toProto(); | 1073 | ············linkProbeStats.successElapsedTimeMsHistogram·=·this.mLinkProbeSuccessElapsedTimeMsHistogram.toProto(); |
1067 | ············linkProbeStats.failureReasonCounts·=·(WifiMetricsProto$LinkProbeStats$LinkProbeFailureReasonCount[])this.mLinkProbeFailureReasonCounts.toProto((Class)WifiMetricsProto$LinkProbeStats$LinkProbeFailureReasonCount.class,·(IntCounter$ProtobufConverter)-$$Lambda$WifiMetrics$vcvg6LFIJBJG-KkHvXgCZflUqM8.INSTANCE); | 1074 | ············linkProbeStats.failureReasonCounts·=·(WifiMetricsProto$LinkProbeStats$LinkProbeFailureReasonCount[])this.mLinkProbeFailureReasonCounts.toProto((Class)WifiMetricsProto$LinkProbeStats$LinkProbeFailureReasonCount.class,·(IntCounter$ProtobufConverter)-$$Lambda$WifiMetrics$T1JW2IOhhO1BZIdcRsXDLI5p_jU.INSTANCE); |
1068 | ············linkProbeStats.experimentProbeCounts·=·(WifiMetricsProto$LinkProbeStats$ExperimentProbeCounts[])this.mLinkProbeExperimentProbeCounts.toProto((Class)WifiMetricsProto$LinkProbeStats$ExperimentProbeCounts.class,·(ObjectCounter$ProtobufConverter)-$$Lambda$WifiMetrics$Ec3r-2QpFu8lQqDC7DTY1ZWwG98.INSTANCE); | 1075 | ············linkProbeStats.experimentProbeCounts·=·(WifiMetricsProto$LinkProbeStats$ExperimentProbeCounts[])this.mLinkProbeExperimentProbeCounts.toProto((Class)WifiMetricsProto$LinkProbeStats$ExperimentProbeCounts.class,·(ObjectCounter$ProtobufConverter)-$$Lambda$WifiMetrics$Xm75btlTre4RyOGergfq257VAhA.INSTANCE); |
1069 | ············this.mWifiLogProto.linkProbeStats·=·linkProbeStats; | 1076 | ············this.mWifiLogProto.linkProbeStats·=·linkProbeStats; |
1070 | ············this.mWifiLogProto.networkSelectionExperimentDecisionsList·=·this.makeNetworkSelectionExperimentDecisionsList(); | 1077 | ············this.mWifiLogProto.networkSelectionExperimentDecisionsList·=·this.makeNetworkSelectionExperimentDecisionsList(); |
1071 | ············this.mWifiNetworkRequestApiLog.networkMatchSizeHistogram·=·this.mWifiNetworkRequestApiMatchSizeHistogram.toProto(); | 1078 | ············this.mWifiNetworkRequestApiLog.networkMatchSizeHistogram·=·this.mWifiNetworkRequestApiMatchSizeHistogram.toProto(); |
1072 | ············this.mWifiLogProto.wifiNetworkRequestApiLog·=·this.mWifiNetworkRequestApiLog; | 1079 | ············this.mWifiLogProto.wifiNetworkRequestApiLog·=·this.mWifiNetworkRequestApiLog; |
1073 | ············this.mWifiNetworkSuggestionApiLog.networkListSizeHistogram·=·this.mWifiNetworkSuggestionApiListSizeHistogram.toProto(); | 1080 | ············this.mWifiNetworkSuggestionApiLog.networkListSizeHistogram·=·this.mWifiNetworkSuggestionApiListSizeHistogram.toProto(); |
1074 | ············this.mWifiNetworkSuggestionApiLog.appCountPerType·=·(WifiMetricsProto$WifiNetworkSuggestionApiLog$SuggestionAppCount[])this.mWifiNetworkSuggestionApiAppTypeCounter.toProto((Class)WifiMetricsProto$WifiNetworkSuggestionApiLog$SuggestionAppCount.class,·(IntCounter$ProtobufConverter)-$$Lambda$WifiMetrics$g-i2Nizi6VjfljRFrCm5K8kpyCA.INSTANCE); | 1081 | ············this.mWifiNetworkSuggestionApiLog.appCountPerType·=·(WifiMetricsProto$WifiNetworkSuggestionApiLog$SuggestionAppCount[])this.mWifiNetworkSuggestionApiAppTypeCounter.toProto((Class)WifiMetricsProto$WifiNetworkSuggestionApiLog$SuggestionAppCount.class,·(IntCounter$ProtobufConverter)-$$Lambda$WifiMetrics$OvjpwQPe_nNiIDZ818Wor5vYCTg.INSTANCE); |
1075 | ············this.mWifiLogProto.wifiNetworkSuggestionApiLog·=·this.mWifiNetworkSuggestionApiLog; | 1082 | ············this.mWifiLogProto.wifiNetworkSuggestionApiLog·=·this.mWifiNetworkSuggestionApiLog; |
1076 | ············final·WifiMetricsProto$UserReactionToApprovalUiEvent·userReactionToApprovalUiEvent·=·new·WifiMetricsProto$UserReactionToApprovalUiEvent(); | 1083 | ············final·WifiMetricsProto$UserReactionToApprovalUiEvent·userReactionToApprovalUiEvent·=·new·WifiMetricsProto$UserReactionToApprovalUiEvent(); |
1077 | ············userReactionToApprovalUiEvent.userApprovalAppUiReaction·=·this.mUserApprovalSuggestionAppUiReactionList.toArray(new·WifiMetricsProto$UserReactionToApprovalUiEvent$UserReaction[0]); | 1084 | ············userReactionToApprovalUiEvent.userApprovalAppUiReaction·=·this.mUserApprovalSuggestionAppUiReactionList.toArray(new·WifiMetricsProto$UserReactionToApprovalUiEvent$UserReaction[0]); |
1078 | ············userReactionToApprovalUiEvent.userApprovalCarrierUiReaction·=·this.mUserApprovalCarrierUiReactionList.toArray(new·WifiMetricsProto$UserReactionToApprovalUiEvent$UserReaction[0]); | 1085 | ············userReactionToApprovalUiEvent.userApprovalCarrierUiReaction·=·this.mUserApprovalCarrierUiReactionList.toArray(new·WifiMetricsProto$UserReactionToApprovalUiEvent$UserReaction[0]); |
1079 | ············this.mWifiLogProto.userReactionToApprovalUiEvent·=·userReactionToApprovalUiEvent; | 1086 | ············this.mWifiLogProto.userReactionToApprovalUiEvent·=·userReactionToApprovalUiEvent; |
1080 | ············this.mWifiLockStats.highPerfLockAcqDurationSecHistogram·=·this.mWifiLockHighPerfAcqDurationSecHistogram.toProto(); | 1087 | ············this.mWifiLockStats.highPerfLockAcqDurationSecHistogram·=·this.mWifiLockHighPerfAcqDurationSecHistogram.toProto(); |
1081 | ············this.mWifiLockStats.lowLatencyLockAcqDurationSecHistogram·=·this.mWifiLockLowLatencyAcqDurationSecHistogram.toProto(); | 1088 | ············this.mWifiLockStats.lowLatencyLockAcqDurationSecHistogram·=·this.mWifiLockLowLatencyAcqDurationSecHistogram.toProto(); |
1082 | ············this.mWifiLockStats.highPerfActiveSessionDurationSecHistogram·=·this.mWifiLockHighPerfActiveSessionDurationSecHistogram.toProto(); | 1089 | ············this.mWifiLockStats.highPerfActiveSessionDurationSecHistogram·=·this.mWifiLockHighPerfActiveSessionDurationSecHistogram.toProto(); |
1083 | ············this.mWifiLockStats.lowLatencyActiveSessionDurationSecHistogram·=·this.mWifiLockLowLatencyActiveSessionDurationSecHistogram.toProto(); | 1090 | ············this.mWifiLockStats.lowLatencyActiveSessionDurationSecHistogram·=·this.mWifiLockLowLatencyActiveSessionDurationSecHistogram.toProto(); |
1084 | ············this.mWifiLogProto.wifiLockStats·=·this.mWifiLockStats; | 1091 | ············this.mWifiLogProto.wifiLockStats·=·this.mWifiLockStats; |
1085 | ············this.mWifiLogProto.wifiToggleStats·=·this.mWifiToggleStats; | 1092 | ············this.mWifiLogProto.wifiToggleStats·=·this.mWifiToggleStats; |
1086 | ············this.mWifiLogProto.passpointProvisionStats·=·new·WifiMetricsProto$PasspointProvisionStats(); | 1093 | ············this.mWifiLogProto.passpointProvisionStats·=·new·WifiMetricsProto$PasspointProvisionStats(); |
1087 | ············this.mWifiLogProto.passpointProvisionStats.numProvisionSuccess·=·this.mNumProvisionSuccess; | 1094 | ············this.mWifiLogProto.passpointProvisionStats.numProvisionSuccess·=·this.mNumProvisionSuccess; |
1088 | ············this.mWifiLogProto.passpointProvisionStats.provisionFailureCount·=·(WifiMetricsProto$PasspointProvisionStats$ProvisionFailureCount[])this.mPasspointProvisionFailureCounts.toProto((Class)WifiMetricsProto$PasspointProvisionStats$ProvisionFailureCount.class,·(IntCounter$ProtobufConverter)-$$Lambda$WifiMetrics$hCQnbfHa4CszDg9W7E2N3YuYGH0.INSTANCE); | 1095 | ············this.mWifiLogProto.passpointProvisionStats.provisionFailureCount·=·(WifiMetricsProto$PasspointProvisionStats$ProvisionFailureCount[])this.mPasspointProvisionFailureCounts.toProto((Class)WifiMetricsProto$PasspointProvisionStats$ProvisionFailureCount.class,·(IntCounter$ProtobufConverter)-$$Lambda$WifiMetrics$16WVNho1AvmpxQo_EpVKAzc0TGA.INSTANCE); |
1089 | ············this.mWifiLogProto.txLinkSpeedCount2G·=·this.mTxLinkSpeedCount2g.toProto(); | 1096 | ············this.mWifiLogProto.txLinkSpeedCount2G·=·this.mTxLinkSpeedCount2g.toProto(); |
1090 | ············this.mWifiLogProto.txLinkSpeedCount5GLow·=·this.mTxLinkSpeedCount5gLow.toProto(); | 1097 | ············this.mWifiLogProto.txLinkSpeedCount5GLow·=·this.mTxLinkSpeedCount5gLow.toProto(); |
1091 | ············this.mWifiLogProto.txLinkSpeedCount5GMid·=·this.mTxLinkSpeedCount5gMid.toProto(); | 1098 | ············this.mWifiLogProto.txLinkSpeedCount5GMid·=·this.mTxLinkSpeedCount5gMid.toProto(); |
1092 | ············this.mWifiLogProto.txLinkSpeedCount5GHigh·=·this.mTxLinkSpeedCount5gHigh.toProto(); | 1099 | ············this.mWifiLogProto.txLinkSpeedCount5GHigh·=·this.mTxLinkSpeedCount5gHigh.toProto(); |
1093 | ············this.mWifiLogProto.txLinkSpeedCount6GLow·=·this.mTxLinkSpeedCount6gLow.toProto(); | 1100 | ············this.mWifiLogProto.txLinkSpeedCount6GLow·=·this.mTxLinkSpeedCount6gLow.toProto(); |
1094 | ············this.mWifiLogProto.txLinkSpeedCount6GMid·=·this.mTxLinkSpeedCount6gMid.toProto(); | 1101 | ············this.mWifiLogProto.txLinkSpeedCount6GMid·=·this.mTxLinkSpeedCount6gMid.toProto(); |
1095 | ············this.mWifiLogProto.txLinkSpeedCount6GHigh·=·this.mTxLinkSpeedCount6gHigh.toProto(); | 1102 | ············this.mWifiLogProto.txLinkSpeedCount6GHigh·=·this.mTxLinkSpeedCount6gHigh.toProto(); |
Offset 1176, 15 lines modified | Offset 1183, 42 lines modified |
1176 | ········else·{ | 1183 | ········else·{ |
1177 | ············n·=·12; | 1184 | ············n·=·12; |
1178 | ········} | 1185 | ········} |
1179 | ········return·n; | 1186 | ········return·n; |
1180 | ····} | 1187 | ····} |
1181 | ···· | 1188 | ···· |
1182 | ····private·WifiMetricsProto$PasspointProfileTypeCount[]·convertPasspointProfilesToProto(final·IntCounter·intCounter)·{ | 1189 | ····private·WifiMetricsProto$PasspointProfileTypeCount[]·convertPasspointProfilesToProto(final·IntCounter·intCounter)·{ |
1183 | ········return·(WifiMetricsProto$PasspointProfileTypeCount[])intCounter.toProto((Class)WifiMetricsProto$PasspointProfileTypeCount.class,·(IntCounter$ProtobufConverter)-$$Lambda$WifiMetrics$44hWFHu2Ow6KJRWvZOKPKcJF7Ks.INSTANCE); | 1190 | ········return·(WifiMetricsProto$PasspointProfileTypeCount[])intCounter.toProto((Class)WifiMetricsProto$PasspointProfileTypeCount.class,·(IntCounter$ProtobufConverter)-$$Lambda$WifiMetrics$VfkmgOBI-fE761gbKu5kyfEh7ZY.INSTANCE); |
| 1191 | ····} |
| 1192 | ···· |
| 1193 | ····private·WifiMetricsProto$NetworkDisableReason·convertToNetworkDisableReason(final·WifiConfiguration·wifiConfiguration,·final·Set·set)·{ |
| 1194 | ········final·WifiConfiguration$NetworkSelectionStatus·networkSelectionStatus·=·wifiConfiguration.getNetworkSelectionStatus(); |
| 1195 | ········final·WifiMetricsProto$NetworkDisableReason·wifiMetricsProto$NetworkDisableReason·=·new·WifiMetricsProto$NetworkDisableReason(); |
| 1196 | ········final·boolean·allowAutojoin·=·wifiConfiguration.allowAutojoin; |
| 1197 | ········final·boolean·configPermanentlyDisabled·=·true; |
| 1198 | ········if·(allowAutojoin)·{ |
| 1199 | ············if·(!networkSelectionStatus.isNetworkEnabled())·{ |
| 1200 | ················wifiMetricsProto$NetworkDisableReason.disableReason·=·MetricsUtils.convertNetworkSelectionDisableReasonToWifiProtoEnum(networkSelectionStatus.getNetworkSelectionDisableReason()); |
| 1201 | ················if·(networkSelectionStatus.isNetworkPermanentlyDisabled())·{ |
| 1202 | ····················wifiMetricsProto$NetworkDisableReason.configPermanentlyDisabled·=·configPermanentlyDisabled; |
| 1203 | ················} |
| 1204 | ················else·{ |
| 1205 | ····················wifiMetricsProto$NetworkDisableReason.configTemporarilyDisabled·=·configPermanentlyDisabled; |
| 1206 | ················} |
| 1207 | ············} |
| 1208 | ········} |
| 1209 | ········else·{ |
| 1210 | ············wifiMetricsProto$NetworkDisableReason.disableReason·=·15; |
| 1211 | ············wifiMetricsProto$NetworkDisableReason.configPermanentlyDisabled·=·configPermanentlyDisabled; |
| 1212 | ········} |
| 1213 | ········final·int[]·array·=·set.stream().mapToInt((ToIntFunction)-$$Lambda$WifiMetrics$gtlE7S-z8oAxhHJ_WaqIJsUzgAo.INSTANCE).toArray(); |
| 1214 | ········if·(array.length·>·0)·{ |
| 1215 | ············wifiMetricsProto$NetworkDisableReason.bssidDisableReasons·=·array; |
| 1216 | ········} |
| 1217 | ········return·wifiMetricsProto$NetworkDisableReason; |
1184 | ····} | 1218 | ····} |
1185 | ···· | 1219 | ···· |
1186 | ····private·WifiMetricsProto$StaEvent$ConfigInfo·createConfigInfo(final·WifiConfiguration·wifiConfiguration)·{ | 1220 | ····private·WifiMetricsProto$StaEvent$ConfigInfo·createConfigInfo(final·WifiConfiguration·wifiConfiguration)·{ |
1187 | ········if·(wifiConfiguration·==·null)·{ | 1221 | ········if·(wifiConfiguration·==·null)·{ |
1188 | ············return·null; | 1222 | ············return·null; |
1189 | ········} | 1223 | ········} |
1190 | ········final·WifiMetricsProto$StaEvent$ConfigInfo·wifiMetricsProto$StaEvent$ConfigInfo·=·new·WifiMetricsProto$StaEvent$ConfigInfo(); | 1224 | ········final·WifiMetricsProto$StaEvent$ConfigInfo·wifiMetricsProto$StaEvent$ConfigInfo·=·new·WifiMetricsProto$StaEvent$ConfigInfo(); |
Offset 2201, 15 lines modified | Offset 2235, 15 lines modified |
2201 | ········orCreateDeviceMobilityStatePnoScanStats.totalDurationMs·+=·mCurrentDeviceMobilityStateStartMs·-·this.mCurrentDeviceMobilityStateStartMs; | 2235 | ········orCreateDeviceMobilityStatePnoScanStats.totalDurationMs·+=·mCurrentDeviceMobilityStateStartMs·-·this.mCurrentDeviceMobilityStateStartMs; |
2202 | ········this.mCurrentDeviceMobilityStateStartMs·=·mCurrentDeviceMobilityStateStartMs; | 2236 | ········this.mCurrentDeviceMobilityStateStartMs·=·mCurrentDeviceMobilityStateStartMs; |
2203 | ····} | 2237 | ····} |
2204 | ···· | 2238 | ···· |
2205 | ····private·void·updateMetricsFromNetworkDetail(final·NetworkDetail·networkDetail)·{ | 2239 | ····private·void·updateMetricsFromNetworkDetail(final·NetworkDetail·networkDetail)·{ |
2206 | ········final·int·dtimInterval·=·networkDetail.getDtimInterval(); | 2240 | ········final·int·dtimInterval·=·networkDetail.getDtimInterval(); |
2207 | ········if·(dtimInterval·>·0)·{ | 2241 | ········if·(dtimInterval·>·0)·{ |
2208 | ············WifiMetrics$RouterFingerPrint.access$1000(this.mCurrentConnectionEvent.mRouterFingerPrint).dtim·=·dtimInterval; | 2242 | ············WifiMetrics$RouterFingerPrint.access$1300(this.mCurrentConnectionEvent.mRouterFingerPrint).dtim·=·dtimInterval; |
2209 | ········} | 2243 | ········} |
2210 | ········final·int·wifiMode·=·networkDetail.getWifiMode(); | 2244 | ········final·int·wifiMode·=·networkDetail.getWifiMode(); |
2211 | ········final·int·n·=·1; | 2245 | ········final·int·n·=·1; |
2212 | ········int·routerTechnology·=·0; | 2246 | ········int·routerTechnology·=·0; |
2213 | ········switch·(wifiMode)·{ | 2247 | ········switch·(wifiMode)·{ |
2214 | ············default:·{ | 2248 | ············default:·{ |
2215 | ················routerTechnology·=·6; | 2249 | ················routerTechnology·=·6; |
Offset 2240, 46 lines modified | Offset 2274, 46 lines modified |
2240 | ················break; | 2274 | ················break; |
2241 | ············} | 2275 | ············} |
2242 | ············case·0:·{ | 2276 | ············case·0:·{ |
2243 | ················routerTechnology·=·0; | 2277 | ················routerTechnology·=·0; |
2244 | ················break; | 2278 | ················break; |
2245 | ············} | 2279 | ············} |
2246 | ········} | 2280 | ········} |
2247 | ········WifiMetrics$RouterFingerPrint.access$1000(this.mCurrentConnectionEvent.mRouterFingerPrint).routerTechnology·=·routerTechnology; | 2281 | ········WifiMetrics$RouterFingerPrint.access$1300(this.mCurrentConnectionEvent.mRouterFingerPrint).routerTechnology·=·routerTechnology; |
2248 | ········if·(networkDetail.isMboSupported())·{ | 2282 | ········if·(networkDetail.isMboSupported())·{ |
2249 | ············final·WifiMetricsProto$WifiLog·mWifiLogProto·=·this.mWifiLogProto; | 2283 | ············final·WifiMetricsProto$WifiLog·mWifiLogProto·=·this.mWifiLogProto; |
2250 | ············mWifiLogProto.numConnectToNetworkSupportingMbo·+=·n; | 2284 | ············mWifiLogProto.numConnectToNetworkSupportingMbo·+=·n; |
2251 | ············if·(networkDetail.isOceSupported())·{ | 2285 | ············if·(networkDetail.isOceSupported())·{ |
2252 | ················final·WifiMetricsProto$WifiLog·mWifiLogProto2·=·this.mWifiLogProto; | 2286 | ················final·WifiMetricsProto$WifiLog·mWifiLogProto2·=·this.mWifiLogProto; |
2253 | ················mWifiLogProto2.numConnectToNetworkSupportingOce·+=·n; | 2287 | ················mWifiLogProto2.numConnectToNetworkSupportingOce·+=·n; |
2254 | ············} | 2288 | ············} |
2255 | ········} | 2289 | ········} |
2256 | ····} | 2290 | ····} |
2257 | ···· | 2291 | ···· |
2258 | ····private·void·updateMetricsFromScanResult(final·ScanResult·scanResult)·{ | 2292 | ····private·void·updateMetricsFromScanResult(final·ScanResult·scanResult)·{ |
2259 | ········final·WifiMetrics$ConnectionEvent·mCurrentConnectionEvent·=·this.mCurrentConnectionEvent; | 2293 | ········final·WifiMetrics$ConnectionEvent·mCurrentConnectionEvent·=·this.mCurrentConnectionEvent; |
2260 | ········mCurrentConnectionEvent.mConnectionEvent.signalStrength·=·scanResult.level; | 2294 | ········mCurrentConnectionEvent.mConnectionEvent.signalStrength·=·scanResult.level; |
2261 | ········WifiMetrics$RouterFingerPrint.access$1000(mCurrentConnectionEvent.mRouterFingerPrint).authentication·=·1; | 2295 | ········WifiMetrics$RouterFingerPrint.access$1300(mCurrentConnectionEvent.mRouterFingerPrint).authentication·=·1; |
2262 | ········WifiMetrics$ConnectionEvent.access$1302(this.mCurrentConnectionEvent,·scanResult.BSSID); | 2296 | ········WifiMetrics$ConnectionEvent.access$1602(this.mCurrentConnectionEvent,·scanResult.BSSID); |
2263 | ········if·(scanResult.capabilities·!=·null)·{ | 2297 | ········if·(scanResult.capabilities·!=·null)·{ |
2264 | ············final·boolean·scanResultForWepNetwork·=·ScanResultUtil.isScanResultForWepNetwork(scanResult); | 2298 | ············final·boolean·scanResultForWepNetwork·=·ScanResultUtil.isScanResultForWepNetwork(scanResult); |
2265 | ············final·int·n·=·2; | 2299 | ············final·int·n·=·2; |
2266 | ············if·(scanResultForWepNetwork)·{ | 2300 | ············if·(scanResultForWepNetwork)·{ |
2267 | ················WifiMetrics$RouterFingerPrint.access$1000(this.mCurrentConnectionEvent.mRouterFingerPrint).authentication·=·n; | 2301 | ················WifiMetrics$RouterFingerPrint.access$1300(this.mCurrentConnectionEvent.mRouterFingerPrint).authentication·=·n; |
2268 | ············} | 2302 | ············} |
2269 | ············else·if·(!ScanResultUtil.isScanResultForPskNetwork(scanResult)·&&·!ScanResultUtil.isScanResultForSaeNetwork(scanResult))·{ | 2303 | ············else·if·(!ScanResultUtil.isScanResultForPskNetwork(scanResult)·&&·!ScanResultUtil.isScanResultForSaeNetwork(scanResult))·{ |
2270 | ················if·(ScanResultUtil.isScanResultForEapNetwork(scanResult)·||·ScanResultUtil.isScanResultForEapSuiteBNetwork(scanResult))·{ | 2304 | ················if·(ScanResultUtil.isScanResultForEapNetwork(scanResult)·||·ScanResultUtil.isScanResultForEapSuiteBNetwork(scanResult))·{ |
2271 | ····················WifiMetrics$RouterFingerPrint.access$1000(this.mCurrentConnectionEvent.mRouterFingerPrint).authentication·=·3; | 2305 | ····················WifiMetrics$RouterFingerPrint.access$1300(this.mCurrentConnectionEvent.mRouterFingerPrint).authentication·=·3; |
2272 | ················} | 2306 | ················} |
2273 | ············} | 2307 | ············} |
2274 | ············else·{ | 2308 | ············else·{ |
2275 | ················WifiMetrics$RouterFingerPrint.access$1000(this.mCurrentConnectionEvent.mRouterFingerPrint).authentication·=·n; | 2309 | ················WifiMetrics$RouterFingerPrint.access$1300(this.mCurrentConnectionEvent.mRouterFingerPrint).authentication·=·n; |
2276 | ············} | 2310 | ············} |
2277 | ········} | 2311 | ········} |
2278 | ········WifiMetrics$RouterFingerPrint.access$1000(this.mCurrentConnectionEvent.mRouterFingerPrint).channelInfo·=·scanResult.frequency; | 2312 | ········WifiMetrics$RouterFingerPrint.access$1300(this.mCurrentConnectionEvent.mRouterFingerPrint).channelInfo·=·scanResult.frequency; |
2279 | ····} | 2313 | ····} |
2280 | ···· | 2314 | ···· |
2281 | ····private·String·wifiSystemStateToString(final·int·n)·{ | 2315 | ····private·String·wifiSystemStateToString(final·int·n)·{ |
2282 | ········if·(n·==·0)·{ | 2316 | ········if·(n·==·0)·{ |
2283 | ············return·"WIFI_UNKNOWN"; | 2317 | ············return·"WIFI_UNKNOWN"; |
2284 | ········} | 2318 | ········} |
2285 | ········if·(n·==·1)·{ | 2319 | ········if·(n·==·1)·{ |
Offset 2364, 37 lines modified | Offset 2398, 38 lines modified |
2364 | ············Label_0031:·{ | 2398 | ············Label_0031:·{ |
2365 | ················if·(n·==·2)·{ | 2399 | ················if·(n·==·2)·{ |
2366 | ····················break·Label_0031; | 2400 | ····················break·Label_0031; |
2367 | ················} | 2401 | ················} |
2368 | ················try·{ | 2402 | ················try·{ |
2369 | ····················//·monitorexit(mLock) | 2403 | ····················//·monitorexit(mLock) |
2370 | ····················return; | 2404 | ····················return; |
2371 | ····················List·list·=·this.mSoftApEventListTethered; | 2405 | ····················Label_0113:·{ |
2372 | ················Block_6_Outer: | 2406 | ························return; |
| 2407 | ····················} |
| 2408 | ····················Label_0106: |
| 2409 | ····················--n; |
2373 | ····················while·(true)·{ | 2410 | ····················while·(true)·{ |
2374 | ························n·=·list.size()·-·n2; | 2411 | ························List·list·=·null; |
2375 | ························while·(true)·{ | 2412 | ························Label_0054:·{ |
2376 | ····························Label_0054:·{ | 2413 | ····························break·Label_0054; |
2377 | ································break·Label_0054; | 2414 | ····························list·=·this.mSoftApEventListTethered; |
| 2415 | ····························while·(true)·{ |
| 2416 | ································break·Label_0044; |
2378 | ································final·WifiMetricsProto$SoftApConnectedClientsEvent·wifiMetricsProto$SoftApConnectedClientsEvent; | 2417 | ································final·WifiMetricsProto$SoftApConnectedClientsEvent·wifiMetricsProto$SoftApConnectedClientsEvent; |
2379 | ································wifiMetricsProto$SoftApConnectedClientsEvent.channelFrequency·=·channelFrequency; | 2418 | ································wifiMetricsProto$SoftApConnectedClientsEvent.channelFrequency·=·channelFrequency; |
2380 | ································wifiMetricsProto$SoftApConnectedClientsEvent.channelBandwidth·=·channelBandwidth; | 2419 | ································wifiMetricsProto$SoftApConnectedClientsEvent.channelBandwidth·=·channelBandwidth; |
2381 | ································return; | 2420 | ································return; |
2382 | ································Label_0106:·{ | 2421 | ································n·=·list.size()·-·n2; |
2383 | ····································--n; | |
2384 | ································} | |
2385 | ································break·Label_0054; | 2422 | ································break·Label_0054; |
2386 | ································Label_0113: | 2423 | ································list·=·this.mSoftApEventListLocalOnly; |
2387 | ································return; | 2424 | ································continue; |
2388 | ····························} | 2425 | ····························} |
2389 | ····························final·WifiMetricsProto$SoftApConnectedClientsEvent·wifiMetricsProto$SoftApConnectedClientsEvent·=·(WifiMetricsProto$SoftApConnectedClientsEvent)list.get(n); | |
2390 | ····························continue; | |
2391 | ························} | 2426 | ························} |
2392 | ························list·=·this.mSoftApEventListLocalOnly; | 2427 | ························final·WifiMetricsProto$SoftApConnectedClientsEvent·wifiMetricsProto$SoftApConnectedClientsEvent·=·(WifiMetricsProto$SoftApConnectedClientsEvent)list.get(n); |
2393 | ························continue·Block_6_Outer; | 2428 | ························continue; |
2394 | ····················} | 2429 | ····················} |
2395 | ················} | 2430 | ················} |
2396 | ················//·iftrue(Label_0113:,·n·<·0) | 2431 | ················//·iftrue(Label_0113:,·n·<·0) |
2397 | ················//·iftrue(Label_0106:,·wifiMetricsProto$SoftApConnectedClientsEvent·==·null·||·wifiMetricsProto$SoftApConnectedClientsEvent.eventType·!=·0) | 2432 | ················//·iftrue(Label_0106:,·wifiMetricsProto$SoftApConnectedClientsEvent·==·null·||·wifiMetricsProto$SoftApConnectedClientsEvent.eventType·!=·0) |
2398 | ················finally·{ | 2433 | ················finally·{ |
2399 | ················} | 2434 | ················} |
2400 | ················//·monitorexit(mLock) | 2435 | ················//·monitorexit(mLock) |
Offset 3005, 14 lines modified | Offset 3040, 15 lines modified |
3005 | ························final·JSONObject·jsonObject·=·new·JSONObject(); | 3040 | ························final·JSONObject·jsonObject·=·new·JSONObject(); |
3006 | ························final·Map·mRssiPollCountsMap·=·wifiMetrics.mRssiPollCountsMap; | 3041 | ························final·Map·mRssiPollCountsMap·=·wifiMetrics.mRssiPollCountsMap; |
3007 | ························try·{ | 3042 | ························try·{ |
3008 | ····························final·Set<Map.Entry<Object,·V>>·entrySet·=·mRssiPollCountsMap.entrySet(); | 3043 | ····························final·Set<Map.Entry<Object,·V>>·entrySet·=·mRssiPollCountsMap.entrySet(); |
3009 | ····························try·{ | 3044 | ····························try·{ |
3010 | ································final·Iterator<Map.Entry<Object,·V>>·iterator2·=·entrySet.iterator(); | 3045 | ································final·Iterator<Map.Entry<Object,·V>>·iterator2·=·entrySet.iterator(); |
3011 | ································try·{ | 3046 | ································try·{ |
| 3047 | ································Label_3904: |
3012 | ····································while·(true)·{ | 3048 | ····································while·(true)·{ |
3013 | ········································Label_4094:·{ | 3049 | ········································Label_4094:·{ |
3014 | ············································if·(!iterator2.hasNext())·{ | 3050 | ············································if·(!iterator2.hasNext())·{ |
3015 | ················································break·Label_4094; | 3051 | ················································break·Label_4094; |
3016 | ············································} | 3052 | ············································} |
3017 | ············································final·Map.Entry<Object,·V>·next·=·iterator2.next(); | 3053 | ············································final·Map.Entry<Object,·V>·next·=·iterator2.next(); |
3018 | ············································try·{ | 3054 | ············································try·{ |
Offset 3045, 27 lines modified | Offset 3081, 28 lines modified |
3045 | ····························································································final·JSONObject·jsonObject2·=·new·JSONObject(); | 3081 | ····························································································final·JSONObject·jsonObject2·=·new·JSONObject(); |
3046 | ····························································································jsonObject2.put(Integer.toString(n5),·value2); | 3082 | ····························································································jsonObject2.put(Integer.toString(n5),·value2); |
3047 | ····························································································final·JSONArray·jsonArray2·=·jsonArray; | 3083 | ····························································································final·JSONArray·jsonArray2·=·jsonArray; |
3048 | ····························································································try·{ | 3084 | ····························································································try·{ |
3049 | ································································································jsonArray2.put((Object)jsonObject2); | 3085 | ································································································jsonArray2.put((Object)jsonObject2); |
3050 | ································································································++n5; | 3086 | ································································································++n5; |
3051 | ································································································continue; | 3087 | ································································································continue; |
| 3088 | ································································································jsonObject.put(Integer.toString(intValue),·(Object)jsonArray); |
| 3089 | ································································································continue·Label_3904; |
3052 | ································································································try·{ | 3090 | ································································································try·{ |
3053 | ····································································································final·StringBuilder·sb61·=·new·StringBuilder(); | 3091 | ····································································································final·StringBuilder·sb61·=·new·StringBuilder(); |
3054 | ····································································································sb61.append("mWifiLogProto.rssiPollCount:·"); | 3092 | ····································································································sb61.append("mWifiLogProto.rssiPollCount:·"); |
3055 | ····································································································sb61.append(jsonObject.toString()); | 3093 | ····································································································sb61.append(jsonObject.toString()); |
3056 | ····································································································printWriter.println(sb61.toString()); | 3094 | ····································································································printWriter.println(sb61.toString()); |
3057 | ································································································} | 3095 | ································································································} |
3058 | ································································································catch·(JSONException·ex)·{ | 3096 | ································································································catch·(JSONException·ex)·{ |
3059 | ····································································································final·StringBuilder·sb62·=·new·StringBuilder(); | 3097 | ····································································································final·StringBuilder·sb62·=·new·StringBuilder(); |
3060 | ····································································································sb62.append("JSONException·occurred:·"); | 3098 | ····································································································sb62.append("JSONException·occurred:·"); |
3061 | ····································································································sb62.append(ex.getMessage()); | 3099 | ····································································································sb62.append(ex.getMessage()); |
3062 | ····································································································printWriter.println(sb62.toString()); | 3100 | ····································································································printWriter.println(sb62.toString()); |
3063 | ································································································} | 3101 | ································································································} |
3064 | ································································································jsonObject.put(Integer.toString(intValue),·(Object)jsonArray); | |
3065 | ····························································································} | 3102 | ····························································································} |
3066 | ····························································································catch·(JSONException·ex2)·{ | 3103 | ····························································································catch·(JSONException·ex2)·{ |
3067 | ································································································printWriter.println("mWifiLogProto.rssiPollDeltaCount:·Printing·counts·for·[-127,·127]"); | 3104 | ································································································printWriter.println("mWifiLogProto.rssiPollDeltaCount:·Printing·counts·for·[-127,·127]"); |
3068 | ································································································final·StringBuilder·sb63·=·new·StringBuilder(); | 3105 | ································································································final·StringBuilder·sb63·=·new·StringBuilder(); |
3069 | ································································································for·(int·i·=·-127;·i·<=·127;·++i)·{ | 3106 | ································································································for·(int·i·=·-127;·i·<=·127;·++i)·{ |
3070 | ····································································································final·StringBuilder·sb64·=·new·StringBuilder(); | 3107 | ····································································································final·StringBuilder·sb64·=·new·StringBuilder(); |
3071 | ····································································································sb64.append(wifiMetrics.mRssiDeltaCounts.get(i)); | 3108 | ····································································································sb64.append(wifiMetrics.mRssiDeltaCounts.get(i)); |
Offset 4349, 37 lines modified | Offset 4386, 38 lines modified |
4349 | ····} | 4386 | ····} |
4350 | ···· | 4387 | ···· |
4351 | ····public·void·endConnectionEvent(int·connectionResultFailureCode,·int·connectivityLevelFailureCode,·int·signalStrength)·{ | 4388 | ····public·void·endConnectionEvent(int·connectionResultFailureCode,·int·connectivityLevelFailureCode,·int·signalStrength)·{ |
4352 | ········synchronized·(this.mLock)·{ | 4389 | ········synchronized·(this.mLock)·{ |
4353 | ············if·(this.mCurrentConnectionEvent·!=·null)·{ | 4390 | ············if·(this.mCurrentConnectionEvent·!=·null)·{ |
4354 | ················int·connectionResult·=·0; | 4391 | ················int·connectionResult·=·0; |
4355 | ················final·boolean·b·=·true; | 4392 | ················final·boolean·b·=·true; |
4356 | ················final·boolean·b2·=·connectionResultFailureCode·==·(b·?·1·:·0)·&&·connectivityLevelFailureCode·==·(b·?·1·:·0)·&&·b; | 4393 | ················final·boolean·connected·=·connectionResultFailureCode·==·(b·?·1·:·0)·&&·connectivityLevelFailureCode·==·(b·?·1·:·0)·&&·b; |
4357 | ················final·WifiMetricsProto$ConnectionEvent·mConnectionEvent·=·this.mCurrentConnectionEvent.mConnectionEvent; | 4394 | ················final·WifiMetricsProto$ConnectionEvent·mConnectionEvent·=·this.mCurrentConnectionEvent.mConnectionEvent; |
4358 | ················if·(b2)·{ | 4395 | ················if·(connected)·{ |
4359 | ····················connectionResult·=·(b·?·1·:·0); | 4396 | ····················connectionResult·=·(b·?·1·:·0); |
4360 | ················} | 4397 | ················} |
4361 | ················mConnectionEvent.connectionResult·=·connectionResult; | 4398 | ················mConnectionEvent.connectionResult·=·connectionResult; |
4362 | ················WifiMetrics$ConnectionEvent.access$1702(this.mCurrentConnectionEvent,·this.mClock.getElapsedSinceBootMillis()); | 4399 | ················WifiMetrics$ConnectionEvent.access$2002(this.mCurrentConnectionEvent,·this.mClock.getElapsedSinceBootMillis()); |
4363 | ················this.mCurrentConnectionEvent.mConnectionEvent.durationTakenToConnectMillis·=·(int)(WifiMetrics$ConnectionEvent.access$1700(this.mCurrentConnectionEvent)·-·WifiMetrics$ConnectionEvent.access$1200(this.mCurrentConnectionEvent)); | 4400 | ················this.mCurrentConnectionEvent.mConnectionEvent.durationTakenToConnectMillis·=·(int)(WifiMetrics$ConnectionEvent.access$2000(this.mCurrentConnectionEvent)·-·WifiMetrics$ConnectionEvent.access$1500(this.mCurrentConnectionEvent)); |
4364 | ················this.mCurrentConnectionEvent.mConnectionEvent.level2FailureCode·=·connectionResultFailureCode; | 4401 | ················this.mCurrentConnectionEvent.mConnectionEvent.level2FailureCode·=·connectionResultFailureCode; |
4365 | ················this.mCurrentConnectionEvent.mConnectionEvent.connectivityLevelFailureCode·=·connectivityLevelFailureCode; | 4402 | ················this.mCurrentConnectionEvent.mConnectionEvent.connectivityLevelFailureCode·=·connectivityLevelFailureCode; |
4366 | ················this.mCurrentConnectionEvent.mConnectionEvent.level2FailureReason·=·signalStrength; | 4403 | ················this.mCurrentConnectionEvent.mConnectionEvent.level2FailureReason·=·signalStrength; |
4367 | ················connectionResultFailureCode·=·this.getConnectionResultFailureCode(connectionResultFailureCode,·signalStrength); | 4404 | ················connectionResultFailureCode·=·this.getConnectionResultFailureCode(connectionResultFailureCode,·signalStrength); |
4368 | ················connectivityLevelFailureCode·=·-1; | 4405 | ················connectivityLevelFailureCode·=·-1; |
4369 | ················if·(connectionResultFailureCode·!=·connectivityLevelFailureCode)·{ | 4406 | ················if·(connectionResultFailureCode·!=·connectivityLevelFailureCode)·{ |
4370 | ····················connectivityLevelFailureCode·=·253; | 4407 | ····················connectivityLevelFailureCode·=·253; |
4371 | ····················signalStrength·=·this.mCurrentConnectionEvent.mConnectionEvent.signalStrength; | 4408 | ····················signalStrength·=·this.mCurrentConnectionEvent.mConnectionEvent.signalStrength; |
4372 | ····················WifiStatsLog.write(connectivityLevelFailureCode,·b2,·connectionResultFailureCode,·signalStrength); | 4409 | ····················WifiStatsLog.write(connectivityLevelFailureCode,·connected,·connectionResultFailureCode,·signalStrength); |
4373 | ················} | 4410 | ················} |
4374 | ················connectionResultFailureCode·=·0; | 4411 | ················connectionResultFailureCode·=·0; |
4375 | ················this.mCurrentConnectionEvent·=·null; | 4412 | ················this.mCurrentConnectionEvent·=·null; |
4376 | ················if·(!b2)·{ | 4413 | ················if·(!connected)·{ |
4377 | ····················this.mScanResultRssiTimestampMillis·=·-1; | 4414 | ····················this.mScanResultRssiTimestampMillis·=·-1; |
4378 | ················} | 4415 | ················} |
| 4416 | ················this.mWifiStatusBuilder.setConnected(connected); |
4379 | ············} | 4417 | ············} |
4380 | ········} | 4418 | ········} |
4381 | ····} | 4419 | ····} |
4382 | ···· | 4420 | ···· |
4383 | ····public·void·enterDeviceMobilityState(int·n)·{ | 4421 | ····public·void·enterDeviceMobilityState(int·n)·{ |
4384 | ········synchronized·(this.mLock)·{ | 4422 | ········synchronized·(this.mLock)·{ |
4385 | ············this.updateCurrentMobilityStateTotalDuration(this.mClock.getElapsedSinceBootMillis()); | 4423 | ············this.updateCurrentMobilityStateTotalDuration(this.mClock.getElapsedSinceBootMillis()); |
Offset 4463, 14 lines modified | Offset 4501, 16 lines modified |
4463 | ········this.mLastPollRssi·=·wifiInfo.getRssi(); | 4501 | ········this.mLastPollRssi·=·wifiInfo.getRssi(); |
4464 | ········this.mLastPollLinkSpeed·=·wifiInfo.getLinkSpeed(); | 4502 | ········this.mLastPollLinkSpeed·=·wifiInfo.getLinkSpeed(); |
4465 | ········this.incrementRssiPollRssiCount(this.mLastPollFreq·=·wifiInfo.getFrequency(),·this.mLastPollRssi); | 4503 | ········this.incrementRssiPollRssiCount(this.mLastPollFreq·=·wifiInfo.getFrequency(),·this.mLastPollRssi); |
4466 | ········this.incrementLinkSpeedCount(this.mLastPollLinkSpeed,·this.mLastPollRssi); | 4504 | ········this.incrementLinkSpeedCount(this.mLastPollLinkSpeed,·this.mLastPollRssi); |
4467 | ········this.mLastPollRxLinkSpeed·=·wifiInfo.getRxLinkSpeedMbps(); | 4505 | ········this.mLastPollRxLinkSpeed·=·wifiInfo.getRxLinkSpeedMbps(); |
4468 | ········this.incrementTxLinkSpeedBandCount(this.mLastPollLinkSpeed,·this.mLastPollFreq); | 4506 | ········this.incrementTxLinkSpeedBandCount(this.mLastPollLinkSpeed,·this.mLastPollFreq); |
4469 | ········this.incrementRxLinkSpeedBandCount(this.mLastPollRxLinkSpeed,·this.mLastPollFreq); | 4507 | ········this.incrementRxLinkSpeedBandCount(this.mLastPollRxLinkSpeed,·this.mLastPollFreq); |
| 4508 | ········this.mWifiStatusBuilder.setRssi(this.mLastPollRssi); |
| 4509 | ········this.mWifiStatusBuilder.setNetworkId(wifiInfo.getNetworkId()); |
4470 | ····} | 4510 | ····} |
4471 | ···· | 4511 | ···· |
4472 | ····public·void·incrementAvailableNetworksHistograms(final·List·list,·final·boolean·b)·{ | 4512 | ····public·void·incrementAvailableNetworksHistograms(final·List·list,·final·boolean·b)·{ |
4473 | ········synchronized·(this.mLock)·{ | 4513 | ········synchronized·(this.mLock)·{ |
4474 | ············if·(this.mWifiConfigManager·==·null·||·this.mWifiNetworkSelector·==·null·||·this.mPasspointManager·==·null)·{ | 4514 | ············if·(this.mWifiConfigManager·==·null·||·this.mWifiNetworkSelector·==·null·||·this.mPasspointManager·==·null)·{ |
4475 | ················return; | 4515 | ················return; |
4476 | ············} | 4516 | ············} |
Offset 5238, 41 lines modified | Offset 5278, 50 lines modified |
5238 | ····public·void·incrementNumWifiToggles(final·boolean·b,·final·boolean·b2)·{ | 5278 | ····public·void·incrementNumWifiToggles(final·boolean·b,·final·boolean·b2)·{ |
5239 | ········final·Object·mLock·=·this.mLock; | 5279 | ········final·Object·mLock·=·this.mLock; |
5240 | ········//·monitorenter(mLock) | 5280 | ········//·monitorenter(mLock) |
5241 | ········Label_0039:·{ | 5281 | ········Label_0039:·{ |
5242 | ············if·(!b·||·!b2)·{ | 5282 | ············if·(!b·||·!b2)·{ |
5243 | ················break·Label_0039; | 5283 | ················break·Label_0039; |
5244 | ············} | 5284 | ············} |
| 5285 | ············WifiMetricsProto$WifiToggleStats·mWifiToggleStats; |
| 5286 | ············WifiMetricsProto$WifiToggleStats·mWifiToggleStats2; |
| 5287 | ············WifiMetricsProto$WifiToggleStats·mWifiToggleStats3; |
| 5288 | ············WifiMetricsProto$WifiToggleStats·mWifiToggleStats4; |
| 5289 | ············Block_6_Outer:Block_8_Outer: |
5245 | ············while·(true)·{ | 5290 | ············while·(true)·{ |
5246 | ················try·{ | 5291 | ················try·{ |
5247 | ····················final·WifiMetricsProto$WifiToggleStats·mWifiToggleStats·=·this.mWifiToggleStats; | 5292 | ····················mWifiToggleStats·=·this.mWifiToggleStats; |
5248 | ····················++mWifiToggleStats.numToggleOnPrivileged; | 5293 | ····················++mWifiToggleStats.numToggleOnPrivileged; |
5249 | ····················break·Label_0112; | 5294 | ····················break·Label_0112; |
5250 | ················} | 5295 | ················} |
5251 | ················finally·{ | 5296 | ················finally·{ |
5252 | ····················//·monitorexit(mLock) | 5297 | ····················//·monitorexit(mLock) |
| 5298 | ····················//·iftrue(Label_0067:,·!b·||·b2) |
| 5299 | ····················//·iftrue(Label_0095:,·b·||·!b2) |
| 5300 | ····················while·(true)·{ |
| 5301 | ························while·(true)·{ |
| 5302 | ····························mWifiToggleStats2·=·this.mWifiToggleStats; |
| 5303 | ····························++mWifiToggleStats2.numToggleOffPrivileged; |
| 5304 | ····························break·Label_0112; |
| 5305 | ····························mWifiToggleStats3·=·this.mWifiToggleStats; |
| 5306 | ····························++mWifiToggleStats3.numToggleOnNormal; |
| 5307 | ····························break·Label_0112; |
| 5308 | ····························continue·Block_8_Outer; |
| 5309 | ························} |
| 5310 | ························Label_0067:·{ |
| 5311 | ····························continue; |
| 5312 | ························} |
| 5313 | ····················} |
5253 | ····················//·monitorexit(mLock) | 5314 | ····················//·monitorexit(mLock) |
5254 | ····················return; | 5315 | ····················return; |
5255 | ····················final·WifiMetricsProto$WifiToggleStats·mWifiToggleStats2; | |
5256 | ····················Label_0067:·{ | |
5257 | ························mWifiToggleStats2·=·this.mWifiToggleStats; | |
5258 | ····················} | |
5259 | ····················//·iftrue(Label_0095:,·b·||·!b2) | |
5260 | ····················++mWifiToggleStats2.numToggleOnNormal; | |
5261 | ····················continue; | |
5262 | ····················final·WifiMetricsProto$WifiToggleStats·mWifiToggleStats3; | |
5263 | ····················Label_0095:·{ | 5316 | ····················Label_0095:·{ |
5264 | ························mWifiToggleStats3·=·this.mWifiToggleStats; | 5317 | ························mWifiToggleStats4·=·this.mWifiToggleStats; |
5265 | ····················} | 5318 | ····················} |
5266 | ····················++mWifiToggleStats3.numToggleOffNormal; | 5319 | ····················++mWifiToggleStats4.numToggleOffNormal; |
5267 | ····················continue; | 5320 | ····················continue·Block_6_Outer; |
5268 | ····················//·iftrue(Label_0067:,·!b·||·b2) | |
5269 | ····················final·WifiMetricsProto$WifiToggleStats·mWifiToggleStats4·=·this.mWifiToggleStats; | |
5270 | ····················++mWifiToggleStats4.numToggleOffPrivileged; | |
5271 | ····················continue; | |
5272 | ················} | 5321 | ················} |
5273 | ················break; | 5322 | ················break; |
5274 | ············} | 5323 | ············} |
5275 | ········} | 5324 | ········} |
5276 | ····} | 5325 | ····} |
5277 | ···· | 5326 | ···· |
5278 | ····public·void·incrementNumWificondCrashes()·{ | 5327 | ····public·void·incrementNumWificondCrashes()·{ |
Offset 5469, 15 lines modified | Offset 5518, 15 lines modified |
5469 | ····················} | 5518 | ····················} |
5470 | ····················else·if·(n2·<=·6425)·{ | 5519 | ····················else·if·(n2·<=·6425)·{ |
5471 | ························this.mRxLinkSpeedCount6gLow.increment(n); | 5520 | ························this.mRxLinkSpeedCount6gLow.increment(n); |
5472 | ····················} | 5521 | ····················} |
5473 | ····················else·if·(n2·<=·6875)·{ | 5522 | ····················else·if·(n2·<=·6875)·{ |
5474 | ························this.mRxLinkSpeedCount6gMid.increment(n); | 5523 | ························this.mRxLinkSpeedCount6gMid.increment(n); |
5475 | ····················} | 5524 | ····················} |
5476 | ····················else·if·(n2·<=·7105)·{ | 5525 | ····················else·if·(n2·<=·7115)·{ |
5477 | ························this.mRxLinkSpeedCount6gHigh.increment(n); | 5526 | ························this.mRxLinkSpeedCount6gHigh.increment(n); |
5478 | ····················} | 5527 | ····················} |
5479 | ················} | 5528 | ················} |
5480 | ············} | 5529 | ············} |
5481 | ········} | 5530 | ········} |
5482 | ····} | 5531 | ····} |
5483 | ···· | 5532 | ···· |
Offset 5497, 82 lines modified | Offset 5546, 76 lines modified |
5497 | ············} | 5546 | ············} |
5498 | ············try·{ | 5547 | ············try·{ |
5499 | ················this.mSoftApManagerReturnCodeCounts.put(n,·this.mSoftApManagerReturnCodeCounts.get(n)·+·n); | 5548 | ················this.mSoftApManagerReturnCodeCounts.put(n,·this.mSoftApManagerReturnCodeCounts.get(n)·+·n); |
5500 | ············} | 5549 | ············} |
5501 | ············//·monitorexit(mLock) | 5550 | ············//·monitorexit(mLock) |
5502 | ············finally·{ | 5551 | ············finally·{ |
5503 | ················//·monitorexit(mLock) | 5552 | ················//·monitorexit(mLock) |
5504 | ················Label_0092:·{ | |
5505 | ····················final·int·n2·=·2; | |
5506 | ················} | |
5507 | ················//·iftrue(Label_0133:,·value·!=·n2) | |
5508 | ················//·iftrue(Label_0092:,·value·!=·n) | 5553 | ················//·iftrue(Label_0092:,·value·!=·n) |
5509 | ················//·monitorexit(mLock) | 5554 | ················//·monitorexit(mLock) |
| 5555 | ················//·iftrue(Label_0133:,·value·!=·n2) |
| 5556 | ············Label_0162: |
5510 | ················while·(true)·{ | 5557 | ················while·(true)·{ |
5511 | ····················Block_5:·{ | 5558 | ····················Block_4:·{ |
5512 | ························break·Block_5; | 5559 | ························break·Block_4; |
5513 | ························Block_4:·{ | 5560 | ························while·(true)·{ |
5514 | ····························break·Block_4; | 5561 | ····························final·SparseIntArray·mSoftApManagerReturnCodeCounts·=·this.mSoftApManagerReturnCodeCounts; |
| 5562 | ····························value·=·4; |
| 5563 | ····························this.mSoftApManagerReturnCodeCounts.put(value,·mSoftApManagerReturnCodeCounts.get(value)·+·n); |
| 5564 | ····························break·Label_0162; |
| 5565 | ····························final·int·n2; |
| 5566 | ····························Label_0133:·{ |
| 5567 | ································value·=·this.mSoftApManagerReturnCodeCounts.get(n2); |
| 5568 | ····························} |
| 5569 | ····························final·SparseIntArray·mSoftApManagerReturnCodeCounts2·=·this.mSoftApManagerReturnCodeCounts; |
| 5570 | ····························value·+=·n; |
| 5571 | ····························mSoftApManagerReturnCodeCounts2.put(n2,·value); |
5515 | ····························return; | 5572 | ····························return; |
| 5573 | ····························Label_0092: |
| 5574 | ····························n2·=·2; |
| 5575 | ····························continue; |
5516 | ························} | 5576 | ························} |
5517 | ························final·SparseIntArray·mSoftApManagerReturnCodeCounts·=·this.mSoftApManagerReturnCodeCounts; | |
5518 | ························value·=·3; | |
5519 | ························this.mSoftApManagerReturnCodeCounts.put(value,·mSoftApManagerReturnCodeCounts.get(value)·+·n); | |
5520 | ························continue; | |
5521 | ························final·int·n2; | |
5522 | ························Label_0133: | |
5523 | ························value·=·this.mSoftApManagerReturnCodeCounts.get(n2); | |
5524 | ························final·SparseIntArray·mSoftApManagerReturnCodeCounts2·=·this.mSoftApManagerReturnCodeCounts; | |
5525 | ························value·+=·n; | |
5526 | ························mSoftApManagerReturnCodeCounts2.put(n2,·value); | |
5527 | ························continue; | |
5528 | ····················} | 5577 | ····················} |
5529 | ····················final·SparseIntArray·mSoftApManagerReturnCodeCounts3·=·this.mSoftApManagerReturnCodeCounts; | 5578 | ····················final·SparseIntArray·mSoftApManagerReturnCodeCounts3·=·this.mSoftApManagerReturnCodeCounts; |
5530 | ····················value·=·4; | 5579 | ····················value·=·3; |
5531 | ····················this.mSoftApManagerReturnCodeCounts.put(value,·mSoftApManagerReturnCodeCounts3.get(value)·+·n); | 5580 | ····················this.mSoftApManagerReturnCodeCounts.put(value,·mSoftApManagerReturnCodeCounts3.get(value)·+·n); |
5532 | ····················continue; | 5581 | ····················continue·Label_0162; |
5533 | ················} | 5582 | ················} |
5534 | ············} | 5583 | ············} |
5535 | ········} | 5584 | ········} |
5536 | ····} | 5585 | ····} |
5537 | ···· | 5586 | ···· |
5538 | ····public·void·incrementSteeringRequestCountIncludingMboAssocRetryDelay()·{ | 5587 | ····public·void·incrementSteeringRequestCountIncludingMboAssocRetryDelay()·{ |
5539 | ········synchronized·(this.mLock)·{ | 5588 | ········synchronized·(this.mLock)·{ |
5540 | ············final·WifiMetricsProto$WifiLog·mWifiLogProto·=·this.mWifiLogProto; | 5589 | ············final·WifiMetricsProto$WifiLog·mWifiLogProto·=·this.mWifiLogProto; |
5541 | ············++mWifiLogProto.numSteeringRequestIncludingMboAssocRetryDelay; | 5590 | ············++mWifiLogProto.numSteeringRequestIncludingMboAssocRetryDelay; |
5542 | ········} | 5591 | ········} |
5543 | ····} | 5592 | ····} |
5544 | ···· | 5593 | ···· |
5545 | ····public·void·incrementThroughputKbpsCount(int·n,·int·n2,·int·is24GHz)·{ | 5594 | ····public·void·incrementThroughputKbpsCount(final·int·estimatedTxKbps,·final·int·estimatedRxKbps,·int·is24GHz)·{ |
5546 | ········synchronized·(this.mLock)·{ | 5595 | ········synchronized·(this.mLock)·{ |
5547 | ············is24GHz·=·(ScanResult.is24GHz(is24GHz)·?·1·:·0); | 5596 | ············is24GHz·=·(ScanResult.is24GHz(is24GHz)·?·1·:·0); |
5548 | ············if·(is24GHz·!=·0)·{ | 5597 | ············if·(is24GHz·!=·0)·{ |
5549 | ················if·(n·>=·0)·{ | 5598 | ················if·(estimatedTxKbps·>=·0)·{ |
5550 | ····················final·IntHistogram·mTxThroughputMbpsHistogram2G·=·this.mTxThroughputMbpsHistogram2G; | 5599 | ····················this.mTxThroughputMbpsHistogram2G.increment(estimatedTxKbps·/·1000); |
5551 | ····················n·/=·1000; | 5600 | ················} |
5552 | ····················mTxThroughputMbpsHistogram2G.increment(n); | 5601 | ················if·(estimatedRxKbps·>=·0)·{ |
5553 | ················} | 5602 | ····················this.mRxThroughputMbpsHistogram2G.increment(estimatedRxKbps·/·1000); |
5554 | ················if·(n2·>=·0)·{ | |
5555 | ····················final·IntHistogram·mRxThroughputMbpsHistogram2G·=·this.mRxThroughputMbpsHistogram2G; | |
5556 | ····················n2·/=·1000; | |
5557 | ····················mRxThroughputMbpsHistogram2G.increment(n2); | |
5558 | ················} | 5603 | ················} |
5559 | ············} | 5604 | ············} |
5560 | ············else·{ | 5605 | ············else·{ |
5561 | ················if·(n·>=·0)·{ | 5606 | ················if·(estimatedTxKbps·>=·0)·{ |
5562 | ····················final·IntHistogram·mTxThroughputMbpsHistogramAbove2G·=·this.mTxThroughputMbpsHistogramAbove2G; | 5607 | ····················this.mTxThroughputMbpsHistogramAbove2G.increment(estimatedTxKbps·/·1000); |
5563 | ····················n·/=·1000; | 5608 | ················} |
5564 | ····················mTxThroughputMbpsHistogramAbove2G.increment(n); | 5609 | ················if·(estimatedRxKbps·>=·0)·{ |
5565 | ················} | 5610 | ····················this.mRxThroughputMbpsHistogramAbove2G.increment(estimatedRxKbps·/·1000); |
5566 | ················if·(n2·>=·0)·{ | |
5567 | ····················final·IntHistogram·mRxThroughputMbpsHistogramAbove2G·=·this.mRxThroughputMbpsHistogramAbove2G; | |
5568 | ····················n2·/=·1000; | |
5569 | ····················mRxThroughputMbpsHistogramAbove2G.increment(n2); | |
5570 | ················} | 5611 | ················} |
5571 | ············} | 5612 | ············} |
| 5613 | ············this.mWifiStatusBuilder.setEstimatedTxKbps(estimatedTxKbps); |
| 5614 | ············this.mWifiStatusBuilder.setEstimatedRxKbps(estimatedRxKbps); |
5572 | ········} | 5615 | ········} |
5573 | ····} | 5616 | ····} |
5574 | ···· | 5617 | ···· |
5575 | ····public·void·incrementTxLinkSpeedBandCount(final·int·n,·final·int·n2)·{ | 5618 | ····public·void·incrementTxLinkSpeedBandCount(final·int·n,·final·int·n2)·{ |
5576 | ········if·(this.mContext.getResources().getBoolean(2130837513))·{ | 5619 | ········if·(this.mContext.getResources().getBoolean(2130837513))·{ |
5577 | ············if·(n·>=·0)·{ | 5620 | ············if·(n·>=·0)·{ |
5578 | ················synchronized·(this.mLock)·{ | 5621 | ················synchronized·(this.mLock)·{ |
Offset 5590, 15 lines modified | Offset 5633, 15 lines modified |
5590 | ····················} | 5633 | ····················} |
5591 | ····················else·if·(n2·<=·6425)·{ | 5634 | ····················else·if·(n2·<=·6425)·{ |
5592 | ························this.mTxLinkSpeedCount6gLow.increment(n); | 5635 | ························this.mTxLinkSpeedCount6gLow.increment(n); |
5593 | ····················} | 5636 | ····················} |
5594 | ····················else·if·(n2·<=·6875)·{ | 5637 | ····················else·if·(n2·<=·6875)·{ |
5595 | ························this.mTxLinkSpeedCount6gMid.increment(n); | 5638 | ························this.mTxLinkSpeedCount6gMid.increment(n); |
5596 | ····················} | 5639 | ····················} |
5597 | ····················else·if·(n2·<=·7105)·{ | 5640 | ····················else·if·(n2·<=·7115)·{ |
5598 | ························this.mTxLinkSpeedCount6gHigh.increment(n); | 5641 | ························this.mTxLinkSpeedCount6gHigh.increment(n); |
5599 | ····················} | 5642 | ····················} |
5600 | ················} | 5643 | ················} |
5601 | ············} | 5644 | ············} |
5602 | ········} | 5645 | ········} |
5603 | ····} | 5646 | ····} |
5604 | ···· | 5647 | ···· |
Offset 5813, 15 lines modified | Offset 5856, 15 lines modified |
5813 | ············sb.append("comparing·the·same·experiment·id:·"); | 5856 | ············sb.append("comparing·the·same·experiment·id:·"); |
5814 | ············sb.append(n); | 5857 | ············sb.append(n); |
5815 | ············Log.e("WifiMetrics",·sb.toString()); | 5858 | ············Log.e("WifiMetrics",·sb.toString()); |
5816 | ············return; | 5859 | ············return; |
5817 | ········} | 5860 | ········} |
5818 | ········final·Pair·pair·=·new·Pair((Object)n,·(Object)n2); | 5861 | ········final·Pair·pair·=·new·Pair((Object)n,·(Object)n2); |
5819 | ········synchronized·(this.mLock)·{ | 5862 | ········synchronized·(this.mLock)·{ |
5820 | ············final·WifiMetrics$NetworkSelectionExperimentResults·wifiMetrics$NetworkSelectionExperimentResults·=·(WifiMetrics$NetworkSelectionExperimentResults)this.mNetworkSelectionExperimentPairNumChoicesCounts.computeIfAbsent(pair,·(Function<?·super·Pair,·?·extends·WifiMetrics$NetworkSelectionExperimentResults>)-$$Lambda$WifiMetrics$TjxJXDOgKTkkf3v-hb8u3gJN0Pg.INSTANCE); | 5863 | ············final·WifiMetrics$NetworkSelectionExperimentResults·wifiMetrics$NetworkSelectionExperimentResults·=·(WifiMetrics$NetworkSelectionExperimentResults)this.mNetworkSelectionExperimentPairNumChoicesCounts.computeIfAbsent(pair,·(Function<?·super·Pair,·?·extends·WifiMetrics$NetworkSelectionExperimentResults>)-$$Lambda$WifiMetrics$Zw6AplRlKCKiR1pApp0LiBzd_GI.INSTANCE); |
5821 | ············IntCounter·intCounter; | 5864 | ············IntCounter·intCounter; |
5822 | ············if·(b)·{ | 5865 | ············if·(b)·{ |
5823 | ················intCounter·=·wifiMetrics$NetworkSelectionExperimentResults.sameSelectionNumChoicesCounter; | 5866 | ················intCounter·=·wifiMetrics$NetworkSelectionExperimentResults.sameSelectionNumChoicesCounter; |
5824 | ············} | 5867 | ············} |
5825 | ············else·{ | 5868 | ············else·{ |
5826 | ················intCounter·=·wifiMetrics$NetworkSelectionExperimentResults.differentSelectionNumChoicesCounter; | 5869 | ················intCounter·=·wifiMetrics$NetworkSelectionExperimentResults.differentSelectionNumChoicesCounter; |
5827 | ············} | 5870 | ············} |
Offset 5867, 15 lines modified | Offset 5910, 17 lines modified |
5867 | ············} | 5910 | ············} |
5868 | ············case·7: | 5911 | ············case·7: |
5869 | ············case·8: | 5912 | ············case·8: |
5870 | ············case·9: | 5913 | ············case·9: |
5871 | ············case·11: | 5914 | ············case·11: |
5872 | ············case·12: | 5915 | ············case·12: |
5873 | ············case·13: | 5916 | ············case·13: |
5874 | ············case·14: | 5917 | ············case·14:·{ |
| 5918 | ················this.mWifiStatusBuilder.setValidated(true); |
| 5919 | ············} |
5875 | ············case·15: | 5920 | ············case·15: |
5876 | ············case·16: | 5921 | ············case·16: |
5877 | ············case·17: | 5922 | ············case·17: |
5878 | ············case·18: | 5923 | ············case·18: |
5879 | ············case·19: | 5924 | ············case·19: |
5880 | ············case·20:·{ | 5925 | ············case·20:·{ |
5881 | ················final·WifiMetricsProto$StaEvent·wifiMetricsProto$StaEvent·=·new·WifiMetricsProto$StaEvent(); | 5926 | ················final·WifiMetricsProto$StaEvent·wifiMetricsProto$StaEvent·=·new·WifiMetricsProto$StaEvent(); |
Offset 6201, 26 lines modified | Offset 6246, 42 lines modified |
6201 | ···· | 6246 | ···· |
6202 | ····public·void·setNetworkSelectorExperimentId(final·int·mNetworkSelectorExperimentId)·{ | 6247 | ····public·void·setNetworkSelectorExperimentId(final·int·mNetworkSelectorExperimentId)·{ |
6203 | ········synchronized·(this.mLock)·{ | 6248 | ········synchronized·(this.mLock)·{ |
6204 | ············this.mNetworkSelectorExperimentId·=·mNetworkSelectorExperimentId; | 6249 | ············this.mNetworkSelectorExperimentId·=·mNetworkSelectorExperimentId; |
6205 | ········} | 6250 | ········} |
6206 | ····} | 6251 | ····} |
6207 | ···· | 6252 | ···· |
6208 | ····public·void·setNominatorForNetwork(final·int·n,·final·int·n2)·{ | 6253 | ····public·void·setNominatorForNetwork(int·userChoice,·int·networkId)·{ |
6209 | ········final·Object·mLock·=·this.mLock; | 6254 | ········final·Object·mLock·=·this.mLock; |
6210 | ········//·monitorenter(mLock) | 6255 | ········//·monitorenter(mLock) |
6211 | ········Label_0019:·{ | 6256 | ········Label_0019:·{ |
6212 | ············if·(n·!=·-1)·{ | 6257 | ············if·(userChoice·!=·-1)·{ |
6213 | ················break·Label_0019; | 6258 | ················break·Label_0019; |
6214 | ············} | 6259 | ············} |
6215 | ············try·{ | 6260 | ············try·{ |
6216 | ················//·monitorexit(mLock) | 6261 | ················//·monitorexit(mLock) |
6217 | ················return; | 6262 | ················return; |
6218 | ················this.mNetworkIdToNominatorId.put(n,·n2); | 6263 | ················while·(true)·{ |
| 6264 | ····················final·WifiMetrics$WifiStatusBuilder·mWifiStatusBuilder·=·this.mWifiStatusBuilder; |
| 6265 | ····················userChoice·=·1; |
| 6266 | ····················mWifiStatusBuilder.setUserChoice((boolean)(userChoice·!=·0)); |
| 6267 | ····················return; |
| 6268 | ····················this.mNetworkIdToNominatorId.put(userChoice,·networkId); |
| 6269 | ····················Block_3:·{ |
| 6270 | ························break·Block_3; |
| 6271 | ························Label_0071:·{ |
| 6272 | ····························return; |
| 6273 | ························} |
| 6274 | ····················} |
| 6275 | ····················networkId·=·this.mWifiStatusBuilder.getNetworkId(); |
| 6276 | ····················continue; |
| 6277 | ················} |
6219 | ············} | 6278 | ············} |
| 6279 | ············//·iftrue(Label_0071:,·networkId·!=·8) |
| 6280 | ············//·iftrue(Label_0071:,·networkId·!=·userChoice) |
6220 | ············finally·{ | 6281 | ············finally·{ |
6221 | ············} | 6282 | ············} |
6222 | ············//·monitorexit(mLock) | 6283 | ············//·monitorexit(mLock) |
6223 | ········} | 6284 | ········} |
6224 | ····} | 6285 | ····} |
6225 | ···· | 6286 | ···· |
6226 | ····public·void·setPasspointManager(final·PasspointManager·mPasspointManager)·{ | 6287 | ····public·void·setPasspointManager(final·PasspointManager·mPasspointManager)·{ |
Offset 6268, 21 lines modified | Offset 6329, 25 lines modified |
6268 | ····public·void·setWifiScoreCard(final·WifiScoreCard·mWifiScoreCard)·{ | 6329 | ····public·void·setWifiScoreCard(final·WifiScoreCard·mWifiScoreCard)·{ |
6269 | ········this.mWifiScoreCard·=·mWifiScoreCard; | 6330 | ········this.mWifiScoreCard·=·mWifiScoreCard; |
6270 | ····} | 6331 | ····} |
6271 | ···· | 6332 | ···· |
6272 | ····public·void·setWifiState(final·int·mWifiState)·{ | 6333 | ····public·void·setWifiState(final·int·mWifiState)·{ |
6273 | ········synchronized·(this.mLock)·{ | 6334 | ········synchronized·(this.mLock)·{ |
6274 | ············this.mWifiState·=·mWifiState; | 6335 | ············this.mWifiState·=·mWifiState; |
6275 | ············boolean·mWifiWinsUsabilityScore·=·true; | 6336 | ············boolean·mWifiWinsUsabilityScore·=·false; |
6276 | ············final·int·n·=·3; | 6337 | ············final·int·n·=·3; |
6277 | ············this.mWifiWins·=·(mWifiState·==·n·&&·mWifiWinsUsabilityScore); | 6338 | ············final·boolean·b·=·true; |
6278 | ············if·(mWifiState·!=·n)·{ | 6339 | ············this.mWifiWins·=·(mWifiState·==·n·&&·b); |
6279 | ················mWifiWinsUsabilityScore·=·false; | 6340 | ············if·(mWifiState·==·n)·{ |
| 6341 | ················mWifiWinsUsabilityScore·=·b; |
6280 | ············} | 6342 | ············} |
6281 | ············this.mWifiWinsUsabilityScore·=·mWifiWinsUsabilityScore; | 6343 | ············this.mWifiWinsUsabilityScore·=·mWifiWinsUsabilityScore; |
| 6344 | ············if·(mWifiState·==·2·||·mWifiState·==·(b·?·1·:·0))·{ |
| 6345 | ················this.mWifiStatusBuilder·=·new·WifiMetrics$WifiStatusBuilder(this); |
| 6346 | ············} |
6282 | ········} | 6347 | ········} |
6283 | ····} | 6348 | ····} |
6284 | ···· | 6349 | ···· |
6285 | ····public·void·setWifiWakeEnabled(final·boolean·isWifiWakeEnabled)·{ | 6350 | ····public·void·setWifiWakeEnabled(final·boolean·isWifiWakeEnabled)·{ |
6286 | ········synchronized·(this.mLock)·{ | 6351 | ········synchronized·(this.mLock)·{ |
6287 | ············this.mWifiLogProto.isWifiWakeEnabled·=·isWifiWakeEnabled; | 6352 | ············this.mWifiLogProto.isWifiWakeEnabled·=·isWifiWakeEnabled; |
6288 | ········} | 6353 | ········} |
Offset 6291, 17 lines modified | Offset 6356, 17 lines modified |
6291 | ····public·int·startConnectionEvent(final·WifiConfiguration·wifiConfiguration,·String·access$200,·int·n)·{ | 6356 | ····public·int·startConnectionEvent(final·WifiConfiguration·wifiConfiguration,·String·access$200,·int·n)·{ |
6292 | ········synchronized·(this.mLock)·{ | 6357 | ········synchronized·(this.mLock)·{ |
6293 | ············final·WifiMetrics$ConnectionEvent·mCurrentConnectionEvent·=·this.mCurrentConnectionEvent; | 6358 | ············final·WifiMetrics$ConnectionEvent·mCurrentConnectionEvent·=·this.mCurrentConnectionEvent; |
6294 | ············final·int·n2·=·7; | 6359 | ············final·int·n2·=·7; |
6295 | ············final·int·n3·=·1; | 6360 | ············final·int·n3·=·1; |
6296 | ············int·n4; | 6361 | ············int·n4; |
6297 | ············if·(mCurrentConnectionEvent·!=·null)·{ | 6362 | ············if·(mCurrentConnectionEvent·!=·null)·{ |
6298 | ················n4·=·(int)(this.mClock.getElapsedSinceBootMillis()·-·WifiMetrics$ConnectionEvent.access$1200(this.mCurrentConnectionEvent)); | 6363 | ················n4·=·(int)(this.mClock.getElapsedSinceBootMillis()·-·WifiMetrics$ConnectionEvent.access$1500(this.mCurrentConnectionEvent)); |
6299 | ················if·(WifiMetrics$ConnectionEvent.access$200(this.mCurrentConnectionEvent)·!=·null·&&·WifiMetrics$ConnectionEvent.access$1300(this.mCurrentConnectionEvent)·!=·null·&&·wifiConfiguration·!=·null·&&·WifiMetrics$ConnectionEvent.access$200(this.mCurrentConnectionEvent).equals(wifiConfiguration.SSID)·&&·(WifiMetrics$ConnectionEvent.access$1300(this.mCurrentConnectionEvent).equals("any")·||·WifiMetrics$ConnectionEvent.access$1300(this.mCurrentConnectionEvent).equals(access$200)))·{ | 6364 | ················if·(WifiMetrics$ConnectionEvent.access$200(this.mCurrentConnectionEvent)·!=·null·&&·WifiMetrics$ConnectionEvent.access$1600(this.mCurrentConnectionEvent)·!=·null·&&·wifiConfiguration·!=·null·&&·WifiMetrics$ConnectionEvent.access$200(this.mCurrentConnectionEvent).equals(wifiConfiguration.SSID)·&&·(WifiMetrics$ConnectionEvent.access$1600(this.mCurrentConnectionEvent).equals("any")·||·WifiMetrics$ConnectionEvent.access$1600(this.mCurrentConnectionEvent).equals(access$200)))·{ |
6300 | ····················WifiMetrics$ConnectionEvent.access$1302(this.mCurrentConnectionEvent,·access$200); | 6365 | ····················WifiMetrics$ConnectionEvent.access$1602(this.mCurrentConnectionEvent,·access$200); |
6301 | ····················this.endConnectionEvent(8,·n3,·0); | 6366 | ····················this.endConnectionEvent(8,·n3,·0); |
6302 | ················} | 6367 | ················} |
6303 | ················else·{ | 6368 | ················else·{ |
6304 | ····················this.endConnectionEvent(n2,·n3,·0); | 6369 | ····················this.endConnectionEvent(n2,·n3,·0); |
6305 | ················} | 6370 | ················} |
6306 | ············} | 6371 | ············} |
6307 | ············else·{ | 6372 | ············else·{ |
Offset 6309, 28 lines modified | Offset 6374, 28 lines modified |
6309 | ············} | 6374 | ············} |
6310 | ············while·(this.mConnectionEventList.size()·>=·256)·{ | 6375 | ············while·(this.mConnectionEventList.size()·>=·256)·{ |
6311 | ················this.mConnectionEventList.remove(0); | 6376 | ················this.mConnectionEventList.remove(0); |
6312 | ············} | 6377 | ············} |
6313 | ············final·WifiMetrics$ConnectionEvent·mCurrentConnectionEvent2·=·new·WifiMetrics$ConnectionEvent(this,·(WifiMetrics$1)null); | 6378 | ············final·WifiMetrics$ConnectionEvent·mCurrentConnectionEvent2·=·new·WifiMetrics$ConnectionEvent(this,·(WifiMetrics$1)null); |
6314 | ············this.mCurrentConnectionEvent·=·mCurrentConnectionEvent2; | 6379 | ············this.mCurrentConnectionEvent·=·mCurrentConnectionEvent2; |
6315 | ············mCurrentConnectionEvent2.mConnectionEvent.startTimeMillis·=·this.mClock.getWallClockMillis(); | 6380 | ············mCurrentConnectionEvent2.mConnectionEvent.startTimeMillis·=·this.mClock.getWallClockMillis(); |
6316 | ············WifiMetrics$ConnectionEvent.access$1302(this.mCurrentConnectionEvent,·access$200); | 6381 | ············WifiMetrics$ConnectionEvent.access$1602(this.mCurrentConnectionEvent,·access$200); |
6317 | ············this.mCurrentConnectionEvent.mConnectionEvent.roamType·=·n; | 6382 | ············this.mCurrentConnectionEvent.mConnectionEvent.roamType·=·n; |
6318 | ············final·WifiMetricsProto$ConnectionEvent·mConnectionEvent·=·this.mCurrentConnectionEvent.mConnectionEvent; | 6383 | ············final·WifiMetricsProto$ConnectionEvent·mConnectionEvent·=·this.mCurrentConnectionEvent.mConnectionEvent; |
6319 | ············n·=·this.mNetworkSelectorExperimentId; | 6384 | ············n·=·this.mNetworkSelectorExperimentId; |
6320 | ············mConnectionEvent.networkSelectorExperimentId·=·n; | 6385 | ············mConnectionEvent.networkSelectorExperimentId·=·n; |
6321 | ············this.mCurrentConnectionEvent.mRouterFingerPrint.updateFromWifiConfiguration(wifiConfiguration); | 6386 | ············this.mCurrentConnectionEvent.mRouterFingerPrint.updateFromWifiConfiguration(wifiConfiguration); |
6322 | ············WifiMetrics$ConnectionEvent.access$1302(this.mCurrentConnectionEvent,·"any"); | 6387 | ············WifiMetrics$ConnectionEvent.access$1602(this.mCurrentConnectionEvent,·"any"); |
6323 | ············WifiMetrics$ConnectionEvent.access$1202(this.mCurrentConnectionEvent,·this.mClock.getElapsedSinceBootMillis()); | 6388 | ············WifiMetrics$ConnectionEvent.access$1502(this.mCurrentConnectionEvent,·this.mClock.getElapsedSinceBootMillis()); |
6324 | ············final·WifiMetrics$ConnectionEvent·mCurrentConnectionEvent3·=·this.mCurrentConnectionEvent; | 6389 | ············final·WifiMetrics$ConnectionEvent·mCurrentConnectionEvent3·=·this.mCurrentConnectionEvent; |
6325 | ············n·=·this.mWifiState; | 6390 | ············n·=·this.mWifiState; |
6326 | ············WifiMetrics$ConnectionEvent.access$1502(mCurrentConnectionEvent3,·n); | 6391 | ············WifiMetrics$ConnectionEvent.access$1802(mCurrentConnectionEvent3,·n); |
6327 | ············final·WifiMetrics$ConnectionEvent·mCurrentConnectionEvent4·=·this.mCurrentConnectionEvent; | 6392 | ············final·WifiMetrics$ConnectionEvent·mCurrentConnectionEvent4·=·this.mCurrentConnectionEvent; |
6328 | ············n·=·(this.mScreenOn·?·1·:·0); | 6393 | ············n·=·(this.mScreenOn·?·1·:·0); |
6329 | ············WifiMetrics$ConnectionEvent.access$1602(mCurrentConnectionEvent4,·(boolean)(n·!=·0)); | 6394 | ············WifiMetrics$ConnectionEvent.access$1902(mCurrentConnectionEvent4,·(boolean)(n·!=·0)); |
6330 | ············this.mConnectionEventList.add(this.mCurrentConnectionEvent); | 6395 | ············this.mConnectionEventList.add(this.mCurrentConnectionEvent); |
6331 | ············this.mScanResultRssiTimestampMillis·=·-1; | 6396 | ············this.mScanResultRssiTimestampMillis·=·-1; |
6332 | ············if·(wifiConfiguration·!=·null)·{ | 6397 | ············if·(wifiConfiguration·!=·null)·{ |
6333 | ················final·WifiMetricsProto$ConnectionEvent·mConnectionEvent2·=·this.mCurrentConnectionEvent.mConnectionEvent; | 6398 | ················final·WifiMetricsProto$ConnectionEvent·mConnectionEvent2·=·this.mCurrentConnectionEvent.mConnectionEvent; |
6334 | ················n·=·wifiConfiguration.macRandomizationSetting; | 6399 | ················n·=·wifiConfiguration.macRandomizationSetting; |
6335 | ················if·(n·==·n3)·{ | 6400 | ················if·(n·==·n3)·{ |
6336 | ····················n·=·n3; | 6401 | ····················n·=·n3; |
Offset 6347, 15 lines modified | Offset 6412, 15 lines modified |
6347 | ················mConnectionEvent4.connectionNominator·=·n; | 6412 | ················mConnectionEvent4.connectionNominator·=·n; |
6348 | ················final·ScanResult·candidate·=·wifiConfiguration.getNetworkSelectionStatus().getCandidate(); | 6413 | ················final·ScanResult·candidate·=·wifiConfiguration.getNetworkSelectionStatus().getCandidate(); |
6349 | ················if·(candidate·!=·null)·{ | 6414 | ················if·(candidate·!=·null)·{ |
6350 | ····················this.mScanResultRssi·=·candidate.level; | 6415 | ····················this.mScanResultRssi·=·candidate.level; |
6351 | ····················this.mScanResultRssiTimestampMillis·=·this.mClock.getElapsedSinceBootMillis(); | 6416 | ····················this.mScanResultRssiTimestampMillis·=·this.mClock.getElapsedSinceBootMillis(); |
6352 | ················} | 6417 | ················} |
6353 | ················final·WifiMetricsProto$ConnectionEvent·mConnectionEvent5·=·this.mCurrentConnectionEvent.mConnectionEvent; | 6418 | ················final·WifiMetricsProto$ConnectionEvent·mConnectionEvent5·=·this.mCurrentConnectionEvent.mConnectionEvent; |
6354 | ················n·=·this.mBssidBlocklistMonitor.getNumBlockedBssidsForSsid(wifiConfiguration.SSID); | 6419 | ················n·=·this.mBssidBlocklistMonitor.updateAndGetNumBlockedBssidsForSsid(wifiConfiguration.SSID); |
6355 | ················mConnectionEvent5.numBssidInBlocklist·=·n; | 6420 | ················mConnectionEvent5.numBssidInBlocklist·=·n; |
6356 | ················this.mCurrentConnectionEvent.mConnectionEvent.networkType·=·0; | 6421 | ················this.mCurrentConnectionEvent.mConnectionEvent.networkType·=·0; |
6357 | ················this.mCurrentConnectionEvent.mConnectionEvent.isOsuProvisioned·=·false; | 6422 | ················this.mCurrentConnectionEvent.mConnectionEvent.isOsuProvisioned·=·false; |
6358 | ················final·boolean·passpoint·=·wifiConfiguration.isPasspoint(); | 6423 | ················final·boolean·passpoint·=·wifiConfiguration.isPasspoint(); |
6359 | ················n·=·2; | 6424 | ················n·=·2; |
6360 | ················if·(passpoint)·{ | 6425 | ················if·(passpoint)·{ |
6361 | ····················this.mCurrentConnectionEvent.mConnectionEvent.networkType·=·3; | 6426 | ····················this.mCurrentConnectionEvent.mConnectionEvent.networkType·=·3; |
Offset 6559, 40 lines modified | Offset 6624, 44 lines modified |
6559 | ············Label_0028:·{ | 6624 | ············Label_0028:·{ |
6560 | ················if·(n·==·2)·{ | 6625 | ················if·(n·==·2)·{ |
6561 | ····················break·Label_0028; | 6626 | ····················break·Label_0028; |
6562 | ················} | 6627 | ················} |
6563 | ················try·{ | 6628 | ················try·{ |
6564 | ····················//·monitorexit(mLock) | 6629 | ····················//·monitorexit(mLock) |
6565 | ····················return; | 6630 | ····················return; |
6566 | ····················List·list·=·this.mSoftApEventListLocalOnly; | |
6567 | ····················//·iftrue(Label_0111:,·n·<·0) | |
6568 | ····················//·iftrue(Label_0104:,·wifiMetricsProto$SoftApConnectedClientsEvent·==·null·||·wifiMetricsProto$SoftApConnectedClientsEvent.eventType·!=·0) | |
6569 | ····················while·(true)·{ | 6631 | ····················while·(true)·{ |
| 6632 | ························List·list·=·null; |
6570 | ························Label_0041:·{ | 6633 | ························Label_0041:·{ |
6571 | ····························break·Label_0041; | 6634 | ····························Block_4:·{ |
6572 | ····························while·(true)·{ | 6635 | ································break·Block_4; |
6573 | ································final·WifiMetricsProto$SoftApConnectedClientsEvent·wifiMetricsProto$SoftApConnectedClientsEvent; | 6636 | ································list·=·this.mSoftApEventListTethered; |
6574 | ································wifiMetricsProto$SoftApConnectedClientsEvent.maxNumClientsSettingInSoftapCapability·=·softApCapability.getMaxSupportedClients(); | 6637 | ································break·Label_0041; |
6575 | ································return; | 6638 | ····························} |
6576 | ································wifiMetricsProto$SoftApConnectedClientsEvent·=·list.get(n); | 6639 | ····························final·WifiMetricsProto$SoftApConnectedClientsEvent·wifiMetricsProto$SoftApConnectedClientsEvent·=·(WifiMetricsProto$SoftApConnectedClientsEvent)list.get(n); |
| 6640 | ····························Block_6:·{ |
| 6641 | ································break·Block_6; |
| 6642 | ································Label_0104:·{ |
| 6643 | ····································--n; |
| 6644 | ································} |
6577 | ································continue; | 6645 | ································continue; |
6578 | ····························} | 6646 | ····························} |
| 6647 | ····························wifiMetricsProto$SoftApConnectedClientsEvent.maxNumClientsSettingInSoftapCapability·=·softApCapability.getMaxSupportedClients(); |
| 6648 | ····························return; |
| 6649 | ····························list·=·this.mSoftApEventListLocalOnly; |
| 6650 | ····························break·Label_0041; |
6579 | ····························Label_0111:·{ | 6651 | ····························Label_0111:·{ |
6580 | ································return; | 6652 | ································return; |
6581 | ····························} | 6653 | ····························} |
6582 | ····························list·=·this.mSoftApEventListTethered; | |
6583 | ····························break·Label_0041; | |
6584 | ····························Label_0104: | |
6585 | ····························--n; | |
6586 | ····························continue; | |
6587 | ························} | 6654 | ························} |
6588 | ························n·=·list.size()·-·n2; | 6655 | ························n·=·list.size()·-·n2; |
6589 | ························continue; | 6656 | ························continue; |
6590 | ····················} | 6657 | ····················} |
6591 | ················} | 6658 | ················} |
| 6659 | ················//·iftrue(Label_0111:,·n·<·0) |
| 6660 | ················//·iftrue(Label_0104:,·wifiMetricsProto$SoftApConnectedClientsEvent·==·null·||·wifiMetricsProto$SoftApConnectedClientsEvent.eventType·!=·0) |
6592 | ················finally·{ | 6661 | ················finally·{ |
6593 | ················} | 6662 | ················} |
6594 | ················//·monitorexit(mLock) | 6663 | ················//·monitorexit(mLock) |
6595 | ············} | 6664 | ············} |
6596 | ········} | 6665 | ········} |
6597 | ····} | 6666 | ····} |
6598 | ···· | 6667 | ···· |
Offset 6607, 46 lines modified | Offset 6676, 44 lines modified |
6607 | ············Label_0028:·{ | 6676 | ············Label_0028:·{ |
6608 | ················if·(n·==·2)·{ | 6677 | ················if·(n·==·2)·{ |
6609 | ····················break·Label_0028; | 6678 | ····················break·Label_0028; |
6610 | ················} | 6679 | ················} |
6611 | ················try·{ | 6680 | ················try·{ |
6612 | ····················//·monitorexit(mLock) | 6681 | ····················//·monitorexit(mLock) |
6613 | ····················return; | 6682 | ····················return; |
6614 | ····················List·list·=·this.mSoftApEventListLocalOnly; | 6683 | ····················List·list·=·this.mSoftApEventListTethered; |
6615 | ····················//·iftrue(Label_0137:,·n·<·0) | 6684 | ····················//·iftrue(Label_0137:,·n·<·0) |
6616 | ····················//·iftrue(Label_0130:,·wifiMetricsProto$SoftApConnectedClientsEvent·==·null·||·wifiMetricsProto$SoftApConnectedClientsEvent.eventType·!=·0) | 6685 | ····················WifiMetricsProto$SoftApConnectedClientsEvent·wifiMetricsProto$SoftApConnectedClientsEvent; |
| 6686 | ····················Label_0051:Block_6_Outer: |
6617 | ····················while·(true)·{ | 6687 | ····················while·(true)·{ |
6618 | ························Label_0041:·{ | 6688 | ························while·(true)·{ |
6619 | ····························break·Label_0041; | 6689 | ························Block_4: |
6620 | ····························Label_0137:·{ | |
6621 | ································return; | |
6622 | ····························} | |
6623 | ····························list·=·this.mSoftApEventListTethered; | |
6624 | ····························break·Label_0041; | |
6625 | ····························while·(true)·{ | 6690 | ····························while·(true)·{ |
6626 | ································Block_4:·{ | 6691 | ································n·=·list.size()·-·n2; |
6627 | ····································break·Block_4; | 6692 | ································break·Label_0051; |
6628 | ····································final·WifiMetricsProto$SoftApConnectedClientsEvent·wifiMetricsProto$SoftApConnectedClientsEvent; | 6693 | ································wifiMetricsProto$SoftApConnectedClientsEvent.maxNumClientsSettingInSoftapConfiguration·=·softApConfiguration.getMaxNumberOfClients(); |
6629 | ····································wifiMetricsProto$SoftApConnectedClientsEvent.maxNumClientsSettingInSoftapConfiguration·=·softApConfiguration.getMaxNumberOfClients(); | 6694 | ································wifiMetricsProto$SoftApConnectedClientsEvent.shutdownTimeoutSettingInSoftapConfiguration·=·softApConfiguration.getShutdownTimeoutMillis(); |
6630 | ····································wifiMetricsProto$SoftApConnectedClientsEvent.shutdownTimeoutSettingInSoftapConfiguration·=·softApConfiguration.getShutdownTimeoutMillis(); | 6695 | ································wifiMetricsProto$SoftApConnectedClientsEvent.clientControlIsEnabled·=·softApConfiguration.isClientControlByUserEnabled(); |
6631 | ····································wifiMetricsProto$SoftApConnectedClientsEvent.clientControlIsEnabled·=·softApConfiguration.isClientControlByUserEnabled(); | 6696 | ································Label_0137:·{ |
6632 | ····································return; | 6697 | ····································return; |
6633 | ································} | 6698 | ································} |
6634 | ································final·WifiMetricsProto$SoftApConnectedClientsEvent·wifiMetricsProto$SoftApConnectedClientsEvent·=·(WifiMetricsProto$SoftApConnectedClientsEvent)list.get(n); | 6699 | ································break·Block_4; |
6635 | ································continue; | 6700 | ································list·=·this.mSoftApEventListLocalOnly; |
| 6701 | ································continue·Block_6_Outer; |
6636 | ····························} | 6702 | ····························} |
| 6703 | ····························wifiMetricsProto$SoftApConnectedClientsEvent·=·list.get(n); |
| 6704 | ····························continue; |
6637 | ························} | 6705 | ························} |
6638 | ························n·=·list.size()·-·n2; | |
6639 | ························continue; | |
6640 | ························Label_0130:·{ | 6706 | ························Label_0130:·{ |
6641 | ····························--n; | 6707 | ····························--n; |
6642 | ························} | 6708 | ························} |
6643 | ························continue; | 6709 | ························continue·Label_0051; |
6644 | ····················} | 6710 | ····················} |
6645 | ················} | 6711 | ················} |
| 6712 | ················//·iftrue(Label_0130:,·wifiMetricsProto$SoftApConnectedClientsEvent·==·null·||·wifiMetricsProto$SoftApConnectedClientsEvent.eventType·!=·0) |
6646 | ················finally·{ | 6713 | ················finally·{ |
6647 | ················} | 6714 | ················} |
6648 | ················//·monitorexit(mLock) | 6715 | ················//·monitorexit(mLock) |
6649 | ············} | 6716 | ············} |
6650 | ········} | 6717 | ········} |
6651 | ····} | 6718 | ····} |
6652 | ···· | 6719 | ···· |
Offset 6668, 162 lines modified | Offset 6735, 161 lines modified |
6668 | ················break·Label_0018; | 6735 | ················break·Label_0018; |
6669 | ············} | 6736 | ············} |
6670 | ············try·{ | 6737 | ············try·{ |
6671 | ············} | 6738 | ············} |
6672 | ············//·monitorexit(mLock) | 6739 | ············//·monitorexit(mLock) |
6673 | ············finally·{ | 6740 | ············finally·{ |
6674 | ················//·monitorexit(mLock) | 6741 | ················//·monitorexit(mLock) |
6675 | ················WifiMetricsProto$WifiUsabilityStatsEntry·wifiMetricsProto$WifiUsabilityStatsEntry·=·null; | 6742 | ················//·iftrue(Label_0097:,·wifiLinkLayerStats·!=·null) |
6676 | ················Label_0134:·{ | 6743 | ················//·iftrue(Label_0634:,·wifiLinkLayerStats$ChannelStats·==·null) |
6677 | ····················wifiMetricsProto$WifiUsabilityStatsEntry·=·this.mWifiUsabilityStatsEntriesList.remove(); | 6744 | ················//·iftrue(Label_1159:,·n·>·90000L) |
6678 | ················} | 6745 | ················//·iftrue(Label_1159:,·mScoreBreachLowTimeMillis2·==·mScoreBreachLowTimeMillis) |
6679 | ················//·monitorexit(mLock) | 6746 | ················//·iftrue(Label_0928:,·mProbeStatusSinceLastUpdate·==·probeStatusSinceLastUpdate) |
6680 | ················//·iftrue(Label_1159:,·mScoreBreachLowTimeMillis·==·mScoreBreachLowTimeMillis2) | 6747 | ················//·iftrue(Label_0918:,·mProbeStatusSinceLastUpdate·==·probeStatusSinceLastUpdate2) |
| 6748 | ················//·iftrue(Label_0938:,·mProbeStatusSinceLastUpdate·==·n3) |
| 6749 | ················//·iftrue(Label_1159:,·n·<·60000L) |
6681 | ················//·iftrue(Label_1064:,·mWifiUsabilityStatsCounter·<·100) | 6750 | ················//·iftrue(Label_1064:,·mWifiUsabilityStatsCounter·<·100) |
6682 | ················int·probeStatusSinceLastUpdate; | 6751 | ················//·iftrue(Label_0134:,·this.mWifiUsabilityStatsEntriesList.size()·>=·40) |
6683 | ················boolean·isSameBssidAndFreq; | 6752 | ················//·monitorexit(mLock) |
6684 | ················int·n; | |
6685 | ················int·n2; | |
6686 | ················long·mScoreBreachLowTimeMillis; | |
6687 | ················long·mScoreBreachLowTimeMillis2·=·0L; | |
6688 | ················int·mWifiUsabilityStatsCounter; | |
6689 | ················WifiLinkLayerStats$ChannelStats·wifiLinkLayerStats$ChannelStats; | |
6690 | ················long·n3; | |
6691 | ················int·probeStatusSinceLastUpdate2; | |
6692 | ················int·mProbeStatusSinceLastUpdate; | |
6693 | ················String·mLastBssid; | |
6694 | ················String·s; | |
6695 | ················StringBuilder·sb; | |
6696 | ················Label_1159_Outer:Block_12_Outer:Block_17_Outer: | |
6697 | ················while·(true)·{ | 6753 | ················while·(true)·{ |
| 6754 | ····················WifiMetricsProto$WifiUsabilityStatsEntry·wifiMetricsProto$WifiUsabilityStatsEntry·=·null; |
| 6755 | ····················WifiLinkLayerStats$ChannelStats·wifiLinkLayerStats$ChannelStats·=·null; |
| 6756 | ····················long·mScoreBreachLowTimeMillis; |
| 6757 | ····················long·n; |
| 6758 | ····················int·probeStatusSinceLastUpdate; |
| 6759 | ····················long·mScoreBreachLowTimeMillis2; |
| 6760 | ····················int·mProbeStatusSinceLastUpdate; |
| 6761 | ····················int·probeStatusSinceLastUpdate2; |
| 6762 | ····················String·mLastBssid; |
| 6763 | ····················int·n2·=·0; |
| 6764 | ····················int·n3·=·0; |
| 6765 | ····················boolean·isSameBssidAndFreq; |
| 6766 | ····················int·mWifiUsabilityStatsCounter; |
| 6767 | ····················String·s; |
| 6768 | ····················StringBuilder·sb; |
| 6769 | ····················Label_0945:Label_0634_Outer: |
6698 | ····················while·(true)·{ | 6770 | ····················while·(true)·{ |
6699 | ························Block_16:·{ | 6771 | ························Block_13:·{ |
6700 | ····························Block_13:·{ | 6772 | ····························while·(true)·{ |
| 6773 | ································Block_6:Block_16_Outer:Label_0097_Outer: |
6701 | ································while·(true)·{ | 6774 | ································while·(true)·{ |
6702 | ····································Label_0634:·{ | 6775 | ····································while·(true)·{ |
6703 | ········································Block_14_Outer:Block_5_Outer: | 6776 | ········································Block_4:·{ |
6704 | ········································while·(true)·{ | 6777 | ············································break·Block_4; |
| 6778 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.timeStampMs·=·wifiLinkLayerStats.timeStampInMs; |
| 6779 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalTxSuccess·=·wifiLinkLayerStats.txmpdu_be·+·wifiLinkLayerStats.txmpdu_bk·+·wifiLinkLayerStats.txmpdu_vi·+·wifiLinkLayerStats.txmpdu_vo; |
| 6780 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalTxRetries·=·wifiLinkLayerStats.retries_be·+·wifiLinkLayerStats.retries_bk·+·wifiLinkLayerStats.retries_vi·+·wifiLinkLayerStats.retries_vo; |
| 6781 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalTxBad·=·wifiLinkLayerStats.lostmpdu_be·+·wifiLinkLayerStats.lostmpdu_bk·+·wifiLinkLayerStats.lostmpdu_vi·+·wifiLinkLayerStats.lostmpdu_vo; |
| 6782 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalRxSuccess·=·wifiLinkLayerStats.rxmpdu_be·+·wifiLinkLayerStats.rxmpdu_bk·+·wifiLinkLayerStats.rxmpdu_vi·+·wifiLinkLayerStats.rxmpdu_vo; |
| 6783 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalRadioOnTimeMs·=·wifiLinkLayerStats.on_time; |
| 6784 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalRadioTxTimeMs·=·wifiLinkLayerStats.tx_time; |
| 6785 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalRadioRxTimeMs·=·wifiLinkLayerStats.rx_time; |
| 6786 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalScanTimeMs·=·wifiLinkLayerStats.on_time_scan; |
| 6787 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalNanScanTimeMs·=·wifiLinkLayerStats.on_time_nan_scan; |
| 6788 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalBackgroundScanTimeMs·=·wifiLinkLayerStats.on_time_background_scan; |
| 6789 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalRoamScanTimeMs·=·wifiLinkLayerStats.on_time_roam_scan; |
| 6790 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalPnoScanTimeMs·=·wifiLinkLayerStats.on_time_pno_scan; |
| 6791 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.totalHotspot2ScanTimeMs·=·wifiLinkLayerStats.on_time_hs20_scan; |
| 6792 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.rssi·=·wifiInfo.getRssi(); |
| 6793 | ············································wifiMetricsProto$WifiUsabilityStatsEntry.linkSpeedMbps·=·wifiInfo.getLinkSpeed(); |
| 6794 | ············································wifiLinkLayerStats$ChannelStats·=·(WifiLinkLayerStats$ChannelStats)wifiLinkLayerStats.channelStatsMap.get(wifiInfo.getFrequency()); |
| 6795 | ············································break·Block_6; |
| 6796 | ········································Block_17: |
6705 | ············································while·(true)·{ | 6797 | ············································while·(true)·{ |
| 6798 | ················································this.mScoreBreachLowTimeMillis·=·mScoreBreachLowTimeMillis; |
| 6799 | ················································break·Block_17; |
| 6800 | ················································Label_0928:·{ |
| 6801 | ····················································wifiMetricsProto$WifiUsabilityStatsEntry.probeStatusSinceLastUpdate·=·probeStatusSinceLastUpdate; |
| 6802 | ················································} |
| 6803 | ················································break·Label_0945; |
| 6804 | ················································mScoreBreachLowTimeMillis2·=·this.mScoreBreachLowTimeMillis; |
| 6805 | ················································mScoreBreachLowTimeMillis·=·-1; |
6706 | ················································Block_15:·{ | 6806 | ················································Block_15:·{ |
| 6807 | ····················································break·Block_15; |
6707 | ····················································while·(true)·{ | 6808 | ····················································while·(true)·{ |
6708 | ························································Label_0154:·{ | 6809 | ························································probeStatusSinceLastUpdate·=·2; |
6709 | ····························································break·Label_0154; | 6810 | ························································probeStatusSinceLastUpdate2·=·3; |
6710 | ····························································Label_0928: | 6811 | ························································break·Block_13; |
6711 | ····························································wifiMetricsProto$WifiUsabilityStatsEntry.probeStatusSinceLastUpdate·=·probeStatusSinceLastUpdate; | 6812 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalBeaconRx·=·wifiLinkLayerStats.beacon_rx; |
6712 | ····························································break·Label_0945; | 6813 | ························································mLastBssid·=·this.mLastBssid; |
6713 | ····························································this.sendWifiUsabilityStats(this.mSeqNumInsideFramework,·isSameBssidAndFreq,·this.createNewWifiUsabilityStatsEntryParcelable(wifiMetricsProto$WifiUsabilityStatsEntry)); | 6814 | ························································n2·=·-1; |
6714 | ····························································this.mSeqNumInsideFramework·+=·n; | 6815 | ························································n3·=·1; |
6715 | ····························································this.mProbeStatusSinceLastUpdate·=·n; | 6816 | ························································isSameBssidAndFreq·=·((mLastBssid·==·null·||·this.mLastFrequency·==·n2·||·(this.mLastBssid.equals(wifiInfo.getBSSID())·&&·this.mLastFrequency·==·wifiInfo.getFrequency()))·&&·n3); |
6716 | ····························································this.mProbeElapsedTimeSinceLastUpdateMs·=·n2; | 6817 | ························································this.mLastBssid·=·wifiInfo.getBSSID(); |
6717 | ····························································this.mProbeMcsRateSinceLastUpdate·=·n2; | 6818 | ························································this.mLastFrequency·=·wifiInfo.getFrequency(); |
6718 | ····························································return; | 6819 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.wifiScore·=·this.mLastScoreNoReset; |
6719 | ····························································while·(true)·{ | 6820 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.wifiUsabilityScore·=·this.mLastWifiUsabilityScoreNoReset; |
6720 | ································································while·(true)·{ | 6821 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.seqNumToFramework·=·this.mSeqNumToFramework; |
6721 | ····································································mScoreBreachLowTimeMillis·=·this.mScoreBreachLowTimeMillis; | 6822 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.predictionHorizonSec·=·this.mLastPredictionHorizonSecNoReset; |
6722 | ····································································mScoreBreachLowTimeMillis2·=·-1; | 6823 | ························································mProbeStatusSinceLastUpdate·=·this.mProbeStatusSinceLastUpdate; |
6723 | ····································································break·Block_15; | 6824 | ························································continue·Label_0634_Outer; |
6724 | ····································································this.addToWifiUsabilityStatsList(n,·0,·n2); | |
6725 | ····································································continue·Block_14_Outer; | |
6726 | ································································} | |
6727 | ································································wifiMetricsProto$WifiUsabilityStatsEntry.probeElapsedTimeSinceLastUpdateMs·=·this.mProbeElapsedTimeSinceLastUpdateMs; | |
6728 | ································································wifiMetricsProto$WifiUsabilityStatsEntry.probeMcsRateSinceLastUpdate·=·this.mProbeMcsRateSinceLastUpdate; | |
6729 | ································································wifiMetricsProto$WifiUsabilityStatsEntry.rxLinkSpeedMbps·=·wifiInfo.getRxLinkSpeedMbps(); | |
6730 | ································································wifiMetricsProto$WifiUsabilityStatsEntry.isSameBssidAndFreq·=·isSameBssidAndFreq; | |
6731 | ································································wifiMetricsProto$WifiUsabilityStatsEntry.seqNumInsideFramework·=·this.mSeqNumInsideFramework; | |
6732 | ································································wifiMetricsProto$WifiUsabilityStatsEntry.deviceMobilityState·=·this.mCurrentDeviceMobilityState; | |
6733 | ································································this.mWifiUsabilityStatsEntriesList.add(wifiMetricsProto$WifiUsabilityStatsEntry); | |
6734 | ································································mWifiUsabilityStatsCounter·=·this.mWifiUsabilityStatsCounter·+·n; | |
6735 | ································································this.mWifiUsabilityStatsCounter·=·mWifiUsabilityStatsCounter; | |
6736 | ································································continue·Block_5_Outer; | |
6737 | ····························································} | |
6738 | ····························································wifiMetricsProto$WifiUsabilityStatsEntry·=·new·WifiMetricsProto$WifiUsabilityStatsEntry(); | |
6739 | ····························································break·Label_0154; | |
6740 | ····························································wifiMetricsProto$WifiUsabilityStatsEntry.totalRadioOnFreqTimeMs·=·wifiLinkLayerStats$ChannelStats.radioOnTimeMs; | |
6741 | ····························································wifiMetricsProto$WifiUsabilityStatsEntry.totalCcaBusyFreqTimeMs·=·wifiLinkLayerStats$ChannelStats.ccaBusyTimeMs; | |
6742 | ····························································break·Label_0634; | |
6743 | ························································} | |
6744 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.timeStampMs·=·wifiLinkLayerStats.timeStampInMs; | |
6745 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalTxSuccess·=·wifiLinkLayerStats.txmpdu_be·+·wifiLinkLayerStats.txmpdu_bk·+·wifiLinkLayerStats.txmpdu_vi·+·wifiLinkLayerStats.txmpdu_vo; | |
6746 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalTxRetries·=·wifiLinkLayerStats.retries_be·+·wifiLinkLayerStats.retries_bk·+·wifiLinkLayerStats.retries_vi·+·wifiLinkLayerStats.retries_vo; | |
6747 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalTxBad·=·wifiLinkLayerStats.lostmpdu_be·+·wifiLinkLayerStats.lostmpdu_bk·+·wifiLinkLayerStats.lostmpdu_vi·+·wifiLinkLayerStats.lostmpdu_vo; | |
6748 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalRxSuccess·=·wifiLinkLayerStats.rxmpdu_be·+·wifiLinkLayerStats.rxmpdu_bk·+·wifiLinkLayerStats.rxmpdu_vi·+·wifiLinkLayerStats.rxmpdu_vo; | |
6749 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalRadioOnTimeMs·=·wifiLinkLayerStats.on_time; | |
6750 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalRadioTxTimeMs·=·wifiLinkLayerStats.tx_time; | |
6751 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalRadioRxTimeMs·=·wifiLinkLayerStats.rx_time; | |
6752 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalScanTimeMs·=·wifiLinkLayerStats.on_time_scan; | |
6753 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalNanScanTimeMs·=·wifiLinkLayerStats.on_time_nan_scan; | |
6754 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalBackgroundScanTimeMs·=·wifiLinkLayerStats.on_time_background_scan; | |
6755 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalRoamScanTimeMs·=·wifiLinkLayerStats.on_time_roam_scan; | |
6756 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalPnoScanTimeMs·=·wifiLinkLayerStats.on_time_pno_scan; | |
6757 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.totalHotspot2ScanTimeMs·=·wifiLinkLayerStats.on_time_hs20_scan; | |
6758 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.rssi·=·wifiInfo.getRssi(); | |
6759 | ························································wifiMetricsProto$WifiUsabilityStatsEntry.linkSpeedMbps·=·wifiInfo.getLinkSpeed(); | |
6760 | ························································wifiLinkLayerStats$ChannelStats·=·(WifiLinkLayerStats$ChannelStats)wifiLinkLayerStats.channelStatsMap.get(wifiInfo.getFrequency()); | |
6761 | ························································continue·Block_12_Outer; | |
6762 | ····················································} | 6825 | ····················································} |
Max diff block lines reached; 9844/85820 bytes (11.47%) of diff not shown.
|