Package org.robolectric.shadows
Class ShadowUsageStatsManager.UsageStatsBuilder
- java.lang.Object
-
- org.robolectric.shadows.ShadowUsageStatsManager.UsageStatsBuilder
-
- Enclosing class:
- ShadowUsageStatsManager
public static class ShadowUsageStatsManager.UsageStatsBuilder extends Object
Builder for constructingUsageStats
objects. The constructor of UsageStats is not part of the Android API.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UsageStats
build()
static ShadowUsageStatsManager.UsageStatsBuilder
newBuilder()
ShadowUsageStatsManager.UsageStatsBuilder
setFirstTimeStamp(long firstTimeStamp)
ShadowUsageStatsManager.UsageStatsBuilder
setLastTimeStamp(long lastTimeStamp)
ShadowUsageStatsManager.UsageStatsBuilder
setLastTimeUsed(long lastTimeUsed)
ShadowUsageStatsManager.UsageStatsBuilder
setPackageName(String packageName)
ShadowUsageStatsManager.UsageStatsBuilder
setTotalTimeInForeground(long totalTimeInForeground)
-
-
-
Method Detail
-
newBuilder
public static ShadowUsageStatsManager.UsageStatsBuilder newBuilder()
-
build
public UsageStats build()
-
setPackageName
public ShadowUsageStatsManager.UsageStatsBuilder setPackageName(String packageName)
-
setFirstTimeStamp
public ShadowUsageStatsManager.UsageStatsBuilder setFirstTimeStamp(long firstTimeStamp)
-
setLastTimeStamp
public ShadowUsageStatsManager.UsageStatsBuilder setLastTimeStamp(long lastTimeStamp)
-
setTotalTimeInForeground
public ShadowUsageStatsManager.UsageStatsBuilder setTotalTimeInForeground(long totalTimeInForeground)
-
setLastTimeUsed
public ShadowUsageStatsManager.UsageStatsBuilder setLastTimeUsed(long lastTimeUsed)
-
-