Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/
DNinePatch.java87 canvas.mDensity, mBitmap.mDensity); in draw()
104 canvas.mDensity, mBitmap.mDensity); in draw()
122 canvas.mDensity, mBitmap.mDensity); in draw()
134 return mBitmap.mDensity; in getDensity()
DBitmap.java66 int mDensity = getDefaultDensity(); field in Bitmap
126 mDensity = density; in Bitmap()
151 return mDensity; in getDensity()
168 mDensity = density; in setDensity()
452 b.mDensity = mDensity; in copy()
622 bitmap.mDensity = source.mDensity; in createBitmap()
699 bm.mDensity = display.densityDpi; in createBitmap()
775 bm.mDensity = display.densityDpi; in createBitmap()
930 return scaleFromDensity(getWidth(), mDensity, canvas.mDensity); in getScaledWidth()
938 return scaleFromDensity(getHeight(), mDensity, canvas.mDensity); in getScaledHeight()
[all …]
DCanvas.java52 protected int mDensity = Bitmap.DENSITY_NONE; field in Canvas
133 mDensity = bitmap.mDensity; in Canvas()
142 mDensity = Bitmap.getDefaultDensity(); in Canvas()
201 mDensity = Bitmap.DENSITY_NONE; in setBitmap()
209 mDensity = bitmap.mDensity; in setBitmap()
261 return mDensity; in getDensity()
280 mDensity = density; in setDensity()
1099 paint != null ? paint.mNativePaint : 0, mDensity, mScreenDensity, bitmap.mDensity); in drawBitmap()
1130 paint != null ? paint.mNativePaint : 0, mScreenDensity, bitmap.mDensity); in drawBitmap()
1161 paint != null ? paint.mNativePaint : 0, mScreenDensity, bitmap.mDensity); in drawBitmap()
/frameworks/base/core/java/com/android/internal/widget/
DRotarySelector.java58 private float mDensity; field in RotarySelector
179 mDensity = r.getDisplayMetrics().density; in RotarySelector()
180 if (DBG) log("- Density: " + mDensity); in RotarySelector()
193 mEdgeTriggerThresh = (int) (mDensity * EDGE_TRIGGER_DIP); in RotarySelector()
199 mOuterRadius = (int) (mDensity * OUTER_ROTARY_RADIUS_DIP); in RotarySelector()
200 mInnerRadius = (int) ((OUTER_ROTARY_RADIUS_DIP - ROTARY_STROKE_WIDTH_DIP) * mDensity); in RotarySelector()
215 final int edgePadding = (int) (EDGE_PADDING_DIP * mDensity); in onSizeChanged()
274 final int arrowScrunch = (int) (ARROW_SCRUNCH_DIP * mDensity); in onMeasure()
347 float or = OUTER_ROTARY_RADIUS_DIP * mDensity; in onDraw()
DSlidingTab.java73 private final float mDensity; // used to scale dimensions for bitmaps. field in SlidingTab
456 mDensity = r.getDisplayMetrics().density; in SlidingTab()
457 if (DBG) log("- Density: " + mDensity); in SlidingTab()
/frameworks/base/core/java/android/widget/
DStackView.java1375 private float mDensity;
1384 mDensity = context.getResources().getDisplayMetrics().density;
1391 mSmallBlurMaskFilter = new BlurMaskFilter(2 * mDensity, BlurMaskFilter.Blur.NORMAL);
1392 mLargeBlurMaskFilter = new BlurMaskFilter(4 * mDensity, BlurMaskFilter.Blur.NORMAL);
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
DPagedView.java100 protected float mDensity; field in PagedView
301 mDensity = getResources().getDisplayMetrics().density; in init()
305 (int) (mFlingToDeleteThresholdVelocity * mDensity); in init()
307 mFlingThresholdVelocity = (int) (FLING_THRESHOLD_VELOCITY * mDensity); in init()
308 mMinFlingVelocity = (int) (MIN_FLING_VELOCITY * mDensity); in init()
309 mMinSnapVelocity = (int) (MIN_SNAP_VELOCITY * mDensity); in init()
DKeyguardWidgetPager.java519 v.setCameraDistance(mDensity * CAMERA_DISTANCE); in screenScrolled()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp52 jfieldID mDensity; member
98 env->SetIntField(outValue, gTypedValueOffsets.mDensity, config->density); in copyValue()
1747 gTypedValueOffsets.mDensity = env->GetFieldID(typedValue, "density", "I"); in register_android_content_AssetManager()
1748 LOG_FATAL_IF(gTypedValueOffsets.mDensity == NULL, "Unable to find TypedValue.density"); in register_android_content_AssetManager()
/frameworks/base/core/java/android/view/
DViewRootImpl.java311 private final int mDensity; field in ViewRootImpl
366 mDensity = context.getResources().getDisplayMetrics().densityDpi; in ViewRootImpl()
2431 canvas.setDensity(mDensity); in drawSoftware()