TrackerControl
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
net.kollnig.missioncontrol.data.TrackerList Class Reference

Public Member Functions

void loadTrackers (Context c)
 
synchronized Pair< Pair< Map< Integer, Integer >, Integer >, Pair< Map< Integer, Integer >, Integer > > getTrackerCountsAndTotal ()
 
Cursor getAppInfo (int uid)
 
synchronized List< TrackerCategorygetAppTrackers (Context c, int uid)
 

Static Public Member Functions

static TrackerList getInstance (Context c)
 
static Tracker findTracker (@NonNull String hostname)
 

Static Public Attributes

static Set< String > trackingIps = new HashSet<>()
 
static String TRACKER_HOSTLIST = "TRACKER_HOSTLIST"
 

Detailed Description

Loads and stores the database of known tracker companies and their domains

Member Function Documentation

◆ findTracker()

static Tracker net.kollnig.missioncontrol.data.TrackerList.findTracker ( @NonNull String  hostname)
static

Identifies tracker hosts

Parameters
hostnameA hostname of interest
Returns
A Tracker object, if host is null, null otherwise

◆ getAppInfo()

Cursor net.kollnig.missioncontrol.data.TrackerList.getAppInfo ( int  uid)

Retrieve info for CSV export

Returns
All logged communications about app

◆ getAppTrackers()

synchronized List< TrackerCategory > net.kollnig.missioncontrol.data.TrackerList.getAppTrackers ( Context  c,
int  uid 
)

Retrieves information about all seen trackers

Returns
A list of seen trackers

◆ getInstance()

static TrackerList net.kollnig.missioncontrol.data.TrackerList.getInstance ( Context  c)
static

Get an instance of the tracker database

Parameters
cContext
Returns
Instance of the tracker database

◆ getTrackerCountsAndTotal()

synchronized Pair< Pair< Map< Integer, Integer >, Integer >, Pair< Map< Integer, Integer >, Integer > > net.kollnig.missioncontrol.data.TrackerList.getTrackerCountsAndTotal ( )

Retrieves information about number of contacted tracking companies, for all apps

Returns
Number of contacted tracking companies, for all apps

◆ loadTrackers()

void net.kollnig.missioncontrol.data.TrackerList.loadTrackers ( Context  c)

Load tracker domain database

Parameters
cContext

The documentation for this class was generated from the following file: