summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2015-03-19 17:10:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-19 17:10:17 +0000
commitac9e2d756e44a81cf894c959156712d040c7acdd (patch)
treea49ca2062d043f2355963a9cc7f53bbbb1f3b7cc /media
parent543a3578ad0a1d0214b9102ddec0fc26a0e5d63e (diff)
parent3f5acc6d48337da1609f672d4385b1f170ec7f3e (diff)
downloadframeworks_base-ac9e2d756e44a81cf894c959156712d040c7acdd.zip
frameworks_base-ac9e2d756e44a81cf894c959156712d040c7acdd.tar.gz
frameworks_base-ac9e2d756e44a81cf894c959156712d040c7acdd.tar.bz2
Merge "MidiDeviceInfo: Add constants for future Bluetooth MIDI support"
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/midi/MidiDeviceInfo.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/media/java/android/media/midi/MidiDeviceInfo.java b/media/java/android/media/midi/MidiDeviceInfo.java
index 93e0939..7201e25 100644
--- a/media/java/android/media/midi/MidiDeviceInfo.java
+++ b/media/java/android/media/midi/MidiDeviceInfo.java
@@ -43,6 +43,11 @@ public final class MidiDeviceInfo implements Parcelable {
public static final int TYPE_VIRTUAL = 2;
/**
+ * Constant representing Bluetooth MIDI devices for {@link #getType}
+ */
+ public static final int TYPE_BLUETOOTH = 3;
+
+ /**
* Bundle key for the device's user visible name property.
* Used with the {@link android.os.Bundle} returned by {@link #getProperties}.
* For USB devices, this is a concatenation of the manufacturer and product names.
@@ -78,6 +83,13 @@ public final class MidiDeviceInfo implements Parcelable {
public static final String PROPERTY_USB_DEVICE = "usb_device";
/**
+ * Bundle key for the device's {@link android.bluetooth.BluetoothDevice}.
+ * Only set for Bluetooth MIDI devices.
+ * Used with the {@link android.os.Bundle} returned by {@link #getProperties}
+ */
+ public static final String PROPERTY_BLUETOOTH_DEVICE = "bluetooth_device";
+
+ /**
* Bundle key for the device's ALSA card number.
* Only set for USB MIDI devices.
* Used with the {@link android.os.Bundle} returned by {@link #getProperties}