• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2019 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 com.android.settingslib.media;
18 
19 /**
20  * Class to access MediaOutput constants.
21  */
22 public class MediaOutputSliceConstants {
23 
24     /**
25      * Key for the Media output setting.
26      */
27     public static final String KEY_MEDIA_OUTPUT = "media_output";
28 
29     /**
30      * Key for the Media output group setting.
31      */
32     public static final String KEY_MEDIA_OUTPUT_GROUP = "media_output_group";
33 
34     /**
35      * Key for the Remote Media slice.
36      */
37     public static final String KEY_REMOTE_MEDIA = "remote_media";
38 
39     /**
40      * Key for the {@link android.media.session.MediaSession.Token}.
41      */
42     public static final String KEY_MEDIA_SESSION_TOKEN = "key_media_session_token";
43 
44     /**
45      * Key for the {@link android.media.RoutingSessionInfo#getId()}
46      */
47     public static final String KEY_SESSION_INFO_ID = "key_session_info_id";
48 
49     /**
50      * Activity Action: Show a settings dialog containing {@link MediaDevice} to transfer media.
51      */
52     public static final String ACTION_MEDIA_OUTPUT =
53             "com.android.settings.panel.action.MEDIA_OUTPUT";
54 
55     /**
56      * Activity Action: Show a settings dialog containing {@link MediaDevice} to handle media group
57      * operation.
58      */
59     public static final String ACTION_MEDIA_OUTPUT_GROUP =
60             "com.android.settings.panel.action.MEDIA_OUTPUT_GROUP";
61 
62     /**
63      * A string extra specifying a media package name.
64      */
65     public static final String EXTRA_PACKAGE_NAME =
66             "com.android.settings.panel.extra.PACKAGE_NAME";
67 
68     /**
69      * An intent action to launch media output dialog.
70      */
71     public static final String ACTION_LAUNCH_MEDIA_OUTPUT_DIALOG =
72             "com.android.systemui.action.LAUNCH_MEDIA_OUTPUT_DIALOG";
73 
74     /**
75      * An intent action to dismiss media output dialog.
76      */
77     public static final String ACTION_DISMISS_MEDIA_OUTPUT_DIALOG =
78             "com.android.systemui.action.DISMISS_MEDIA_OUTPUT_DIALOG";
79 
80     /**
81      * Settings package name.
82      */
83     public static final String SETTINGS_PACKAGE_NAME = "com.android.settings";
84 
85     /**
86      * An intent action to launch Bluetooth paring page.
87      */
88     public static final String ACTION_LAUNCH_BLUETOOTH_PAIRING =
89             "com.android.settings.action.LAUNCH_BLUETOOTH_PAIRING";
90 
91     /**
92      * SystemUi package name.
93      */
94     public static final String SYSTEMUI_PACKAGE_NAME = "com.android.systemui";
95 
96     /**
97      * An intent action to close settings panel.
98      */
99     public static final String ACTION_CLOSE_PANEL =
100             "com.android.settings.panel.action.CLOSE_PANEL";
101 }
102