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      * An 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