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

Commit ff2c9262 authored by Asmita Poddar's avatar Asmita Poddar Committed by Android (Google) Code Review
Browse files

Revert "Add IProcessObserver.OnProcessStarted API."

Revert submission 25758093-on-process-started

Reason for revert: Build breakage b/322242947

Reverted changes: /q/submissionid:25758093-on-process-started

Change-Id: I8bd883ecad0503bdbfceaef84319a311dbee10a8
parent 03bd516c
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -68,11 +68,6 @@ public abstract class HomeVisibilityListener {

    public HomeVisibilityListener() {
        mObserver = new android.app.IProcessObserver.Stub() {
            @Override
            public void onProcessStarted(int pid, int processUid, int packageUid,
                    String packageName, String processName) {
            }

            @Override
            public void onForegroundActivitiesChanged(int pid, int uid, boolean fg) {
                refreshHomeVisibility();
+0 −11
Original line number Diff line number Diff line
@@ -18,17 +18,6 @@ package android.app;

/** {@hide} */
oneway interface IProcessObserver {
    /**
     * Invoked when an app process starts up.
     *
     * @param pid The pid of the process.
     * @param processUid The UID associated with the process.
     * @param packageUid The UID associated with the package.
     * @param packageName The name of the package.
     * @param processName The name of the process.
     */
    void onProcessStarted(int pid, int processUid, int packageUid,
                          @utf8InCpp String packageName, @utf8InCpp String processName);
    void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities);
    void onForegroundServicesChanged(int pid, int uid, int serviceTypes);
    void onProcessDied(int pid, int uid);
+0 −8
Original line number Diff line number Diff line
@@ -78,14 +78,6 @@ abstract class TvPipTestBase : PipTestBase(rotationToString(ROTATION_0), ROTATIO
            uiAutomation.dropShellPermissionIdentity()
        }

        override fun onProcessStarted(
            pid: Int,
            processUid: Int,
            packageUid: Int,
            packageName: String,
            processName: String
        ) {}

        override fun onForegroundActivitiesChanged(pid: Int, uid: Int, foreground: Boolean) {}

        override fun onForegroundServicesChanged(pid: Int, uid: Int, serviceTypes: Int) {}
+0 −5
Original line number Diff line number Diff line
@@ -3750,11 +3750,6 @@ final class ActivityManagerShellCommand extends ShellCommand {
            }
        }

        @Override
        public void onProcessStarted(int pid, int processUid, int packageUid, String packageName,
                String processName) {
        }

        @Override
        public void onForegroundServicesChanged(int pid, int uid, int serviceTypes) {
        }
+0 −5
Original line number Diff line number Diff line
@@ -101,11 +101,6 @@ final class AppFGSTracker extends BaseAppStateDurationsTracker<AppFGSPolicy, Pac
            }
        }

        @Override
        public void onProcessStarted(int pid, int processUid, int packageUid, String packageName,
                String processName) {
        }

        @Override
        public void onProcessDied(int pid, int uid) {
        }
Loading