public class DeviceIdleController extends SystemService
Modifier and Type | Class and Description |
---|---|
class |
DeviceIdleController.LocalService |
Modifier and Type | Field and Description |
---|---|
AtomicFile |
mConfigFile |
PHASE_ACTIVITY_MANAGER_READY, PHASE_BOOT_COMPLETED, PHASE_LOCK_SETTINGS_READY, PHASE_SYSTEM_SERVICES_READY, PHASE_THIRD_PARTY_APPS_CAN_START, PHASE_WAIT_FOR_DEFAULT_DISPLAY
Constructor and Description |
---|
DeviceIdleController(Context context) |
getBinderService, getContext, getLocalService, isSafeMode, onCleanupUser, onStartUser, onStopUser, onSwitchUser, onUnlockUser, publishBinderService, publishBinderService, publishLocalService
public final AtomicFile mConfigFile
public DeviceIdleController(Context context)
public void onAnyMotionResult(int result)
public void onStart()
SystemService
onStart
in class SystemService
public void onBootPhase(int phase)
SystemService
onBootPhase
in class SystemService
phase
- The current boot phase.public boolean addPowerSaveWhitelistAppInternal(String name)
public boolean removePowerSaveWhitelistAppInternal(String name)
public boolean getPowerSaveWhitelistAppInternal(String name)
public String[] getSystemPowerWhitelistExceptIdleInternal()
public String[] getSystemPowerWhitelistInternal()
public String[] getUserPowerWhitelistInternal()
public String[] getFullPowerWhitelistExceptIdleInternal()
public String[] getFullPowerWhitelistInternal()
public boolean isPowerSaveWhitelistExceptIdleAppInternal(String packageName)
public boolean isPowerSaveWhitelistAppInternal(String packageName)
public int[] getAppIdWhitelistExceptIdleInternal()
public int[] getAppIdWhitelistInternal()
public int[] getAppIdUserWhitelistInternal()
public int[] getAppIdTempWhitelistInternal()
public void setNetworkPolicyTempWhitelistCallbackInternal(Runnable callback)
public void exitIdleInternal(String reason)