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 constructingUsageEvents.Event
objects. The fields of Event are not part of the Android API.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
fromEvent
public static ShadowUsageStatsManager.EventBuilder fromEvent(UsageEvents.Event event)
-
buildEvent
public static ShadowUsageStatsManager.EventBuilder buildEvent()
-
build
public UsageEvents.Event build()
-
setPackage
public ShadowUsageStatsManager.EventBuilder setPackage(String packageName)
-
setClass
public ShadowUsageStatsManager.EventBuilder setClass(String className)
-
setTimeStamp
public ShadowUsageStatsManager.EventBuilder setTimeStamp(long timeStamp)
-
setEventType
public ShadowUsageStatsManager.EventBuilder setEventType(int eventType)
-
setConfiguration
public ShadowUsageStatsManager.EventBuilder setConfiguration(Configuration configuration)
-
setShortcutId
public ShadowUsageStatsManager.EventBuilder setShortcutId(String shortcutId)
-
setInstanceId
public ShadowUsageStatsManager.EventBuilder setInstanceId(int instanceId)
-
setTaskRootPackage
public ShadowUsageStatsManager.EventBuilder setTaskRootPackage(String taskRootPackage)
-
setTaskRootClass
public ShadowUsageStatsManager.EventBuilder setTaskRootClass(String taskRootClass)
-
setAppStandbyBucket
public ShadowUsageStatsManager.EventBuilder setAppStandbyBucket(int bucket)
-
-