public final class DeviceIdleController.LocalService extends Object
Constructor and Description |
---|
LocalService() |
Modifier and Type | Method and Description |
---|---|
void |
addPowerSaveTempWhitelistAppDirect(int appId,
long duration,
boolean sync,
String reason) |
long |
getNotificationWhitelistDuration() |
int[] |
getPowerSaveWhitelistUserAppIds()
Returns the array of app ids whitelisted by user.
|
void |
setAlarmsActive(boolean active) |
void |
setJobsActive(boolean active) |
void |
setNetworkPolicyTempWhitelistCallback(Runnable callback) |
public void addPowerSaveTempWhitelistAppDirect(int appId, long duration, boolean sync, String reason)
public long getNotificationWhitelistDuration()
public void setNetworkPolicyTempWhitelistCallback(Runnable callback)
public void setJobsActive(boolean active)
public void setAlarmsActive(boolean active)
public int[] getPowerSaveWhitelistUserAppIds()
PowerManager.ACTION_POWER_SAVE_WHITELIST_CHANGED
is sent.