/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 29 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()
|
D | TypedValue.java | 238 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/ |
D | ResourcesManager.java | 30 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 …]
|
D | ActivityManager.java | 56 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 …]
|
D | Presentation.java | 29 import android.util.DisplayMetrics; 282 DisplayMetrics dm = new DisplayMetrics(); in isConfigurationStillValid()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 26 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/ |
D | WindowManagerImpl.java | 18 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/ |
D | RoundedBitmapDrawable.java | 29 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/ |
D | Display.java | 26 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()
|
D | DisplayInfo.java | 23 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()
|
D | ViewConfiguration.java | 26 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/ |
D | MockResources.java | 26 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/ |
D | ViewLayersActivity3.java | 23 import android.util.DisplayMetrics; 57 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
|
D | ViewLayersActivity2.java | 23 import android.util.DisplayMetrics; 60 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
|
D | ViewLayersActivity4.java | 23 import android.util.DisplayMetrics; 64 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
|
D | ListActivity.java | 23 import android.util.DisplayMetrics; 115 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
|
D | TransparentListActivity.java | 23 import android.util.DisplayMetrics; 113 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | WeightedLinearLayout.java | 22 import android.util.DisplayMetrics; 58 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics(); in onMeasure()
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
D | TextTest.java | 22 import android.util.DisplayMetrics; 85 DisplayMetrics metrics = mRes.getDisplayMetrics(); in initTextScript()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | FrameworkActionBar.java | 32 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/ |
D | RenderAction.java | 39 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/ |
D | IWindowManagerImpl.java | 30 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/ |
D | Bitmap.java | 23 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/ |
D | PhotoBitmapLoader.java | 25 import android.util.DisplayMetrics; 59 result.bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM); in loadInBackground()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | IconUtilities.java | 32 import android.util.DisplayMetrics; 56 private final DisplayMetrics mDisplayMetrics; 62 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics(); in IconUtilities()
|