![]() |
TrackerControl
|
Public Member Functions | |
void | loadSettings (Context c) |
Set< Integer > | getBlocklist () |
Set< String > | getSubset (int uid) |
void | clear () |
void | clear (int uid) |
synchronized void | block (int uid, String t) |
synchronized void | unblock (int uid, String t) |
synchronized void | block (int uid, Tracker t) |
synchronized void | unblock (int uid, Tracker t) |
boolean | blocked (int uid, String key) |
boolean | blockedTracker (int uid, Tracker t) |
Static Public Member Functions | |
static TrackerBlocklist | getInstance (Context c) |
static String | getBlockingKey (Tracker t) |
Static Public Attributes | |
static final String | SHARED_PREFS_BLOCKLIST_APPS_KEY = "APPS_BLOCKLIST_APPS_KEY" |
final static String | PREF_BLOCKLIST = "blocklist" |
static String | NECESSARY_CATEGORY = "Content" |
Stores what trackers are blocked, for each app.
synchronized void net.kollnig.missioncontrol.data.TrackerBlocklist.block | ( | int | uid, |
String | t | ||
) |
Block a given tracker for a given app
uid | Uid of the app |
t | Key of the tracker to be blocked |
synchronized void net.kollnig.missioncontrol.data.TrackerBlocklist.block | ( | int | uid, |
Tracker | t | ||
) |
Block a given tracker for a given app
uid | Uid of the app |
t | Tracker to be blocked |
boolean net.kollnig.missioncontrol.data.TrackerBlocklist.blocked | ( | int | uid, |
String | key | ||
) |
Check if a given app can access a given tracker
uid | Uid of the app |
key | Key of the tracker |
boolean net.kollnig.missioncontrol.data.TrackerBlocklist.blockedTracker | ( | int | uid, |
Tracker | t | ||
) |
Check if a given app can access a given tracker
uid | Uid of the app |
t | Tracker |
void net.kollnig.missioncontrol.data.TrackerBlocklist.clear | ( | ) |
Completely clear blocklist.
void net.kollnig.missioncontrol.data.TrackerBlocklist.clear | ( | int | uid | ) |
Clear all blocked trackers for a specific app
uid | Uid of app |
|
static |
For a given tracker company, this computes a key to store the blocking state of this tracker.
t | Tracker company |
Set< Integer > net.kollnig.missioncontrol.data.TrackerBlocklist.getBlocklist | ( | ) |
Get set of apps' uids which have information about blocked trackers
|
static |
Singleton getter for TrackerBlocklist
c | context used to access TrackerBlocklist from |
Set< String > net.kollnig.missioncontrol.data.TrackerBlocklist.getSubset | ( | int | uid | ) |
Get information about what specific trackers are blocked for a given app
uid | Uid of the app |
void net.kollnig.missioncontrol.data.TrackerBlocklist.loadSettings | ( | Context | c | ) |
Load past settings
c | Context |
synchronized void net.kollnig.missioncontrol.data.TrackerBlocklist.unblock | ( | int | uid, |
String | t | ||
) |
Unlock a given tracker for a given app
uid | Uid of the app |
t | Key of the tracker to be unblocked |
synchronized void net.kollnig.missioncontrol.data.TrackerBlocklist.unblock | ( | int | uid, |
Tracker | t | ||
) |
Unblock a given tracker for a given app
uid | Uid of the app |
t | Tracker to be unblocked |