/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyVisualAttributes.java | 109 mLetterRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes() 113 mLabelRatio = ResourceUtils.getFraction(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() 141 mHintLabelVerticalAdjustment = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes() 143 mLabelOffCenterRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes() 145 mHintLabelOffCenterRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes()
|
D | GestureStrokeRecognitionParams.java | 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 | KeyboardRow.java | 66 mDefaultKeyWidth = keyAttr.getFraction(R.styleable.Keyboard_Key_keyWidth, in RowAttributes() 83 mDefaultKeyWidth = keyAttr.getFraction(R.styleable.Keyboard_Key_keyWidth, in RowAttributes() 156 final float keyXPos = keyAttr.getFraction(R.styleable.Keyboard_Key_keyXPos, in getKeyX() 183 return keyAttr.getFraction(R.styleable.Keyboard_Key_keyWidth, in getKeyWidth()
|
D | KeyboardBuilder.java | 248 params.mTopPadding = (int)keyboardAttr.getFraction( in parseKeyboardAttributes() 250 params.mBottomPadding = (int)keyboardAttr.getFraction( in parseKeyboardAttributes() 252 params.mLeftPadding = (int)keyboardAttr.getFraction( in parseKeyboardAttributes() 254 params.mRightPadding = (int)keyboardAttr.getFraction( in parseKeyboardAttributes() 260 params.mDefaultKeyWidth = (int)keyAttr.getFraction(R.styleable.Keyboard_Key_keyWidth, in parseKeyboardAttributes() 262 params.mHorizontalGap = (int)keyboardAttr.getFraction( in parseKeyboardAttributes() 267 params.mVerticalGap = (int)keyboardAttr.getFraction( in parseKeyboardAttributes()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | ResourceUtils.java | 209 final float maxKeyboardHeight = res.getFraction( in getDefaultKeyboardHeight() 211 float minKeyboardHeight = res.getFraction( in getDefaultKeyboardHeight() 216 minKeyboardHeight = -res.getFraction( in getDefaultKeyboardHeight() 239 return res.getFraction(fractionResId, 1, 1); in getFloatFromFraction() 242 public static float getFraction(final TypedArray a, final int index, final float defValue) { in getFraction() method in ResourceUtils 247 return a.getFraction(index, 1, 1, defValue); in getFraction() 250 public static float getFraction(final TypedArray a, final int index) { in getFraction() method in ResourceUtils 251 return getFraction(a, index, UNDEFINED_RATIO); in getFraction() 269 return a.getFraction(index, base, base, defValue); in getDimensionOrFraction()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
D | EmojiLayoutParams.java | 43 mKeyVerticalGap = (int) res.getFraction(R.fraction.config_key_vertical_gap_holo, in EmojiLayoutParams() 45 mBottomPadding = (int) res.getFraction(R.fraction.config_keyboard_bottom_padding_holo, in EmojiLayoutParams() 47 mTopPadding = (int) res.getFraction(R.fraction.config_keyboard_top_padding_holo, in EmojiLayoutParams() 49 mKeyHorizontalGap = (int) (res.getFraction(R.fraction.config_key_horizontal_gap_holo, in EmojiLayoutParams()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | DynamicResource.java | 57 public float getFraction(@FractionRes int resId) { in getFraction() method in DynamicResource 58 return mContext.getResources().getFraction(resId, 1, 1); in getFraction()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmActivity.kt | 365 getFraction(alarmRight.toFloat(), mSnoozeButton.getLeft().toFloat(), x) in onTouch() 367 getFraction(alarmLeft.toFloat(), mDismissButton.getRight().toFloat(), x) in onTouch() 369 snoozeFraction = getFraction(alarmLeft.toFloat(), mSnoozeButton.getRight().toFloat(), x) in onTouch() 371 getFraction(alarmRight.toFloat(), mDismissButton.getLeft().toFloat(), x) in onTouch() 542 private fun getFraction(x0: Float, x1: Float, x: Float): Float { in getFraction() method in com.android.deskclock.alarms.AlarmActivity
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintLocationAnimationView.java | 61 mFractionCenterX = getResources().getFraction( in FingerprintLocationAnimationView() 63 mFractionCenterY = getResources().getFraction( in FingerprintLocationAnimationView()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | SuggestionStripLayoutHelper.java | 129 mAlphaObsoleted = ResourceUtils.getFraction(a, in SuggestionStripLayoutHelper() 138 mCenterSuggestionWeight = ResourceUtils.getFraction(a, in SuggestionStripLayoutHelper() 144 mMinMoreSuggestionsWidth = ResourceUtils.getFraction(a, in SuggestionStripLayoutHelper()
|
/packages/apps/Launcher3/src_plugins/com/android/systemui/plugins/ |
D | ResourceProvider.java | 36 float getFraction(int resId); in getFraction() method
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | ChangeImageTransformWithScaledParent.java | 76 .getFraction(R.fraction.lb_focus_zoom_factor_medium, 1, 1); in applyParentScale()
|
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/ |
D | CircledImageView.java | 168 mCircleRadiusPercent = a.getFraction(R.styleable.CircledImageView_circle_radius_percent, in CircledImageView() 171 mCircleRadiusPressedPercent = a.getFraction( in CircledImageView()
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
D | PhoneFavoriteSquareTileView.java | 45 getResources().getFraction(R.dimen.contact_tile_height_to_width_ratio, 1, 1); in PhoneFavoriteSquareTileView()
|
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/ |
D | LeanbackKeyboardView.java | 139 mFocusedScale = res.getFraction(R.fraction.focused_scale, 1, 1); in LeanbackKeyboardView() 140 mClickedScale = res.getFraction(R.fraction.clicked_scale, 1, 1); in LeanbackKeyboardView()
|
D | LeanbackKeyboardContainer.java | 562 mAlphaIn = res.getFraction(R.fraction.alpha_in, 1, 1); in LeanbackKeyboardContainer() 563 mAlphaOut = res.getFraction(R.fraction.alpha_out, 1, 1); in LeanbackKeyboardContainer() 585 mOverestimate = mContext.getResources().getFraction(R.fraction.focused_scale, 1, 1); in LeanbackKeyboardContainer() 586 float scale = context.getResources().getFraction(R.fraction.clicked_scale, 1, 1); in LeanbackKeyboardContainer()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DirectoryFragment.java | 750 float minScale = getFraction(R.fraction.grid_scale_min); in scaleLayout() 751 float maxScale = getFraction(R.fraction.grid_scale_max); in scaleLayout() 809 private float getFraction(@FractionRes int id) { in getFraction() method in DirectoryFragment 810 return getResources().getFraction(id, 1, 0); in getFraction()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | SimSelectorAvatarRequest.java | 98 resources.getFraction(R.dimen.sim_identifier_to_tile_ratio, 1, 1); in renderSimAvatarInternal()
|
D | AvatarRequest.java | 166 final float letterToTileRatio = resources.getFraction(R.dimen.letter_to_tile_ratio, 1, 1); in renderLetterTile()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | LetterTileDrawable.java | 105 sLetterToTileRatio = res.getFraction(R.fraction.letter_to_tile_ratio, 1, 1); in LetterTileDrawable()
|
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/shared/ |
D | LetterTileDrawable.java | 110 sLetterToTileRatio = res.getFraction(R.fraction.letter_to_tile_ratio, 1, 1); in LetterTileDrawable()
|
/packages/apps/Contacts/src/com/android/contacts/lettertiles/ |
D | LetterTileDrawable.java | 83 sLetterToTileRatio = res.getFraction(R.dimen.letter_to_tile_ratio, 1, 1); in LetterTileDrawable()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | Key.java | 282 final int visualInsetsLeft = Math.round(keyAttr.getFraction( in Key() 284 final int visualInsetsRight = Math.round(keyAttr.getFraction( in Key()
|
/packages/apps/Dialer/java/com/android/dialer/lettertile/ |
D | LetterTileDrawable.java | 124 letterToTileRatio = res.getFraction(R.dimen.letter_to_tile_ratio, 1, 1); in LetterTileDrawable()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraMediaChooser.java | 374 final float maxAlpha = getContext().getResources().getFraction( in showShutterEffect()
|