/frameworks/base/core/java/android/text/ |
D | BoringLayout.java | 42 BoringLayout.Metrics metrics, boolean includepad) { in make() argument 44 spacingmult, spacingadd, metrics, in make() 52 BoringLayout.Metrics metrics, boolean includepad, in make() argument 55 spacingmult, spacingadd, metrics, in make() 67 BoringLayout.Metrics metrics, in replaceOrMake() argument 77 metrics, includepad, true); in replaceOrMake() 89 BoringLayout.Metrics metrics, in replaceOrMake() argument 114 metrics, includepad, trust); in replaceOrMake() local 122 BoringLayout.Metrics metrics, boolean includepad) { in BoringLayout() argument 130 metrics, includepad, true); in BoringLayout() [all …]
|
/frameworks/base/core/java/android/util/ |
D | TypedValue.java | 244 public static float complexToDimension(int data, DisplayMetrics metrics) in complexToDimension() argument 249 metrics); in complexToDimension() 269 DisplayMetrics metrics) in complexToDimensionPixelOffset() argument 274 metrics); in complexToDimensionPixelOffset() 296 DisplayMetrics metrics) in complexToDimensionPixelSize() argument 302 metrics); in complexToDimensionPixelSize() 315 public static float complexToDimensionNoisy(int data, DisplayMetrics metrics) in complexToDimensionNoisy() argument 317 return complexToDimension(data, metrics); in complexToDimensionNoisy() 346 DisplayMetrics metrics) in applyDimension() argument 352 return value * metrics.density; in applyDimension() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 107 DisplayMetrics metrics = new DisplayMetrics(); in init() local 108 metrics.densityDpi = metrics.noncompatDensityDpi = in init() 111 metrics.density = metrics.noncompatDensity = in init() 112 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init() 114 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; in init() 116 metrics.widthPixels = metrics.noncompatWidthPixels = hardwareConfig.getScreenWidth(); in init() 117 metrics.heightPixels = metrics.noncompatHeightPixels = hardwareConfig.getScreenHeight(); in init() 118 metrics.xdpi = metrics.noncompatXdpi = hardwareConfig.getXdpi(); in init() 119 metrics.ydpi = metrics.noncompatYdpi = hardwareConfig.getYdpi(); in init() 124 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources, in init()
|
/frameworks/support/v4/donut/android/support/v4/content/res/ |
D | ConfigurationHelperDonut.java | 27 final DisplayMetrics metrics = resources.getDisplayMetrics(); in getScreenHeightDp() local 28 return (int) (metrics.heightPixels / metrics.density); in getScreenHeightDp() 32 final DisplayMetrics metrics = resources.getDisplayMetrics(); in getScreenWidthDp() local 33 return (int) (metrics.widthPixels / metrics.density); in getScreenWidthDp()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ContentFrameLayout.java | 91 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics(); in onMeasure() local 92 final boolean isPortrait = metrics.widthPixels < metrics.heightPixels; in onMeasure() 103 w = (int) tvw.getDimension(metrics); in onMeasure() 105 w = (int) tvw.getFraction(metrics.widthPixels, metrics.widthPixels); in onMeasure() 122 h = (int) tvh.getDimension(metrics); in onMeasure() 124 h = (int) tvh.getFraction(metrics.heightPixels, metrics.heightPixels); in onMeasure() 147 min = (int) tv.getDimension(metrics); in onMeasure() 149 min = (int) tv.getFraction(metrics.widthPixels, metrics.widthPixels); in onMeasure()
|
/frameworks/rs/ |
D | rsScriptC_LibGL.cpp | 229 static void SetMetrics(Font::Rect *metrics, in SetMetrics() argument 232 *left = metrics->left; in SetMetrics() 235 *right = metrics->right; in SetMetrics() 238 *top = metrics->top; in SetMetrics() 241 *bottom = metrics->bottom; in SetMetrics() 250 Font::Rect metrics; in rsrMeasureTextAlloc() local 251 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc() 252 SetMetrics(&metrics, left, right, top, bottom); in rsrMeasureTextAlloc() 259 Font::Rect metrics; in rsrMeasureText() local 260 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | NavigationBar.java | 127 DisplayMetrics metrics = context.getMetrics(); in getShortestWidth() local 128 float sw = metrics.widthPixels < metrics.heightPixels ? in getShortestWidth() 129 metrics.widthPixels : metrics.heightPixels; in getShortestWidth() 130 sw /= metrics.density; in getShortestWidth()
|
D | FrameworkActionBar.java | 141 DisplayMetrics metrics = mBridgeContext.getMetrics(); in createMenuPopup() local 157 layoutParams.setMarginEnd(getPixelValue("5dp", metrics)); in createMenuPopup() 231 static int getPixelValue(@NonNull String value, @NonNull DisplayMetrics metrics) { in getPixelValue() argument 233 return (int) typedValue.getDimension(metrics); in getPixelValue() 239 DisplayMetrics metrics = mBridgeContext.getMetrics(); in getActionBarHeight() local 251 return (int) typedValue.getDimension(metrics); in getActionBarHeight()
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouteDialogHelper.java | 43 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in getDialogWidth() local 44 boolean isPortrait = metrics.widthPixels < metrics.heightPixels; in getDialogWidth() 50 return (int) value.getDimension(metrics); in getDialogWidth() 52 return (int) value.getFraction(metrics.widthPixels, metrics.widthPixels); in getDialogWidth()
|
/frameworks/base/core/jni/android/graphics/ |
D | Paint.cpp | 398 Paint::FontMetrics *metrics) { in getMetricsInternal() argument 411 SkScalar spacing = paint->getFontMetrics(metrics); in getMetricsInternal() 419 metrics->fTop = -size * kElegantTop / 2048; in getMetricsInternal() 420 metrics->fBottom = -size * kElegantBottom / 2048; in getMetricsInternal() 421 metrics->fAscent = -size * kElegantAscent / 2048; in getMetricsInternal() 422 metrics->fDescent = -size * kElegantDescent / 2048; in getMetricsInternal() 423 metrics->fLeading = size * kElegantLeading / 2048; in getMetricsInternal() 424 spacing = metrics->fDescent - metrics->fAscent + metrics->fLeading; in getMetricsInternal() 430 Paint::FontMetrics metrics; in ascent() local 431 getMetricsInternal(paintHandle, typefaceHandle, &metrics); in ascent() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | WeightedLinearLayout.java | 58 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics(); in onMeasure() local 59 final int screenWidth = metrics.widthPixels; in onMeasure() 60 final boolean isPortrait = screenWidth < metrics.heightPixels; in onMeasure()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/ |
D | DisplayDensityUtils.java | 98 final DisplayMetrics metrics = res.getDisplayMetrics(); in DisplayDensityUtils() local 99 final int currentDensity = metrics.densityDpi; in DisplayDensityUtils() 103 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in DisplayDensityUtils()
|
/frameworks/base/core/java/android/content/res/ |
D | Resources.java | 210 public Resources(AssetManager assets, DisplayMetrics metrics, Configuration config) { in Resources() argument 212 mResourcesImpl = new ResourcesImpl(assets, metrics, config, new DisplayAdjustments()); in Resources() 233 final DisplayMetrics metrics = new DisplayMetrics(); in Resources() local 234 metrics.setToDefaults(); in Resources() 239 mResourcesImpl = new ResourcesImpl(AssetManager.getSystem(), metrics, config, in Resources() 828 final DisplayMetrics metrics = impl.getDisplayMetrics(); in getDrawableForDensity() local 829 final boolean useCache = value.density == metrics.densityDpi; in getDrawableForDensity() 840 value.density = metrics.densityDpi; in getDrawableForDensity() 842 value.density = (value.density * metrics.densityDpi) / density; in getDrawableForDensity() 1766 public void updateConfiguration(Configuration config, DisplayMetrics metrics) { in updateConfiguration() argument [all …]
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
D | FullscreenRotationTest.java | 39 public void afterTest(Bundle metrics) { in afterTest() argument 41 super.afterTest(metrics); in afterTest()
|
/frameworks/base/core/java/android/view/ |
D | ViewConfiguration.java | 285 final DisplayMetrics metrics = res.getDisplayMetrics(); in ViewConfiguration() local 287 final float density = metrics.density; in ViewConfiguration() 364 final DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in get() local 365 final int density = (int) (100.0f * metrics.density); in get()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/ |
D | WindowManagerImpl.java | 30 public WindowManagerImpl(DisplayMetrics metrics) { in WindowManagerImpl() argument 31 mMetrics = metrics; in WindowManagerImpl()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | ViewLayersActivity3.java | 57 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 58 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
D | ViewLayersActivity4.java | 64 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 65 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
D | ViewLayersActivity2.java | 60 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 61 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
D | ListActivity.java | 115 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 116 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
D | TransparentListActivity.java | 113 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 114 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
D | TransformTestActivity.java | 129 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in TransformView() local 130 mPosX = metrics.widthPixels/2; in TransformView() 131 mPosY = metrics.heightPixels/2; in TransformView()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | ErrorFragment.java | 179 FontMetricsInt metrics = getFontMetricsInt(mTextView); in onCreateView() local 182 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView() 186 setTopMargin(mButton, underMessageBaselineMargin - metrics.descent); in onCreateView()
|
D | ErrorSupportFragment.java | 181 FontMetricsInt metrics = getFontMetricsInt(mTextView); in onCreateView() local 184 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView() 188 setTopMargin(mButton, underMessageBaselineMargin - metrics.descent); in onCreateView()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionInfo.java | 213 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in createIconBitmap() local 216 Bitmap workingBitmap = Bitmap.createBitmap(metrics, width, height, mIconBitmap.getConfig()); in createIconBitmap() 231 paint.setTextSize(TEXT_SIZE * metrics.density); in createIconBitmap()
|