Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleStoryIconFactory.java47 private float mDensity; field in PeopleStoryIconFactory
57 mDensity = context.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.java94 /*package*/ int mDensity = getDefaultDensity(); field in Bitmap
146 mDensity = density; in Bitmap()
211 return mDensity; in getDensity()
228 mDensity = density; in setDensity()
682 b.mDensity = mDensity; in copy()
701 b.mDensity = mDensity; in createAshmemBitmap()
946 bitmap.mDensity = source.mDensity; in createBitmap()
1108 bm.mDensity = display.densityDpi; in createBitmap()
1187 bm.mDensity = display.densityDpi; in createBitmap()
1536 return scaleFromDensity(getWidth(), mDensity, canvas.mDensity); in getScaledWidth()
[all …]
DCanvas.java121 mDensity = bitmap.mDensity; in Canvas()
135 mDensity = Bitmap.getDefaultDensity(); in Canvas()
175 mDensity = Bitmap.DENSITY_NONE; in setBitmap()
183 mDensity = bitmap.mDensity; in setBitmap()
282 return mDensity; in getDensity()
301 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()
317 mDensity, patch.getDensity()); in drawPatch()
327 mDensity, patch.getDensity()); in drawPatch()
DBaseRecordingCanvas.java77 paint != null ? paint.getNativeInstance() : 0, mDensity, mScreenDensity, in drawBitmap()
78 bitmap.mDensity); in drawBitmap()
111 bitmap.mDensity); in drawBitmap()
137 bitmap.mDensity); in drawBitmap()
273 mDensity, patch.getDensity()); in drawPatch()
284 mDensity, patch.getDensity()); in drawPatch()
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/
DRemoteHardwareConfig.java35 private Density mDensity; field in RemoteHardwareConfig
57 mDensity = density; in RemoteHardwareConfig()
68 return new HardwareConfig(mScreenWidth, mScreenHeight, mDensity, mXdpi, mYdpi, mScreenSize, in getHardwareConfig()
/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.java171 final ChildDrawable layer = new ChildDrawable(mLayerState.mDensity); in createChildDrawable()
491 final ChildDrawable layer = new ChildDrawable(state.mDensity); in inflateLayers()
896 public int mDensity = DisplayMetrics.DENSITY_DEFAULT; field in AdaptiveIconDrawable.ChildDrawable
899 mDensity = density; in ChildDrawable()
926 mDensity = Drawable.resolveDensity(res, orig.mDensity); in ChildDrawable()
935 if (mDensity != targetDensity) { in setDensity()
936 mDensity = targetDensity; in setDensity()
948 int mDensity; field in AdaptiveIconDrawable.LayerState
970 mDensity = Drawable.resolveDensity(res, orig != null ? orig.mDensity : 0); in LayerState()
994 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.java214 private int mDensity; field in RippleDrawable
365 mBackground.setup(mState.mMaxRadius, mDensity); in setBackgroundActive()
693 mRipple.setup(mState.mMaxRadius, mDensity); in tryRippleEnter()
1335 if (origs.mDensity != mDensity) { in RippleState()
1336 applyDensityScaling(orig.mDensity, mDensity); in RippleState()
1382 mDensity = Drawable.resolveDensity(res, mState.mDensity); in RippleDrawable()
DGradientDrawable.java2029 int mDensity = DisplayMetrics.DENSITY_DEFAULT;
2094 mDensity = Drawable.resolveDensity(res, orig.mDensity);
2095 if (orig.mDensity != mDensity) {
2096 applyDensityScaling(orig.mDensity, mDensity);
2110 if (mDensity != targetDensity) {
2111 final int sourceDensity = mDensity;
2112 mDensity = targetDensity;
2211 final int density = Drawable.resolveDensity(res, mDensity);
2212 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/layoutlib/bridge/src/android/graphics/
DImageDecoder.java159 mDensity = DisplayMetrics.DENSITY_DEFAULT; in AssetInputStreamSource()
161 mDensity = value.density; in AssetInputStreamSource()
163 mDensity = Bitmap.DENSITY_NONE; in AssetInputStreamSource()
169 private final int mDensity; field in ImageDecoder.AssetInputStreamSource
176 return mDensity; in getDensity()
/frameworks/base/core/java/android/view/
DDisplayCutout.java254 private final float mDensity; field in DisplayCutout.CutoutPathParserInfo
263 mDensity = density; in CutoutPathParserInfo()
272 mDensity = cutoutPathParserInfo.mDensity; in CutoutPathParserInfo()
287 return mDensity; in getDensity()
311 result = result * 48271 + Float.hashCode(mDensity); in hashCode()
326 && mDensity == c.mDensity && mCutoutSpec.equals(c.mCutoutSpec) in equals()
336 + " density={" + mDensity + "}" in toString()
DCutoutSpecification.java171 private final float mDensity; field in CutoutSpecification.Parser
213 mDensity = density; in Parser()
260 mMatrix.postScale(mDensity, mDensity);
/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/layoutlib/bridge/tests/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/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/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java138 private int mDensity; field in StatusBarIconView
191 mDensity = context.getResources().getDisplayMetrics().densityDpi; in StatusBarIconView()
207 mDensity = context.getResources().getDisplayMetrics().densityDpi; in StatusBarIconView()
261 if (density != mDensity) { in onConfigurationChanged()
262 mDensity = density; in onConfigurationChanged()

12