public class ScanDetail extends Object
Constructor and Description |
---|
ScanDetail(NetworkDetail networkDetail,
WifiSsid wifiSsid,
String bssid,
String caps,
int level,
int frequency,
long tsf,
ScanResult.InformationElement[] informationElements,
List<String> anqpLines) |
ScanDetail(ScanResult scanResult,
NetworkDetail networkDetail,
Map<HomeSP,PasspointMatch> matches) |
ScanDetail(WifiSsid wifiSsid,
String bssid,
String caps,
int level,
int frequency,
long tsf,
long seen) |
Modifier and Type | Method and Description |
---|---|
String |
getBSSIDString() |
NetworkDetail |
getNetworkDetail() |
ScanResult |
getScanResult() |
long |
getSeen()
Return the time this network was last seen.
|
String |
getSSID() |
void |
propagateANQPInfo(Map<Constants.ANQPElementType,ANQPElement> anqpElements)
Store ANQ element information
|
long |
setSeen()
Update the time this network was last seen to the current system time.
|
String |
toKeyString()
Return the network detail key string.
|
String |
toString()
Returns a string representation of the object.
|
void |
updateResults(NetworkDetail networkDetail,
int level,
WifiSsid wssid,
String ssid,
String flags,
int freq,
long tsf)
Update the data stored in the scan result with the provided information.
|
public ScanDetail(NetworkDetail networkDetail, WifiSsid wifiSsid, String bssid, String caps, int level, int frequency, long tsf, ScanResult.InformationElement[] informationElements, List<String> anqpLines)
public ScanDetail(WifiSsid wifiSsid, String bssid, String caps, int level, int frequency, long tsf, long seen)
public ScanDetail(ScanResult scanResult, NetworkDetail networkDetail, Map<HomeSP,PasspointMatch> matches)
public void updateResults(NetworkDetail networkDetail, int level, WifiSsid wssid, String ssid, String flags, int freq, long tsf)
networkDetail
- NetworkDetaillevel
- intwssid
- WifiSsidssid
- Stringflags
- Stringfreq
- inttsf
- longpublic void propagateANQPInfo(Map<Constants.ANQPElementType,ANQPElement> anqpElements)
anqpElements
- Mappublic ScanResult getScanResult()
public NetworkDetail getNetworkDetail()
public String getSSID()
public String getBSSIDString()
public String toKeyString()
public long getSeen()
public long setSeen()
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())