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

Commit 805cb841 authored by Zhihai Xu's avatar Zhihai Xu Committed by Android (Google) Code Review
Browse files

Merge "Remove roamChanged API"

parents 5b48229b 69925b14
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -814,27 +814,6 @@ public final class BluetoothHeadset implements BluetoothProfile {
        }
    }

    /**
     * Notify Headset of phone roam state change.
     * This is a backdoor for phone app to call BluetoothHeadset since
     * there is currently not a good way to get roaming state change outside
     * of phone app.
     *
     * @hide
     */
    public void roamChanged(boolean roaming) {
        if (mService != null && isEnabled()) {
            try {
                mService.roamChanged(roaming);
            } catch (RemoteException e) {
                Log.e(TAG, e.toString());
            }
        } else {
            Log.w(TAG, "Proxy not attached to service");
            if (DBG) Log.d(TAG, Log.getStackTraceString(new Throwable()));
        }
    }

    /**
     * Send Headset of CLCC response
     *
+0 −1
Original line number Diff line number Diff line
@@ -50,7 +50,6 @@ interface IBluetoothHeadset {
    boolean startScoUsingVirtualVoiceCall(in BluetoothDevice device);
    boolean stopScoUsingVirtualVoiceCall(in BluetoothDevice device);
    void phoneStateChanged(int numActive, int numHeld, int callState, String number, int type);
    void roamChanged(boolean roam);
    void clccResponse(int index, int direction, int status, int mode, boolean mpty,
                      String number, int type);
}