blob: 663f0d938a62235d6d854d1eb68c1f17ae4d1b95 [file] [log] [blame]
Walter Jang6456baf2016-01-31 12:07:26 -08001/*
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 Mai0a49afa2016-12-05 15:53:58 -080016package com.android.contacts;
Walter Jang6456baf2016-01-31 12:07:26 -080017
18/**
Walter Jang9f3ec762016-02-09 16:15:37 -080019 * Experiment flag names.
Walter Jang6456baf2016-01-31 12:07:26 -080020 */
21public final class Experiments {
22
Walter Jangf7d733a2016-08-12 14:23:25 -070023 /**
James Laskeycf3dbe12016-12-13 15:22:13 -080024 * 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 Jang581585d2016-09-21 19:21:13 -070039 * 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 Jang996e80f2016-09-22 14:52:39 -070044 * Flags for maximum content update time
Walter Jangd5cbb9e2016-08-18 08:56:59 -070045 */
Walter Jang996e80f2016-09-22 14:52:39 -070046 public static final String DYNAMIC_MAX_CONTENT_CHANGE_UPDATE_DELAY_MILLIS =
47 "Shortcuts__dynamic_max_content_change_update_delay_millis";
Walter Jangd5cbb9e2016-08-18 08:56:59 -070048
Arthur Wang8debbac2016-09-21 16:39:04 -070049 /**
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 Hagerott7a756ab2016-11-01 18:16:02 -070056 * 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 /**
yaolu9d998592016-10-14 23:21:00 -070062 * 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 Jangf61f0ee2016-11-29 18:40:17 +000067 /**
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 Jang6456baf2016-01-31 12:07:26 -080077 private Experiments() {
78 }
79}