Home
last modified time | relevance | path

Searched refs:ResourceUtils (Results 1 – 25 of 28) sorted by relevance

12

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DResourceUtilsTests.java41 assertNull(ResourceUtils.findConstantForKeyValuePairs(anyKeyValue, nullArray)); in testFindConstantForKeyValuePairsSimple()
42 assertNull(ResourceUtils.findConstantForKeyValuePairs(emptyKeyValue, nullArray)); in testFindConstantForKeyValuePairsSimple()
43 assertNull(ResourceUtils.findConstantForKeyValuePairs(nullKeyValue, nullArray)); in testFindConstantForKeyValuePairsSimple()
46 assertNull(ResourceUtils.findConstantForKeyValuePairs(anyKeyValue, emptyArray)); in testFindConstantForKeyValuePairsSimple()
47 assertNull(ResourceUtils.findConstantForKeyValuePairs(emptyKeyValue, emptyArray)); in testFindConstantForKeyValuePairsSimple()
48 assertNull(ResourceUtils.findConstantForKeyValuePairs(nullKeyValue, emptyArray)); in testFindConstantForKeyValuePairsSimple()
61 assertEquals("0.3", ResourceUtils.findConstantForKeyValuePairs(keyValues, array)); in testFindConstantForKeyValuePairsSimple()
63 assertEquals("0.4", ResourceUtils.findConstantForKeyValuePairs(keyValues, array)); in testFindConstantForKeyValuePairsSimple()
65 assertEquals("0.2", ResourceUtils.findConstantForKeyValuePairs(keyValues, array)); in testFindConstantForKeyValuePairsSimple()
69 assertNull(ResourceUtils.findConstantForKeyValuePairs(keyValues, array)); in testFindConstantForKeyValuePairsSimple()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyVisualAttributes.java24 import com.android.inputmethod.latin.utils.ResourceUtils;
109 mLetterRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes()
111 mLetterSize = ResourceUtils.getDimensionPixelSize(keyAttr, in KeyVisualAttributes()
113 mLabelRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes()
115 mLabelSize = ResourceUtils.getDimensionPixelSize(keyAttr, in KeyVisualAttributes()
117 mLargeLetterRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes()
119 mHintLetterRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes()
121 mShiftedLetterHintRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes()
123 mHintLabelRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes()
125 mPreviewTextRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes()
[all …]
DGestureStrokeRecognitionParams.java22 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()
DKeyDrawParams.java21 import com.android.inputmethod.latin.utils.ResourceUtils;
137 if (ResourceUtils.isValidDimensionPixelSize(dimens)) { in selectTextSizeFromDimensionOrRatio()
140 if (ResourceUtils.isValidFraction(ratio)) { in selectTextSizeFromDimensionOrRatio()
148 if (ResourceUtils.isValidFraction(ratio)) { in selectTextSize()
DKeyboardRow.java26 import com.android.inputmethod.latin.utils.ResourceUtils;
101 mRowHeight = (int)ResourceUtils.getDimensionOrFraction(keyboardAttr, in KeyboardRow()
174 final int widthType = ResourceUtils.getEnumValue(keyAttr, in getKeyWidth()
DKeyboardBuilder.java38 import com.android.inputmethod.latin.utils.ResourceUtils;
272 params.mDefaultRowHeight = (int)ResourceUtils.getDimensionOrFraction(keyboardAttr, in parseKeyboardAttributes()
773 if (ResourceUtils.isIntegerValue(v)) { in matchTypedValue()
776 if (ResourceUtils.isStringValue(v)) { in matchTypedValue()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DResourceUtils.java35 public final class ResourceUtils { class
36 private static final String TAG = ResourceUtils.class.getSimpleName();
41 private ResourceUtils() { in ResourceUtils() method in ResourceUtils
257 return ResourceUtils.UNDEFINED_DIMENSION; in getDimensionPixelSize()
259 return a.getDimensionPixelSize(index, ResourceUtils.UNDEFINED_DIMENSION); in getDimensionPixelSize()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DWidgets.java22 import com.android.launcher3.ResourceUtils;
44 ResourceUtils.getNavbarSize(ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE, in flingForward()
DAllApps.java29 import com.android.launcher3.ResourceUtils;
97 ResourceUtils.getNavbarSize(ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE, in getAppIcon()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiLayoutParams.java25 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()
DEmojiPalettesView.java52 import com.android.inputmethod.latin.utils.ResourceUtils;
114 builder.setKeyboardGeometry(ResourceUtils.getDefaultKeyboardWidth(res), in EmojiPalettesView()
140 final int width = ResourceUtils.getDefaultKeyboardWidth(res) in onMeasure()
142 final int height = ResourceUtils.getDefaultKeyboardHeight(res) in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DWorkspaceAndHotseatScrim.java46 import com.android.launcher3.ResourceUtils;
151 mMaskHeight = ResourceUtils.pxFromDp(ALPHA_MASK_BITMAP_DP, in WorkspaceAndHotseatScrim()
300 int width = ResourceUtils.pxFromDp(ALPHA_MASK_WIDTH_DP, dm); in createDitheredAlphaMask()
301 int gradientHeight = ResourceUtils.pxFromDp(ALPHA_MASK_HEIGHT_DP, dm); in createDitheredAlphaMask()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DKeyboardLayoutSetTestsBase.java35 import com.android.inputmethod.latin.utils.ResourceUtils;
158 final int keyboardWidth = ResourceUtils.getDefaultKeyboardWidth(res); in createKeyboardLayoutSet()
159 final int keyboardHeight = ResourceUtils.getDefaultKeyboardHeight(res); in createKeyboardLayoutSet()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DTouchInteractionService.java72 import com.android.launcher3.ResourceUtils;
347 return ResourceUtils.getNavbarSize(resName, getResources()); in getNavbarSize()
360 int touchHeight = getNavbarSize(ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE); in initTouchBounds()
382 - getNavbarSize(ResourceUtils.NAVBAR_LANDSCAPE_LEFT_RIGHT_SIZE); in initTouchBounds()
386 + getNavbarSize(ResourceUtils.NAVBAR_LANDSCAPE_LEFT_RIGHT_SIZE); in initTouchBounds()
390 - getNavbarSize(ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE); in initTouchBounds()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DDebugSettingsFragment.java34 import com.android.inputmethod.latin.utils.ResourceUtils;
72 final float defaultKeyPreviewShowUpStartScale = ResourceUtils.getFloatFromFraction( in onCreate()
74 final float defaultKeyPreviewDismissEndScale = ResourceUtils.getFloatFromFraction( in onCreate()
DSettings.java34 import com.android.inputmethod.latin.utils.ResourceUtils;
300 return Float.parseFloat(ResourceUtils.getDeviceOverrideValue(res, in readDefaultKeypressSoundVolume()
329 return Integer.parseInt(ResourceUtils.getDeviceOverrideValue(res, in readDefaultKeypressVibrationDuration()
DSettingsValues.java33 import com.android.inputmethod.latin.utils.ResourceUtils;
199 final float defaultKeyPreviewShowUpStartScale = ResourceUtils.getFloatFromFraction( in SettingsValues()
201 final float defaultKeyPreviewDismissEndScale = ResourceUtils.getFloatFromFraction( in SettingsValues()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripLayoutHelper.java54 import com.android.inputmethod.latin.utils.ResourceUtils;
129 mAlphaObsoleted = ResourceUtils.getFraction(a, in SuggestionStripLayoutHelper()
138 mCenterSuggestionWeight = ResourceUtils.getFraction(a, in SuggestionStripLayoutHelper()
144 mMinMoreSuggestionsWidth = ResourceUtils.getFraction(a, in SuggestionStripLayoutHelper()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DAbstractLauncherUiTest.java53 import com.android.launcher3.ResourceUtils;
189 final int margin = ResourceUtils.getNavbarSize( in scrollAndFind()
190 ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE, mLauncher.getResources()) + 1; in scrollAndFind()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardSwitcher.java44 import com.android.inputmethod.latin.utils.ResourceUtils;
115 final int keyboardWidth = ResourceUtils.getDefaultKeyboardWidth(res); in loadKeyboard()
116 final int keyboardHeight = ResourceUtils.getKeyboardHeight(res, settingsValues); in loadKeyboard()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsBottomSheet.java39 import com.android.launcher3.ResourceUtils;
129 leftPaddingView.getLayoutParams().width = ResourceUtils.pxFromDp( in onWidgetsBound()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java208 hotseatBarSizePx = ResourceUtils.pxFromDp(inv.iconSize, dm) + (isVerticalBarLayout() in DeviceProfile()
314 iconSizePx = Math.max(1, (int) (ResourceUtils.pxFromDp(invIconSizePx, dm) * scale)); in updateIconSize()
394 folderChildIconSizePx = (int) (ResourceUtils.pxFromDp(inv.iconSize, dm) * scale); in updateFolderCellSize()
DResourceUtils.java23 public class ResourceUtils { class
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderAnimationManager.java44 import com.android.launcher3.ResourceUtils;
172 float finalRadius = ResourceUtils.pxFromDp(2, mContext.getResources().getDisplayMetrics()); in getAnimator()
/packages/apps/Launcher3/tests/
DAndroid.mk33 ../src/com/android/launcher3/ResourceUtils.java \

12