/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/area/ |
D | WindowAreaComponentImplTests.java | 22 import android.util.DisplayMetrics; 37 private final DisplayMetrics mTestDisplayMetrics = new DisplayMetrics(); 52 final DisplayMetrics originalMetrics = new DisplayMetrics(); in testRotateRearDisplayMetrics_noTransformNeeded() 77 DisplayMetrics originalMetrics = new DisplayMetrics(); in testRotateRearDisplayMetrics_transformNeeded() 80 DisplayMetrics expectedMetrics = new DisplayMetrics(); in testRotateRearDisplayMetrics_transformNeeded()
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/back/ |
D | BackAnimationSpecForSysUi.kt | 19 import android.util.DisplayMetrics 26 displayMetricsProvider: () -> DisplayMetrics, 40 displayMetricsProvider: () -> DisplayMetrics, 54 displayMetricsProvider: () -> DisplayMetrics, 68 displayMetricsProvider: () -> DisplayMetrics, 82 displayMetricsProvider: () -> DisplayMetrics,
|
D | BottomsheetBackAnimationSpec.kt | 19 import android.util.DisplayMetrics in <lambda>() 28 displayMetricsProvider: () -> DisplayMetrics, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | DisplayUtils.java | 20 import android.util.DisplayMetrics; 36 DisplayMetrics dm = new DisplayMetrics(); in convertDpToPx() 51 DisplayMetrics dm = new DisplayMetrics(); in getWidth() 71 DisplayMetrics dm = new DisplayMetrics(); in getHeight()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | TypedValueTest.kt | 148 val metrics: DisplayMetrics = mock(DisplayMetrics::class.java) in <lambda>() 164 val metrics: DisplayMetrics = mock(DisplayMetrics::class.java) in <lambda>() 184 val metrics: DisplayMetrics = mock(DisplayMetrics::class.java) in <lambda>() 197 val metrics: DisplayMetrics = mock(DisplayMetrics::class.java) in <lambda>() 209 val metrics: DisplayMetrics = mock(DisplayMetrics::class.java) in <lambda>() 222 val metrics: DisplayMetrics = mock(DisplayMetrics::class.java) in <lambda>() 242 val metrics: DisplayMetrics = mock(DisplayMetrics::class.java) in <lambda>() 251 private fun verifyRoundTripsForEachUnitType(metrics: DisplayMetrics) { in <lambda>() 272 metrics: DisplayMetrics, in <lambda>()
|
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/display/ |
D | DisplayUtils.kt | 22 import android.util.DisplayMetrics 90 fun convertPixelToDp(pixels: Float, displayMetrics: DisplayMetrics): Float { in convertPixelToDp() 91 val densityRatio = displayMetrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT.toFloat() in convertPixelToDp() 104 fun convertDpToPixel(dp: Float, displayMetrics: DisplayMetrics): Float { in convertDpToPixel() 105 val densityRatio = displayMetrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT.toFloat() in convertDpToPixel() 117 val metrics = DisplayMetrics() in getSmallestDisplayWidthDp()
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/ |
D | RearDisplayPresentationStatus.java | 19 import android.util.DisplayMetrics; 35 private final DisplayMetrics mDisplayMetrics; 38 @NonNull DisplayMetrics displayMetrics) { in RearDisplayPresentationStatus() 59 public DisplayMetrics getWindowAreaDisplayMetrics() { in getWindowAreaDisplayMetrics()
|
D | WindowAreaComponentImpl.java | 28 import android.util.DisplayMetrics; 95 private DisplayMetrics mRearDisplayMetrics; 236 public DisplayMetrics getRearDisplayMetrics() { in getRearDisplayMetrics() 237 DisplayMetrics rearDisplayMetrics = null; in getRearDisplayMetrics() 249 rearDisplayMetrics = new DisplayMetrics(); in getRearDisplayMetrics() 274 return Objects.requireNonNullElseGet(mRearDisplayMetrics, DisplayMetrics::new); in getRearDisplayMetrics() 319 DisplayMetrics metrics = currentStatus == STATUS_UNSUPPORTED ? new DisplayMetrics() in addRearDisplayPresentationStatusListener() 576 @NonNull DisplayMetrics inOutMetrics) { in rotateRearDisplayMetricsIfNeeded()
|
/frameworks/layoutlib/bridge/src/android/view/ |
D | IWindowManagerImpl.java | 21 import android.util.DisplayMetrics; 30 private final DisplayMetrics mMetrics; 34 public IWindowManagerImpl(Configuration config, DisplayMetrics metrics, int rotation, in IWindowManagerImpl() 44 public DisplayMetrics getMetrics() { in getMetrics()
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/ |
D | BridgeContextTest.java | 37 import android.util.DisplayMetrics; 74 DisplayMetrics metrics = new DisplayMetrics(); in basic() 121 DisplayMetrics metrics = new DisplayMetrics(); in checkNoErrorWhenUsingDefaults() 154 DisplayMetrics metrics = new DisplayMetrics(); in noExceptionForCustomService() 175 DisplayMetrics metrics = new DisplayMetrics(); in dynamicTheming() 206 DisplayMetrics metrics = new DisplayMetrics(); in noCrashInPowerManager() 233 DisplayMetrics metrics = new DisplayMetrics(); in testTypedValue() 285 DisplayMetrics metrics = new DisplayMetrics(); in testWindowMetrics()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/ |
D | GlobalModule.java | 20 import android.util.DisplayMetrics; 70 public DisplayMetrics provideDisplayMetrics(Context context) { in provideDisplayMetrics() 71 DisplayMetrics displayMetrics = new DisplayMetrics(); in provideDisplayMetrics()
|
/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 48 public class DisplayMetrics { class 409 public DisplayMetrics() { in DisplayMetrics() method in DisplayMetrics 412 public void setTo(DisplayMetrics o) { in setTo() 454 return o instanceof DisplayMetrics && equals((DisplayMetrics)o); in equals() 463 public boolean equals(DisplayMetrics other) { in equals() 478 public boolean equalsPhysical(DisplayMetrics other) { in equalsPhysical()
|
D | TypedValue.java | 305 public static float complexToDimension(int data, DisplayMetrics metrics) in complexToDimension() 330 DisplayMetrics metrics) in complexToDimensionPixelOffset() 357 DisplayMetrics metrics) in complexToDimensionPixelSize() 376 public static float complexToDimensionNoisy(int data, DisplayMetrics metrics) in complexToDimensionNoisy() 422 DisplayMetrics metrics) in applyDimension() 465 @NonNull DisplayMetrics metrics) { in deriveDimension() 526 @NonNull DisplayMetrics metrics) { in convertPixelsToDimension() 547 @NonNull DisplayMetrics metrics) { in convertDimensionToPixels() 561 public float getDimension(DisplayMetrics metrics) in getDimension()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 31 import android.util.DisplayMetrics; 160 applicationDensity = (int) ((DisplayMetrics.DENSITY_DEVICE_STABLE in CompatibilityInfo() 206 applicationDensity = DisplayMetrics.DENSITY_DEVICE; in CompatibilityInfo() 297 applicationDensity = DisplayMetrics.DENSITY_DEVICE; in CompatibilityInfo() 303 applicationDensity = DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo() 304 applicationScale = DisplayMetrics.DENSITY_DEVICE in CompatibilityInfo() 305 / (float) DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo() 307 applicationDensityScale = DisplayMetrics.DENSITY_DEVICE in CompatibilityInfo() 308 / (float) DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo() 323 applicationDensityScale = (float) DisplayMetrics.DENSITY_DEVICE_STABLE / dens; in CompatibilityInfo() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | FloatingWindowUtil.java | 24 import android.util.DisplayMetrics; 38 public static float dpToPx(DisplayMetrics metrics, float dp) { in dpToPx() 39 return dp * metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in dpToPx()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 30 import android.util.DisplayMetrics; 61 private Map<Integer, DisplayMetrics> mDisplayMetricsMap; 70 DisplayMetrics defaultDisplayMetrics = new DisplayMetrics(); in setUp() 75 defaultDisplayMetrics.densityDpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 76 defaultDisplayMetrics.xdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 77 defaultDisplayMetrics.ydpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 82 defaultDisplayMetrics.noncompatXdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 83 defaultDisplayMetrics.noncompatYdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 88 DisplayMetrics secondaryDisplayMetrics = new DisplayMetrics(); in setUp() 109 protected DisplayMetrics getDisplayMetrics(int displayId, DisplayAdjustments daj) { in setUp() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/display/data/repository/ |
D | DisplayMetricsRepository.kt | 21 import android.util.DisplayMetrics 44 displayMetricsHolder: DisplayMetrics, 49 private val displayMetrics: StateFlow<DisplayMetrics> =
|
/frameworks/base/services/core/java/com/android/server/input/debug/ |
D | RotaryInputValueView.java | 25 import android.util.DisplayMetrics; 60 DisplayMetrics dm = mContext.getResources().getDisplayMetrics(); in RotaryInputValueView() 100 private static int applyDimensionSp(int dimensionSp, DisplayMetrics dm) { in applyDimensionSp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/display/data/repository/ |
D | DisplayMetricsRepositoryTest.kt | 20 import android.util.DisplayMetrics 46 DisplayMetrics().apply { this.heightPixels = INITIAL_HEIGHT_PIXELS } in <lambda>() 88 it.getArgument<DisplayMetrics>(0).heightPixels = newHeight in updateDisplayMetrics()
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/util/ |
D | Dimension.kt | 21 import android.util.DisplayMetrics 31 fun Number.dpToPx(displayMetrics: DisplayMetrics): Float =
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | BitmapUploadActivity.java | 28 import android.util.DisplayMetrics; 35 private final DisplayMetrics mMetrics = new DisplayMetrics();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | TunablePadding.java | 17 import android.util.DisplayMetrics; 47 DisplayMetrics metrics = new DisplayMetrics(); in TunablePadding()
|
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/backup/ |
D | LargeScreenSettings.java | 21 import android.util.DisplayMetrics; 50 float densityRatio = (float) densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/statusbar/phone/ |
D | EdgeToEdgeDialogDelegate.kt | 20 import android.util.DisplayMetrics 48 displayMetricsProvider: () -> DisplayMetrics in getWidth()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DialogDelegate.kt | 22 import android.util.DisplayMetrics 56 fun getBackAnimationSpec(displayMetricsProvider: () -> DisplayMetrics): BackAnimationSpec =
|