Package org.robolectric.shadows
Class ShadowUsageStatsManager.EventBuilder
java.lang.Object
org.robolectric.shadows.ShadowUsageStatsManager.EventBuilder
- Enclosing class:
- ShadowUsageStatsManager
public static class ShadowUsageStatsManager.EventBuilder extends Object
Builder for constructing
UsageEvents.Event
objects. The fields of Event are not part of the Android
API.-
Method Summary
Modifier and Type Method Description UsageEvents.Event
build()
static ShadowUsageStatsManager.EventBuilder
buildEvent()
static ShadowUsageStatsManager.EventBuilder
fromEvent(UsageEvents.Event event)
ShadowUsageStatsManager.EventBuilder
setAppStandbyBucket(int bucket)
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)