/cts/tests/tests/animation/src/android/animation/cts/ |
KeyframeTest.java | 27 float fraction = keyFrame.getFraction(); 34 float fraction = keyFrame.getFraction(); 40 float fraction = keyFrame.getFraction(); 58 float fraction = keyFrame.getFraction(); 79 assertEquals(keyFrame.getFraction(), clone.getFraction());
|
/frameworks/base/core/java/android/animation/ |
Keyframe.java | 188 public float getFraction() { 264 ObjectKeyframe kfClone = new ObjectKeyframe(getFraction(), mHasValue ? mValue : null); 310 new IntKeyframe(getFraction(), mValue) : 311 new IntKeyframe(getFraction()); 356 new FloatKeyframe(getFraction(), mValue) : 357 new FloatKeyframe(getFraction());
|
FloatKeyframeSet.java | 82 float prevFraction = prevKeyframe.getFraction(); 83 float nextFraction = nextKeyframe.getFraction(); 98 float prevFraction = prevKeyframe.getFraction(); 99 float nextFraction = nextKeyframe.getFraction(); 113 if (fraction < nextKeyframe.getFraction()) { 118 float intervalFraction = (fraction - prevKeyframe.getFraction()) / 119 (nextKeyframe.getFraction() - prevKeyframe.getFraction());
|
IntKeyframeSet.java | 82 float prevFraction = prevKeyframe.getFraction(); 83 float nextFraction = nextKeyframe.getFraction(); 98 float prevFraction = prevKeyframe.getFraction(); 99 float nextFraction = nextKeyframe.getFraction(); 112 if (fraction < nextKeyframe.getFraction()) { 117 float intervalFraction = (fraction - prevKeyframe.getFraction()) / 118 (nextKeyframe.getFraction() - prevKeyframe.getFraction());
|
KeyframeSet.java | 192 final float prevFraction = mFirstKeyframe.getFraction(); 194 (nextKeyframe.getFraction() - prevFraction); 203 final float prevFraction = prevKeyframe.getFraction(); 205 (mLastKeyframe.getFraction() - prevFraction); 212 if (fraction < nextKeyframe.getFraction()) { 217 final float prevFraction = prevKeyframe.getFraction(); 219 (nextKeyframe.getFraction() - prevFraction);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
KeyVisualAttributes.java | 97 mLetterRatio = ResourceUtils.getFraction(keyAttr, 101 mLabelRatio = ResourceUtils.getFraction(keyAttr, 105 mLargeLetterRatio = ResourceUtils.getFraction(keyAttr, 107 mLargeLabelRatio = ResourceUtils.getFraction(keyAttr, 109 mHintLetterRatio = ResourceUtils.getFraction(keyAttr, 111 mShiftedLetterHintRatio = ResourceUtils.getFraction(keyAttr, 113 mHintLabelRatio = ResourceUtils.getFraction(keyAttr, 115 mPreviewTextRatio = ResourceUtils.getFraction(keyAttr,
|
KeyboardRow.java | 65 mDefaultKeyWidth = keyAttr.getFraction(R.styleable.Keyboard_Key_keyWidth, 115 final float keyXPos = keyAttr.getFraction(R.styleable.Keyboard_Key_keyXPos, 146 return keyAttr.getFraction(R.styleable.Keyboard_Key_keyWidth,
|
GestureStroke.java | 108 mDetectFastMoveSpeedThreshold = ResourceUtils.getFraction(mainKeyboardViewAttr, 120 mDynamicDistanceThresholdFrom = ResourceUtils.getFraction(mainKeyboardViewAttr, 123 mDynamicDistanceThresholdTo = ResourceUtils.getFraction(mainKeyboardViewAttr, 126 mSamplingMinimumDistance = ResourceUtils.getFraction(mainKeyboardViewAttr, 132 mRecognitionSpeedThreshold = ResourceUtils.getFraction(mainKeyboardViewAttr,
|
KeyboardBuilder.java | 241 params.mTopPadding = (int)keyboardAttr.getFraction( 243 params.mBottomPadding = (int)keyboardAttr.getFraction( 245 params.mLeftPadding = (int)keyboardAttr.getFraction( 247 params.mRightPadding = (int)keyboardAttr.getFraction( 253 params.mDefaultKeyWidth = (int)keyAttr.getFraction(R.styleable.Keyboard_Key_keyWidth, 255 params.mHorizontalGap = (int)keyboardAttr.getFraction( 260 params.mVerticalGap = (int)keyboardAttr.getFraction( [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ResourceUtils.java | 197 public static float getFraction(final TypedArray a, final int index, final float defValue) { 202 return a.getFraction(index, 1, 1, defValue); 205 public static float getFraction(final TypedArray a, final int index) { 206 return getFraction(a, index, UNDEFINED_RATIO); 224 return a.getFraction(index, base, base, defValue);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
SuggestionStripView.java | 168 final float alphaValidTypedWord = ResourceUtils.getFraction(a, 170 final float alphaTypedWord = ResourceUtils.getFraction(a, 172 final float alphaAutoCorrect = ResourceUtils.getFraction(a, 174 final float alphaSuggested = ResourceUtils.getFraction(a, 176 mAlphaObsoleted = ResourceUtils.getFraction(a, 189 mCenterSuggestionWeight = ResourceUtils.getFraction(a, 195 mMinMoreSuggestionsWidth = ResourceUtils.getFraction(a, [all...] |
/cts/tests/tests/content/src/android/content/res/cts/ |
FractionTest.java | 79 float res = mValue.getFraction(base, pbase);
|
TypedArrayTest.java | 111 mTypedArray.getFraction(R.styleable.style1_type10, 10, 10, DEFFLOAT));
|
ResourcesTest.java | 367 assertEquals(1, (int)mResources.getFraction(R.dimen.frac100perc, 1, 1)); 368 assertEquals(100, (int)mResources.getFraction(R.dimen.frac100perc, 100, 1));
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
AnimatedRotateDrawable.java | 230 final float pivotX = pivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat(); 234 final float pivotY = pivotYRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat();
|
RotateDrawable.java | 219 pivotX = pivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat(); 230 pivotY = pivotYRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
StatusBarIconView.java | 73 final float alpha = res.getFraction(R.dimen.status_bar_icon_drawing_alpha, 1, 1); 88 final float alpha = res.getFraction(R.dimen.status_bar_icon_drawing_alpha, 1, 1);
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
ContactDetailTabCarousel.java | 113 mTabWidthScreenWidthFraction = resources.getFraction( 115 mTabHeightScreenWidthFraction = resources.getFraction(
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
KeyboardLayoutSet.java | 240 final float maxKeyboardHeight = mResources.getFraction( 242 float minKeyboardHeight = mResources.getFraction( 247 minKeyboardHeight = -mResources.getFraction(
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
UniverseBackground.java | 126 mCollapseMinDisplayFraction = res.getFraction(R.dimen.collapse_min_display_fraction, 1, 1); 127 mExpandMinDisplayFraction = res.getFraction(R.dimen.expand_min_display_fraction, 1, 1);
|
/cts/tests/tests/util/src/android/util/cts/ |
TypedValueTest.java | 76 assertEquals(EXPECTED, tv.getFraction(1.1f, 2.1f));
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTypedValue.java | 134 public float getFraction(float base, float pbase)
|
/frameworks/base/core/java/android/util/ |
TypedValue.java | 395 public float getFraction(float base, float pbase)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
PhoneStatusBarView.java | 57 mSettingsPanelDragzoneFrac = res.getFraction(R.dimen.settings_panel_dragzone_fraction, 1, 1);
|
PanelView.java | 332 mCollapseMinDisplayFraction = res.getFraction(R.dimen.collapse_min_display_fraction, 1, 1); 333 mExpandMinDisplayFraction = res.getFraction(R.dimen.expand_min_display_fraction, 1, 1);
|