Home
last modified time | relevance | path

Searched refs:getDensityForResolution (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
H A DDensityMappingTest.java75 assertEquals(213, densityMapping.getDensityForResolution(720, 1280)); in testGetDensityForResolution_withResolutionMatch_returnsDensityFromConfig()
76 assertEquals(213, densityMapping.getDensityForResolution(1280, 720)); in testGetDensityForResolution_withResolutionMatch_returnsDensityFromConfig()
78 assertEquals(320, densityMapping.getDensityForResolution(1080, 1920)); in testGetDensityForResolution_withResolutionMatch_returnsDensityFromConfig()
79 assertEquals(320, densityMapping.getDensityForResolution(1920, 1080)); in testGetDensityForResolution_withResolutionMatch_returnsDensityFromConfig()
81 assertEquals(640, densityMapping.getDensityForResolution(2160, 3840)); in testGetDensityForResolution_withResolutionMatch_returnsDensityFromConfig()
82 assertEquals(640, densityMapping.getDensityForResolution(3840, 2160)); in testGetDensityForResolution_withResolutionMatch_returnsDensityFromConfig()
91 assertEquals(123, densityMapping.getDensityForResolution(100, 700)); in testGetDensityForResolution_withDiagonalMatch_returnsDensityFromConfig()
105 assertEquals(213, densityMapping.getDensityForResolution(720, 1280)); in testGetDensityForResolution_withOneEntry_withNoMatch_returnsExtrapolatedDensity()
106 assertEquals(213, densityMapping.getDensityForResolution(1280, 720)); in testGetDensityForResolution_withOneEntry_withNoMatch_returnsExtrapolatedDensity()
116 assertEquals(213, densityMapping.getDensityForResolution(720, 1280)); in testGetDensityForResolution_withTwoEntries_withNoMatch_returnExtrapolatedDensity()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DDensityMapping.java54 public int getDensityForResolution(int width, int height) { in getDensityForResolution() method in DensityMapping
H A DLocalDisplayAdapter.java493 return densityMapping.getDensityForResolution(mInfo.width, mInfo.height); in getLogicalDensity()
/aosp14/frameworks/base/services/
H A Dart-profile3285 HSPLcom/android/server/display/DensityMapping;->getDensityForResolution(II)I