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

Commit 01ade2cb authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Remove BluetoothHidDeviceAppConfiguration (1/4)"

parents 31e3d319 ceb36149
Loading
Loading
Loading
Loading
+0 −19
Original line number Diff line number Diff line
/*
** Copyright 2016, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
**     http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/

package android.bluetooth;

parcelable BluetoothHidDeviceAppConfiguration;
+4 −5
Original line number Diff line number Diff line
@@ -17,17 +17,16 @@
package android.bluetooth;

import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothHidDeviceAppConfiguration;
import android.bluetooth.IBluetoothHidDeviceCallback;
import android.bluetooth.BluetoothHidDeviceAppSdpSettings;
import android.bluetooth.BluetoothHidDeviceAppQosSettings;

/** @hide */
interface IBluetoothHidDevice {
    boolean registerApp(in BluetoothHidDeviceAppConfiguration config,
            in BluetoothHidDeviceAppSdpSettings sdp, in BluetoothHidDeviceAppQosSettings inQos,
            in BluetoothHidDeviceAppQosSettings outQos, in IBluetoothHidDeviceCallback callback);
    boolean unregisterApp(in BluetoothHidDeviceAppConfiguration config);
    boolean registerApp(in BluetoothHidDeviceAppSdpSettings sdp,
            in BluetoothHidDeviceAppQosSettings inQos, in BluetoothHidDeviceAppQosSettings outQos,
            in IBluetoothHidDeviceCallback callback);
    boolean unregisterApp();
    boolean sendReport(in BluetoothDevice device, in int id, in byte[] data);
    boolean replyReport(in BluetoothDevice device, in byte type, in byte id, in byte[] data);
    boolean reportError(in BluetoothDevice device, byte error);
+1 −2
Original line number Diff line number Diff line
@@ -17,11 +17,10 @@
package android.bluetooth;

import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothHidDeviceAppConfiguration;

/** @hide */
interface IBluetoothHidDeviceCallback {
   void onAppStatusChanged(in BluetoothDevice device, in BluetoothHidDeviceAppConfiguration config, boolean registered);
   void onAppStatusChanged(in BluetoothDevice device, boolean registered);
   void onConnectionStateChanged(in BluetoothDevice device, in int state);
   void onGetReport(in BluetoothDevice device, in byte type, in byte id, in int bufferSize);
   void onSetReport(in BluetoothDevice device, in byte type, in byte id, in byte[] data);