Walter Jang | 6456baf | 2016-01-31 12:07:26 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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 | */ |
Gary Mai | 0a49afa | 2016-12-05 15:53:58 -0800 | [diff] [blame] | 16 | package com.android.contacts; |
Walter Jang | 6456baf | 2016-01-31 12:07:26 -0800 | [diff] [blame] | 17 | |
| 18 | /** |
Walter Jang | 9f3ec76 | 2016-02-09 16:15:37 -0800 | [diff] [blame] | 19 | * Experiment flag names. |
Walter Jang | 6456baf | 2016-01-31 12:07:26 -0800 | [diff] [blame] | 20 | */ |
| 21 | public final class Experiments { |
| 22 | |
Walter Jang | f7d733a | 2016-08-12 14:23:25 -0700 | [diff] [blame] | 23 | /** |
James Laskey | cf3dbe1 | 2016-12-13 15:22:13 -0800 | [diff] [blame^] | 24 | * The maximum time to wait before showing initial results in the assistants view. |
| 25 | * |
| 26 | * Default value is 2 seconds. |
| 27 | */ |
| 28 | public static final String ASSISTANT_DISPLAY_INITIAL_RESULTS_TIMEOUT = |
| 29 | "Assistant__display_initial_results_timeout"; |
| 30 | |
| 31 | /** |
| 32 | * The maximum time to wait before timing out non-responsive assistants |
| 33 | * |
| 34 | * Default value is 10 seconds. |
| 35 | */ |
| 36 | public static final String ASSISTANT_MAXIMUM_TIMEOUT = "Assistant__maximum_timeout"; |
| 37 | |
| 38 | /** |
Walter Jang | 581585d | 2016-09-21 19:21:13 -0700 | [diff] [blame] | 39 | * Whether to open contact sheet (aka smart profile) instead of our own QuickContact. |
| 40 | */ |
| 41 | public static final String CONTACT_SHEET = "QuickContact__contact_sheet"; |
| 42 | |
| 43 | /** |
Walter Jang | 996e80f | 2016-09-22 14:52:39 -0700 | [diff] [blame] | 44 | * Flags for maximum content update time |
Walter Jang | d5cbb9e | 2016-08-18 08:56:59 -0700 | [diff] [blame] | 45 | */ |
Walter Jang | 996e80f | 2016-09-22 14:52:39 -0700 | [diff] [blame] | 46 | public static final String DYNAMIC_MAX_CONTENT_CHANGE_UPDATE_DELAY_MILLIS = |
| 47 | "Shortcuts__dynamic_max_content_change_update_delay_millis"; |
Walter Jang | d5cbb9e | 2016-08-18 08:56:59 -0700 | [diff] [blame] | 48 | |
Arthur Wang | 8debbac | 2016-09-21 16:39:04 -0700 | [diff] [blame] | 49 | /** |
| 50 | * Flags for minimum content update time |
| 51 | */ |
| 52 | public static final String DYNAMIC_MIN_CONTENT_CHANGE_UPDATE_DELAY_MILLIS = |
| 53 | "Shortcuts__dynamic_min_content_change_update_delay_millis"; |
| 54 | |
| 55 | /** |
Marcus Hagerott | 7a756ab | 2016-11-01 18:16:02 -0700 | [diff] [blame] | 56 | * Experiment to enable device account detection using CP2 queries |
| 57 | */ |
| 58 | public static final String OEM_CP2_DEVICE_ACCOUNT_DETECTION_ENABLED = |
| 59 | "OEM__cp2_device_account_detection_enabled"; |
| 60 | |
| 61 | /** |
yaolu | 9d99859 | 2016-10-14 23:21:00 -0700 | [diff] [blame] | 62 | * Flags for maximum time to show spinner for a contacts sync. |
| 63 | */ |
| 64 | public static final String PULL_TO_REFRESH_CANCEL_REFRESH_MILLIS = |
| 65 | "PullToRefresh__cancel_refresh_millis"; |
| 66 | |
Walter Jang | f61f0ee | 2016-11-29 18:40:17 +0000 | [diff] [blame] | 67 | /** |
| 68 | * Search study boolean indicating whether to inject yenta search results before CP2 results. |
| 69 | */ |
| 70 | public static final String SEARCH_YENTA = "Search__yenta"; |
| 71 | |
| 72 | /** |
| 73 | * The time to wait for Yenta search results before giving up. |
| 74 | */ |
| 75 | public static final String SEARCH_YENTA_TIMEOUT_MILLIS = "Search__yenta_timeout"; |
| 76 | |
Walter Jang | 6456baf | 2016-01-31 12:07:26 -0800 | [diff] [blame] | 77 | private Experiments() { |
| 78 | } |
| 79 | } |