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

Commit f2951104 authored by Santos Cordon's avatar Santos Cordon
Browse files

Change telecomm APIs from protected to public (1/3)

Bug: 16416927
Change-Id: I859c80a120fa59bba12a5c6bfca17fa57613a6aa
parent 189bff29
Loading
Loading
Loading
Loading
+23 −23
Original line number Diff line number Diff line
@@ -28396,7 +28396,7 @@ package android.telecomm {
  }
  public abstract class CallVideoClient {
    ctor protected CallVideoClient();
    ctor public CallVideoClient();
    method public abstract void onHandleCallSessionEvent(int);
    method public abstract void onHandleCameraCapabilitiesChange(android.telecomm.CallCameraCapabilities);
    method public abstract void onReceiveSessionModifyRequest(android.telecomm.VideoCallProfile);
@@ -28413,7 +28413,7 @@ package android.telecomm {
  }
  public abstract class CallVideoProvider {
    ctor protected CallVideoProvider();
    ctor public CallVideoProvider();
    method public abstract void onRequestCallDataUsage();
    method public abstract void onRequestCameraCapabilities();
    method public abstract void onSendSessionModifyRequest(android.telecomm.VideoCallProfile);
@@ -28428,7 +28428,7 @@ package android.telecomm {
  }
  public abstract class Connection {
    ctor protected Connection();
    ctor public Connection();
    method public final void destroy();
    method public final boolean getAudioModeIsVoip();
    method public final android.telecomm.CallAudioState getCallAudioState();
@@ -28445,21 +28445,21 @@ package android.telecomm {
    method public final int getVideoState();
    method public final boolean isConferenceConnection();
    method public final boolean isRequestingRingback();
    method protected void onAbort();
    method protected void onAnswer(int);
    method protected void onChildrenChanged(java.util.List<android.telecomm.Connection>);
    method protected void onDisconnect();
    method protected void onHold();
    method protected void onPhoneAccountClicked();
    method protected void onPlayDtmfTone(char);
    method protected void onPostDialContinue(boolean);
    method protected void onReject();
    method protected void onSeparate();
    method protected void onSetAudioState(android.telecomm.CallAudioState);
    method protected void onSetState(int);
    method protected void onStopDtmfTone();
    method protected void onSwapWithBackgroundCall();
    method protected void onUnhold();
    method public void onAbort();
    method public void onAnswer(int);
    method public void onChildrenChanged(java.util.List<android.telecomm.Connection>);
    method public void onDisconnect();
    method public void onHold();
    method public void onPhoneAccountClicked();
    method public void onPlayDtmfTone(char);
    method public void onPostDialContinue(boolean);
    method public void onReject();
    method public void onSeparate();
    method public void onSetAudioState(android.telecomm.CallAudioState);
    method public void onSetState(int);
    method public void onStopDtmfTone();
    method public void onSwapWithBackgroundCall();
    method public void onUnhold();
    method public final void setActive();
    method public final void setAudioModeIsVoip(boolean);
    method public final void setCallCapabilities(int);
@@ -28510,11 +28510,11 @@ package android.telecomm {
    method public final void lookupRemoteAccounts(android.net.Uri, android.telecomm.SimpleResponse<android.net.Uri, java.util.List<android.telecomm.PhoneAccountHandle>>);
    method public final void maybeRespondToAccountLookup();
    method public final android.os.IBinder onBind(android.content.Intent);
    method protected void onConnectionAdded(android.telecomm.Connection);
    method protected void onConnectionRemoved(android.telecomm.Connection);
    method protected void onCreateConferenceConnection(java.lang.String, android.telecomm.Connection, android.telecomm.Response<java.lang.String, android.telecomm.Connection>);
    method protected void onCreateIncomingConnection(android.telecomm.ConnectionRequest, android.telecomm.ConnectionService.CreateConnectionResponse<android.telecomm.Connection>);
    method protected void onCreateOutgoingConnection(android.telecomm.ConnectionRequest, android.telecomm.ConnectionService.CreateConnectionResponse<android.telecomm.Connection>);
    method public void onConnectionAdded(android.telecomm.Connection);
    method public void onConnectionRemoved(android.telecomm.Connection);
    method public void onCreateConferenceConnection(java.lang.String, android.telecomm.Connection, android.telecomm.Response<java.lang.String, android.telecomm.Connection>);
    method public void onCreateIncomingConnection(android.telecomm.ConnectionRequest, android.telecomm.ConnectionService.CreateConnectionResponse<android.telecomm.Connection>);
    method public void onCreateOutgoingConnection(android.telecomm.ConnectionRequest, android.telecomm.ConnectionService.CreateConnectionResponse<android.telecomm.Connection>);
    field public static final java.lang.String SERVICE_INTERFACE = "android.telecomm.ConnectionService";
  }
+1 −1
Original line number Diff line number Diff line
@@ -169,7 +169,7 @@ public abstract class CallVideoClient {

    private final CallVideoClientBinder mBinder;

    protected CallVideoClient() {
    public CallVideoClient() {
        mBinder = new CallVideoClientBinder();
    }

+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ public abstract class CallVideoProvider {
    private final CallVideoProviderHandler mMessageHandler = new CallVideoProviderHandler();
    private final CallVideoProviderBinder mBinder;

    protected CallVideoProvider() {
    public CallVideoProvider() {
        mBinder = new CallVideoProviderBinder();
    }

+16 −16
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ public abstract class Connection {
    /**
     * Create a new Connection.
     */
    protected Connection() {}
    public Connection() {}

    /**
     * @return The handle (e.g., phone number) to which this Connection is currently communicating.
@@ -484,7 +484,7 @@ public abstract class Connection {
     *
     * @param state The new call audio state.
     */
    protected void onSetAudioState(CallAudioState state) {}
    public void onSetAudioState(CallAudioState state) {}

    /**
     * Notifies this Connection of an internal state change. This method is called before the
@@ -492,44 +492,44 @@ public abstract class Connection {
     *
     * @param state The new state, a {@link Connection.State} member.
     */
    protected void onSetState(int state) {}
    public void onSetState(int state) {}

    /**
     * Notifies this Connection of a request to play a DTMF tone.
     *
     * @param c A DTMF character.
     */
    protected void onPlayDtmfTone(char c) {}
    public void onPlayDtmfTone(char c) {}

    /**
     * Notifies this Connection of a request to stop any currently playing DTMF tones.
     */
    protected void onStopDtmfTone() {}
    public void onStopDtmfTone() {}

    /**
     * Notifies this Connection of a request to disconnect.
     */
    protected void onDisconnect() {}
    public void onDisconnect() {}

    /**
     * Notifies this Connection of a request to disconnect.
     */
    protected void onSeparate() {}
    public void onSeparate() {}

    /**
     * Notifies this Connection of a request to abort.
     */
    protected void onAbort() {}
    public void onAbort() {}

    /**
     * Notifies this Connection of a request to hold.
     */
    protected void onHold() {}
    public void onHold() {}

    /**
     * Notifies this Connection of a request to exit a hold state.
     */
    protected void onUnhold() {}
    public void onUnhold() {}

    /**
     * Notifies this Connection, which is in {@link State#RINGING}, of
@@ -537,34 +537,34 @@ public abstract class Connection {
     *
     * @param videoState The video state in which to answer the call.
     */
    protected void onAnswer(int videoState) {}
    public void onAnswer(int videoState) {}

    /**
     * Notifies this Connection, which is in {@link State#RINGING}, of
     * a request to reject.
     */
    protected void onReject() {}
    public void onReject() {}

    /**
     * Notifies this Connection whether the user wishes to proceed with the post-dial DTMF codes.
     */
    protected void onPostDialContinue(boolean proceed) {}
    public void onPostDialContinue(boolean proceed) {}

    /**
     * Swap this call with a background call. This is used for calls that don't support hold,
     * e.g. CDMA.
     */
    protected void onSwapWithBackgroundCall() {}
    public void onSwapWithBackgroundCall() {}

    /**
     * TODO(santoscordon): Needs documentation.
     */
    protected void onChildrenChanged(List<Connection> children) {}
    public void onChildrenChanged(List<Connection> children) {}

    /**
     * Called when the phone account UI was clicked.
     */
    protected void onPhoneAccountClicked() {}
    public void onPhoneAccountClicked() {}

    private void addChild(Connection connection) {
        Log.d(this, "adding child %s", connection);
+5 −5
Original line number Diff line number Diff line
@@ -647,7 +647,7 @@ public abstract class ConnectionService extends Service {
     * @param request Details about the incoming call.
     * @param callback A callback for providing the result.
     */
    protected void onCreateIncomingConnection(
    public void onCreateIncomingConnection(
            ConnectionRequest request,
            CreateConnectionResponse<Connection> callback) {}

@@ -657,7 +657,7 @@ public abstract class ConnectionService extends Service {
     * @param request Details about the outgoing call.
     * @param callback A callback for providing the result.
     */
    protected void onCreateOutgoingConnection(
    public void onCreateOutgoingConnection(
            ConnectionRequest request,
            CreateConnectionResponse<Connection> callback) {}

@@ -671,7 +671,7 @@ public abstract class ConnectionService extends Service {
     * @param token The token to be passed into the response callback.
     * @param callback The callback for providing the potentially-new conference connection.
     */
    protected void onCreateConferenceConnection(
    public void onCreateConferenceConnection(
            String token,
            Connection connection,
            Response<String, Connection> callback) {}
@@ -681,14 +681,14 @@ public abstract class ConnectionService extends Service {
     *
     * @param connection The connection which was added.
     */
    protected void onConnectionAdded(Connection connection) {}
    public void onConnectionAdded(Connection connection) {}

    /**
     * Notified that a connection has been removed from this connection service.
     *
     * @param connection The connection which was removed.
     */
    protected void onConnectionRemoved(Connection connection) {}
    public void onConnectionRemoved(Connection connection) {}

    static String toLogSafePhoneNumber(String number) {
        // For unknown number, log empty string.