Home | History | Annotate | Download | only in media

Lines Matching refs:SessionCommand2

20 import static androidx.media.SessionCommand2.COMMAND_CODE_CUSTOM;
37 * A set of {@link SessionCommand2} which represents a command group.
52 private Set<SessionCommand2> mCommands = new HashSet<>();
75 public void addCommand(@NonNull SessionCommand2 command) {
86 * Shouldn't be {@link SessionCommand2#COMMAND_CODE_CUSTOM}.
92 mCommands.add(new SessionCommand2(commandCode));
115 final Field[] fields = SessionCommand2.class.getFields();
121 mCommands.add(new SessionCommand2(fields[i].getInt(null)));
135 public void removeCommand(@NonNull SessionCommand2 command) {
146 * Shouldn't be {@link SessionCommand2#COMMAND_CODE_CUSTOM}.
152 mCommands.remove(new SessionCommand2(commandCode));
160 public boolean hasCommand(@NonNull SessionCommand2 command) {
171 * Shouldn't be {@link SessionCommand2#COMMAND_CODE_CUSTOM}.
177 for (SessionCommand2 command : mCommands) {
188 public @NonNull Set<SessionCommand2> getCommands() {
199 for (SessionCommand2 command : mCommands) {
227 SessionCommand2 command = SessionCommand2.fromBundle(commandBundle);