Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DEnvReverbTest.java142 short ratio = mReverb.getDecayHFRatio(); in test1_1Decay() local
143 ratio = (short)((ratio == 500) ? 1000 : 500); in test1_1Decay()
144 mReverb.setDecayHFRatio(ratio); in test1_1Decay()
147 ((float)ratio2 > (float)(ratio / RATIO_TOLERANCE)) && in test1_1Decay()
148 ((float)ratio2 < (float)(ratio * RATIO_TOLERANCE))); in test1_1Decay()
249 short ratio = mReverb.getDiffusion(); in test1_4DiffusionAndDensity() local
250 ratio = (short)((ratio == 500) ? 1000 : 500); in test1_4DiffusionAndDensity()
251 mReverb.setDiffusion(ratio); in test1_4DiffusionAndDensity()
254 ((float)ratio2 > (float)(ratio / RATIO_TOLERANCE)) && in test1_4DiffusionAndDensity()
255 ((float)ratio2 < (float)(ratio * RATIO_TOLERANCE))); in test1_4DiffusionAndDensity()
[all …]
DDynamicsProcessingTest.java988 final float ratio = index * 1.2f; in test2_7Mbc() local
1001 mbcBand.setRatio(ratio); in test2_7Mbc()
1020 ratio, mbc.getBand(i).getRatio(), EPSILON); in test2_7Mbc()
1035 MbcBand mbcBand2 = new MbcBand(enabled, frequency, attackTime, releaseTime, ratio, in test2_7Mbc()
1046 ratio, mbcBand2.getRatio(), EPSILON); in test2_7Mbc()
1073 final float ratio = 1.2f; in test2_8Limiter() local
1077 Limiter limiter = new Limiter(inUse, enabled, linkGroup, attackTime, releaseTime, ratio, in test2_8Limiter()
1089 ratio, limiter.getRatio(), EPSILON); in test2_8Limiter()
1100 final float newRatio = ratio + 2f; in test2_8Limiter()
DAudioRecordTest.java1598 final double ratio = (double)timeDiff / timeByFrames; in verifyContinuousTimestamps() local
1605 .that(ratio) in verifyContinuousTimestamps()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/
DAlphaTestView.java76 private int blendColor(int color1, int color2, float ratio) { in blendColor() argument
77 float inverseRatio = 1 - ratio; in blendColor()
78 float a = (float) Color.alpha(color1) * inverseRatio + (float) Color.alpha(color2) * ratio; in blendColor()
79 float r = (float) Color.red(color1) * inverseRatio + (float) Color.red(color2) * ratio; in blendColor()
80 float g = (float) Color.green(color1) * inverseRatio + (float) Color.green(color2) * ratio; in blendColor()
81 float b = (float) Color.blue(color1) * inverseRatio + (float) Color.blue(color2) * ratio; in blendColor()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/
DCubeRenderer.java97 float ratio = (float) width / height; in onSurfaceChanged() local
100 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/
DGLRotationGuideRenderer.java81 float ratio = (float) width / height; in onSurfaceChanged() local
82 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 15); in onSurfaceChanged()
DGLArrowSensorTestRenderer.java107 float ratio = (float) w / h; in onSurfaceChanged() local
110 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
/cts/tests/tests/mediaediting/
DREADME.md10 …io | Test transform aspects ratio of input videos and validate the output resolution according to …
59 Test transform aspects ratio of input videos and validate the output resolution according to the re…
/cts/tests/openglperf2/jni/primitive/fullpipeline/
DFullPipelineRenderer.cpp134 float ratio = (float) mWidth / mHeight; in setUp() local
135 float left = -ratio; in setUp()
136 float right = ratio; in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/
DBaseRenderer.java129 final float ratio = (float) width / height; in onSurfaceChanged() local
130 float left = -ratio; in onSurfaceChanged()
131 float right = ratio; in onSurfaceChanged()
148 bottom = -ratio; in onSurfaceChanged()
149 top = ratio; in onSurfaceChanged()
/cts/tests/openglperf2/jni/reference/scene/glowing/
DGlowingScene.cpp103 float ratio = width / height; in setUpProjectionMatrix() local
104 float left = -ratio; in setUpProjectionMatrix()
105 float right = ratio; in setUpProjectionMatrix()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DTextureTestRenderer.java138 float ratio = (float) width / height; in onSurfaceChanged() local
141 gl.glFrustumf(-2 * ratio, 2 * ratio, -2, 2, 3, 7); in onSurfaceChanged()
DPlanetsRenderer.java262 float ratio = (float) width / height; in onSurfaceChanged() local
263 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DEventBasicVerification.java152 double ratio = Math.min(Math.abs(worstBatchUs - minBatchUs), in getDefault() local
154 expectedMinUs = (long)((ratio + 1) / 2 * testDurationUs) * 4 / 5; in getDefault()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvTrackInfoSubject.java96 public void hasVideoPixelAspectRatio(float ratio) { in hasVideoPixelAspectRatio() argument
98 ratio); in hasVideoPixelAspectRatio()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DSurfaceViewTests.java879 float ratio = -1f;
884 ratio = incomingRatio;
888 } while (Math.abs(ratio - incomingRatio) > 0.01
893 return ratio;
932 float ratio = getStableHdrSdrRatio(display);
936 Assume.assumeTrue(ratio > 1.02f);
937 float newRatio = 1.f + (ratio - 1.f) / 2;
979 float ratio = getStableHdrSdrRatio(display);
983 Assume.assumeTrue(ratio > 1.02f);
984 float newRatio = 1.f + (ratio - 1.f) / 2;
/cts/tests/tests/transition/src/android/transition/cts/
DArcMotionTest.java113 float ratio = (float) Math.tan(Math.PI / 8); in testMaximumAngle() local
114 float ex = 50 + (50 * ratio); in testMaximumAngle()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java416 private boolean aspectWithinTolerance(double ratio, double targetRatio) { in aspectWithinTolerance() argument
417 return Math.abs(ratio - targetRatio) <= ASPECT_TOLERANCE; in aspectWithinTolerance()
440 double ratio = (double) size.width / size.height; in getOptimalSize() local
441 if (!aspectWithinTolerance(ratio, targetRatio)) { in getOptimalSize()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DSplashscreenTests.java353 private void markDebugPixel(int pixel, Bitmap result, int x, int y, int color, float ratio) { in markDebugPixel() argument
354 int debugPixel = ColorUtils.blendARGB(pixel, color, ratio); in markDebugPixel()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodServiceTest.java1507 @NonNull Rect initial, @NonNull Rect resized, double ratio,
1510 final int expected = (int) (getSize.apply(initial) * ratio);
1520 .append(ratio)
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DASurfaceControlTest.java2410 float ratio = -1f; in getStableHdrSdrRatio() local
2415 ratio = incomingRatio; in getStableHdrSdrRatio()
2419 } while (Math.abs(ratio - incomingRatio) > 0.01 in getStableHdrSdrRatio()
2424 return ratio; in getStableHdrSdrRatio()
DSurfaceControlTest.java1994 float ratio = -1f; in getStableHdrSdrRatio() local
1999 ratio = incomingRatio; in getStableHdrSdrRatio()
2003 } while (Math.abs(ratio - incomingRatio) > 0.01 in getStableHdrSdrRatio()
2008 return ratio; in getStableHdrSdrRatio()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureRequestTest.java3218 for (Double ratio : aspectRatioList) {
3219 if (Math.abs(ratio - aspectRatio) < delta) {
3295 for (float ratio : zoomRatios) {
3297 requestBuilder.set(CaptureRequest.CONTROL_ZOOM_RATIO, ratio);
3303 float zoomRatioDelta = ZOOM_RATIO_ERROR_PERCENT_DELTA * ratio;
3306 ratio, listener, NUM_FRAMES_VERIFIED, zoomRatioDelta);
DPerformanceTest.java1009 double ratio = startRatio + (endRatio - startRatio) * i / NUM_ZOOM_STEPS; in getZoomRatiosToTest() local
1010 zoomRatios.add(roundAwayFrom1(ratio)); in getZoomRatiosToTest()
/cts/tests/mediapc/requirements/
Drequirements.txtpb833 …ng, decoding, GPU-editing and displaying video content in portrait aspect ratio regardless of the …
1588 description: "- Minimum zoom ratio for ultrawide cameras"
1781 … preview with maximum-size 16:9 aspect ratio JPEG, and for 720p HLG10 preview with maximum-size 16…

12