Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/
DBitmap.java80 int mDensity = getDefaultDensity(); field in Bitmap
128 mDensity = density; in Bitmap()
167 return mDensity; in getDensity()
184 mDensity = density; in setDensity()
560 b.mDensity = mDensity; in copy()
735 bitmap.mDensity = source.mDensity; in createBitmap()
814 bm.mDensity = display.densityDpi; in createBitmap()
888 bm.mDensity = display.densityDpi; in createBitmap()
1092 return scaleFromDensity(getWidth(), mDensity, canvas.mDensity); in getScaledWidth()
1100 return scaleFromDensity(getHeight(), mDensity, canvas.mDensity); in getScaledHeight()
[all …]
DNinePatch.java203 paint != null ? paint.mNativePaint : 0, canvas.mDensity, mBitmap.mDensity); in drawSoftware()
208 paint != null ? paint.mNativePaint : 0, canvas.mDensity, mBitmap.mDensity); in drawSoftware()
216 return mBitmap.mDensity; in getDensity()
DCanvas.java67 protected int mDensity = Bitmap.DENSITY_NONE; field in Canvas
156 mDensity = bitmap.mDensity; in Canvas()
166 mDensity = Bitmap.getDefaultDensity(); in Canvas()
211 mDensity = Bitmap.DENSITY_NONE; in setBitmap()
219 mDensity = bitmap.mDensity; in setBitmap()
292 return mDensity; in getDensity()
311 mDensity = density; in setDensity()
1339 paint != null ? paint.mNativePaint : 0, mDensity, mScreenDensity, bitmap.mDensity); in drawBitmap()
1386 bitmap.mDensity); in drawBitmap()
1433 bitmap.mDensity); in drawBitmap()
/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/libs/hwui/renderthread/
DDrawFrameTask.h64 void setDensity(float density) { mDensity = density; } in setDensity()
85 float mDensity; variable
DDrawFrameTask.cpp39 , mDensity(1.0f) // safe enough default in DrawFrameTask()
95 mContext->profiler().setDensity(mDensity); in run()
/frameworks/base/core/java/com/android/internal/widget/
DRotarySelector.java65 private float mDensity; field in RotarySelector
186 mDensity = r.getDisplayMetrics().density; in RotarySelector()
187 if (DBG) log("- Density: " + mDensity); in RotarySelector()
200 mEdgeTriggerThresh = (int) (mDensity * EDGE_TRIGGER_DIP); in RotarySelector()
206 mOuterRadius = (int) (mDensity * OUTER_ROTARY_RADIUS_DIP); in RotarySelector()
207 mInnerRadius = (int) ((OUTER_ROTARY_RADIUS_DIP - ROTARY_STROKE_WIDTH_DIP) * mDensity); in RotarySelector()
222 final int edgePadding = (int) (EDGE_PADDING_DIP * mDensity); in onSizeChanged()
281 final int arrowScrunch = (int) (ARROW_SCRUNCH_DIP * mDensity); in onMeasure()
354 float or = OUTER_ROTARY_RADIUS_DIP * mDensity; in onDraw()
DSlidingTab.java79 private final float mDensity; // used to scale dimensions for bitmaps. field in SlidingTab
462 mDensity = r.getDisplayMetrics().density; in SlidingTab()
463 if (DBG) log("- Density: " + mDensity); in SlidingTab()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardClockPositionAlgorithm.java53 private float mDensity; field in KeyguardClockPositionAlgorithm
85 mDensity = res.getDisplayMetrics().density; in loadDimens()
122 progress *= Math.pow(1 + mEmptyDragAmount / mDensity / 300, 0.3f); in getClockScale()
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleBackground.java67 private float mDensity; field in RippleBackground
120 mDensity = density; in setup()
235 (mOuterRadius - WAVE_OUTER_SIZE_INFLUENCE_MIN * mDensity) in exit()
236 / (WAVE_OUTER_SIZE_INFLUENCE_MAX * mDensity), 0, 1); in exit()
DRippleDrawable.java163 private float mDensity = 1.0f; field in RippleDrawable
442 if (mDensity != metrics.density) { in setTargetDensity()
443 mDensity = metrics.density; in setTargetDensity()
496 mBackground.setup(mState.mMaxRadius, mDensity); in tryBackgroundEnter()
532 mRipple.setup(mState.mMaxRadius, mDensity); in tryRippleEnter()
987 mDensity = res.getDisplayMetrics().density; in RippleDrawable()
DRipple.java61 private float mDensity; field in Ripple
132 mDensity = density; in setup()
290 (1000 * Math.sqrt(mOuterRadius / WAVE_TOUCH_DOWN_ACCELERATION * mDensity) + 0.5); in enter()
337 + WAVE_TOUCH_DOWN_ACCELERATION) * mDensity) + 0.5); in exit()
/frameworks/base/libs/hwui/
DDrawProfiler.cpp61 , mDensity(0) in DrawProfiler()
79 if (CC_UNLIKELY(mDensity != density)) { in setDensity()
80 mDensity = density; in setDensity()
DDrawProfiler.h71 float mDensity; variable
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
DConfigGenerator.java127 private Density mDensity = Density.XHIGH; field in ConfigGenerator
139 config.setDensityQualifier(new DensityQualifier(mDensity)); in getFolderConfig()
170 return new HardwareConfig(mScreenWidth, mScreenHeight, mDensity, mXdpi, mYdpi, mSize, in getHardwareConfig()
256 mDensity = density; in setDensity()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DBasicBitmapDrawable.java72 private final float mDensity; field in BasicBitmapDrawable
96 mDensity = res.getDisplayMetrics().density; in BasicBitmapDrawable()
280 / mDensity); in decode()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DPagedView.java96 protected float mDensity; field in PagedView
312 mDensity = getResources().getDisplayMetrics().density; in init()
313 mWarpPeekAmount = mDensity * WARP_ANIMATE_AMOUNT; in init()
316 mFlingToDeleteThresholdVelocity = (int) (mFlingToDeleteThresholdVelocity * mDensity); in init()
318 mFlingThresholdVelocity = (int) (FLING_THRESHOLD_VELOCITY * mDensity); in init()
319 mMinFlingVelocity = (int) (MIN_FLING_VELOCITY * mDensity); in init()
320 mMinSnapVelocity = (int) (MIN_SNAP_VELOCITY * mDensity); in init()
DKeyguardWidgetPager.java537 v.setCameraDistance(mDensity * CAMERA_DISTANCE); in screenScrolled()
/frameworks/base/core/java/android/widget/
DStackView.java1382 private float mDensity;
1391 mDensity = context.getResources().getDisplayMetrics().density;
1398 mSmallBlurMaskFilter = new BlurMaskFilter(2 * mDensity, BlurMaskFilter.Blur.NORMAL);
1399 mLargeBlurMaskFilter = new BlurMaskFilter(4 * mDensity, BlurMaskFilter.Blur.NORMAL);
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp62 jfieldID mDensity; member
115 env->SetIntField(outValue, gTypedValueOffsets.mDensity, config->density); in copyValue()
2127 gTypedValueOffsets.mDensity = env->GetFieldID(typedValue, "density", "I"); in register_android_content_AssetManager()
2128 LOG_FATAL_IF(gTypedValueOffsets.mDensity == NULL, "Unable to find TypedValue.density"); in register_android_content_AssetManager()
/frameworks/base/core/java/android/view/
DViewRootImpl.java323 private final int mDensity; field in ViewRootImpl
387 mDensity = context.getResources().getDisplayMetrics().densityDpi; in ViewRootImpl()
2593 canvas.setDensity(mDensity); in drawSoftware()