Searched refs:mDensity (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/graphics/java/android/graphics/ |
D | NinePatch.java | 87 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()
|
D | Bitmap.java | 66 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 …]
|
D | Canvas.java | 52 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/ |
D | RotarySelector.java | 58 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()
|
D | SlidingTab.java | 73 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/ |
D | StackView.java | 1375 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/ |
D | PagedView.java | 100 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()
|
D | KeyguardWidgetPager.java | 519 v.setCameraDistance(mDensity * CAMERA_DISTANCE); in screenScrolled()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 52 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/ |
D | ViewRootImpl.java | 311 private final int mDensity; field in ViewRootImpl 366 mDensity = context.getResources().getDisplayMetrics().densityDpi; in ViewRootImpl() 2431 canvas.setDensity(mDensity); in drawSoftware()
|