MIDI: Address API comments for Virtual UMP
Bug: 292589794 Test: presubmit Change-Id: I048f1bce6ceea73361785a84759e5be27e2bff21
This commit is contained in:
@@ -26397,7 +26397,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