Home
last modified time | relevance | path

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

123

/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()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DSysUINavigationMode.java19 import static com.android.launcher3.ResourceUtils.INVALID_RESOURCE_HANDLE;
30 import com.android.launcher3.ResourceUtils;
107 int newGesturalHeight = ResourceUtils.getDimenByName( in updateGesturalHeight()
108 ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE, mContext.getResources(), in updateGesturalHeight()
120 int newLargerGesturalHeight = ResourceUtils.getDimenByName( in updateGesturalHeight()
121 ResourceUtils.NAVBAR_BOTTOM_GESTURE_LARGER_SIZE, mContext.getResources(), in updateGesturalHeight()
134 int modeInt = ResourceUtils.getIntegerByName(NAV_BAR_INTERACTION_MODE_RES_NAME, in initializeMode()
136 mNavBarGesturalHeight = ResourceUtils.getDimenByName( in initializeMode()
137 ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE, mContext.getResources(), in initializeMode()
139 mNavBarLargerGesturalHeight = ResourceUtils.getDimenByName( in initializeMode()
[all …]
DOrientationTouchTransformer.java37 import com.android.launcher3.ResourceUtils;
148 mNavBarGesturalHeight = getNavbarSize(ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE); in OrientationTouchTransformer()
149 mNavBarLargerGesturalHeight = ResourceUtils.getDimenByName( in OrientationTouchTransformer()
150 ResourceUtils.NAVBAR_BOTTOM_GESTURE_LARGER_SIZE, resources, in OrientationTouchTransformer()
292 int navbarSize = getNavbarSize(ResourceUtils.NAVBAR_LANDSCAPE_LEFT_RIGHT_SIZE); in createRegionForDisplay()
314 int navbarHeight = getNavbarSize(ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE); in updateAssistantRegions()
339 return ResourceUtils.getNavbarSize(resName, mResources); in getNavbarSize()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DEdgeBackGestureHandler.java32 import com.android.launcher3.ResourceUtils;
100 ResourceUtils.getNavbarSize(ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE, res); in EdgeBackGestureHandler()
101 int systemBackRegion = ResourceUtils.getNavbarSize("config_backGestureInset", res); in EdgeBackGestureHandler()
136 ResourceUtils.getNavbarSize("navigation_edge_panel_width", resources), in createLayoutParams()
137 ResourceUtils.getNavbarSize("navigation_edge_panel_height", resources)); in createLayoutParams()
DEdgeBackGesturePanel.java44 import com.android.launcher3.ResourceUtils;
291 mSwipeThreshold = ResourceUtils.getDimenByName( in EdgeBackGesturePanel()
401 mArrowPaddingEnd = ResourceUtils.getDimenByName("navigation_edge_panel_padding", res, 8); in loadDimens()
402 mMinArrowPosition = ResourceUtils.getDimenByName("navigation_edge_arrow_min_y", res, 64); in loadDimens()
403 mFingerOffset = ResourceUtils.getDimenByName("navigation_edge_finger_offset", res, 48); in loadDimens()
DNavBarGestureHandler.java48 import com.android.launcher3.ResourceUtils;
110 ResourceUtils.getNavbarSize(ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE, resources); in NavBarGestureHandler()
/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/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/util/
DWindowManagerCompat.java18 import static com.android.launcher3.ResourceUtils.INVALID_RESOURCE_HANDLE;
33 import com.android.launcher3.ResourceUtils;
59 boolean hasNavbar = ResourceUtils.getIntegerByName( in getDisplayProfiles()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DSysUiScrim.java46 import com.android.launcher3.ResourceUtils;
130 mMaskHeight = ResourceUtils.pxFromDp(ALPHA_MASK_BITMAP_DP, in SysUiScrim()
262 int width = ResourceUtils.pxFromDp(ALPHA_MASK_WIDTH_DP, dm); in createDitheredAlphaMask()
263 int gradientHeight = ResourceUtils.pxFromDp(ALPHA_MASK_HEIGHT_DP, dm); in createDitheredAlphaMask()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DOneHandedModeInputConsumer.java24 import static com.android.launcher3.ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE;
33 import com.android.launcher3.ResourceUtils;
74 mNavBarSize = ResourceUtils.getNavbarSize(NAVBAR_BOTTOM_GESTURE_SIZE, in OneHandedModeInputConsumer()
/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/ThemePicker/src/com/android/customization/picker/
DWallpaperPreviewer.java38 import com.android.wallpaper.util.ResourceUtils;
156 ResourceUtils.getColorAttr( in setUpWallpaperPreview()
163 ResourceUtils.getColorAttr( in setUpWallpaperPreview()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DWorkspace.java37 import com.android.launcher3.ResourceUtils;
75 final int bottomGestureMargin = ResourceUtils.getNavbarSize( in switchToAllApps()
76 ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE, mLauncher.getResources()); in switchToAllApps()
/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()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DIndividualHolder.java28 import com.android.wallpaper.util.ResourceUtils;
82 ResourceUtils.getColorAttr(mActivity, android.R.attr.colorSecondary)); in bindWallpaper()
DDesktopRotationHolder.java31 import com.android.wallpaper.util.ResourceUtils;
112 ResourceUtils.getColorAttr(mActivity, android.R.attr.colorSecondary); in updateThumbnail()
DMyPhotosViewHolder.java36 import com.android.wallpaper.util.ResourceUtils;
154 ResourceUtils.getColorAttr(mActivity, android.R.attr.colorSecondary)); in drawThumbnail()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DThemeComponentOption.java66 import com.android.wallpaper.util.ResourceUtils;
215 icon.setTint(ResourceUtils.getColorAttr( in bindThumbnailTile()
396 @ColorInt int controlGreyColor = ResourceUtils.getColorAttr( in bindPreview()
429 int iconFgColor = ResourceUtils.getColorAttr(container.getContext(), in bindPreview()
509 ResourceUtils.getColorAttr(view.getContext(), android.R.attr.textColorPrimary); in bindThumbnailTile()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DAppbarFragment.java33 import com.android.wallpaper.util.ResourceUtils;
157 ResourceUtils.getColorAttr(getActivity(), android.R.attr.textColorPrimary)); in setUpUpArrow()

123