public class ScanDetailCache extends Object
Modifier and Type | Method and Description |
---|---|
WifiConfiguration.Visibility |
getVisibility(long age)
Method to get scan matches for the desired time window.
|
WifiConfiguration.Visibility |
getVisibilityByPasspointMatch(long age)
Method returning the Visibility based on passpoint match time.
|
WifiConfiguration.Visibility |
getVisibilityByRssi(long age)
Method to get cached scan results that are less than 'age' old.
|
String |
toString()
Returns a string representation of the object.
|
void |
trim(int num)
Method to reduce the cache to the given size by removing the oldest entries.
|
public void trim(int num)
num
- int target cache sizepublic WifiConfiguration.Visibility getVisibilityByRssi(long age)
age
- long Time window of desired results.public WifiConfiguration.Visibility getVisibilityByPasspointMatch(long age)
age
- long Desired time window for matches.public WifiConfiguration.Visibility getVisibility(long age)
age
- long desired time for matches.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())