示例#1
0
 public ScanDetail(
     WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, long tsf, long seen) {
   mNetworkDetail = null;
   mScanResult = new ScanResult(wifiSsid, BSSID, caps, level, frequency, tsf);
   mSeen = seen;
   // mScanResult.seen = mSeen;
   mScanResult.channelWidth = 0;
   mScanResult.centerFreq0 = 0;
   mScanResult.centerFreq1 = 0;
   mScanResult.flags = 0;
   mMatches = null;
 }
示例#2
0
 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;
 }
示例#3
0
 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);
 }