Home
last modified time | relevance | path

Searched refs:DisplayMetrics (Results 1 – 25 of 138) sorted by relevance

123456

/frameworks/base/core/java/android/util/
DDisplayMetrics.java29 public class DisplayMetrics { class
267 public DisplayMetrics() { in DisplayMetrics() method in DisplayMetrics
270 public void setTo(DisplayMetrics o) { in setTo()
306 return o instanceof DisplayMetrics && equals((DisplayMetrics)o); in equals()
315 public boolean equals(DisplayMetrics other) { in equals()
330 public boolean equalsPhysical(DisplayMetrics other) { in equalsPhysical()
DTypedValue.java244 public static float complexToDimension(int data, DisplayMetrics metrics) in complexToDimension()
269 DisplayMetrics metrics) in complexToDimensionPixelOffset()
296 DisplayMetrics metrics) in complexToDimensionPixelSize()
315 public static float complexToDimensionNoisy(int data, DisplayMetrics metrics) in complexToDimensionNoisy()
346 DisplayMetrics metrics) in applyDimension()
375 public float getDimension(DisplayMetrics metrics) in getDimension()
/frameworks/support/compat/tests/java/android/support/v4/content/res/
DResourcesCompatTest.java26 import android.util.DisplayMetrics;
153 DisplayMetrics.DENSITY_MEDIUM, null); in testGetDrawableForDensityUnthemed()
167 DisplayMetrics.DENSITY_HIGH, null); in testGetDrawableForDensityUnthemed()
180 DisplayMetrics.DENSITY_XHIGH, null); in testGetDrawableForDensityUnthemed()
193 DisplayMetrics.DENSITY_XXHIGH, null); in testGetDrawableForDensityUnthemed()
226 DisplayMetrics.DENSITY_MEDIUM, yellowTheme); in testGetDrawableForDensityThemed()
233 DisplayMetrics.DENSITY_MEDIUM, lilacTheme); in testGetDrawableForDensityThemed()
240 DisplayMetrics.DENSITY_HIGH, yellowTheme); in testGetDrawableForDensityThemed()
247 DisplayMetrics.DENSITY_HIGH, lilacTheme); in testGetDrawableForDensityThemed()
254 DisplayMetrics.DENSITY_XHIGH, yellowTheme); in testGetDrawableForDensityThemed()
[all …]
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java26 import android.util.DisplayMetrics;
139 applicationDensity = DisplayMetrics.DENSITY_DEVICE; in CompatibilityInfo()
229 applicationDensity = DisplayMetrics.DENSITY_DEVICE; in CompatibilityInfo()
233 applicationDensity = DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo()
234 applicationScale = DisplayMetrics.DENSITY_DEVICE in CompatibilityInfo()
235 / (float) DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo()
253 this(NEVER_NEEDS_COMPAT, DisplayMetrics.DENSITY_DEVICE, in CompatibilityInfo()
429 public void applyToDisplayMetrics(DisplayMetrics inoutDm) { in applyToDisplayMetrics()
477 public static float computeCompatibleScaling(DisplayMetrics dm, DisplayMetrics outDm) { in computeCompatibleScaling()
/frameworks/support/compat/gingerbread/android/support/v4/content/res/
DConfigurationHelperGingerbread.java22 import android.util.DisplayMetrics;
27 final DisplayMetrics metrics = resources.getDisplayMetrics(); in getScreenHeightDp()
32 final DisplayMetrics metrics = resources.getDisplayMetrics(); in getScreenWidthDp()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java23 import android.util.DisplayMetrics;
37 private DisplayMetrics mDisplayMetrics;
43 mDisplayMetrics = new DisplayMetrics(); in setUp()
48 mDisplayMetrics.densityDpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
49 mDisplayMetrics.xdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
50 mDisplayMetrics.ydpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
53 mDisplayMetrics.noncompatXdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
54 mDisplayMetrics.noncompatYdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
63 protected DisplayMetrics getDisplayMetrics(int displayId, DisplayAdjustments daj) { in setUp()
DResourcesLocaleTest.java22 import android.util.DisplayMetrics;
47 final DisplayMetrics dm = new DisplayMetrics(); in createResourcesWithApk()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/
DWindowManagerImpl.java18 import android.util.DisplayMetrics;
27 private final DisplayMetrics mMetrics;
30 public WindowManagerImpl(DisplayMetrics metrics) { in WindowManagerImpl()
/frameworks/base/core/java/android/app/
DActivityManager.java63 import android.util.DisplayMetrics;
3205 case DisplayMetrics.DENSITY_LOW: in getLauncherLargeIconDensity()
3206 return DisplayMetrics.DENSITY_MEDIUM; in getLauncherLargeIconDensity()
3207 case DisplayMetrics.DENSITY_MEDIUM: in getLauncherLargeIconDensity()
3208 return DisplayMetrics.DENSITY_HIGH; in getLauncherLargeIconDensity()
3209 case DisplayMetrics.DENSITY_TV: in getLauncherLargeIconDensity()
3210 return DisplayMetrics.DENSITY_XHIGH; in getLauncherLargeIconDensity()
3211 case DisplayMetrics.DENSITY_HIGH: in getLauncherLargeIconDensity()
3212 return DisplayMetrics.DENSITY_XHIGH; in getLauncherLargeIconDensity()
3213 case DisplayMetrics.DENSITY_XHIGH: in getLauncherLargeIconDensity()
[all …]
DPresentation.java29 import android.util.DisplayMetrics;
284 DisplayMetrics dm = new DisplayMetrics(); in isConfigurationStillValid()
DResourcesManager.java34 import android.util.DisplayMetrics;
151 DisplayMetrics getDisplayMetrics() { in getDisplayMetrics()
160 protected @NonNull DisplayMetrics getDisplayMetrics(int displayId, DisplayAdjustments da) { in getDisplayMetrics()
161 DisplayMetrics dm = new DisplayMetrics(); in getDisplayMetrics()
172 @NonNull DisplayMetrics dm, @NonNull Configuration config) { in applyNonDefaultDisplayMetricsToConfiguration()
288 private Configuration generateConfig(@NonNull ResourcesKey key, @NonNull DisplayMetrics dm) { in generateConfig()
316 final DisplayMetrics dm = getDisplayMetrics(key.mDisplayId, daj); in createResourcesImpl()
810 DisplayMetrics defaultDisplayMetrics = getDisplayMetrics(); in applyConfigurationToResourcesLocked()
835 DisplayMetrics dm = defaultDisplayMetrics; in applyConfigurationToResourcesLocked()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DBitmapUploadActivity.java28 import android.util.DisplayMetrics;
35 private final DisplayMetrics mMetrics = new DisplayMetrics();
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DDisplayDensityUtils.java26 import android.util.DisplayMetrics;
99 final DisplayMetrics metrics = new DisplayMetrics(); in DisplayDensityUtils()
107 final int maxDensity = DisplayMetrics.DENSITY_MEDIUM * minDimensionPx / MIN_DIMENSION_DP; in DisplayDensityUtils()
/frameworks/support/core-utils/gingerbread/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java30 import android.util.DisplayMetrics;
47 private int mTargetDensity = DisplayMetrics.DENSITY_DEFAULT;
105 public void setTargetDensity(DisplayMetrics metrics) { in setTargetDensity()
119 mTargetDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density; in setTargetDensity()
/frameworks/base/test-runner/src/android/test/mock/
DMockResources.java26 import android.util.DisplayMetrics;
51 public void updateConfiguration(Configuration config, DisplayMetrics metrics) { in updateConfiguration()
194 public DisplayMetrics getDisplayMetrics() { in getDisplayMetrics()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DViewLayersActivity3.java23 import android.util.DisplayMetrics;
57 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
DViewLayersActivity4.java23 import android.util.DisplayMetrics;
64 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
DViewLayersActivity2.java23 import android.util.DisplayMetrics;
60 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
DListActivity.java23 import android.util.DisplayMetrics;
115 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
DTransparentListActivity.java23 import android.util.DisplayMetrics;
113 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java32 import android.util.DisplayMetrics;
141 DisplayMetrics metrics = mBridgeContext.getMetrics(); in createMenuPopup()
231 static int getPixelValue(@NonNull String value, @NonNull DisplayMetrics metrics) { in getPixelValue()
239 DisplayMetrics metrics = mBridgeContext.getMetrics(); in getActionBarHeight()
/frameworks/base/core/java/com/android/internal/widget/
DWeightedLinearLayout.java22 import android.util.DisplayMetrics;
58 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics(); in onMeasure()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java35 import android.util.DisplayMetrics;
107 DisplayMetrics metrics = new DisplayMetrics(); in init()
112 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init()
/frameworks/base/core/java/android/view/
DDisplayInfo.java24 import android.util.DisplayMetrics;
493 public void getAppMetrics(DisplayMetrics outMetrics) { in getAppMetrics()
497 public void getAppMetrics(DisplayMetrics outMetrics, DisplayAdjustments displayAdjustments) { in getAppMetrics()
502 public void getAppMetrics(DisplayMetrics outMetrics, CompatibilityInfo ci, in getAppMetrics()
507 public void getLogicalMetrics(DisplayMetrics outMetrics, CompatibilityInfo compatInfo, in getLogicalMetrics()
529 private void getMetricsWithSize(DisplayMetrics outMetrics, CompatibilityInfo compatInfo, in getMetricsWithSize()
533 logicalDensityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in getMetricsWithSize()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawableWrapper.java40 import android.util.DisplayMetrics;
134 final int targetDensity = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in inflate()
161 final int density = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in applyTheme()
449 int mDensity = DisplayMetrics.DENSITY_DEFAULT;
469 mDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density; in DrawableWrapperState()

123456