Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/util/
DDisplayMetrics.java29 public class DisplayMetrics { class
216 public DisplayMetrics() { in DisplayMetrics() method in DisplayMetrics
219 public void setTo(DisplayMetrics o) { in setTo()
255 return o instanceof DisplayMetrics && equals((DisplayMetrics)o); in equals()
264 public boolean equals(DisplayMetrics other) { in equals()
279 public boolean equalsPhysical(DisplayMetrics other) { in equalsPhysical()
DTypedValue.java238 public static float complexToDimension(int data, DisplayMetrics metrics) in complexToDimension()
263 DisplayMetrics metrics) in complexToDimensionPixelOffset()
290 DisplayMetrics metrics) in complexToDimensionPixelSize()
309 public static float complexToDimensionNoisy(int data, DisplayMetrics metrics) in complexToDimensionNoisy()
340 DisplayMetrics metrics) in applyDimension()
369 public float getDimension(DisplayMetrics metrics) in getDimension()
/frameworks/base/core/java/android/app/
DResourcesManager.java30 import android.util.DisplayMetrics;
48 final ArrayMap<DisplayAdjustments, DisplayMetrics> mDefaultDisplayMetrics
49 = new ArrayMap<DisplayAdjustments, DisplayMetrics>();
73 public DisplayMetrics getDisplayMetricsLocked(int displayId) { in getDisplayMetricsLocked()
77 public DisplayMetrics getDisplayMetricsLocked(int displayId, DisplayAdjustments daj) { in getDisplayMetricsLocked()
79 DisplayMetrics dm = isDefaultDisplay ? mDefaultDisplayMetrics.get(daj) : null; in getDisplayMetricsLocked()
83 dm = new DisplayMetrics(); in getDisplayMetricsLocked()
113 DisplayMetrics dm, Configuration config) { in applyNonDefaultDisplayMetricsToConfigurationLocked()
214 DisplayMetrics dm = getDisplayMetricsLocked(displayId); in getTopLevelResources()
264 DisplayMetrics defaultDisplayMetrics = getDisplayMetricsLocked(Display.DEFAULT_DISPLAY); in applyConfigurationToResourcesLocked()
[all …]
DActivityManager.java56 import android.util.DisplayMetrics;
2357 case DisplayMetrics.DENSITY_LOW: in getLauncherLargeIconDensity()
2358 return DisplayMetrics.DENSITY_MEDIUM; in getLauncherLargeIconDensity()
2359 case DisplayMetrics.DENSITY_MEDIUM: in getLauncherLargeIconDensity()
2360 return DisplayMetrics.DENSITY_HIGH; in getLauncherLargeIconDensity()
2361 case DisplayMetrics.DENSITY_TV: in getLauncherLargeIconDensity()
2362 return DisplayMetrics.DENSITY_XHIGH; in getLauncherLargeIconDensity()
2363 case DisplayMetrics.DENSITY_HIGH: in getLauncherLargeIconDensity()
2364 return DisplayMetrics.DENSITY_XHIGH; in getLauncherLargeIconDensity()
2365 case DisplayMetrics.DENSITY_XHIGH: in getLauncherLargeIconDensity()
[all …]
DPresentation.java29 import android.util.DisplayMetrics;
282 DisplayMetrics dm = new DisplayMetrics(); in isConfigurationStillValid()
/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/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/support/v4/donut/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java29 import android.util.DisplayMetrics;
46 private int mTargetDensity = DisplayMetrics.DENSITY_DEFAULT;
102 public void setTargetDensity(DisplayMetrics metrics) { in setTargetDensity()
116 mTargetDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density; in setTargetDensity()
/frameworks/base/core/java/android/view/
DDisplay.java26 import android.util.DisplayMetrics;
72 private final DisplayMetrics mTempMetrics = new DisplayMetrics();
676 public void getMetrics(DisplayMetrics outMetrics) { in getMetrics()
714 public void getRealMetrics(DisplayMetrics outMetrics) { in getRealMetrics()
DDisplayInfo.java23 import android.util.DisplayMetrics;
398 public void getAppMetrics(DisplayMetrics outMetrics) { in getAppMetrics()
402 public void getAppMetrics(DisplayMetrics outMetrics, DisplayAdjustments displayAdjustments) { in getAppMetrics()
407 public void getAppMetrics(DisplayMetrics outMetrics, CompatibilityInfo ci, IBinder token) { in getAppMetrics()
411 public void getLogicalMetrics(DisplayMetrics outMetrics, CompatibilityInfo compatInfo, in getLogicalMetrics()
433 private void getMetricsWithSize(DisplayMetrics outMetrics, CompatibilityInfo compatInfo, in getMetricsWithSize()
440 logicalDensityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in getMetricsWithSize()
DViewConfiguration.java26 import android.util.DisplayMetrics;
280 final DisplayMetrics metrics = res.getDisplayMetrics(); in ViewConfiguration()
359 final DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in get()
/frameworks/base/test-runner/src/android/test/mock/
DMockResources.java26 import android.util.DisplayMetrics;
46 public void updateConfiguration(Configuration config, DisplayMetrics metrics) { in updateConfiguration()
189 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()
DViewLayersActivity2.java23 import android.util.DisplayMetrics;
60 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
DViewLayersActivity4.java23 import android.util.DisplayMetrics;
64 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/core/java/com/android/internal/widget/
DWeightedLinearLayout.java22 import android.util.DisplayMetrics;
58 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics(); in onMeasure()
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
DTextTest.java22 import android.util.DisplayMetrics;
85 DisplayMetrics metrics = mRes.getDisplayMetrics(); in initTextScript()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java32 import android.util.DisplayMetrics;
140 DisplayMetrics metrics = mBridgeContext.getMetrics(); in createMenuPopup()
229 static int getPixelValue(@NonNull String value, @NonNull DisplayMetrics metrics) { in getPixelValue()
237 DisplayMetrics metrics = mBridgeContext.getMetrics(); in getActionBarHeight()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java39 import android.util.DisplayMetrics;
106 DisplayMetrics metrics = new DisplayMetrics(); in init()
111 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DIWindowManagerImpl.java30 import android.util.DisplayMetrics;
41 private final DisplayMetrics mMetrics;
45 public IWindowManagerImpl(Configuration config, DisplayMetrics metrics, int rotation, in IWindowManagerImpl()
55 public DisplayMetrics getMetrics() { in getMetrics()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java23 import android.util.DisplayMetrics;
100 sDefaultDensity = DisplayMetrics.DENSITY_DEVICE; in getDefaultDensity()
770 public static Bitmap createBitmap(DisplayMetrics display, int width, in createBitmap()
807 private static Bitmap createBitmap(DisplayMetrics display, int width, int height, in createBitmap()
869 public static Bitmap createBitmap(DisplayMetrics display, int colors[], in createBitmap()
929 public static Bitmap createBitmap(DisplayMetrics display, int colors[], in createBitmap()
1107 public int getScaledWidth(DisplayMetrics metrics) { in getScaledWidth()
1115 public int getScaledHeight(DisplayMetrics metrics) { in getScaledHeight()
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
DPhotoBitmapLoader.java25 import android.util.DisplayMetrics;
59 result.bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM); in loadInBackground()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DIconUtilities.java32 import android.util.DisplayMetrics;
56 private final DisplayMetrics mDisplayMetrics;
62 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics(); in IconUtilities()

12345