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

Commit 6a969368 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Clean role manager adapter comment"

parents 4d8caf4e 625f9ab3
Loading
Loading
Loading
Loading
+5 −12
Original line number Diff line number Diff line
@@ -56,15 +56,12 @@ public interface RoleManagerAdapter {
    void setTestDefaultCallScreeningApp(String packageName);

    /**
     * Retrieves a list of package names of the app(s) which fill the
     * {@link android.app.role.RoleManager} companion device role.
     * @return List of package names filling the role, or empty list if there are none.
     * @return List of package names of companion apps, or empty list if there are none.
     */
    List<String> getCallCompanionApps();

    /**
     * Set a package to be added to the list of the {@link android.app.role.RoleManager} companion
     * apps.  Used for testing purposes only.
     * Set a package to be added to the list of the companion apps. Used for testing purposes only.
     * @param packageName Package name of the app to be added or removed as an override call
     *                    companion app.
     * @param isAdded {@code true} if the specified package should be added, {@code false} if it
@@ -73,17 +70,13 @@ public interface RoleManagerAdapter {
    void addOrRemoveTestCallCompanionApp(String packageName, boolean isAdded);

    /**
     * Returns the package name of the app which fills the {@link android.app.role.RoleManager}
     * projection mode role.
     * @return Package name of the car more app or {@code null} if there are no apps that fill this
     * role.
     * @return Package name of the car more app or {@code null} if there are no apps that match.
     */
    String getCarModeDialerApp();

    /**
     * Override the {@link android.app.role.RoleManager} automotive app with another value.
     * Used for testing purposes only.
     * @param packageName Package name of the app to fill the automotive app role.  Where
     * Override the automotive app with another value. Used for testing purposes only.
     * @param packageName Package name of the automotive app. Where
     *                    {@code null}, the override is removed.
     */
    void setTestAutoModeApp(String packageName);