• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /*
2   * Copyright (C) 2014 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.bluetooth;
18  
19  /**
20   * This class contains constants for Bluetooth AVRCP profile.
21   *
22   * {@hide}
23   */
24  public final class BluetoothAvrcp {
25  
26      /*
27       * State flags for Passthrough commands
28      */
29      public static final int PASSTHROUGH_STATE_PRESS = 0;
30      public static final int PASSTHROUGH_STATE_RELEASE = 1;
31  
32      /*
33       * Operation IDs for Passthrough commands
34      */
35      public static final int PASSTHROUGH_ID_SELECT = 0x00;    /* select */
36      public static final int PASSTHROUGH_ID_UP = 0x01;    /* up */
37      public static final int PASSTHROUGH_ID_DOWN = 0x02;    /* down */
38      public static final int PASSTHROUGH_ID_LEFT = 0x03;    /* left */
39      public static final int PASSTHROUGH_ID_RIGHT = 0x04;    /* right */
40      public static final int PASSTHROUGH_ID_RIGHT_UP = 0x05;    /* right-up */
41      public static final int PASSTHROUGH_ID_RIGHT_DOWN = 0x06;    /* right-down */
42      public static final int PASSTHROUGH_ID_LEFT_UP = 0x07;    /* left-up */
43      public static final int PASSTHROUGH_ID_LEFT_DOWN = 0x08;    /* left-down */
44      public static final int PASSTHROUGH_ID_ROOT_MENU = 0x09;    /* root menu */
45      public static final int PASSTHROUGH_ID_SETUP_MENU = 0x0A;    /* setup menu */
46      public static final int PASSTHROUGH_ID_CONT_MENU = 0x0B;    /* contents menu */
47      public static final int PASSTHROUGH_ID_FAV_MENU = 0x0C;    /* favorite menu */
48      public static final int PASSTHROUGH_ID_EXIT = 0x0D;    /* exit */
49      public static final int PASSTHROUGH_ID_0 = 0x20;    /* 0 */
50      public static final int PASSTHROUGH_ID_1 = 0x21;    /* 1 */
51      public static final int PASSTHROUGH_ID_2 = 0x22;    /* 2 */
52      public static final int PASSTHROUGH_ID_3 = 0x23;    /* 3 */
53      public static final int PASSTHROUGH_ID_4 = 0x24;    /* 4 */
54      public static final int PASSTHROUGH_ID_5 = 0x25;    /* 5 */
55      public static final int PASSTHROUGH_ID_6 = 0x26;    /* 6 */
56      public static final int PASSTHROUGH_ID_7 = 0x27;    /* 7 */
57      public static final int PASSTHROUGH_ID_8 = 0x28;    /* 8 */
58      public static final int PASSTHROUGH_ID_9 = 0x29;    /* 9 */
59      public static final int PASSTHROUGH_ID_DOT = 0x2A;    /* dot */
60      public static final int PASSTHROUGH_ID_ENTER = 0x2B;    /* enter */
61      public static final int PASSTHROUGH_ID_CLEAR = 0x2C;    /* clear */
62      public static final int PASSTHROUGH_ID_CHAN_UP = 0x30;    /* channel up */
63      public static final int PASSTHROUGH_ID_CHAN_DOWN = 0x31;    /* channel down */
64      public static final int PASSTHROUGH_ID_PREV_CHAN = 0x32;    /* previous channel */
65      public static final int PASSTHROUGH_ID_SOUND_SEL = 0x33;    /* sound select */
66      public static final int PASSTHROUGH_ID_INPUT_SEL = 0x34;    /* input select */
67      public static final int PASSTHROUGH_ID_DISP_INFO = 0x35;    /* display information */
68      public static final int PASSTHROUGH_ID_HELP = 0x36;    /* help */
69      public static final int PASSTHROUGH_ID_PAGE_UP = 0x37;    /* page up */
70      public static final int PASSTHROUGH_ID_PAGE_DOWN = 0x38;    /* page down */
71      public static final int PASSTHROUGH_ID_POWER = 0x40;    /* power */
72      public static final int PASSTHROUGH_ID_VOL_UP = 0x41;    /* volume up */
73      public static final int PASSTHROUGH_ID_VOL_DOWN = 0x42;    /* volume down */
74      public static final int PASSTHROUGH_ID_MUTE = 0x43;    /* mute */
75      public static final int PASSTHROUGH_ID_PLAY = 0x44;    /* play */
76      public static final int PASSTHROUGH_ID_STOP = 0x45;    /* stop */
77      public static final int PASSTHROUGH_ID_PAUSE = 0x46;    /* pause */
78      public static final int PASSTHROUGH_ID_RECORD = 0x47;    /* record */
79      public static final int PASSTHROUGH_ID_REWIND = 0x48;    /* rewind */
80      public static final int PASSTHROUGH_ID_FAST_FOR = 0x49;    /* fast forward */
81      public static final int PASSTHROUGH_ID_EJECT = 0x4A;    /* eject */
82      public static final int PASSTHROUGH_ID_FORWARD = 0x4B;    /* forward */
83      public static final int PASSTHROUGH_ID_BACKWARD = 0x4C;    /* backward */
84      public static final int PASSTHROUGH_ID_ANGLE = 0x50;    /* angle */
85      public static final int PASSTHROUGH_ID_SUBPICT = 0x51;    /* subpicture */
86      public static final int PASSTHROUGH_ID_F1 = 0x71;    /* F1 */
87      public static final int PASSTHROUGH_ID_F2 = 0x72;    /* F2 */
88      public static final int PASSTHROUGH_ID_F3 = 0x73;    /* F3 */
89      public static final int PASSTHROUGH_ID_F4 = 0x74;    /* F4 */
90      public static final int PASSTHROUGH_ID_F5 = 0x75;    /* F5 */
91      public static final int PASSTHROUGH_ID_VENDOR = 0x7E;    /* vendor unique */
92      public static final int PASSTHROUGH_KEYPRESSED_RELEASE = 0x80;
93  }
94