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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHealthStats(HealthStats stats) The same asaddHealthStatsForUid(android.os.Process.myUid(), stats).voidaddHealthStatsForUid(int uid, HealthStats stats) AddHealthStatsfor the given UID.static voidreset()protected HealthStatsprotected HealthStatstakeUidSnapshot(int uid) protected HealthStats[]takeUidSnapshots(int[] uids)
-
Constructor Details
-
ShadowSystemHealthManager
public ShadowSystemHealthManager()
-
-
Method Details
-
reset
-
takeMyUidSnapshot
-
takeUidSnapshot
-
takeUidSnapshots
-
addHealthStatsForUid
AddHealthStatsfor the given UID. CallingSystemHealthManager.takeUidSnapshot(int)with the given UID will return this HealthStats object. -
addHealthStats
The same asaddHealthStatsForUid(android.os.Process.myUid(), stats).
-