public static class ShadowUsageStatsManager.EventBuilder
extends java.lang.Object
Builder for constructing UsageEvents.Event
objects. The fields of Event are not part of the Android API.
Modifier and Type | Method and Description |
---|---|
android.app.usage.UsageEvents.Event |
build() |
static ShadowUsageStatsManager.EventBuilder |
buildEvent() |
static ShadowUsageStatsManager.EventBuilder |
fromEvent(android.app.usage.UsageEvents.Event event) |
ShadowUsageStatsManager.EventBuilder |
setClass(java.lang.String className) |
ShadowUsageStatsManager.EventBuilder |
setConfiguration(android.content.res.Configuration configuration) |
ShadowUsageStatsManager.EventBuilder |
setEventType(int eventType) |
ShadowUsageStatsManager.EventBuilder |
setPackage(java.lang.String packageName) |
ShadowUsageStatsManager.EventBuilder |
setShortcutId(java.lang.String shortcutId) |
ShadowUsageStatsManager.EventBuilder |
setTimeStamp(long timeStamp) |
public static ShadowUsageStatsManager.EventBuilder fromEvent(android.app.usage.UsageEvents.Event event)
public static ShadowUsageStatsManager.EventBuilder buildEvent()
public android.app.usage.UsageEvents.Event build()
public ShadowUsageStatsManager.EventBuilder setPackage(java.lang.String packageName)
public ShadowUsageStatsManager.EventBuilder setClass(java.lang.String className)
public ShadowUsageStatsManager.EventBuilder setTimeStamp(long timeStamp)
public ShadowUsageStatsManager.EventBuilder setEventType(int eventType)
public ShadowUsageStatsManager.EventBuilder setConfiguration(android.content.res.Configuration configuration)
public ShadowUsageStatsManager.EventBuilder setShortcutId(java.lang.String shortcutId)