OSDN Git Service

MidiService: update listener with current status when registered
authorPhil Burk <philburk@google.com>
Thu, 6 Aug 2015 06:32:54 +0000 (23:32 -0700)
committerPhil Burk <philburk@google.com>
Tue, 22 Sep 2015 19:45:55 +0000 (12:45 -0700)
commitb2355940e3e697deeecd1b6511cd5094f9dc553a
treee2f01d3b4177428d58a5b1d8fbce5e866f582779
parentbba5a1514e83e2a075bd47b22a8d50a9d730653d
MidiService: update listener with current status when registered

This will give an app an opportunity to learn whether an input port is busy
before the user tries to connect and then fails.

Bug: 22825043
Change-Id: Ifede60f166dfe66ea15453044fce06f4a8452b18
Signed-off-by: Phil Burk <philburk@google.com>
media/java/android/media/midi/MidiManager.java
services/midi/java/com/android/server/midi/MidiService.java