Merge "MIDI: Address API comments for Virtual UMP" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
58cc443424
@@ -26453,7 +26453,7 @@ package android.media.midi {
|
||||
method @NonNull public final java.util.List<android.media.midi.MidiReceiver> getOutputPortReceivers();
|
||||
method @Nullable public android.os.IBinder onBind(@NonNull android.content.Intent);
|
||||
method public void onClose();
|
||||
method public void onDeviceStatusChanged(@Nullable android.media.midi.MidiDeviceStatus);
|
||||
method public void onDeviceStatusChanged(@NonNull android.media.midi.MidiDeviceStatus);
|
||||
method @NonNull public abstract java.util.List<android.media.midi.MidiReceiver> onGetInputPortReceivers();
|
||||
field public static final String SERVICE_INTERFACE = "android.media.midi.MidiUmpDeviceService";
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ public abstract class MidiUmpDeviceService extends Service {
|
||||
|
||||
/**
|
||||
* Returns the {@link MidiDeviceInfo} instance for this service
|
||||
* @return the MidiDeviceInfo of the virtual MIDI device
|
||||
* @return the MidiDeviceInfo of the virtual MIDI device if it was successfully created
|
||||
*/
|
||||
public final @Nullable MidiDeviceInfo getDeviceInfo() {
|
||||
return mDeviceInfo;
|
||||
@@ -140,7 +140,7 @@ public abstract class MidiUmpDeviceService extends Service {
|
||||
* Called to notify when the {@link MidiDeviceStatus} has changed
|
||||
* @param status the current status of the MIDI device
|
||||
*/
|
||||
public void onDeviceStatusChanged(@Nullable MidiDeviceStatus status) {
|
||||
public void onDeviceStatusChanged(@NonNull MidiDeviceStatus status) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user