Home
last modified time | relevance | path

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

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayDeviceTest.java78 mDisplayDeviceInfo.yDpi = 1.0f; in testGetDisplaySurfaceDefaultSizeLocked_notRotated_anisotropyCorrection()
89 mDisplayDeviceInfo.yDpi = 1.0f; in testGetDisplaySurfaceDefaultSizeLocked_notRotated_noAnisotropyCorrection()
114 mDisplayDeviceInfo.yDpi = 1.0f; in testGetDisplaySurfaceDefaultSizeLocked_rotation90_anisotropyCorrection()
126 mDisplayDeviceInfo.yDpi = 1.0f; in testGetDisplaySurfaceDefaultSizeLocked_rotation90_noAnisotropyCorrection()
DLogicalDisplayTest.java120 mDisplayDeviceInfo.yDpi = 1.0f; in testLetterbox()
165 mDisplayDeviceInfo.yDpi = 1.0f; in testNoLetterbox_noAnisotropyCorrectionForInternalDisplay()
194 mDisplayDeviceInfo.yDpi = 1.0f; in testNoLetterbox_anisotropyCorrection()
223 mDisplayDeviceInfo.yDpi = 0.5f; in testLetterbox_anisotropyCorrectionYDpi()
237 mDisplayDeviceInfo.yDpi = 1.0f; in testPillarbox()
286 mDisplayDeviceInfo.yDpi = 1.0f; in testPillarbox_anisotropyCorrection()
310 mDisplayDeviceInfo.yDpi = 0.5f; in testNoPillarbox_anisotropyCorrectionYDpi()
DLocalDisplayAdapterTest.java1295 assertEquals(expectedYDpi, info.yDpi, 0.01); in assertDisplayDpi()
1435 mode.yDpi = 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.java349 public float yDpi; field in DisplayDeviceInfo
469 yDpi = densityDpi; in setAssumedDensityForExternalDisplay()
523 || yDpi != other.yDpi in diff()
567 yDpi = other.yDpi; 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()
526 mBaseDisplayInfo.physicalYDpi = deviceInfo.yDpi; 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()
732 < displayDeviceInfo.yDpi) { in configureDisplayLocked()
[all …]
DOverlayDisplayAdapter.java351 mInfo.yDpi = rawMode.mDensityDpi; in getDisplayDeviceInfoLocked()
DVirtualDisplayAdapter.java474 mInfo.yDpi = mDensityDpi; in getDisplayDeviceInfoLocked()
DLocalDisplayAdapter.java698 mInfo.yDpi = mActiveSfDisplayMode.yDpi; in getDisplayDeviceInfoLocked()
/frameworks/native/libs/gui/aidl/android/gui/
DDisplayMode.aidl29 float yDpi = 0.0f;
/frameworks/native/libs/ui/include_vndk/ui/
DDisplayMode.h37 float yDpi = 0; member
/frameworks/native/libs/ui/include/ui/
DDisplayMode.h37 float yDpi = 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.java1812 public float yDpi; field in SurfaceControl.DisplayMode
1838 + ", yDpi=" + yDpi in toString()
1856 && Float.compare(that.yDpi, yDpi) == 0 in equals()
1867 return Objects.hash(id, width, height, xDpi, yDpi, peakRefreshRate, vsyncRate, in hashCode()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp128 jfieldID yDpi; member
1308 env->SetFloatField(object, gDisplayModeClassInfo.yDpi, config.yDpi); in convertDisplayModeToJavaObject()
2545 gDisplayModeClassInfo.yDpi = GetFieldIDOrDie(env, modeClazz, "yDpi", "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()
1178 outMode.yDpi = yDpi; in getDynamicDisplayInfoInternal()
6938 std::string peakFps, xDpi, yDpi; in dumpAll() local
6944 yDpi = base::StringPrintf("%.2f", dpi.y); in dumpAll()
6948 yDpi = "unknown"; in dumpAll()
6954 peakFps.c_str(), xDpi.c_str(), yDpi.c_str()); in dumpAll()
9846 outMode.yDpi = mode.yDpi; in getDynamicDisplayInfoInternal()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp2615 outMode.yDpi = mode.yDpi; in getDynamicDisplayInfoInternal()