summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorPhil Burk <philburk@google.com>2015-09-03 14:37:03 -0700
committerGlenn Kasten <gkasten@google.com>2015-10-13 15:40:03 +0000
commit977fe03b36a7783f9cee8497efe550a69b128473 (patch)
treed4b796103d255c84b0cde4ca0e0410cc6b8b1bf1 /media/java
parentc024de3c946c18e8e4799eb8d372fdec3146f8cf (diff)
downloadframeworks_base-977fe03b36a7783f9cee8497efe550a69b128473.zip
frameworks_base-977fe03b36a7783f9cee8497efe550a69b128473.tar.gz
frameworks_base-977fe03b36a7783f9cee8497efe550a69b128473.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')
-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);
+}