| /* |
| * Copyright 2019 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| package com.android.settingslib.media; |
| |
| /** |
| * Class to access MediaOutput constants. |
| */ |
| public class MediaOutputSliceConstants { |
| |
| /** |
| * Key for the Media output setting. |
| */ |
| public static final String KEY_MEDIA_OUTPUT = "media_output"; |
| |
| /** |
| * Key for the Media output group setting. |
| */ |
| public static final String KEY_MEDIA_OUTPUT_GROUP = "media_output_group"; |
| |
| /** |
| * Key for the Remote Media slice. |
| */ |
| public static final String KEY_REMOTE_MEDIA = "remote_media"; |
| |
| /** |
| * Key for the {@link android.media.session.MediaSession.Token}. |
| */ |
| public static final String KEY_MEDIA_SESSION_TOKEN = "key_media_session_token"; |
| |
| /** |
| * Key for the {@link android.media.RoutingSessionInfo#getId()} |
| */ |
| public static final String KEY_SESSION_INFO_ID = "key_session_info_id"; |
| |
| /** |
| * Activity Action: Show a settings dialog containing {@link MediaDevice} to transfer media. |
| */ |
| public static final String ACTION_MEDIA_OUTPUT = |
| "com.android.settings.panel.action.MEDIA_OUTPUT"; |
| |
| /** |
| * Activity Action: Show a settings dialog containing {@link MediaDevice} to handle media group |
| * operation. |
| */ |
| public static final String ACTION_MEDIA_OUTPUT_GROUP = |
| "com.android.settings.panel.action.MEDIA_OUTPUT_GROUP"; |
| |
| /** |
| * A string extra specifying a media package name. |
| */ |
| public static final String EXTRA_PACKAGE_NAME = |
| "com.android.settings.panel.extra.PACKAGE_NAME"; |
| |
| /** |
| * An intent action to launch media output dialog. |
| */ |
| public static final String ACTION_LAUNCH_MEDIA_OUTPUT_DIALOG = |
| "com.android.systemui.action.LAUNCH_MEDIA_OUTPUT_DIALOG"; |
| |
| /** |
| * An intent action to dismiss media output dialog. |
| */ |
| public static final String ACTION_DISMISS_MEDIA_OUTPUT_DIALOG = |
| "com.android.systemui.action.DISMISS_MEDIA_OUTPUT_DIALOG"; |
| |
| /** |
| * Settings package name. |
| */ |
| public static final String SETTINGS_PACKAGE_NAME = "com.android.settings"; |
| |
| /** |
| * An intent action to launch Bluetooth paring page. |
| */ |
| public static final String ACTION_LAUNCH_BLUETOOTH_PAIRING = |
| "com.android.settings.action.LAUNCH_BLUETOOTH_PAIRING"; |
| |
| /** |
| * SystemUi package name. |
| */ |
| public static final String SYSTEMUI_PACKAGE_NAME = "com.android.systemui"; |
| |
| /** |
| * An intent action to close settings panel. |
| */ |
| public static final String ACTION_CLOSE_PANEL = |
| "com.android.settings.panel.action.CLOSE_PANEL"; |
| } |