1 /* 2 * Copyright 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.support.mediacompat.testlib; 18 19 /** 20 * Constants for testing the media session. 21 */ 22 public class MediaSessionConstants { 23 24 // MediaSessionCompat methods. 25 public static final int SET_EXTRAS = 101; 26 public static final int SET_FLAGS = 102; 27 public static final int SET_METADATA = 103; 28 public static final int SET_PLAYBACK_STATE = 104; 29 public static final int SET_QUEUE = 105; 30 public static final int SET_QUEUE_TITLE = 106; 31 public static final int SET_SESSION_ACTIVITY = 107; 32 public static final int SET_CAPTIONING_ENABLED = 108; 33 public static final int SET_REPEAT_MODE = 109; 34 public static final int SET_SHUFFLE_MODE = 110; 35 public static final int SEND_SESSION_EVENT = 112; 36 public static final int SET_ACTIVE = 113; 37 public static final int RELEASE = 114; 38 public static final int SET_PLAYBACK_TO_LOCAL = 115; 39 public static final int SET_PLAYBACK_TO_REMOTE = 116; 40 public static final int SET_RATING_TYPE = 117; 41 42 public static final String TEST_SESSION_TAG = "test-session-tag"; 43 public static final String TEST_KEY = "test-key"; 44 public static final String TEST_VALUE = "test-val"; 45 public static final String TEST_SESSION_EVENT = "test-session-event"; 46 public static final String TEST_COMMAND = "test-command"; 47 public static final int TEST_FLAGS = 5; 48 public static final int TEST_CURRENT_VOLUME = 10; 49 public static final int TEST_MAX_VOLUME = 11; 50 public static final long TEST_QUEUE_ID_1 = 10L; 51 public static final long TEST_QUEUE_ID_2 = 20L; 52 public static final String TEST_MEDIA_ID_1 = "media_id_1"; 53 public static final String TEST_MEDIA_ID_2 = "media_id_2"; 54 public static final String TEST_MEDIA_TITLE_1 = "media_title_1"; 55 public static final String TEST_MEDIA_TITLE_2 = "media_title_2"; 56 public static final long TEST_ACTION = 55L; 57 58 public static final int TEST_ERROR_CODE = 0x3; 59 public static final String TEST_ERROR_MSG = "test-error-msg"; 60 61 private MediaSessionConstants() { 62 } 63 } 64