Package org.robolectric.shadows
Class ShadowSystemHealthManager
java.lang.Object
org.robolectric.shadows.ShadowSystemHealthManager
@Implements(value=android.os.health.SystemHealthManager.class,
minSdk=24)
public class ShadowSystemHealthManager
extends Object
Shadow for
SystemHealthManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHealthStats
(HealthStats stats) The same asaddHealthStatsForUid(android.os.Process.myUid(), stats)
.void
addHealthStatsForUid
(int uid, HealthStats stats) AddHealthStats
for the given UID.static void
reset()
protected HealthStats
protected HealthStats
takeUidSnapshot
(int uid) protected HealthStats[]
takeUidSnapshots
(int[] uids)
-
Constructor Details
-
ShadowSystemHealthManager
public ShadowSystemHealthManager()
-
-
Method Details
-
reset
-
takeMyUidSnapshot
-
takeUidSnapshot
-
takeUidSnapshots
-
addHealthStatsForUid
AddHealthStats
for the given UID. CallingSystemHealthManager.takeUidSnapshot(int)
with the given UID will return this HealthStats object. -
addHealthStats
The same asaddHealthStatsForUid(android.os.Process.myUid(), stats)
.
-