summaryrefslogtreecommitdiffstats
path: root/media/java/android
diff options
context:
space:
mode:
authorPhil Burk <philburk@google.com>2015-09-03 14:37:03 -0700
committerSteve Kondik <shade@chemlab.org>2015-11-10 11:00:20 -0800
commit3ae97c857e76a46d3d5342eb76a4999d569040a9 (patch)
tree788c1cee1d390a5267d717dc66c56061709f3ebf /media/java/android
parent58dc1e3e9b8032b85d60f4ebda0089e299edb8f3 (diff)
downloadframeworks_base-3ae97c857e76a46d3d5342eb76a4999d569040a9.zip
frameworks_base-3ae97c857e76a46d3d5342eb76a4999d569040a9.tar.gz
frameworks_base-3ae97c857e76a46d3d5342eb76a4999d569040a9.tar.bz2
BLE-MIDI: change binding for BluetoothMidiService
Add a remote call addBluetoothDevice() using AIDL. This was needed because onBind() is only called once. Bug: 23219556 Bug: 23760886 Change-Id: Id7554ca55d596352d11dbd6ae3e403138a29c864 Signed-off-by: Phil Burk <philburk@google.com> (cherry picked from commit 7cd06c0b9e087a555d2c5dd4cab5b7eac8497526)
Diffstat (limited to 'media/java/android')
-rw-r--r--media/java/android/media/midi/IBluetoothMidiService.aidl26
1 files changed, 26 insertions, 0 deletions
diff --git a/media/java/android/media/midi/IBluetoothMidiService.aidl b/media/java/android/media/midi/IBluetoothMidiService.aidl
new file mode 100644
index 0000000..fe5566d
--- /dev/null
+++ b/media/java/android/media/midi/IBluetoothMidiService.aidl
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2015 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.media.midi;
+
+import android.bluetooth.BluetoothDevice;
+import android.os.IBinder;
+
+/** @hide */
+interface IBluetoothMidiService
+{
+ IBinder addBluetoothDevice(in BluetoothDevice bluetoothDevice);
+}