1 /* 2 * Copyright 2017 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 android.support.mediacompat.testlib; 18 19 /** 20 * Constants for testing the media browser and service. 21 */ 22 public class MediaBrowserConstants { 23 24 // MediaBrowserServiceCompat methods. 25 public static final int NOTIFY_CHILDREN_CHANGED = 1; 26 public static final int SEND_DELAYED_NOTIFY_CHILDREN_CHANGED = 2; 27 public static final int SEND_DELAYED_ITEM_LOADED = 3; 28 public static final int CUSTOM_ACTION_SEND_PROGRESS_UPDATE = 4; 29 public static final int CUSTOM_ACTION_SEND_ERROR = 5; 30 public static final int CUSTOM_ACTION_SEND_RESULT = 6; 31 public static final int SET_SESSION_TOKEN = 7; 32 33 public static final String MEDIA_ID_ROOT = "test_media_id_root"; 34 public static final String MEDIA_ID_INVALID = "test_media_id_invalid"; 35 public static final String MEDIA_ID_CHILDREN_DELAYED = "test_media_id_children_delayed"; 36 public static final String MEDIA_ID_ON_LOAD_ITEM_NOT_IMPLEMENTED = 37 "test_media_id_on_load_item_not_implemented"; 38 public static final String MEDIA_ID_INCLUDE_METADATA = "test_media_id_include_metadata"; 39 40 public static final String EXTRAS_KEY = "test_extras_key"; 41 public static final String EXTRAS_VALUE = "test_extras_value"; 42 43 public static final String MEDIA_METADATA = "test_media_metadata"; 44 45 public static final String SEARCH_QUERY = "children_2"; 46 public static final String SEARCH_QUERY_FOR_NO_RESULT = "query no result"; 47 public static final String SEARCH_QUERY_FOR_ERROR = "query for error"; 48 49 public static final String CUSTOM_ACTION = "CUSTOM_ACTION"; 50 public static final String CUSTOM_ACTION_FOR_ERROR = "CUSTOM_ACTION_FOR_ERROR"; 51 52 public static final String TEST_KEY_1 = "key_1"; 53 public static final String TEST_VALUE_1 = "value_1"; 54 public static final String TEST_KEY_2 = "key_2"; 55 public static final String TEST_VALUE_2 = "value_2"; 56 public static final String TEST_KEY_3 = "key_3"; 57 public static final String TEST_VALUE_3 = "value_3"; 58 public static final String TEST_KEY_4 = "key_4"; 59 public static final String TEST_VALUE_4 = "value_4"; 60 61 public static final String[] MEDIA_ID_CHILDREN = new String[]{ 62 "test_media_id_children_0", "test_media_id_children_1", 63 "test_media_id_children_2", "test_media_id_children_3", 64 MEDIA_ID_CHILDREN_DELAYED 65 }; 66 67 private MediaBrowserConstants() { 68 } 69 } 70