Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfc73e9c authored by Adam Lesinski's avatar Adam Lesinski Committed by Android Git Automerger
Browse files

am 66e9b1e1: Merge "Move SystemService code to frameworks/base/core" into klp-modular-dev

* commit '66e9b1e1':
  Move SystemService code to frameworks/base/core
parents 58a8a678 66e9b1e1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,8 @@ import android.util.ArrayMap;
 *
 * Once all services are converted to the SystemService interface, this class can be absorbed
 * into SystemServiceManager.
 *
 * {@hide}
 */
public final class LocalServices {
    private LocalServices() {}
+22 −1
Original line number Diff line number Diff line
@@ -21,7 +21,28 @@ import android.os.IBinder;
import android.os.ServiceManager;

/**
 * System services respond to lifecycle events that help the services know what
 * The base class for services running in the system process. Override and implement
 * the lifecycle event callback methods as needed.
 *
 * The lifecycle of a SystemService:
 *
 * {@link #onCreate(android.content.Context)} is called to initialize the
 * service.
 *
 * {@link #onStart()} is called to get the service running. It is common
 * for services to publish their Binder interface at this point. All required
 * dependencies are also assumed to be ready to use.
 *
 * Then {@link #onBootPhase(int)} is called as many times as there are boot phases
 * until {@link #PHASE_BOOT_COMPLETE} is sent, which is the last boot phase. Each phase
 * is an opportunity to do special work, like acquiring optional service dependencies,
 * waiting to see if SafeMode is enabled, or registering with a service that gets
 * started after this one.
 *
 * NOTE: All lifecycle methods are called from the same thread that created the
 * SystemService.
 *
 * {@hide}
 */
public abstract class SystemService {
    /*
+4 −1
Original line number Diff line number Diff line
@@ -23,7 +23,10 @@ import android.util.Slog;
import java.util.ArrayList;

/**
 * Manages creating, starting, and other lifecycle events of system services.
 * Manages creating, starting, and other lifecycle events of
 * {@link com.android.server.SystemService}s.
 *
 * {@hide}
 */
public class SystemServiceManager {
    private static final String TAG = "SystemServiceManager";