Home
last modified time | relevance | path

Searched refs:curve (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/net/src/android/net/cts/
DRssiCurveTest.java35 RssiCurve curve = new RssiCurve(-100, 200, new byte[] { 10 }); in lookupScore_constantCurve() local
36 assertThat(curve.lookupScore(-200)).isEqualTo(10); in lookupScore_constantCurve()
37 assertThat(curve.lookupScore(-100)).isEqualTo(10); in lookupScore_constantCurve()
38 assertThat(curve.lookupScore(0)).isEqualTo(10); in lookupScore_constantCurve()
39 assertThat(curve.lookupScore(100)).isEqualTo(10); in lookupScore_constantCurve()
40 assertThat(curve.lookupScore(200)).isEqualTo(10); in lookupScore_constantCurve()
46 RssiCurve curve = new RssiCurve(-100, 100, new byte[] { -10, 10 }); in lookupScore_changingCurve() local
47 assertThat(curve.lookupScore(-200)).isEqualTo(-10); in lookupScore_changingCurve()
48 assertThat(curve.lookupScore(-100)).isEqualTo(-10); in lookupScore_changingCurve()
49 assertThat(curve.lookupScore(-50)).isEqualTo(-10); in lookupScore_changingCurve()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DEcKeyGenPerformanceTest.java30 for (int curve : SUPPORTED_CURVES) { in testEcKeyGen()
33 new AndroidKeystoreEcKeyGenerator("EC", curve), curve), in testEcKeyGen()
35 new DefaultKeystoreEcKeyGenerator("EC", curve), curve)); in testEcKeyGen()
55 DefaultKeystoreEcKeyGenerator(String algorithm, int curve) throws Exception { in DefaultKeystoreEcKeyGenerator() argument
57 getKeyPairGenerator().initialize(curve); in DefaultKeystoreEcKeyGenerator()
DAttestationPerformanceTest.java49 for (int curve : EC_CURVES) { in testEcKeyAttestation()
51 new AndroidKeystoreEcKeyGenerator("SHA1withECDSA", curve, challenge), in testEcKeyAttestation()
52 curve, in testEcKeyAttestation()
DECCurves.java115 EllipticCurve curve = new EllipticCurve(field, a, b, seed); in createNistPCurveSpec() local
118 curve, in createNistPCurveSpec()
/cts/apps/CameraITS/tests/scene1/
Dtest_param_tonemap_mode.py91 curve = sum([[i/m, i/m] for i in range(size)], [])
95 "red": curve, "green": curve, "blue": curve}
/cts/tests/tests/display/src/android/display/cts/
DBrightnessTest.java251 Pair<float[], float[]> curve = defaultConfig.getCurve(); in testGetDefaultCurve() local
252 assertTrue(curve.first.length > 0); in testGetDefaultCurve()
253 assertEquals(curve.first.length, curve.second.length); in testGetDefaultCurve()
254 assertInRange(curve.first, 0, Float.MAX_VALUE); in testGetDefaultCurve()
255 assertInRange(curve.second, 0, Float.MAX_VALUE); in testGetDefaultCurve()
256 assertEquals(0.0, curve.first[0], 0.1); in testGetDefaultCurve()
257 assertMonotonic(curve.first, true /*strictly increasing*/, "lux"); in testGetDefaultCurve()
258 assertMonotonic(curve.second, false /*strictly increasing*/, "nits"); in testGetDefaultCurve()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rscript42 float4 toneMapCoeffs; // Coefficients for a polynomial tonemapping curve
67 // Apply gamma correction using sRGB gamma curve
81 // Apply polynomial tonemapping curve to each color channel in RGB pixel.
124 // Apply tonemapping curve to min, max RGB channel values
183 // a tonemapping curve, apply a colorspace transform to a final colorspace,
184 // and apply a gamma correction curve.
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java373 private static Object serializeTonemapCurve(TonemapCurve curve) in serializeTonemapCurve() argument
380 int len = curve.getPointCount(ch); in serializeTonemapCurve()
382 curveArr.put(curve.getPoint(ch, i).x); in serializeTonemapCurve()
383 curveArr.put(curve.getPoint(ch, i).y); in serializeTonemapCurve()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java217 private static Object serializeTonemapCurve(TonemapCurve curve) in serializeTonemapCurve() argument
223 int len = curve.getPointCount(ch); in serializeTonemapCurve()
225 curveArr.put(curve.getPoint(ch,i).x); in serializeTonemapCurve()
226 curveArr.put(curve.getPoint(ch,i).y); in serializeTonemapCurve()