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

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

Merge "Revert "Add IProcessObserver.OnProcessStarted API."" into main

parents 27f61b48 ff2c9262
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
@@ -3753,11 +3753,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