| /* |
| * Copyright (C) 2018 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.car.media.common; |
| |
| |
| /** |
| * Holds constants used when dealing with MediaBrowserServices that support the |
| * content style API for media. |
| */ |
| public final class MediaConstants { |
| |
| // TODO(b/222362032): Replace with androidx reference. |
| public static final String KEY_SUBTITLE_LINK_MEDIA_ID = |
| "androidx.car.app.mediaextensions.KEY_SUBTITLE_LINK_MEDIA_ID"; |
| |
| // TODO(b/222362032): Replace with androidx reference. |
| public static final String KEY_DESCRIPTION_LINK_MEDIA_ID = |
| "androidx.car.app.mediaextensions.KEY_DESCRIPTION_LINK_MEDIA_ID"; |
| |
| // TODO(b/222362032): Replace with androidx reference. |
| public static final String |
| BROWSER_SERVICE_EXTRAS_KEY_APPLICATION_PREFERENCES_USING_CAR_APP_LIBRARY_INTENT = |
| "androidx.media.BrowserRoot.Extras" |
| + ".APPLICATION_PREFERENCES_USING_CAR_APP_LIBRARY_INTENT"; |
| |
| // TODO(b/222362032): Replace with androidx reference. |
| public static final String BROWSE_CUSTOM_ACTIONS_ROOT_LIST = |
| "androidx.media.utils.extras.CUSTOM_BROWSER_ACTION_ROOT_LIST"; |
| public static final String BROWSE_CUSTOM_ACTIONS_ITEM_LIST = |
| "androidx.media.utils.extras.CUSTOM_BROWSER_ACTION_ID_LIST"; |
| public static final String BROWSE_CUSTOM_ACTIONS_ACTION_ID = |
| "androidx.media.utils.extras.KEY_CUSTOM_BROWSER_ACTION_ID"; |
| public static final String BROWSE_CUSTOM_ACTIONS_MEDIA_ITEM_ID = |
| "androidx.media.utils.extras.KEY_CUSTOM_BROWSER_ACTION_MEDIA_ITEM_ID"; |
| public static final String BROWSE_CUSTOM_ACTIONS_ACTION_LABEL = |
| "androidx.media.utils.extras.KEY_CUSTOM_BROWSER_ACTION_LABEL"; |
| public static final String BROWSE_CUSTOM_ACTIONS_ACTION_ICON = |
| "androidx.media.utils.extras.KEY_CUSTOM_BROWSER_ACTION_ICON_URI"; |
| public static final String BROWSE_CUSTOM_ACTIONS_ACTION_LIMIT = |
| "androidx.media.utils.MediaBrowserCompat.extras.CUSTOM_BROWSER_ACTION_LIMIT"; |
| public static final String BROWSE_CUSTOM_ACTIONS_ACTION_EXTRAS = |
| "androidx.media.utils.extras.KEY_CUSTOM_BROWSER_ACTION_EXTRAS"; |
| public static final String BROWSE_CUSTOM_ACTIONS_EXTRA_RESULT_BROWSE_NODE = |
| "androidx.media.utils.extras.KEY_CUSTOM_BROWSER_ACTION_RESULT_BROWSE_NODE"; |
| public static final String BROWSE_CUSTOM_ACTIONS_EXTRA_RESULT_OPEN_PLAYBACK = |
| "androidx.media.utils.extras.KEY_CUSTOM_BROWSER_ACTION_RESULT_SHOW_PLAYING_ITEM"; |
| public static final String BROWSE_CUSTOM_ACTIONS_EXTRA_RESULT_REFRESH_ITEM = |
| "androidx.media.utils.extras.KEY_CUSTOM_BROWSER_ACTION_RESULT_REFRESH_ITEM"; |
| public static final String BROWSE_CUSTOM_ACTIONS_EXTRA_RESULT_MESSAGE = |
| "androidx.media.utils.extras.KEY_CUSTOM_BROWSER_ACTION_RESULT_MESSAGE"; |
| |
| // TODO(b/222362032): Replace with androidx reference. |
| public static final String KEY_IMMERSIVE_AUDIO = |
| "androidx.car.app.mediaextensions.KEY_IMMERSIVE_AUDIO"; |
| public static final String KEY_CONTENT_FORMAT_TINTABLE_LARGE_ICON_URI = |
| "androidx.car.app.mediaextensions.KEY_CONTENT_FORMAT_TINTABLE_LARGE_ICON_URI"; |
| public static final String KEY_CONTENT_FORMAT_TINTABLE_SMALL_ICON_URI = |
| "androidx.car.app.mediaextensions.KEY_CONTENT_FORMAT_TINTABLE_SMALL_ICON_URI"; |
| |
| // TODO(b/222362032): Replace with androidx reference. |
| public static final String KEY_ROOT_HINT_MEDIA_SESSION_API = |
| "androidx.car.app.mediaextensions.KEY_ROOT_HINT_MEDIA_SESSION_API"; |
| public static final String KEY_ROOT_HINT_MAX_QUEUE_ITEMS_WHILE_RESTRICTED = |
| "androidx.car.app.mediaextensions.KEY_ROOT_HINT_MAX_QUEUE_ITEMS_WHILE_RESTRICTED"; |
| public static final String KEY_HINT_VIEW_MAX_ITEMS_WHILE_RESTRICTED = |
| "androidx.car.app.mediaextensions.KEY_HINT_VIEW_MAX_ITEMS_WHILE_RESTRICTED"; |
| public static final String KEY_HINT_VIEW_MAX_LIST_ITEMS_COUNT_PER_ROW = |
| "androidx.car.app.mediaextensions.KEY_HINT_VIEW_MAX_LIST_ITEMS_COUNT_PER_ROW"; |
| public static final String KEY_HINT_VIEW_MAX_GRID_ITEMS_COUNT_PER_ROW = |
| "androidx.car.app.mediaextensions.KEY_HINT_VIEW_MAX_GRID_ITEMS_COUNT_PER_ROW"; |
| public static final String KEY_HINT_VIEW_MAX_CATEGORY_LIST_ITEMS_COUNT_PER_ROW = |
| "androidx.car.app.mediaextensions.KEY_HINT_VIEW_MAX_CATEGORY_LIST_ITEMS_COUNT_PER_ROW"; |
| public static final String KEY_HINT_VIEW_MAX_CATEGORY_GRID_ITEMS_COUNT_PER_ROW = |
| "androidx.car.app.mediaextensions.KEY_HINT_VIEW_MAX_CATEGORY_GRID_ITEMS_COUNT_PER_ROW"; |
| } |