Home
last modified time | relevance | path

Searched refs:getDimension (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/base/core/java/com/android/internal/policy/
DScreenDecorationsUtils.java39 float defaultRadius = resources.getDimension(R.dimen.rounded_corner_radius); in getWindowCornerRadius()
41 float topRadius = resources.getDimension(R.dimen.rounded_corner_radius_top); in getWindowCornerRadius()
45 float bottomRadius = resources.getDimension(R.dimen.rounded_corner_radius_bottom); in getWindowCornerRadius()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUserAvatarView.java48 setAvatarPadding(a.getDimension(attr, 0)); in UserAvatarView()
50 setFrameWidth(a.getDimension(attr, 0)); in UserAvatarView()
52 setFramePadding(a.getDimension(attr, 0)); in UserAvatarView()
56 setBadgeDiameter(a.getDimension(attr, 0)); in UserAvatarView()
58 setBadgeMargin(a.getDimension(attr, 0)); in UserAvatarView()
/frameworks/base/graphics/java/android/graphics/drawable/
DInsetDrawable.java226 out.left = mState.mInsetLeft.getDimension(b.width()); in getInsets()
227 out.right = mState.mInsetRight.getDimension(b.width()); in getInsets()
228 out.top = mState.mInsetTop.getDimension(b.height()); in getInsets()
229 out.bottom = mState.mInsetBottom.getDimension(b.height()); in getInsets()
274 r.left += mState.mInsetLeft.getDimension(bounds.width()); in onBoundsChange()
275 r.top += mState.mInsetTop.getDimension(bounds.height()); in onBoundsChange()
276 r.right -= mState.mInsetRight.getDimension(bounds.width()); in onBoundsChange()
277 r.bottom -= mState.mInsetBottom.getDimension(bounds.height()); in onBoundsChange()
398 int getDimension(int boundSize) { in getDimension() method in InsetDrawable.InsetValue
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFrameFormat.java103 public int getDimension(int i) { in getDimension() method in FrameFormat
225 int specDim = specification.getDimension(i); in isCompatibleWith()
226 if (specDim != SIZE_UNSPECIFIED && getDimension(i) != specDim) { in isCompatibleWith()
285 int specDim = specification.getDimension(i); in mayBeCompatibleWith()
287 && getDimension(i) != SIZE_UNSPECIFIED in mayBeCompatibleWith()
288 && getDimension(i) != specDim) { in mayBeCompatibleWith()
/frameworks/base/core/java/android/view/
DThreadedRenderer.java311 mLightY = a.getDimension(R.styleable.Lighting_lightY, 0); in ThreadedRenderer()
312 mLightZ = a.getDimension(R.styleable.Lighting_lightZ, 0); in ThreadedRenderer()
313 mLightRadius = a.getDimension(R.styleable.Lighting_lightRadius, 0); in ThreadedRenderer()
703 mLightY = a.getDimension(R.styleable.Lighting_lightY, 0); in SimpleRenderer()
704 mLightZ = a.getDimension(R.styleable.Lighting_lightZ, 0); in SimpleRenderer()
705 mLightRadius = a.getDimension(R.styleable.Lighting_lightRadius, 0); in SimpleRenderer()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/
DCarSetupWizardBaseLayout.java181 getContext().getResources().getDimension(R.dimen.title_bar_drop_shadow_elevation); in init()
255 float touchTargetSize = getResources().getDimension( in updateBackButtonTouchDelegate()
257 float primaryIconSize = getResources().getDimension( in updateBackButtonTouchDelegate()
601 float marginEnd = PartnerConfigHelper.get(getContext()).getDimension( in maybeInflateSecondaryToolbarButton()
653 float dimension = mPartnerConfigHelper.getDimension( in setButtonTextSize()
681 float radius = mPartnerConfigHelper.getDimension( in setButtonRadius()
693 PartnerConfigHelper.get(getContext()).getDimension( in setButtonPadding()
698 PartnerConfigHelper.get(getContext()).getDimension( in setButtonPadding()
DCarSetupWizardLayout.java182 getContext().getResources().getDimension(R.dimen.title_bar_drop_shadow_elevation); in init()
267 float touchTargetSize = getResources().getDimension( in updateBackButtonTouchDelegate()
269 float primaryIconSize = getResources().getDimension( in updateBackButtonTouchDelegate()
612 float marginEnd = PartnerConfigHelper.get(getContext()).getDimension( in maybeInflateSecondaryToolbarButton()
664 float dimension = mPartnerConfigHelper.getDimension( in setButtonTextSize()
692 float radius = mPartnerConfigHelper.getDimension( in setButtonRadius()
704 PartnerConfigHelper.get(getContext()).getDimension( in setButtonPadding()
709 PartnerConfigHelper.get(getContext()).getDimension( in setButtonPadding()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/
DPartnerConfigHelper.java186 public float getDimension(@NonNull Context context, PartnerConfig resourceConfig) { in getDimension() method in PartnerConfigHelper
187 return getDimension(context, resourceConfig, 0); in getDimension()
199 public float getDimension( in getDimension() method in PartnerConfigHelper
218 result = resource.getDimension(resourceEntry.getResourceId()); in getDimension()
/frameworks/base/core/java/android/animation/
DAnimatorInflater.java335 valueFrom = styledAttributes.getDimension(valueFromId, 0f); in getPVH()
341 valueTo = styledAttributes.getDimension(valueToId, 0f); in getPVH()
352 valueTo = styledAttributes.getDimension(valueToId, 0f); in getPVH()
363 valueFrom = (int) styledAttributes.getDimension(valueFromId, 0f); in getPVH()
371 valueTo = (int) styledAttributes.getDimension(valueToId, 0f); in getPVH()
384 valueTo = (int) styledAttributes.getDimension(valueToId, 0f); in getPVH()
579 valueFrom = arrayAnimator.getDimension(valueFromIndex, 0f); in setupValues()
585 valueTo = arrayAnimator.getDimension(valueToIndex, 0f); in setupValues()
595 valueTo = arrayAnimator.getDimension(valueToIndex, 0f); in setupValues()
606 valueFrom = (int) arrayAnimator.getDimension(valueFromIndex, 0f); in setupValues()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsColumnLayout.java127 return Math.round(getContext().getResources().getDimension( in getPowerButtonOffsetDistance()
168 return getContext().getResources().getDimension(R.dimen.global_actions_grid_item_height); in getGridItemSize()
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java359 public float getDimension(int index, float defValue) { in getDimension() method in BridgeTypedArray
375 return mValue.getDimension(mBridgeResources.getDisplayMetrics()); in getDimension()
400 return (int) getDimension(index, defValue); in getDimensionPixelOffset()
424 return getDimension(index, null); in getDimensionPixelSize()
455 return getDimension(index, name); in getLayoutDimension()
475 private int getDimension(int index, @Nullable String name) { in getDimension() method in BridgeTypedArray
493 float f = mValue.getDimension(mBridgeResources.getDisplayMetrics()); in getDimension()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/
DPartnerConfigHelperTest.java74 helper.getDimension(application, TEST_COLOR_RESOURCE_NAME); in getDimension_withWrongConfigType_shouldThrowException()
82 float result = helper.getDimension(application, TEST_DIMENSION_RESOURCE_NAME); in getDimension_shouldReturnExpectedDimension()
/frameworks/base/core/java/android/text/style/
DSuggestionSpan.java204 mMisspelledUnderlineThickness = typedArray.getDimension( in initStyle()
212 mEasyCorrectUnderlineThickness = typedArray.getDimension( in initStyle()
220 mAutoCorrectionUnderlineThickness = typedArray.getDimension( in initStyle()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAdaptiveOutlineDrawableTest.java41 resources.getDimension(R.dimen.adaptive_outline_stroke)); in constructor_initPaint()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayout.java467 getDimension(mContext.createAppCompatAttrReference(ATTR_ACTION_BAR_SIZE), in findAppCompatActionBar()
510 mTitleBarSize = getDimension( in findFrameworkBar()
545 private int getDimension(@NonNull ResourceReference attrRef, int defaultValue) { in getDimension() method in Layout.Builder
552 return (int) typedValue.getDimension(mContext.getMetrics()); in getDimension()
560 return getDimension(BridgeContext.createFrameworkAttrReference(attr), defaultValue); in getFrameworkAttrDimension()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistDisclosure.java152 mThickness = getResources().getDimension(R.dimen.assist_disclosure_thickness); in AssistDisclosureView()
153 mShadowThickness = getResources().getDimension( in AssistDisclosureView()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/apppreference/
DAppPreferenceTest.java61 float iconSize = mContext.getResources().getDimension(R.dimen.secondary_app_icon_size); in foobar_testName()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSliceView.java148 mIconSize = (int) mContext.getResources().getDimension(R.dimen.widget_icon_size); in onFinishInflate()
149 mIconSizeWithHeader = (int) mContext.getResources().getDimension(R.dimen.header_icon_size); in onFinishInflate()
383 mIconSizeWithHeader = (int) mContext.getResources().getDimension(R.dimen.header_icon_size); in onDensityOrFontScaleChanged()
564 .getDimension(R.dimen.widget_horizontal_padding) / 2; in updatePadding()
567 .getDimension(R.dimen.widget_icon_padding)); in updatePadding()
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
DBiDiTestViewDrawText.java46 mSize = a.getDimension(R.styleable.DrawTextTestView_size, 40.0f); in BiDiTestViewDrawText()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeToolTipView.java72 getResources().getDimension(R.dimen.volume_tool_tip_arrow_corner_radius))); in drawArrow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPageIndicator.java41 (int) mContext.getResources().getDimension(R.dimen.qs_page_indicator_width); in PageIndicator()
43 (int) mContext.getResources().getDimension(R.dimen.qs_page_indicator_height); in PageIndicator()
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
DAdaptiveOutlineDrawable.java51 mOutlinePaint.setStrokeWidth(resources.getDimension(R.dimen.adaptive_outline_stroke)); in AdaptiveOutlineDrawable()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java232 return (int) typedValue.getDimension(metrics); in getPixelValue()
251 return (int) typedValue.getDimension(metrics); in getActionBarHeight()
/frameworks/base/packages/SystemUI/plugin/ExamplePlugin/src/com/android/systemui/plugin/testoverlayplugin/
DSampleOverlayPlugin.java68 mStatusBarHeight = mPluginContext.getResources().getDimension(id); in setup()
/frameworks/base/core/java/android/widget/
DMagnifier.java161 params.mElevation = a.getDimension(R.styleable.Magnifier_magnifierElevation, 0); in createBuilderWithOldMagnifierDefaults()
189 final float dialogCornerRadius = ta.getDimension(0, 0); in getDeviceDefaultDialogCornerRadius()
1164 mElevation = resources.getDimension(R.dimen.default_magnifier_elevation); in applyDefaults()
1165 mCornerRadius = resources.getDimension(R.dimen.default_magnifier_corner_radius); in applyDefaults()
1436 size.x = resources.getDimension(R.dimen.default_magnifier_width) / density; in getMagnifierDefaultSize()
1437 size.y = resources.getDimension(R.dimen.default_magnifier_height) / density; in getMagnifierDefaultSize()

123