HomeSort by relevance Sort by last modified time
    Searched defs:curve (Results 1 - 25 of 148) sorted by null

1 2 3 4 5 6

  /external/adhd/cras/src/tests/
volume_curve_unittest.cc 15 struct cras_volume_curve *curve; local
16 curve = cras_volume_curve_create_default();
17 ASSERT_NE(static_cast<struct cras_volume_curve *>(NULL), curve); local
18 EXPECT_EQ(0 - 50 * 50, curve->get_dBFS(curve, 50));
19 EXPECT_EQ(0, curve->get_dBFS(curve, 100));
20 EXPECT_EQ(0 - 100 * 50, curve->get_dBFS(curve, 0));
21 EXPECT_EQ(0 - 25 * 50, curve->get_dBFS(curve, 75))
26 struct cras_volume_curve *curve; local
28 ASSERT_NE(static_cast<struct cras_volume_curve *>(NULL), curve); local
37 struct cras_volume_curve *curve; local
43 ASSERT_NE(static_cast<struct cras_volume_curve *>(NULL), curve); local
    [all...]
card_config_unittest.cc 66 // Test an empty config file, should return a null volume curve.
71 struct cras_volume_curve* curve; local
78 curve = cras_card_config_get_volume_curve_for_control(config, "asdf");
80 EXPECT_EQ(static_cast<struct cras_volume_curve*>(NULL), curve); local
85 // Getting a curve from a null config should always return null volume curve.
87 struct cras_volume_curve* curve; local
89 curve = cras_card_config_get_volume_curve_for_control(NULL, "asdf");
91 EXPECT_EQ(static_cast<struct cras_volume_curve*>(NULL), curve); local
94 // Test getting a curve from a simple_step configuration
103 struct cras_volume_curve* curve; local
113 EXPECT_EQ(static_cast<struct cras_volume_curve*>(NULL), curve); local
234 struct cras_volume_curve* curve; local
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
WTauNafMultiplier.java 31 ECCurve.AbstractF2m curve = (ECCurve.AbstractF2m)p.getCurve(); local
32 int m = curve.getFieldSize();
33 byte a = curve.getA().toBigInteger().byteValue();
35 BigInteger[] s = curve.getSi();
39 return multiplyWTnaf(p, rho, curve.getPreCompInfo(p, PRECOMP_NAME), a, mu);
76 ECCurve.AbstractF2m curve = (ECCurve.AbstractF2m)p.getCurve(); local
77 byte a = curve.getA().toBigInteger().byteValue();
86 curve.setPreCompInfo(p, PRECOMP_NAME, pre);
GLVMultiplier.java 9 protected final ECCurve curve; field in class:GLVMultiplier
12 public GLVMultiplier(ECCurve curve, GLVEndomorphism glvEndomorphism)
14 if (curve == null || curve.getOrder() == null)
16 throw new IllegalArgumentException("Need curve with known group order");
19 this.curve = curve;
25 if (!curve.equals(p.getCurve()))
  /cts/tests/tests/keystore/src/android/keystore/cts/
ECCurves.java 29 // NIST EC curve parameters copied from "Standards for Efficient Cryptography 2 (SEC 2)".
115 EllipticCurve curve = new EllipticCurve(field, a, b, seed); local
118 curve,
  /external/adhd/cras/src/server/
