/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/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmActivity.java | 360 snoozeFraction = getFraction(alarmRight, mSnoozeButton.getLeft(), x); in onTouch() 361 dismissFraction = getFraction(alarmLeft, mDismissButton.getRight(), x); in onTouch() 363 snoozeFraction = getFraction(alarmLeft, mSnoozeButton.getRight(), x); in onTouch() 364 dismissFraction = getFraction(alarmRight, mDismissButton.getLeft(), x); in onTouch() 521 private float getFraction(float x0, float x1, float x) { in getFraction() method in AlarmActivity
|
/packages/apps/Settings/src/com/android/settings/fingerprint/ |
D | FingerprintLocationAnimationView.java | 60 mFractionCenterX = getResources().getFraction( in FingerprintLocationAnimationView() 62 mFractionCenterY = getResources().getFraction( in FingerprintLocationAnimationView()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/settings/ |
D | SettingsAdapter.java | 94 mDefaultCircleRadiusPercent = context.getResources().getFraction( in SettingsAdapter() 96 mSelectedCircleRadiusPercent = context.getResources().getFraction( in SettingsAdapter()
|
/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/Dialer/src/com/android/dialer/list/ |
D | PhoneFavoriteSquareTileView.java | 46 mHeightToWidthRatio = getResources().getFraction( in PhoneFavoriteSquareTileView()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | BaseContainerView.java | 74 (int) getResources().getFraction(R.fraction.container_margin, width, 1)); in BaseContainerView()
|
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
D | CircledImageView.java | 169 mCircleRadiusPercent = a.getFraction(R.styleable.CircledImageView_circle_radius_percent, in CircledImageView() 172 mCircleRadiusPressedPercent = a.getFraction( in CircledImageView()
|
/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/DeskClock/src/com/android/deskclock/ |
D | Utils.java | 558 final float amPmProportion = resources.getFraction(R.fraction.ampm_font_size_scale, 1, 1); in get12ModeFormat() 569 final float proportion = resources.getFraction( in get12ModeFormat()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/ |
D | LetterTileDrawable.java | 79 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()
|
D | MainKeyboardView.java | 215 mLanguageOnSpacebarTextRatio = mainKeyboardViewAttr.getFraction( in MainKeyboardView()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraMediaChooser.java | 374 final float maxAlpha = getContext().getResources().getFraction( in showShutterEffect()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | Keyboard.java | 857 return Math.round(a.getFraction(index, base, base, defValue)); in getDimensionOrFraction()
|