public static class ShadowUsageStatsManager.UsageStatsBuilder extends Object
UsageStats
objects. The constructor of UsageStats is not part
of the Android API.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) |
public static ShadowUsageStatsManager.UsageStatsBuilder newBuilder()
public UsageStats build()
public ShadowUsageStatsManager.UsageStatsBuilder setPackageName(String packageName)
public ShadowUsageStatsManager.UsageStatsBuilder setFirstTimeStamp(long firstTimeStamp)
public ShadowUsageStatsManager.UsageStatsBuilder setLastTimeStamp(long lastTimeStamp)
public ShadowUsageStatsManager.UsageStatsBuilder setTotalTimeInForeground(long totalTimeInForeground)
public ShadowUsageStatsManager.UsageStatsBuilder setLastTimeUsed(long lastTimeUsed)