public String toKeyString() { NetworkDetail networkDetail = mNetworkDetail; if (networkDetail != null) { return networkDetail.toKeyString(); } else { return String.format("'%s':%012x", mScanResult.BSSID, Utils.parseMac(mScanResult.BSSID)); } }
public ScanDetail( NetworkDetail networkDetail, WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, long tsf) { mNetworkDetail = networkDetail; mScanResult = new ScanResult(wifiSsid, BSSID, caps, level, frequency, tsf); mSeen = System.currentTimeMillis(); // mScanResult.seen = mSeen; mScanResult.channelWidth = networkDetail.getChannelWidth(); mScanResult.centerFreq0 = networkDetail.getCenterfreq0(); mScanResult.centerFreq1 = networkDetail.getCenterfreq1(); if (networkDetail.is80211McResponderSupport()) mScanResult.setFlag(ScanResult.FLAG_80211mc_RESPONDER); mMatches = null; }
public void updateResults( NetworkDetail networkDetail, int level, WifiSsid wssid, String ssid, String flags, int freq, long tsf) { mScanResult.level = level; mScanResult.wifiSsid = wssid; // Keep existing API mScanResult.SSID = ssid; mScanResult.capabilities = flags; mScanResult.frequency = freq; mScanResult.timestamp = tsf; mSeen = System.currentTimeMillis(); // mScanResult.seen = mSeen; mScanResult.channelWidth = networkDetail.getChannelWidth(); mScanResult.centerFreq0 = networkDetail.getCenterfreq0(); mScanResult.centerFreq1 = networkDetail.getCenterfreq1(); if (networkDetail.is80211McResponderSupport()) mScanResult.setFlag(ScanResult.FLAG_80211mc_RESPONDER); if (networkDetail.isInterworking()) mScanResult.setFlag(ScanResult.FLAG_PASSPOINT_NETWORK); }
public void propagateANQPInfo(Map<Constants.ANQPElementType, ANQPElement> anqpElements) { if (anqpElements.isEmpty()) { return; } mNetworkDetail = mNetworkDetail.complete(anqpElements); HSFriendlyNameElement fne = (HSFriendlyNameElement) anqpElements.get(Constants.ANQPElementType.HSFriendlyName); // !!! Match with language if (fne != null && !fne.getNames().isEmpty()) { mScanResult.venueName = fne.getNames().get(0).getText(); } else { VenueNameElement vne = (((VenueNameElement) anqpElements.get(Constants.ANQPElementType.ANQPVenueName))); if (vne != null && !vne.getNames().isEmpty()) { mScanResult.venueName = vne.getNames().get(0).getText(); } } }
public String getBSSIDString() { return mNetworkDetail == null ? mScanResult.BSSID : mNetworkDetail.getBSSIDString(); }