UsageTrackerFacilitator

public class UsageTrackerFacilitator
extends Object implements UsageTracker

java.lang.Object
   ↳ android.support.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

From class java.lang.Object
From interface android.support.test.internal.runner.tracker.UsageTracker

Public constructors

UsageTrackerFacilitator

UsageTrackerFacilitator (RunnerArgs runnerArgs)

Parameters
runnerArgs RunnerArgs

UsageTrackerFacilitator

UsageTrackerFacilitator (boolean shouldTrackUsage)

Parameters
shouldTrackUsage boolean

Public methods

registerUsageTracker

void registerUsageTracker (UsageTracker usageTracker)

Parameters
usageTracker UsageTracker

sendUsages

void sendUsages ()

Requests that all usages be sent.

shouldTrackUsage

boolean shouldTrackUsage ()

Returns
boolean

trackUsage

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