UsageTrackerFacilitator
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings .
public
class
UsageTrackerFacilitator
extends Object
implements
UsageTracker
Helper class to enable/disable usage tracker in the runner. For details on how AndroidJUnitRunner
tracks usage, see
AndroidJUnitRunner Analytics
Summary
Inherited methods
From
class
java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final
Class <?>
getClass()
int
hashCode()
final
void
notify()
final
void
notifyAll()
String
toString()
final
void
wait(long arg0, int arg1)
final
void
wait(long arg0)
final
void
wait()
From
interface
android.support.test.internal.runner.tracker.UsageTracker
abstract
void
sendUsages()
Requests that all usages be sent.
abstract
void
trackUsage(String usage, String version)
Indicates that a particular tool/api was used.
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 ()
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