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

Commit c4cc3ea4 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh Committed by Android (Google) Code Review
Browse files

Merge "Temporary Changes for certification of SCO." into honeycomb

parents 75a0e448 75c27014
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -670,6 +670,26 @@ public final class BluetoothHeadset implements BluetoothProfile {
        return false;
    }

    /**
     * Send a AT command message to the headset.
     * @param device Remote Bluetooth Device
     * @param cmd The String to send.
     * @hide
     */
    public void sendAtCommand(BluetoothDevice device, String command) {
        if (DBG) log("sendAtCommand()");
        if (mService != null && isEnabled() && isValidDevice(device)) {
            try {
                mService.sendAtCommand(device, command);
            } 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()));
        }
    }

    private ServiceConnection mConnection = new ServiceConnection() {
        public void onServiceConnected(ComponentName className, IBinder service) {
            if (DBG) Log.d(TAG, "Proxy object connected");
+2 −0
Original line number Diff line number Diff line
@@ -50,4 +50,6 @@ interface IBluetoothHeadset {

    boolean startVirtualVoiceCall(in BluetoothDevice device);
    boolean stopVirtualVoiceCall(in BluetoothDevice device);

    void sendAtCommand(in BluetoothDevice device, String urc);
}