/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | ResourceUtilsTests.java | 33 assertNull(ResourceUtils.findConstantForKeyValuePairs(anyKeyValue, nullArray)); in testFindConstantForKeyValuePairsSimple() 34 assertNull(ResourceUtils.findConstantForKeyValuePairs(emptyKeyValue, nullArray)); in testFindConstantForKeyValuePairsSimple() 35 assertNull(ResourceUtils.findConstantForKeyValuePairs(nullKeyValue, nullArray)); in testFindConstantForKeyValuePairsSimple() 38 assertNull(ResourceUtils.findConstantForKeyValuePairs(anyKeyValue, emptyArray)); in testFindConstantForKeyValuePairsSimple() 39 assertNull(ResourceUtils.findConstantForKeyValuePairs(emptyKeyValue, emptyArray)); in testFindConstantForKeyValuePairsSimple() 40 assertNull(ResourceUtils.findConstantForKeyValuePairs(nullKeyValue, emptyArray)); in testFindConstantForKeyValuePairsSimple() 53 assertEquals("0.3", ResourceUtils.findConstantForKeyValuePairs(keyValues, array)); in testFindConstantForKeyValuePairsSimple() 55 assertEquals("0.4", ResourceUtils.findConstantForKeyValuePairs(keyValues, array)); in testFindConstantForKeyValuePairsSimple() 57 assertEquals("0.2", ResourceUtils.findConstantForKeyValuePairs(keyValues, array)); in testFindConstantForKeyValuePairsSimple() 61 assertNull(ResourceUtils.findConstantForKeyValuePairs(keyValues, array)); in testFindConstantForKeyValuePairsSimple() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyVisualAttributes.java | 24 import com.android.inputmethod.latin.utils.ResourceUtils; 104 mLetterRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes() 106 mLetterSize = ResourceUtils.getDimensionPixelSize(keyAttr, in KeyVisualAttributes() 108 mLabelRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes() 110 mLabelSize = ResourceUtils.getDimensionPixelSize(keyAttr, in KeyVisualAttributes() 112 mLargeLetterRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes() 114 mHintLetterRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes() 116 mShiftedLetterHintRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes() 118 mHintLabelRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes() 120 mPreviewTextRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes() [all …]
|
D | GestureStrokeRecognitionParams.java | 22 import com.android.inputmethod.latin.utils.ResourceUtils; 81 mDetectFastMoveSpeedThreshold = ResourceUtils.getFraction(mainKeyboardViewAttr, in GestureStrokeRecognitionParams() 93 mDynamicDistanceThresholdFrom = ResourceUtils.getFraction(mainKeyboardViewAttr, in GestureStrokeRecognitionParams() 96 mDynamicDistanceThresholdTo = ResourceUtils.getFraction(mainKeyboardViewAttr, in GestureStrokeRecognitionParams() 99 mSamplingMinimumDistance = ResourceUtils.getFraction(mainKeyboardViewAttr, in GestureStrokeRecognitionParams() 105 mRecognitionSpeedThreshold = ResourceUtils.getFraction(mainKeyboardViewAttr, in GestureStrokeRecognitionParams()
|
D | KeyDrawParams.java | 21 import com.android.inputmethod.latin.utils.ResourceUtils; 132 if (ResourceUtils.isValidDimensionPixelSize(dimens)) { in selectTextSizeFromDimensionOrRatio() 135 if (ResourceUtils.isValidFraction(ratio)) { in selectTextSizeFromDimensionOrRatio() 143 if (ResourceUtils.isValidFraction(ratio)) { in selectTextSize()
|
D | KeyboardRow.java | 26 import com.android.inputmethod.latin.utils.ResourceUtils; 101 mRowHeight = (int)ResourceUtils.getDimensionOrFraction(keyboardAttr, in KeyboardRow() 174 final int widthType = ResourceUtils.getEnumValue(keyAttr, in getKeyWidth()
|
D | KeyboardBuilder.java | 37 import com.android.inputmethod.latin.utils.ResourceUtils; 268 params.mDefaultRowHeight = (int)ResourceUtils.getDimensionOrFraction(keyboardAttr, in parseKeyboardAttributes() 754 if (ResourceUtils.isIntegerValue(v)) { in matchTypedValue() 757 if (ResourceUtils.isStringValue(v)) { in matchTypedValue()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | ResourceUtils.java | 34 public final class ResourceUtils { class 35 private static final String TAG = ResourceUtils.class.getSimpleName(); 40 private ResourceUtils() { in ResourceUtils() method in ResourceUtils 247 return ResourceUtils.UNDEFINED_DIMENSION; in getDimensionPixelSize() 249 return a.getDimensionPixelSize(index, ResourceUtils.UNDEFINED_DIMENSION); in getDimensionPixelSize()
|
D | DistracterFilterCheckingExactMatchesAndSuggestions.java | 131 final int keyboardWidth = ResourceUtils.getDefaultKeyboardWidth(res); in loadKeyboardForLocale() 132 final int keyboardHeight = ResourceUtils.getDefaultKeyboardHeight(res); in loadKeyboardForLocale()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
D | EmojiLayoutParams.java | 25 import com.android.inputmethod.latin.utils.ResourceUtils; 41 final int defaultKeyboardHeight = ResourceUtils.getDefaultKeyboardHeight(res); in EmojiLayoutParams() 42 final int defaultKeyboardWidth = ResourceUtils.getDefaultKeyboardWidth(res); in EmojiLayoutParams()
|
D | EmojiPalettesView.java | 53 import com.android.inputmethod.latin.utils.ResourceUtils; 117 builder.setKeyboardGeometry(ResourceUtils.getDefaultKeyboardWidth(res), in EmojiPalettesView() 143 final int width = ResourceUtils.getDefaultKeyboardWidth(res) in onMeasure() 145 final int height = ResourceUtils.getDefaultKeyboardHeight(res) in onMeasure()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | KeyboardLayoutSetTestsBase.java | 33 import com.android.inputmethod.latin.utils.ResourceUtils; 127 final int keyboardWidth = ResourceUtils.getDefaultKeyboardWidth(res); in createKeyboardLayoutSet() 128 final int keyboardHeight = ResourceUtils.getDefaultKeyboardHeight(res); in createKeyboardLayoutSet()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | DebugSettingsFragment.java | 35 import com.android.inputmethod.latin.utils.ResourceUtils; 81 final float defaultKeyPreviewShowUpStartScale = ResourceUtils.getFloatFromFraction( in onCreate() 83 final float defaultKeyPreviewDismissEndScale = ResourceUtils.getFloatFromFraction( in onCreate()
|
D | Settings.java | 33 import com.android.inputmethod.latin.utils.ResourceUtils; 310 return Float.parseFloat(ResourceUtils.getDeviceOverrideValue(res, in readDefaultKeypressSoundVolume() 339 return Integer.parseInt(ResourceUtils.getDeviceOverrideValue(res, in readDefaultKeypressVibrationDuration()
|
D | SettingsValues.java | 33 import com.android.inputmethod.latin.utils.ResourceUtils; 186 final float defaultKeyPreviewShowUpStartScale = ResourceUtils.getFloatFromFraction( in SettingsValues() 188 final float defaultKeyPreviewDismissEndScale = ResourceUtils.getFloatFromFraction( in SettingsValues()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardSwitcher.java | 42 import com.android.inputmethod.latin.utils.ResourceUtils; 115 final int keyboardWidth = ResourceUtils.getDefaultKeyboardWidth(res); in loadKeyboard() 116 final int keyboardHeight = ResourceUtils.getDefaultKeyboardHeight(res); in loadKeyboard()
|
D | PointerTracker.java | 40 import com.android.inputmethod.latin.utils.ResourceUtils; 215 ResourceUtils.getDeviceOverrideValue(res, in init()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | SuggestionStripLayoutHelper.java | 57 import com.android.inputmethod.latin.utils.ResourceUtils; 132 mAlphaObsoleted = ResourceUtils.getFraction(a, in SuggestionStripLayoutHelper() 141 mCenterSuggestionWeight = ResourceUtils.getFraction(a, in SuggestionStripLayoutHelper() 147 mMinMoreSuggestionsWidth = ResourceUtils.getFraction(a, in SuggestionStripLayoutHelper()
|