ProductionFlags.java revision 0b3e48fb501111b4d7b31746b7bf7b4bc75f024f
1/* 2 * Copyright (C) 2012 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 17package com.android.inputmethod.latin.define; 18 19public final class ProductionFlags { 20 private ProductionFlags() { 21 // This class is not publicly instantiable. 22 } 23 24 public static final boolean IS_HARDWARE_KEYBOARD_SUPPORTED = false; 25 26 /** 27 * When true, enable {@link InputMethodService#onUpdateCursorAnchorInfo} callback via 28 * {@link InputConnection#requestCursorAnchorInfo}. This flag has no effect in API Level 20 29 * and prior. In general, this callback provides more detailed positional information, 30 * even though an explicit support is required by the editor. 31 */ 32 public static final boolean ENABLE_CURSOR_ANCHOR_INFO_CALLBACK = true; 33 34 /** 35 * When true, enable {@link InputMethodService#onUpdateCursor} callback via 36 * {@link InputConnection#requestCursorAnchorInfo}. Although this callback has been available 37 * since API Level 3, the callback has never been used until API Level 20. Thus it may or may 38 * not work well as expected. Should rely on {@link InputMethodService#onUpdateCursorAnchorInfo} 39 * whenever possible since it is supposed to be more reliable and accurate. 40 */ 41 public static final boolean ENABLE_CURSOR_RECT_CALLBACK = false; 42 43 /** 44 * Include all suggestions from all dictionaries in {@link SuggestedWords#mRawSuggestions}. 45 */ 46 public static final boolean INCLUDE_RAW_SUGGESTIONS = false; 47 48 /** 49 * When false, the metrics logging is not yet ready to be enabled. 50 */ 51 public static final boolean IS_METRICS_LOGGING_SUPPORTED = false; 52} 53