Home
last modified time | relevance | path

Searched refs:getDisplaySize (Results 1 – 5 of 5) sorted by relevance

/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DRendererCommonTest.java37 import static org.webrtc.RendererCommon.getDisplaySize;
44 assertEquals(new Point(0, 0), getDisplaySize(SCALE_ASPECT_FIT, 0.0f, 0, 0)); in testDisplaySizeNoFrame()
45 assertEquals(new Point(0, 0), getDisplaySize(SCALE_ASPECT_FILL, 0.0f, 0, 0)); in testDisplaySizeNoFrame()
46 assertEquals(new Point(0, 0), getDisplaySize(SCALE_ASPECT_BALANCED, 0.0f, 0, 0)); in testDisplaySizeNoFrame()
51 assertEquals(new Point(1280, 720), getDisplaySize(SCALE_ASPECT_FIT, 0.0f, 1280, 720)); in testDisplaySizeDegenerateAspectRatio()
52 assertEquals(new Point(1280, 720), getDisplaySize(SCALE_ASPECT_FILL, 0.0f, 1280, 720)); in testDisplaySizeDegenerateAspectRatio()
53 assertEquals(new Point(1280, 720), getDisplaySize(SCALE_ASPECT_BALANCED, 0.0f, 1280, 720)); in testDisplaySizeDegenerateAspectRatio()
58 assertEquals(new Point(0, 0), getDisplaySize(SCALE_ASPECT_FIT, 16.0f / 9, 0, 0)); in testZeroDisplaySize()
59 assertEquals(new Point(0, 0), getDisplaySize(SCALE_ASPECT_FILL, 16.0f / 9, 0, 0)); in testZeroDisplaySize()
60 assertEquals(new Point(0, 0), getDisplaySize(SCALE_ASPECT_BALANCED, 16.0f / 9, 0, 0)); in testZeroDisplaySize()
[all …]
DSurfaceViewRendererOnMeasureTest.java185 RendererCommon.getDisplaySize(scalingType, videoAspectRatio, 720, 1280); in testFrame1280x720()
197 RendererCommon.getDisplaySize(scalingType, videoAspectRatio, 720, 1280); in testFrame1280x720()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DRendererCommon.java206 public static Point getDisplaySize(ScalingType scalingType, float videoAspectRatio, in getDisplaySize() method in RendererCommon
208 return getDisplaySize(convertScalingTypeToVisibleFraction(scalingType), videoAspectRatio, in getDisplaySize()
247 private static Point getDisplaySize(float minVisibleFraction, float videoAspectRatio, in getDisplaySize() method in RendererCommon
DSurfaceViewRenderer.java327 RendererCommon.getDisplaySize(scalingType, frameAspectRatio(), maxWidth, maxHeight); in getDesiredLayoutSize()
DVideoRendererGui.java218 final Point displaySize = RendererCommon.getDisplaySize(scalingType, in updateLayoutMatrix()