Home
last modified time | relevance | path

Searched refs:mDensity (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/core/java/android/view/
DWindowMetrics.java59 private final float mDensity; field in WindowMetrics
82 mDensity = density; in WindowMetrics()
97 mDensity = density; in WindowMetrics()
158 return mDensity; in getDensity()
166 + ", density=" + mDensity in toString()
DDisplayCutout.java283 private final float mDensity; field in DisplayCutout.CutoutPathParserInfo
296 mDensity = density; in CutoutPathParserInfo()
308 mDensity = cutoutPathParserInfo.mDensity; in CutoutPathParserInfo()
332 return mDensity; in getDensity()
360 result = result * 48271 + Float.hashCode(mDensity); in hashCode()
380 && mDensity == c.mDensity && mCutoutSpec.equals(c.mCutoutSpec) in equals()
393 + " density={" + mDensity + "}" in toString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleStoryIconFactory.java47 private float mDensity; field in PeopleStoryIconFactory
57 mDensity = mContext.getResources().getDisplayMetrics().density; in PeopleStoryIconFactory()
58 mIconSize = mDensity * iconSizeDp; in PeopleStoryIconFactory()
92 mIconBitmapSize, mImportantConversationColor, important, mIconSize, mDensity, in getPeopleTileDrawable()
109 private float mDensity; field in PeopleStoryIconFactory.PeopleStoryIconDrawable
130 mDensity = density; in PeopleStoryIconDrawable()
150 int paddingInDp = (int) (PADDING * mDensity); in draw()
151 int ringStrokeWidth = (int) (RING_WIDTH * mDensity); in draw()
178 int maxBadgeSize = (int) (MAX_BADGE_SIZE * mDensity); in draw()
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
DBitmapView.java28 private final float mDensity; field in BitmapView
38 mDensity = getResources().getDisplayMetrics().density; in BitmapView()
43 return (int) (100 * mDensity); in getSuggestedMinimumHeight()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java101 /*package*/ int mDensity = getDefaultDensity(); field in Bitmap
158 mDensity = density; in Bitmap()
226 return mDensity; in getDensity()
243 mDensity = density; in setDensity()
723 b.mDensity = mDensity; in copy()
742 b.mDensity = mDensity; in createAshmemBitmap()
1014 bitmap.mDensity = source.mDensity; in createBitmap()
1233 bm.mDensity = display.densityDpi; in createBitmap()
1314 bm.mDensity = display.densityDpi; in createBitmap()
1749 return scaleFromDensity(getWidth(), mDensity, canvas.mDensity); in getScaledWidth()
[all …]
DCanvas.java125 mDensity = bitmap.mDensity; in Canvas()
139 mDensity = Bitmap.getDefaultDensity(); in Canvas()
191 mDensity = Bitmap.DENSITY_NONE; in setBitmap()
199 mDensity = bitmap.mDensity; in setBitmap()
298 return mDensity; in getDensity()
317 mDensity = density; in setDensity()
DBaseCanvas.java69 protected int mDensity = Bitmap.DENSITY_NONE; field in BaseCanvas
124 paint != null ? paint.getNativeInstance() : 0, mDensity, mScreenDensity, in drawBitmap()
125 bitmap.mDensity); in drawBitmap()
157 bitmap.mDensity); in drawBitmap()
183 bitmap.mDensity); in drawBitmap()
318 mDensity, patch.getDensity()); in drawPatch()
328 mDensity, patch.getDensity()); in drawPatch()
DPicture.java253 mDensity = 0; in PictureCanvas()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunablePadding.java40 private final float mDensity; field in TunablePadding
50 mDensity = metrics.density; in TunablePadding()
60 dimen = (int) (Integer.parseInt(newValue) * mDensity); in onTuningChanged()
/frameworks/base/graphics/java/android/graphics/drawable/
DAdaptiveIconDrawable.java176 final ChildDrawable layer = new ChildDrawable(mLayerState.mDensity); in createChildDrawable()
522 final ChildDrawable layer = new ChildDrawable(state.mDensity); in inflateLayers()
927 public int mDensity = DisplayMetrics.DENSITY_DEFAULT; field in AdaptiveIconDrawable.ChildDrawable
930 mDensity = density; in ChildDrawable()
957 mDensity = Drawable.resolveDensity(res, orig.mDensity); in ChildDrawable()
966 if (mDensity != targetDensity) { in setDensity()
967 mDensity = targetDensity; in setDensity()
979 int mDensity; field in AdaptiveIconDrawable.LayerState
1001 mDensity = Drawable.resolveDensity(res, orig != null ? orig.mDensity : 0); in LayerState()
1025 mChildren[i] = new ChildDrawable(mDensity); in LayerState()
[all …]
DLayerDrawable.java142 r[i] = new ChildDrawable(mLayerState.mDensity); in LayerDrawable()
265 final ChildDrawable layer = new ChildDrawable(state.mDensity); in inflateLayers()
489 final ChildDrawable layer = new ChildDrawable(mLayerState.mDensity); in createLayer()
1834 public int mDensity = DisplayMetrics.DENSITY_DEFAULT;
1844 mDensity = density;
1890 mDensity = Drawable.resolveDensity(res, orig.mDensity);
1891 if (orig.mDensity != mDensity) {
1892 applyDensityScaling(orig.mDensity, mDensity);
1902 if (mDensity != targetDensity) {
1903 final int sourceDensity = mDensity;
[all …]
DDrawableWrapper.java483 int mDensity = DisplayMetrics.DENSITY_DEFAULT; field in DrawableWrapper.DrawableWrapperState
507 density = orig.mDensity; in DrawableWrapperState()
512 mDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density; in DrawableWrapperState()
525 if (mDensity != targetDensity) { in setDensity()
526 final int sourceDensity = mDensity; in setDensity()
527 mDensity = targetDensity; in setDensity()
DInsetDrawable.java334 if (orig.mDensity != mDensity) { in InsetState()
335 applyDensityScaling(orig.mDensity, mDensity); in InsetState()
374 if (density != mDensity) { in newDrawable()
DDrawableContainer.java687 int mDensity = DisplayMetrics.DENSITY_DEFAULT; field in DrawableContainer.DrawableContainerState
744 mDensity = Drawable.resolveDensity(res, orig != null ? orig.mDensity : 0); in DrawableContainerState()
768 if (orig.mDensity == mDensity) { in DrawableContainerState()
964 final int targetDensity = Drawable.resolveDensity(res, mDensity); in updateDensity()
965 final int sourceDensity = mDensity; in updateDensity()
966 mDensity = targetDensity; in updateDensity()
DRippleDrawable.java215 private int mDensity; field in RippleDrawable
372 mBackground.setup(mState.mMaxRadius, mDensity); in setBackgroundActive()
700 mRipple.setup(mState.mMaxRadius, mDensity); in tryRippleEnter()
1349 if (origs.mDensity != mDensity) { in RippleState()
1350 applyDensityScaling(orig.mDensity, mDensity); in RippleState()
1396 mDensity = Drawable.resolveDensity(res, mState.mDensity); in RippleDrawable()
DGradientDrawable.java2064 int mDensity = DisplayMetrics.DENSITY_DEFAULT;
2129 mDensity = Drawable.resolveDensity(res, orig.mDensity);
2130 if (orig.mDensity != mDensity) {
2131 applyDensityScaling(orig.mDensity, mDensity);
2145 if (mDensity != targetDensity) {
2146 final int sourceDensity = mDensity;
2147 mDensity = targetDensity;
2254 final int density = Drawable.resolveDensity(res, mDensity);
2255 if (density != mDensity) {
/frameworks/base/tests/Assist/src/com/android/test/assist/
DAssistInteractionSession.java45 private float mDensity; field in AssistInteractionSession
90 mDensity = mScrim.getResources().getDisplayMetrics().density; in onCreateContentView()
129 mBackground.setTranslationY(50 * mDensity); in playAssistAnimation()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DRenderingJitter.java114 private float mDensity; field in RenderingJitter.PointGraphView
124 mDensity = context.getResources().getDisplayMetrics().density; in PointGraphView()
145 return mDensity * dp; in dp()
174 int graphWidth = (int) ((w - mLabelWidth - dp(1)) / mDensity); in onSizeChanged()
180 mJitterPoints[i] = mLabelWidth + (i / 2 + 1) * mDensity; in onSizeChanged()
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/aidl/
DReverbContext.h78 int getEnvironmentalReverbDensity() const { return mDensity; } in getEnvironmentalReverbDensity()
171 int mDensity = 0; variable
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/setup/
DConfigGenerator.java156 private Density mDensity = Density.XHIGH; field in ConfigGenerator
167 config.setDensityQualifier(new DensityQualifier(mDensity)); in getFolderConfig()
197 return new HardwareConfig(mScreenWidth, mScreenHeight, mDensity, mXdpi, mYdpi, mSize, in getHardwareConfig()
283 mDensity = density; in setDensity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarView.java70 private int mDensity; field in PhoneStatusBarView
180 if (density != mDensity) { in updateDisplayParameters()
182 mDensity = density; in updateDisplayParameters()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DBasicBitmapDrawable.java71 private final float mDensity; field in BasicBitmapDrawable
98 mDensity = res.getDisplayMetrics().density; in BasicBitmapDrawable()
321 / mDensity); in decode()
/frameworks/base/libs/hwui/
DFrameInfoVisualizer.h70 float mDensity = 0; variable
DFrameInfoVisualizer.cpp81 if (CC_UNLIKELY(mDensity != density)) { in setDensity()
82 mDensity = density; in setDensity()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java166 private float mDensity; field in PointerLocationView
371 final float arrowSize = Math.max(ps.mCoords.toolMajor * 0.7f, 24 * mDensity); in onDraw()
400 3.0f * mDensity, mPaint); in onDraw()
1005 mDensity = getResources().getDisplayMetrics().density;
1006 mTextPaint.setTextSize(10 * mDensity);
1007 mPaint.setStrokeWidth(1 * mDensity);
1008 mCurrentPointPaint.setStrokeWidth(1 * mDensity);
1009 mPathPaint.setStrokeWidth(1 * mDensity);

12