/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 | 67 /*package*/ int mDensity = sDefaultDensity = getDefaultDensity(); field in Bitmap 126 mDensity = density; in Bitmap() 151 return mDensity; in getDensity() 168 mDensity = density; in setDensity() 431 b.mDensity = mDensity; in copy() 601 bitmap.mDensity = source.mDensity; in createBitmap() 798 return scaleFromDensity(getWidth(), mDensity, canvas.mDensity); in getScaledWidth() 806 return scaleFromDensity(getHeight(), mDensity, canvas.mDensity); in getScaledHeight() 814 return scaleFromDensity(getWidth(), mDensity, metrics.densityDpi); in getScaledWidth() 822 return scaleFromDensity(getHeight(), mDensity, metrics.densityDpi); 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() 190 mDensity = bitmap.mDensity; in setBitmap() 244 return mDensity; in getDensity() 263 mDensity = density; in setDensity() 1067 paint != null ? paint.mNativePaint : 0, mDensity, mScreenDensity, bitmap.mDensity); in drawBitmap() 1098 paint != null ? paint.mNativePaint : 0, mScreenDensity, bitmap.mDensity); in drawBitmap() 1129 paint != null ? paint.mNativePaint : 0, mScreenDensity, bitmap.mDensity); in drawBitmap()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | RotarySelector.java | 56 private float mDensity; field in RotarySelector 177 mDensity = r.getDisplayMetrics().density; in RotarySelector() 178 if (DBG) log("- Density: " + mDensity); in RotarySelector() 191 mEdgeTriggerThresh = (int) (mDensity * EDGE_TRIGGER_DIP); in RotarySelector() 197 mOuterRadius = (int) (mDensity * OUTER_ROTARY_RADIUS_DIP); in RotarySelector() 198 mInnerRadius = (int) ((OUTER_ROTARY_RADIUS_DIP - ROTARY_STROKE_WIDTH_DIP) * mDensity); in RotarySelector() 213 final int edgePadding = (int) (EDGE_PADDING_DIP * mDensity); in onSizeChanged() 272 final int arrowScrunch = (int) (ARROW_SCRUNCH_DIP * mDensity); in onMeasure() 345 float or = OUTER_ROTARY_RADIUS_DIP * mDensity; in onDraw()
|
D | SlidingTab.java | 71 private final float mDensity; // used to scale dimensions for bitmaps. field in SlidingTab 454 mDensity = r.getDisplayMetrics().density; in SlidingTab() 455 if (DBG) log("- Density: " + mDensity); in SlidingTab()
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | DisplayHardware.cpp | 112 float DisplayHardware::getDensity() const { return mDensity; } in getDensity() 189 mDensity = Density::getBuildDensity() / 160.0f; in init() 191 if (mDensity == 0) { in init() 195 mDensity = mDpiX / 160.0f; in init() 200 mDpiX = mDpiY = mDensity = Density::getEmuDensity(); in init() 201 mDensity /= 160.0f; in init()
|
D | DisplayHardware.h | 125 float mDensity; variable
|
/frameworks/base/core/java/android/view/ |
D | Display.java | 108 mTmpMetrics.density = mDensity; in getSizeInternal() 408 outMetrics.densityDpi = (int)((mDensity*DisplayMetrics.DENSITY_DEFAULT)+.5f); in getMetricsWithSize() 413 outMetrics.density = outMetrics.noncompatDensity = mDensity; in getMetricsWithSize() 442 /*package*/ float mDensity; field in Display
|
D | ViewRootImpl.java | 324 private final int mDensity; field in ViewRootImpl 396 mDensity = context.getResources().getDisplayMetrics().densityDpi; in ViewRootImpl() 2196 canvas.setDensity(mDensity); in drawSoftware()
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
D | Display_Delegate.java | 83 theDisplay.mDensity = wm.getMetrics().density; in init()
|
/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/core/jni/ |
D | android_util_AssetManager.cpp | 52 jfieldID mDensity; member 98 env->SetIntField(outValue, gTypedValueOffsets.mDensity, config->density); in copyValue() 1743 gTypedValueOffsets.mDensity = env->GetFieldID(typedValue, "density", "I"); in register_android_content_AssetManager() 1744 LOG_FATAL_IF(gTypedValueOffsets.mDensity == NULL, "Unable to find TypedValue.density"); in register_android_content_AssetManager()
|