Home
last modified time | relevance | path

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

/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/
DSurfaceViewRendererOnMeasureTest.java69 RendererCommon.ScalingType scalingType, String frameDimensions, int expectedWidth, in assertMeasuredSize() argument
71 surfaceViewRenderer.setScalingType(scalingType); in assertMeasuredSize()
78 + " with scaling type " + scalingType + " and frame: " + frameDimensions in assertMeasuredSize()
96 for (RendererCommon.ScalingType scalingType : scalingTypes) { in testNoFrame()
99 assertMeasuredSize(surfaceViewRenderer, scalingType, frameDimensions, 0, 0, zeroMeasureSize, in testNoFrame()
101 assertMeasuredSize(surfaceViewRenderer, scalingType, frameDimensions, 1280, 720, in testNoFrame()
109 for (RendererCommon.ScalingType scalingType : scalingTypes) { in testNoFrame()
112 assertMeasuredSize(surfaceViewRenderer, scalingType, frameDimensions, 0, 0, zeroMeasureSize, in testNoFrame()
114 assertMeasuredSize(surfaceViewRenderer, scalingType, frameDimensions, 1280, 720, in testNoFrame()
183 for (RendererCommon.ScalingType scalingType : scalingTypes) { in testFrame1280x720()
[all …]
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DCallFragment.java36 private ScalingType scalingType; field in CallFragment
45 void onVideoScalingSwitch(ScalingType scalingType); in onVideoScalingSwitch() argument
82 if (scalingType == ScalingType.SCALE_ASPECT_FILL) { in onCreateView()
84 scalingType = ScalingType.SCALE_ASPECT_FIT; in onCreateView()
87 scalingType = ScalingType.SCALE_ASPECT_FILL; in onCreateView()
89 callEvents.onVideoScalingSwitch(scalingType); in onCreateView()
92 scalingType = ScalingType.SCALE_ASPECT_FILL; in onCreateView()
DCallActivity.java531 public void onVideoScalingSwitch(ScalingType scalingType) {
532 fullscreenRenderer.setScalingType(scalingType);
/external/webrtc/sdk/android/api/org/webrtc/
DRendererCommon.java72 public void setScalingType(ScalingType scalingType) { in setScalingType() argument
73 setScalingType(/* scalingTypeMatchOrientation= */ scalingType, in setScalingType()
74 /* scalingTypeMismatchOrientation= */ scalingType); in setScalingType()
206 ScalingType scalingType, float videoAspectRatio, int maxDisplayWidth, int maxDisplayHeight) { in getDisplaySize() argument
207 return getDisplaySize(convertScalingTypeToVisibleFraction(scalingType), videoAspectRatio, in getDisplaySize()
229 private static float convertScalingTypeToVisibleFraction(ScalingType scalingType) { in convertScalingTypeToVisibleFraction() argument
230 switch (scalingType) { in convertScalingTypeToVisibleFraction()
DSurfaceViewRenderer.java151 public void setScalingType(RendererCommon.ScalingType scalingType) { in setScalingType() argument
153 videoLayoutMeasure.setScalingType(scalingType); in setScalingType()