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

Commit a7c90469 authored by Sailesh Nepal's avatar Sailesh Nepal
Browse files

Remove deprecated Telecom APIs

This APIs are no longer used and are safe to delete.

Bug: 18607657
Change-Id: I94dad196db9f8be544f05b12b7b71de124fc9328
parent 87d2169b
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -54,14 +54,9 @@ public final class AudioState implements Parcelable {
    public static final int ROUTE_ALL = ROUTE_EARPIECE | ROUTE_BLUETOOTH | ROUTE_WIRED_HEADSET |
            ROUTE_SPEAKER;

    /** Note: Deprecated, please do not use if possible. */
    @SystemApi public final boolean isMuted;

    /** Note: Deprecated, please do not use if possible. */
    @SystemApi public final int route;

    /** Note: Deprecated, please do not use if possible. */
    @SystemApi public final int supportedRouteMask;
    private final boolean isMuted;
    private final int route;
    private final int supportedRouteMask;

    public AudioState(boolean muted, int route, int supportedRouteMask) {
        this.isMuted = muted;
+0 −10
Original line number Diff line number Diff line
@@ -112,11 +112,6 @@ public abstract class Conference implements IConferenceable {
        return mState;
    }

    /** @hide */
    @Deprecated public final int getCapabilities() {
        return getConnectionCapabilities();
    }

    /**
     * Returns the capabilities of a conference. See {@code CAPABILITY_*} constants in class
     * {@link Connection} for valid values.
@@ -281,11 +276,6 @@ public abstract class Conference implements IConferenceable {
        return mDisconnectCause;
    }

    /** @hide */
    @Deprecated public final void setCapabilities(int connectionCapabilities) {
        setConnectionCapabilities(connectionCapabilities);
    }

    /**
     * Sets the capabilities of a conference. See {@code CAPABILITY_*} constants of class
     * {@link Connection} for valid values.
+0 −10
Original line number Diff line number Diff line
@@ -839,11 +839,6 @@ public abstract class Connection implements IConferenceable {
        return mConnectionCapabilities;
    }

    /** @hide */
    @SystemApi @Deprecated public final int getCallCapabilities() {
        return getConnectionCapabilities();
    }

    /**
     * Sets the value of the {@link #getAddress()} property.
     *
@@ -1031,11 +1026,6 @@ public abstract class Connection implements IConferenceable {
        }
    }

    /** @hide */
    @SystemApi @Deprecated public final void setCallCapabilities(int connectionCapabilities) {
        setConnectionCapabilities(connectionCapabilities);
    }

    /**
     * Sets the connection's capabilities as a bit mask of the {@code CAPABILITY_*} constants.
     *
+0 −5
Original line number Diff line number Diff line
@@ -164,11 +164,6 @@ public final class RemoteConference {
        return mState;
    }

    /** @hide */
    @Deprecated public final int getCallCapabilities() {
        return getConnectionCapabilities();
    }

    public final int getConnectionCapabilities() {
        return mConnectionCapabilities;
    }
+0 −6
Original line number Diff line number Diff line
@@ -73,11 +73,6 @@ public final class RemoteConnection {
         */
        public void onRingbackRequested(RemoteConnection connection, boolean ringback) {}

        /** @hide */
        @Deprecated public void onCallCapabilitiesChanged(
                RemoteConnection connection,
                int callCapabilities) {}

        /**
         * Indicates that the call capabilities of this {@code RemoteConnection} have changed.
         * See {@link #getConnectionCapabilities()}.
@@ -842,7 +837,6 @@ public final class RemoteConnection {
        mConnectionCapabilities = connectionCapabilities;
        for (Callback c : mCallbacks) {
            c.onConnectionCapabilitiesChanged(this, connectionCapabilities);
            c.onCallCapabilitiesChanged(this, connectionCapabilities);
        }
    }