UsageTrackerFacilitator

public class UsageTrackerFacilitator
extends Object implements UsageTracker

java.lang.Object
   ↳ androidx.test.runner.UsageTrackerFacilitator


Helper class to enable/disable usage tracker in the runner. For details on how AndroidJUnitRunner tracks usage, see AndroidJUnitRunner Analytics

Summary

Public constructors

UsageTrackerFacilitator(RunnerArgs runnerArgs)
UsageTrackerFacilitator(boolean shouldTrackUsage)

Public methods

void registerUsageTracker(UsageTracker usageTracker)
void sendUsages()

Requests that all usages be sent.

boolean shouldTrackUsage()
void trackUsage(String usage, String version)

Indicates that a particular tool/api was used.

Inherited methods

Public constructors

UsageTrackerFacilitator

public UsageTrackerFacilitator (RunnerArgs runnerArgs)

Parameters
runnerArgs RunnerArgs

UsageTrackerFacilitator

public UsageTrackerFacilitator (boolean shouldTrackUsage)

Parameters
shouldTrackUsage boolean

Public methods

registerUsageTracker

public void registerUsageTracker (UsageTracker usageTracker)

Parameters
usageTracker UsageTracker

sendUsages

public void sendUsages ()

Requests that all usages be sent.

shouldTrackUsage

public boolean shouldTrackUsage ()

Returns
boolean

trackUsage

public void trackUsage (String usage, 
                String version)

Indicates that a particular tool/api was used.

Usage will be dumped at the end of the instrumentation run.

Parameters
usage String

version String