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

Commit 7371be6d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update ConnectionInfo and getRunningServiceConnections documentation." into main

parents 6a6b9479 893640f1
Loading
Loading
Loading
Loading
+19 −2
Original line number Diff line number Diff line
@@ -3446,7 +3446,11 @@ public class ActivityManager {
        }
    }

    /** @hide */
    /**
     * Information you can retrieve about a particular connection to a
     * Service that is currently running in the system.
     * @hide
     */
    @TestApi
    @SuppressLint("UnflaggedApi") // @TestApi without associated feature.
    public static final class ConnectionInfo implements Parcelable {
@@ -3515,16 +3519,25 @@ public class ActivityManager {
            return 0;
        }

        /**
         * Get the bind service flags for the connection.
         */
        @SuppressLint("UnflaggedApi") // @TestApi without associated feature.
        public long getFlags() {
        public @Context.BindServiceFlagsLongBits long getFlags() {
            return mFlags;
        }

        /**
         * Get the process name of the client.
         */
        @SuppressLint("UnflaggedApi") // @TestApi without associated feature.
        public @NonNull String getProcessName() {
            return mProcessName;
        }

        /**
         * Get the package name of the client.
         */
        @SuppressLint("UnflaggedApi") // @TestApi without associated feature.
        public @NonNull String getPackageName() {
            return mPackageName;
@@ -3548,6 +3561,10 @@ public class ActivityManager {

    /**
     * Returns a list of ConnectionInfo for connections bound to a given service.
     * @param service The component name of the service to return ConnectionInfo
     * records for.
     * @return Returns a list of ConnectionInfo records describing each of
     * the service connections.
     * @hide
     */
    @TestApi