Home
last modified time | relevance | path

Searched refs:xDpi (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayDeviceTest.java77 mDisplayDeviceInfo.xDpi = 0.5f; in testGetDisplaySurfaceDefaultSizeLocked_notRotated_anisotropyCorrection()
88 mDisplayDeviceInfo.xDpi = 0.5f; in testGetDisplaySurfaceDefaultSizeLocked_notRotated_noAnisotropyCorrection()
113 mDisplayDeviceInfo.xDpi = 0.5f; in testGetDisplaySurfaceDefaultSizeLocked_rotation90_anisotropyCorrection()
125 mDisplayDeviceInfo.xDpi = 0.5f; in testGetDisplaySurfaceDefaultSizeLocked_rotation90_noAnisotropyCorrection()
DLogicalDisplayTest.java119 mDisplayDeviceInfo.xDpi = 0.5f; in testLetterbox()
164 mDisplayDeviceInfo.xDpi = 0.5f; in testNoLetterbox_noAnisotropyCorrectionForInternalDisplay()
193 mDisplayDeviceInfo.xDpi = 0.5f; in testNoLetterbox_anisotropyCorrection()
222 mDisplayDeviceInfo.xDpi = 1.0f; in testLetterbox_anisotropyCorrectionYDpi()
236 mDisplayDeviceInfo.xDpi = 0.5f; in testPillarbox()
285 mDisplayDeviceInfo.xDpi = 0.5f; in testPillarbox_anisotropyCorrection()
309 mDisplayDeviceInfo.xDpi = 1.0f; in testNoPillarbox_anisotropyCorrectionYDpi()
DLocalDisplayAdapterTest.java1294 assertEquals(expectedXdpi, info.xDpi, 0.01); in assertDisplayDpi()
1434 mode.xDpi = 100; in createFakeDisplayMode()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDevice.java166 && displayDeviceInfo.yDpi > 0 && displayDeviceInfo.xDpi > 0) { in getDisplaySurfaceDefaultSizeLocked()
167 if (displayDeviceInfo.xDpi > displayDeviceInfo.yDpi * MAX_ANISOTROPY) { in getDisplaySurfaceDefaultSizeLocked()
168 height = (int) (height * displayDeviceInfo.xDpi / displayDeviceInfo.yDpi + 0.5); in getDisplaySurfaceDefaultSizeLocked()
169 } else if (displayDeviceInfo.xDpi * MAX_ANISOTROPY < displayDeviceInfo.yDpi) { in getDisplaySurfaceDefaultSizeLocked()
170 width = (int) (width * displayDeviceInfo.yDpi / displayDeviceInfo.xDpi + 0.5); in getDisplaySurfaceDefaultSizeLocked()
DDisplayDeviceInfo.java343 public float xDpi; field in DisplayDeviceInfo
468 xDpi = densityDpi; in setAssumedDensityForExternalDisplay()
522 || xDpi != other.xDpi in diff()
566 xDpi = other.xDpi; in copyFrom()
609 sb.append(", ").append(xDpi).append(" x ").append(yDpi).append(" dpi"); in toString()
DLogicalDisplay.java489 && deviceInfo.xDpi > 0 && deviceInfo.yDpi > 0) { in updateLocked()
490 if (deviceInfo.xDpi > deviceInfo.yDpi * DisplayDevice.MAX_ANISOTROPY) { in updateLocked()
491 maskedHeight = (int) (maskedHeight * deviceInfo.xDpi / deviceInfo.yDpi + 0.5); in updateLocked()
492 } else if (deviceInfo.xDpi * DisplayDevice.MAX_ANISOTROPY < deviceInfo.yDpi) { in updateLocked()
493 maskedWidth = (int) (maskedWidth * deviceInfo.yDpi / deviceInfo.xDpi + 0.5); in updateLocked()
525 mBaseDisplayInfo.physicalXDpi = deviceInfo.xDpi; in updateLocked()
722 && displayDeviceInfo.xDpi > 0 && displayDeviceInfo.yDpi > 0) { in configureDisplayLocked()
723 if (displayDeviceInfo.xDpi > displayDeviceInfo.yDpi * DisplayDevice.MAX_ANISOTROPY) { in configureDisplayLocked()
724 var scalingFactor = displayDeviceInfo.yDpi / displayDeviceInfo.xDpi; in configureDisplayLocked()
731 } else if (displayDeviceInfo.xDpi * DisplayDevice.MAX_ANISOTROPY in configureDisplayLocked()
[all …]
DOverlayDisplayAdapter.java350 mInfo.xDpi = rawMode.mDensityDpi; in getDisplayDeviceInfoLocked()
DVirtualDisplayAdapter.java473 mInfo.xDpi = mDensityDpi; in getDisplayDeviceInfoLocked()
DLocalDisplayAdapter.java697 mInfo.xDpi = mActiveSfDisplayMode.xDpi; in getDisplayDeviceInfoLocked()
/frameworks/native/libs/gui/aidl/android/gui/
DDisplayMode.aidl28 float xDpi = 0.0f;
/frameworks/native/libs/ui/include_vndk/ui/
DDisplayMode.h36 float xDpi = 0; member
/frameworks/native/libs/ui/include/ui/
DDisplayMode.h36 float xDpi = 0; member
/frameworks/base/libs/hwui/tests/common/
DTestContext.cpp49 config.xDpi = config.yDpi = 320.f; in getActiveDisplayMode()
/frameworks/base/core/java/android/view/
DSurfaceControl.java1811 public float xDpi; field in SurfaceControl.DisplayMode
1837 + ", xDpi=" + xDpi in toString()
1855 && Float.compare(that.xDpi, xDpi) == 0 in equals()
1867 return Objects.hash(id, width, height, xDpi, yDpi, peakRefreshRate, vsyncRate, in hashCode()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp127 jfieldID xDpi; member
1307 env->SetFloatField(object, gDisplayModeClassInfo.xDpi, config.xDpi); in convertDisplayModeToJavaObject()
2544 gDisplayModeClassInfo.xDpi = GetFieldIDOrDie(env, modeClazz, "xDpi", "F"); in register_android_view_SurfaceControl()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp1167 auto [xDpi, yDpi] = mode->getDpi(); in getDynamicDisplayInfoInternal()
1172 std::swap(xDpi, yDpi); in getDynamicDisplayInfoInternal()
1177 outMode.xDpi = xDpi; in getDynamicDisplayInfoInternal()
6938 std::string peakFps, xDpi, yDpi; in dumpAll() local
6943 xDpi = base::StringPrintf("%.2f", dpi.x); in dumpAll()
6947 xDpi = "unknown"; in dumpAll()
6954 peakFps.c_str(), xDpi.c_str(), yDpi.c_str()); in dumpAll()
9845 outMode.xDpi = mode.xDpi; in getDynamicDisplayInfoInternal()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp2614 outMode.xDpi = mode.xDpi; in getDynamicDisplayInfoInternal()