public static class ShadowUsageStatsManager.EventBuilder extends Object
UsageEvents.Event
objects. The fields of Event are not part of the Android
API.Modifier and Type | Method | Description |
---|---|---|
UsageEvents.Event |
build() |
|
static ShadowUsageStatsManager.EventBuilder |
buildEvent() |
|
static ShadowUsageStatsManager.EventBuilder |
fromEvent(UsageEvents.Event event) |
|
ShadowUsageStatsManager.EventBuilder |
setClass(String className) |
|
ShadowUsageStatsManager.EventBuilder |
setConfiguration(Configuration configuration) |
|
ShadowUsageStatsManager.EventBuilder |
setEventType(int eventType) |
|
ShadowUsageStatsManager.EventBuilder |
setInstanceId(int instanceId) |
|
ShadowUsageStatsManager.EventBuilder |
setPackage(String packageName) |
|
ShadowUsageStatsManager.EventBuilder |
setShortcutId(String shortcutId) |
|
ShadowUsageStatsManager.EventBuilder |
setTaskRootClass(String taskRootClass) |
|
ShadowUsageStatsManager.EventBuilder |
setTaskRootPackage(String taskRootPackage) |
|
ShadowUsageStatsManager.EventBuilder |
setTimeStamp(long timeStamp) |
public static ShadowUsageStatsManager.EventBuilder fromEvent(UsageEvents.Event event)
public static ShadowUsageStatsManager.EventBuilder buildEvent()
public UsageEvents.Event build()
public ShadowUsageStatsManager.EventBuilder setPackage(String packageName)
public ShadowUsageStatsManager.EventBuilder setClass(String className)
public ShadowUsageStatsManager.EventBuilder setTimeStamp(long timeStamp)
public ShadowUsageStatsManager.EventBuilder setEventType(int eventType)
public ShadowUsageStatsManager.EventBuilder setConfiguration(Configuration configuration)
public ShadowUsageStatsManager.EventBuilder setShortcutId(String shortcutId)
public ShadowUsageStatsManager.EventBuilder setInstanceId(int instanceId)
public ShadowUsageStatsManager.EventBuilder setTaskRootPackage(String taskRootPackage)
public ShadowUsageStatsManager.EventBuilder setTaskRootClass(String taskRootClass)