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

Commit 4cbd2cd0 authored by Ravi Nagarajan's avatar Ravi Nagarajan Committed by Zhihai Xu
Browse files

Remove roamChanged API

Roam state listerner will be handled inside the Bluetooth apk. Remove
the binder API from wrapper class
bug 8781689

Change-Id: I31c2b899069774620b1406faeb3c68ad1e60b599
parent 05f9e27f
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);
}