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 a media output dialog without any app or playback metadata, which
52      * only controls system routing.
53      *
54      * <p>System routes are those provided by the system, such as built-in speakers, wired headsets,
55      * bluetooth devices, and other outputs that require the app to feed media samples to the
56      * framework.
57      */
58     public static final String ACTION_LAUNCH_SYSTEM_MEDIA_OUTPUT_DIALOG =
59             "com.android.systemui.action.LAUNCH_SYSTEM_MEDIA_OUTPUT_DIALOG";
60 
61     /**
62      * An intent action to launch media output broadcast dialog.
63      */
64     public static final String ACTION_LAUNCH_MEDIA_OUTPUT_BROADCAST_DIALOG =
65             "com.android.systemui.action.LAUNCH_MEDIA_OUTPUT_BROADCAST_DIALOG";
66 
67     /**
68      * Settings package name.
69      */
70     public static final String SETTINGS_PACKAGE_NAME = "com.android.settings";
71 
72     /**
73      * An intent action to launch Bluetooth paring page.
74      */
75     public static final String ACTION_LAUNCH_BLUETOOTH_PAIRING =
76             "com.android.settings.action.LAUNCH_BLUETOOTH_PAIRING";
77 
78     /**
79      * SystemUi package name.
80      */
81     public static final String SYSTEMUI_PACKAGE_NAME = "com.android.systemui";
82 
83     /**
84      * An intent action to close settings panel.
85      */
86     public static final String ACTION_CLOSE_PANEL =
87             "com.android.settings.panel.action.CLOSE_PANEL";
88 }
89