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 * Settings package name. 52 */ 53 public static final String SETTINGS_PACKAGE_NAME = "com.android.settings"; 54 55 /** 56 * An intent action to launch Bluetooth paring page. 57 */ 58 public static final String ACTION_LAUNCH_BLUETOOTH_PAIRING = 59 "com.android.settings.action.LAUNCH_BLUETOOTH_PAIRING"; 60 61 /** 62 * SystemUi package name. 63 */ 64 public static final String SYSTEMUI_PACKAGE_NAME = "com.android.systemui"; 65 66 /** 67 * An intent action to close settings panel. 68 */ 69 public static final String ACTION_CLOSE_PANEL = 70 "com.android.settings.panel.action.CLOSE_PANEL"; 71 } 72