Merge "MediaSession2: Add CommandGroup#add/removeCommand(int)" into pi-dev

This commit is contained in:
Jaewan Kim
2018-03-26 08:10:44 +00:00
committed by Android (Google) Code Review

View File

@@ -519,6 +519,10 @@ public class MediaSession2 implements AutoCloseable {
mProvider.addCommand_impl(command); mProvider.addCommand_impl(command);
} }
public void addCommand(int commandCode) {
// TODO(jaewna): Implement
}
public void addAllPredefinedCommands() { public void addAllPredefinedCommands() {
mProvider.addAllPredefinedCommands_impl(); mProvider.addAllPredefinedCommands_impl();
} }
@@ -527,6 +531,10 @@ public class MediaSession2 implements AutoCloseable {
mProvider.removeCommand_impl(command); mProvider.removeCommand_impl(command);
} }
public void removeCommand(int commandCode) {
// TODO(jaewan): Implement.
}
public boolean hasCommand(@NonNull Command command) { public boolean hasCommand(@NonNull Command command) {
return mProvider.hasCommand_impl(command); return mProvider.hasCommand_impl(command);
} }