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 MediaOutputConstants {
23 
24     /**
25      * Key for the Remote Media slice.
26      */
27     public static final String KEY_REMOTE_MEDIA = "remote_media";
28 
29     /**
30      * Key for the {@link android.media.session.MediaSession.Token}.
31      */
32     public static final String KEY_MEDIA_SESSION_TOKEN = "key_media_session_token";
33 
34     /**
35      * Key for the {@link android.media.RoutingSessionInfo#getId()}
36      */
37     public static final String KEY_SESSION_INFO_ID = "key_session_info_id";
38 
39     /**
40      * A string extra specifying a media package name.
41      */
42     public static final String EXTRA_PACKAGE_NAME = "package_name";
43 
44     /**
45      * An intent action to launch media output dialog.
46      */
47     public static final String ACTION_LAUNCH_MEDIA_OUTPUT_DIALOG =
48             "com.android.systemui.action.LAUNCH_MEDIA_OUTPUT_DIALOG";
49 
50     /**
51      * An intent action to launch media output broadcast dialog.
52      */
53     public static final String ACTION_LAUNCH_MEDIA_OUTPUT_BROADCAST_DIALOG =
54             "com.android.systemui.action.LAUNCH_MEDIA_OUTPUT_BROADCAST_DIALOG";
55 
56     /**
57      * Settings package name.
58      */
59     public static final String SETTINGS_PACKAGE_NAME = "com.android.settings";
60 
61     /**
62      * An intent action to launch Bluetooth paring page.
63      */
64     public static final String ACTION_LAUNCH_BLUETOOTH_PAIRING =
65             "com.android.settings.action.LAUNCH_BLUETOOTH_PAIRING";
66 
67     /**
68      * SystemUi package name.
69      */
70     public static final String SYSTEMUI_PACKAGE_NAME = "com.android.systemui";
71 
72     /**
73      * An intent action to close settings panel.
74      */
75     public static final String ACTION_CLOSE_PANEL =
76             "com.android.settings.panel.action.CLOSE_PANEL";
77 }
78