public class MidiService
extends IMidiManager.Stub
Modifier and Type | Class and Description |
---|---|
static class |
MidiService.Lifecycle |
Constructor and Description |
---|
MidiService(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
closeDevice(IBinder clientToken,
IBinder deviceToken) |
void |
dump(FileDescriptor fd,
PrintWriter writer,
String[] args) |
MidiDeviceInfo[] |
getDevices() |
MidiDeviceStatus |
getDeviceStatus(MidiDeviceInfo deviceInfo) |
MidiDeviceInfo |
getServiceDeviceInfo(String packageName,
String className) |
void |
openBluetoothDevice(IBinder token,
BluetoothDevice bluetoothDevice,
IMidiDeviceOpenCallback callback) |
void |
openDevice(IBinder token,
MidiDeviceInfo deviceInfo,
IMidiDeviceOpenCallback callback) |
MidiDeviceInfo |
registerDeviceServer(IMidiDeviceServer server,
int numInputPorts,
int numOutputPorts,
String[] inputPortNames,
String[] outputPortNames,
Bundle properties,
int type) |
void |
registerListener(IBinder token,
IMidiDeviceListener listener) |
void |
setDeviceStatus(IMidiDeviceServer server,
MidiDeviceStatus status) |
void |
unregisterDeviceServer(IMidiDeviceServer server) |
void |
unregisterListener(IBinder token,
IMidiDeviceListener listener) |
public MidiService(Context context)
public void registerListener(IBinder token, IMidiDeviceListener listener)
public void unregisterListener(IBinder token, IMidiDeviceListener listener)
public MidiDeviceInfo[] getDevices()
public void openDevice(IBinder token, MidiDeviceInfo deviceInfo, IMidiDeviceOpenCallback callback)
public void openBluetoothDevice(IBinder token, BluetoothDevice bluetoothDevice, IMidiDeviceOpenCallback callback)
public MidiDeviceInfo registerDeviceServer(IMidiDeviceServer server, int numInputPorts, int numOutputPorts, String[] inputPortNames, String[] outputPortNames, Bundle properties, int type)
public void unregisterDeviceServer(IMidiDeviceServer server)
public MidiDeviceInfo getServiceDeviceInfo(String packageName, String className)
public MidiDeviceStatus getDeviceStatus(MidiDeviceInfo deviceInfo)
public void setDeviceStatus(IMidiDeviceServer server, MidiDeviceStatus status)
public void dump(FileDescriptor fd, PrintWriter writer, String[] args)