Loading services/core/java/com/android/server/devicestate/DeviceStateManagerService.java +7 −0 Original line number Diff line number Diff line Loading @@ -312,6 +312,13 @@ public final class DeviceStateManagerService extends SystemService { mProcessObserver); } @Override public void onBootPhase(int phase) { if (phase == PHASE_SYSTEM_SERVICES_READY) { mDeviceStatePolicy.getDeviceStateProvider().onSystemReady(); } } @VisibleForTesting Handler getHandler() { return mHandler; Loading services/core/java/com/android/server/devicestate/DeviceStateProvider.java +5 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,11 @@ public interface DeviceStateProvider extends Dumpable { @Retention(RetentionPolicy.SOURCE) @interface SupportedStatesUpdatedReason {} /** * Called when the system boot phase advances to PHASE_SYSTEM_SERVICES_READY. */ default void onSystemReady() {}; /** * Registers a listener for changes in provider state. * <p> Loading Loading
services/core/java/com/android/server/devicestate/DeviceStateManagerService.java +7 −0 Original line number Diff line number Diff line Loading @@ -312,6 +312,13 @@ public final class DeviceStateManagerService extends SystemService { mProcessObserver); } @Override public void onBootPhase(int phase) { if (phase == PHASE_SYSTEM_SERVICES_READY) { mDeviceStatePolicy.getDeviceStateProvider().onSystemReady(); } } @VisibleForTesting Handler getHandler() { return mHandler; Loading
services/core/java/com/android/server/devicestate/DeviceStateProvider.java +5 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,11 @@ public interface DeviceStateProvider extends Dumpable { @Retention(RetentionPolicy.SOURCE) @interface SupportedStatesUpdatedReason {} /** * Called when the system boot phase advances to PHASE_SYSTEM_SERVICES_READY. */ default void onSystemReady() {}; /** * Registers a listener for changes in provider state. * <p> Loading