cras_volume_curve.c 13 /* Simple curve with configurable max volume and volume step. */
15 struct cras_volume_curve curve; member in struct:stepped_curve
20 static long get_dBFS_step(const struct cras_volume_curve *curve, size_t volume)
22 const struct stepped_curve *c = (const struct stepped_curve *)curve;
26 /* Curve that has each step explicitly called out by value. */
28 struct cras_volume_curve curve; member in struct:explicit_curve
32 static long get_dBFS_explicit(const struct cras_volume_curve *curve,
35 const struct explicit_curve *c = (const struct explicit_curve *)curve;
56 struct stepped_curve *curve; local
57 curve = (struct stepped_curve *)calloc(1, sizeof(*curve))
69 struct explicit_curve *curve; local
    [all...]
  /external/conscrypt/common/src/main/java/org/conscrypt/
ECParameters.java 36 private OpenSSLECGroupContext curve; field in class:ECParameters
45 throw new InvalidParameterSpecException("Unknown EC curve name: " + newCurveName);
47 this.curve = newCurve;
53 throw new InvalidParameterSpecException("Unknown EC curve: " + ecParamSpec);
55 this.curve = newCurve;
71 this.curve = new OpenSSLECGroupContext(new NativeRef.EC_GROUP(ref));
88 return (T) curve.getECParameterSpec();
90 return (T) new ECGenParameterSpec(Platform.getCurveName(curve.getECParameterSpec()));
98 return NativeCrypto.EC_KEY_marshal_curve_name(curve.getNativeRef());
  /external/skia/tests/
PathOpsBoundsTest.cpp 65 SkDCurve curve; local
66 curve.fQuad.set(curvePts);
67 curve.setQuadBounds(curvePts, 1, 0, 1, &bounds);
70 curve.fCubic.set(curvePts);
71 curve.setCubicBounds(curvePts, 1, 0, 1, &bounds);
PathOpsThreeWayTest.cpp 14 struct Curve {
16 CubicPts curve; // largest can hold lines / quads/ cubics member in struct:Curve
19 static const Curve testSet0[] = { // extracted from skpClip2
25 static const Curve testSet1[] = { // extracted from cubicOp85i
33 const Curve* tests;
48 const Curve& oTest = testSet.tests[outer];
50 const Curve& iTest = testSet.tests[inner];
53 SkDLine oLine = {{ oTest.curve.fPts[0], oTest.curve.fPts[1] }};
54 SkDLine iLine = {{ iTest.curve.fPts[0], iTest.curve.fPts[1] }}
    [all...]
  /external/skqp/tests/
PathOpsBoundsTest.cpp 65 SkDCurve curve; local
66 curve.fQuad.set(curvePts);
67 curve.setQuadBounds(curvePts, 1, 0, 1, &bounds);
70 curve.fCubic.set(curvePts);
71 curve.setCubicBounds(curvePts, 1, 0, 1, &bounds);
PathOpsThreeWayTest.cpp 14 struct Curve {
16 CubicPts curve; // largest can hold lines / quads/ cubics member in struct:Curve
19 static const Curve testSet0[] = { // extracted from skpClip2
25 static const Curve testSet1[] = { // extracted from cubicOp85i
33 const Curve* tests;
48 const Curve& oTest = testSet.tests[outer];
50 const Curve& iTest = testSet.tests[inner];
53 SkDLine oLine = {{ oTest.curve.fPts[0], oTest.curve.fPts[1] }};
54 SkDLine iLine = {{ iTest.curve.fPts[0], iTest.curve.fPts[1] }}
    [all...]
  /libcore/ojluni/src/main/java/java/security/spec/
ECParameterSpec.java 32 * used with elliptic curve cryptography (ECC).
42 private final EllipticCurve curve; field in class:ECParameterSpec
48 * Creates elliptic curve domain parameters based on the
50 * @param curve the elliptic curve which this parameter
55 * @exception NullPointerException if {@code curve},
60 public ECParameterSpec(EllipticCurve curve, ECPoint g,
62 if (curve == null) {
63 throw new NullPointerException("curve is null");
77 this.curve = curve
    [all...]
EllipticCurve.java 33 * an elliptic curve.
70 * Creates an elliptic curve with the specified elliptic field
73 * @param field the finite field that this elliptic curve is over.
74 * @param a the first coefficient of this elliptic curve.
75 * @param b the second coefficient of this elliptic curve.
87 * Creates an elliptic curve with the specified elliptic field
89 * {@code b}, and the {@code seed} used for curve generation.
90 * @param field the finite field that this elliptic curve is over.
91 * @param a the first coefficient of this elliptic curve.
92 * @param b the second coefficient of this elliptic curve
173 EllipticCurve curve = (EllipticCurve) obj; local
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
ECDomainParameters.java 13 private ECCurve curve; field in class:ECDomainParameters
20 ECCurve curve,
24 this(curve, G, n, ONE, null);
28 ECCurve curve,
33 this(curve, G, n, h, null);
37 ECCurve curve,
43 this.curve = curve;
52 return curve;
87 return this.curve.equals(other.curve) && this.G.equals(other.G) && this.n.equals(other.n) && this.h.equals(other.h)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
ECUtils.java 82 ECCurve curve = EC5Util.convertCurve(ecSpec.getCurve()); local
85 curve,
86 EC5Util.convertPoint(curve, ecSpec.getGenerator(), withCompression),
AlgorithmParametersSpi.java 42 throw new InvalidParameterSpecException("EC curve name not recognized: " + ecGenParameterSpec.getName());
80 ECCurve curve = EC5Util.getCurve(BouncyCastleProvider.CONFIGURATION, params); local
93 ecParameterSpec = EC5Util.convertToSpec(params, curve);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/
ECParameterSpec.java 10 * basic domain parameters for an Elliptic Curve public or private key.
15 private ECCurve curve; field in class:ECParameterSpec
22 ECCurve curve,
26 this.curve = curve;
34 ECCurve curve,
39 this.curve = curve;
47 ECCurve curve,
53 this.curve = curve
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/endo/
GLVTypeBEndomorphism.java 12 protected final ECCurve curve; field in class:GLVTypeBEndomorphism
16 public GLVTypeBEndomorphism(ECCurve curve, GLVTypeBParameters parameters)
18 this.curve = curve;
20 this.pointMap = new ScaleXPointMap(curve.fromBigInteger(parameters.getBeta()));
  /libcore/luni/src/test/java/tests/security/spec/
ECParameterSpecTest.java 29 EllipticCurve curve; field in class:ECParameterSpecTest
37 curve = new EllipticCurve(new ECFieldF2m(2), BigInteger.valueOf(1),
40 ecps = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1);
44 curve = null;
54 * case 2: NullPointerException - if curve is null
64 assertEquals("wrong elliptic curve", curve, ecps.getCurve());
70 // case 2: NullPointerException - if curve is null.
80 new ECParameterSpec(curve, null, BigInteger.valueOf(1), 1);
88 new ECParameterSpec(curve, ecpoint, null, 1)
    [all...]
ECPrivateKeySpecTest.java 41 EllipticCurve curve = new EllipticCurve(new ECFieldF2m(2), BigInteger local
45 ecparams = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1);
ECPublicKeySpecTest.java 39 EllipticCurve curve = new EllipticCurve(new ECFieldF2m(2), BigInteger local
43 params = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
X9Curve.java 18 * ASN.1 def for Elliptic-Curve Curve structure. See
25 private ECCurve curve; field in class:X9Curve
30 ECCurve curve)
32 this.curve = curve;
38 ECCurve curve,
41 this.curve = curve;
58 curve = new ECCurve.Fp(p, x9A.getValue().toBigInteger(), x9B.getValue().toBigInteger())
    [all...]
X9ECParameters.java 18 * ASN.1 def for Elliptic-Curve ECParameters structure. See
28 private ECCurve curve; field in class:X9ECParameters
47 this.curve = x9c.getCurve();
56 this.g = new X9ECPoint(curve, (ASN1OctetString)p);
84 ECCurve curve,
88 this(curve, g, n, null, null);
92 ECCurve curve,
97 this(curve, g, n, h, null);
101 ECCurve curve,
106 this(curve, g, n, h, null)
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterHighlights.java 63 float[][] curve = mSpline.calculatetCurve(256); local
64 float[] luminanceMap = new float[curve.length];
66 luminanceMap[i] = curve[i][1];
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ec/
CustomNamedCurves.java 57 private static ECCurve configureCurve(ECCurve curve)
59 return curve;
77 ECCurve curve = configureCurve(new Curve25519());
88 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
92 return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S);
104 ECCurve curve = configureCurve(new SecP128R1Curve());
105 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
108 return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S)
656 Object curve = oidToCurve.get(oid); local
    [all...]

Completed in 1798 milliseconds

1 2 3 4 5 6