Lines Matching refs:netDetectionState
550 NETMGR_LOG_I("Last netDetectionState: [%{public}d->%{public}d]", preStatus, lastDetectResult);
588 void Network::HandleNetMonitorResult(NetDetectionStatus netDetectionState, const std::string &urlRedirect)
590 NETMGR_LOG_I("HNMR, [%{public}d]", netDetectionState);
592 NotifyNetDetectionResult(NetDetectionResultConvert(static_cast<int32_t>(netDetectionState)), urlRedirect);
593 if (netCallback_ && (detectResult_ != netDetectionState)) {
594 detectResult_ = netDetectionState;
595 netCallback_(supplierId_, netDetectionState);
722 void Network::OnHandleNetMonitorResult(NetDetectionStatus netDetectionState, const std::string &urlRedirect)
726 eventHandler_->PostAsyncTask([netDetectionState, urlRedirect,
727 network]() { network->HandleNetMonitorResult(netDetectionState, urlRedirect); },
754 bool Network::IsDetectionForDnsSuccess(NetDetectionStatus netDetectionState, bool dnsHealthSuccess)
756 return ((netDetectionState == INVALID_DETECTION_STATE) && dnsHealthSuccess && !isDetectingForDns_);
759 bool Network::IsDetectionForDnsFail(NetDetectionStatus netDetectionState, bool dnsHealthSuccess)
761 return ((netDetectionState == VERIFICATION_STATE) && !dnsHealthSuccess && !(netMonitor_->IsDetecting()));