/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
H A D | TransitionUtils.java | 44 animator.setFloatValues(startAlpha.getFloat(), endAlpha.getFloat()); in createActivityFadeInAnimator() 46 animator.setIntValues(Float.valueOf(startAlpha.getFloat() * 255).intValue(), in createActivityFadeInAnimator() 47 Float.valueOf(endAlpha.getFloat() * 255).intValue()); in createActivityFadeInAnimator() 64 animator.setFloatValues(startAlpha.getFloat(), endAlpha.getFloat()); in createActivityFadeOutAnimator() 66 animator.setIntValues(Float.valueOf(startAlpha.getFloat() * 255).intValue(), in createActivityFadeOutAnimator() 67 Float.valueOf(endAlpha.getFloat() * 255).intValue()); in createActivityFadeOutAnimator()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | InvariantDeviceProfile.java | 776 x = a.getFloat(R.styleable.ProfileDisplayOption_minCellWidthDps, 0); in DisplayOption() 795 float twoPanelPortraitBorderSpaceDps = a.getFloat( in DisplayOption() 797 float twoPanelLandscapeBorderSpaceDps = a.getFloat( in DisplayOption() 805 x = a.getFloat( in DisplayOption() 808 y = a.getFloat( in DisplayOption() 813 x = a.getFloat( in DisplayOption() 816 y = a.getFloat( in DisplayOption() 832 a.getFloat(R.styleable.ProfileDisplayOption_allAppsIconSize, in DisplayOption() 856 horizontalMargin[INDEX_DEFAULT] = a.getFloat( in DisplayOption() 860 horizontalMargin[INDEX_TWO_PANEL_LANDSCAPE] = a.getFloat( in DisplayOption() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/display/utils/ |
H A D | AmbientFilterFactory.java | 63 final float intercept = getFloat(resources, in createBrightnessFilter() 84 final float intercept = getFloat(resources, in createColorTemperatureFilter() 94 private static float getFloat(Resources resources, int id) { in getFloat() method in AmbientFilterFactory 102 return value.getFloat(); in getFloat()
|
/aosp12/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableRggbChannelVector.java | 49 float red = buffer.getFloat(); in unmarshal() 50 float gEven = buffer.getFloat(); in unmarshal() 51 float gOdd = buffer.getFloat(); in unmarshal() 52 float blue = buffer.getFloat(); in unmarshal()
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A D | WeightedLinearLayout.java | 48 mMajorWeightMin = a.getFloat(styleable.WeightedLinearLayout_majorWeightMin, 0.0f); in WeightedLinearLayout() 49 mMinorWeightMin = a.getFloat(styleable.WeightedLinearLayout_minorWeightMin, 0.0f); in WeightedLinearLayout() 50 mMajorWeightMax = a.getFloat(styleable.WeightedLinearLayout_majorWeightMax, 0.0f); in WeightedLinearLayout() 51 mMinorWeightMax = a.getFloat(styleable.WeightedLinearLayout_minorWeightMax, 0.0f); in WeightedLinearLayout()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/referencedesign/plugin/src/main/java/com/chassis/car/ui/plugin/recyclerview/ |
H A D | SmoothScroller.java | 18 import static com.chassis.car.ui.plugin.Utils.getFloat; 59 mMillisecondsPerInch = getFloat(context.getResources(), in init() 61 mDecelerationTimeDivisor = getFloat(context.getResources(), in init() 65 getFloat(context.getResources(), in init()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | PackageManagerPropertyTests.java | 46 assertEquals(0.0f, p.getFloat(), 0.0f); in testBooleanProperty() 71 assertEquals(3.14f, p.getFloat(), 0.0f); in testFloatProperty() 83 assertEquals(3.14f, b.getFloat("floatProperty"), 0.0f); in testFloatPropertyToBundle() 96 assertEquals(0.0f, p.getFloat(), 0.0f); in testIntegerProperty() 121 assertEquals(0.0f, p.getFloat(), 0.0f); in testResourceProperty() 146 assertEquals(0.0f, p.getFloat(), 0.0f); in testStringProperty()
|
/aosp12/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | LetterboxConfiguration.java | 130 mFixedOrientationLetterboxAspectRatio = mContext.getResources().getFloat( in LetterboxConfiguration() 137 mLetterboxBackgroundWallpaperDarkScrimAlpha = mContext.getResources().getFloat( in LetterboxConfiguration() 139 mLetterboxHorizontalPositionMultiplier = mContext.getResources().getFloat( in LetterboxConfiguration() 162 mFixedOrientationLetterboxAspectRatio = mContext.getResources().getFloat( in resetFixedOrientationLetterboxAspectRatio() 318 mLetterboxBackgroundWallpaperDarkScrimAlpha = mContext.getResources().getFloat( in resetLetterboxBackgroundWallpaperDarkScrimAlpha() 386 mLetterboxHorizontalPositionMultiplier = mContext.getResources().getFloat( in resetLetterboxHorizontalPositionMultiplier()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | DistanceClassifier.java | 65 mVelocityToDistanceMultiplier = deviceConfigProxy.getFloat( in DistanceClassifier() 70 float horizontalFlingThresholdIn = deviceConfigProxy.getFloat( in DistanceClassifier() 75 float verticalFlingThresholdIn = deviceConfigProxy.getFloat( in DistanceClassifier() 80 float horizontalSwipeThresholdIn = deviceConfigProxy.getFloat( in DistanceClassifier() 85 float verticalSwipeThresholdIn = deviceConfigProxy.getFloat( in DistanceClassifier() 90 float screenFractionMaxDistance = deviceConfigProxy.getFloat( in DistanceClassifier()
|
/aosp12/frameworks/base/core/java/android/service/controls/templates/ |
H A D | RangeTemplate.java | 95 mMinValue = b.getFloat(KEY_MIN_VALUE); in RangeTemplate() 96 mMaxValue = b.getFloat(KEY_MAX_VALUE); in RangeTemplate() 97 mCurrentValue = b.getFloat(KEY_CURRENT_VALUE); in RangeTemplate() 98 mStepValue = b.getFloat(KEY_STEP_VALUE); in RangeTemplate()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | MatrixCursorTest.java | 42 assertEquals(0.0f, cursor.getFloat(0)); in testNullValue() 154 assertEquals(4.2f, cursor.getFloat(4)); in testRowBuilderOffer() 163 assertEquals(0.0f, cursor.getFloat(4)); in testRowBuilderOffer() 172 assertEquals(0.0f, cursor.getFloat(4)); in testRowBuilderOffer() 205 assertEquals(4.0f, cursor.getFloat(4)); in checkValues()
|
/aosp12/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
H A D | DisplayWhiteBalanceFactory.java | 76 final float lowLightAmbientColorTemperature = getFloat(resources, in create() 85 final float highLightAmbientColorTemperature = getFloat(resources, in create() 148 private static float getFloat(Resources resources, int id) { in getFloat() method in DisplayWhiteBalanceFactory 154 return value.getFloat(); in getFloat() 165 values[i] = array.getFloat(i, Float.NaN); in getFloatArray()
|
/aosp12/frameworks/base/core/java/android/content/res/ |
H A D | GradientColor.java | 188 mStartX = a.getFloat( in updateRootElementState() 190 mStartY = a.getFloat( in updateRootElementState() 192 mEndX = a.getFloat( in updateRootElementState() 194 mEndY = a.getFloat( in updateRootElementState() 197 mCenterX = a.getFloat( in updateRootElementState() 199 mCenterY = a.getFloat( in updateRootElementState() 227 mGradientRadius = a.getFloat(R.styleable.GradientColor_gradientRadius, in updateRootElementState() 358 float offset = a.getFloat(R.styleable.GradientColorItem_offset, 0); in inflateChildElements() 417 mItemOffsets[i] = a.getFloat(R.styleable.GradientColorItem_offset, mItemOffsets[i]); in applyItemsAttrsTheme()
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
H A D | ActionAdapter.java | 129 mUnselectedAlpha = getFloat(R.dimen.list_item_unselected_text_alpha); in ActionAdapter() 131 mSelectedTitleAlpha = getFloat(R.dimen.list_item_selected_title_text_alpha); in ActionAdapter() 132 mDisabledTitleAlpha = getFloat(R.dimen.list_item_disabled_title_text_alpha); in ActionAdapter() 134 mSelectedDescriptionAlpha = getFloat(R.dimen.list_item_selected_description_text_alpha); in ActionAdapter() 135 mUnselectedDescriptionAlpha = getFloat(R.dimen.list_item_unselected_description_text_alpha); in ActionAdapter() 136 mDisabledDescriptionAlpha = getFloat(R.dimen.list_item_disabled_description_text_alpha); in ActionAdapter() 138 mSelectedChevronAlpha = getFloat(R.dimen.list_item_selected_chevron_background_alpha); in ActionAdapter() 139 mDisabledChevronAlpha = getFloat(R.dimen.list_item_disabled_chevron_background_alpha); in ActionAdapter() 519 private float getFloat(int resourceId) { in getFloat() method in ActionAdapter 522 return buffer.getFloat(); in getFloat()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/ |
H A D | CarUiSmoothScroller.java | 58 mMillisecondsPerInch = CarUiUtils.getFloat(context.getResources(), in init() 60 mDecelerationTimeDivisor = CarUiUtils.getFloat(context.getResources(), in init() 64 CarUiUtils.getFloat(context.getResources(), in init()
|
/aosp12/packages/modules/ExtServices/java/src/android/ext/services/resolver/ |
H A D | LRResolverRankerService.java | 139 mBias = mParamSharedPref.getFloat(BIAS_PREF_KEY, 0.0f); in initModel() 140 mFeatureWeights.put(LAUNCH_SCORE, mParamSharedPref.getFloat(LAUNCH_SCORE, 0.0f)); in initModel() 142 TIME_SPENT_SCORE, mParamSharedPref.getFloat(TIME_SPENT_SCORE, 0.0f)); in initModel() 143 mFeatureWeights.put(RECENCY_SCORE, mParamSharedPref.getFloat(RECENCY_SCORE, 0.0f)); in initModel() 144 mFeatureWeights.put(CHOOSER_SCORE, mParamSharedPref.getFloat(CHOOSER_SCORE, 0.0f)); in initModel()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
H A D | FlingSpringAnim.java | 47 float damping = rp.getFloat(R.dimen.swipe_up_rect_xy_damping_ratio); in FlingSpringAnim() 48 float stiffness = rp.getFloat(R.dimen.swipe_up_rect_xy_stiffness); in FlingSpringAnim() 49 float friction = rp.getFloat(R.dimen.swipe_up_rect_xy_fling_friction); in FlingSpringAnim()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/referencedesign/plugin/src/main/java/com/chassis/car/ui/plugin/ |
H A D | Utils.java | 39 public static float getFloat(Resources res, @DimenRes int resId) { in getFloat() method in Utils 42 return outValue.getFloat(); in getFloat()
|
/aosp12/frameworks/base/services/core/java/com/android/server/utils/ |
H A D | DeviceConfigInterface.java | 59 float getFloat(@NonNull String namespace, @NonNull String name, float defaultValue); in getFloat() method 104 public float getFloat(@NonNull String namespace, @NonNull String name, 106 return DeviceConfig.getFloat(namespace, name, defaultValue);
|
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | VectorDrawable.java | 770 float viewportWidth = a.getFloat( in updateStateFromTypedArray() 772 float viewportHeight = a.getFloat( in updateStateFromTypedArray() 807 final float alphaInFloat = a.getFloat( in updateStateFromTypedArray() 1412 float pivotX = a.getFloat(R.styleable.VectorDrawableGroup_pivotX, in updateStateFromTypedArray() 1414 float pivotY = a.getFloat(R.styleable.VectorDrawableGroup_pivotY, in updateStateFromTypedArray() 2015 float strokeWidth = properties.getFloat(STROKE_WIDTH_INDEX * 4); in updateStateFromTypedArray() 2017 float strokeAlpha = properties.getFloat(STROKE_ALPHA_INDEX * 4); in updateStateFromTypedArray() 2019 float fillAlpha = properties.getFloat(FILL_ALPHA_INDEX * 4); in updateStateFromTypedArray() 2090 strokeMiterLimit = a.getFloat( in updateStateFromTypedArray() 2098 trimPathOffset = a.getFloat( in updateStateFromTypedArray() [all …]
|
/aosp12/frameworks/base/core/java/android/view/animation/ |
H A D | PathInterpolator.java | 126 float x1 = a.getFloat(R.styleable.PathInterpolator_controlX1, 0); in parseInterpolatorFromTypeArray() 127 float y1 = a.getFloat(R.styleable.PathInterpolator_controlY1, 0); in parseInterpolatorFromTypeArray() 140 float x2 = a.getFloat(R.styleable.PathInterpolator_controlX2, 0); in parseInterpolatorFromTypeArray() 141 float y2 = a.getFloat(R.styleable.PathInterpolator_controlY2, 0); in parseInterpolatorFromTypeArray()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/charging/ |
H A D | WiredChargingRippleController.kt | 66 private var normalizedPortPosX: Float = context.resources.getFloat( 68 private var normalizedPortPosY: Float = context.resources.getFloat( 118 normalizedPortPosX = context.resources.getFloat( 120 normalizedPortPosY = context.resources.getFloat(
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
H A D | ForcePeakRefreshRatePreferenceControllerTest.java | 70 assertThat(Settings.System.getFloat(mContext.getContentResolver(), in onPreferenceChange_preferenceChecked_shouldEnableForcePeak() 80 assertThat(Settings.System.getFloat(mContext.getContentResolver(), in onPreferenceChange_preferenceUnchecked_shouldDisableForcePeak() 128 assertThat(Settings.System.getFloat(mContext.getContentResolver(), in onDeveloperOptionsDisabled_shouldDisablePreference()
|
/aosp12/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
H A D | BackgroundImageView.java | 60 extraScale = a.getFloat(R.styleable.BackgroundImageView_imageAdditionalScale, 1.05f); in BackgroundImageView() 63 mBitmapBlurPercent = a.getFloat(R.styleable.BackgroundImageView_bitmap_blur_percent, in BackgroundImageView() 64 getResources().getFloat(R.dimen.background_bitmap_blur_percent)); in BackgroundImageView()
|
/aosp12/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
H A D | MockSuggestionProviderCursor.java | 61 public float getFloat(int column) { in getFloat() method in MockSuggestionProviderCursor 62 return mRows.get(getPosition()).getFloat(column); in getFloat() 118 public float getFloat(int column) { in getFloat() method in MockSuggestionProviderCursor.Row
|