/external/adhd/cras/src/tests/ |
D | volume_curve_unittest.cc | 15 struct cras_volume_curve *curve; in TEST() local 16 curve = cras_volume_curve_create_default(); in TEST() 17 ASSERT_NE(static_cast<struct cras_volume_curve *>(NULL), curve); in TEST() 18 EXPECT_EQ(0 - 50 * 50, curve->get_dBFS(curve, 50)); in TEST() 19 EXPECT_EQ(0, curve->get_dBFS(curve, 100)); in TEST() 20 EXPECT_EQ(0 - 100 * 50, curve->get_dBFS(curve, 0)); in TEST() 21 EXPECT_EQ(0 - 25 * 50, curve->get_dBFS(curve, 75)); in TEST() 22 cras_volume_curve_destroy(curve); in TEST() 26 struct cras_volume_curve *curve; in TEST() local 27 curve = cras_volume_curve_create_simple_step(-600, 75); in TEST() [all …]
|
D | card_config_unittest.cc | 71 struct cras_volume_curve* curve; in TEST_F() local 78 curve = cras_card_config_get_volume_curve_for_control(config, "asdf"); in TEST_F() 80 EXPECT_EQ(static_cast<struct cras_volume_curve*>(NULL), curve); in TEST_F() 87 struct cras_volume_curve* curve; in TEST_F() local 89 curve = cras_card_config_get_volume_curve_for_control(NULL, "asdf"); in TEST_F() 91 EXPECT_EQ(static_cast<struct cras_volume_curve*>(NULL), curve); in TEST_F() 103 struct cras_volume_curve* curve; in TEST_F() local 111 curve = cras_card_config_get_volume_curve_for_control(NULL, "asdf"); in TEST_F() 113 EXPECT_EQ(static_cast<struct cras_volume_curve*>(NULL), curve); in TEST_F() 116 curve = cras_card_config_get_volume_curve_for_control(config, "Card1"); in TEST_F() [all …]
|
/external/adhd/cras/src/server/ |
D | cras_volume_curve.c | 15 struct cras_volume_curve curve; member 20 static long get_dBFS_step(const struct cras_volume_curve *curve, size_t volume) in get_dBFS_step() argument 22 const struct stepped_curve *c = (const struct stepped_curve *)curve; in get_dBFS_step() 28 struct cras_volume_curve curve; member 32 static long get_dBFS_explicit(const struct cras_volume_curve *curve, in get_dBFS_explicit() argument 35 const struct explicit_curve *c = (const struct explicit_curve *)curve; in get_dBFS_explicit() 56 struct stepped_curve *curve; in cras_volume_curve_create_simple_step() local 57 curve = (struct stepped_curve *)calloc(1, sizeof(*curve)); in cras_volume_curve_create_simple_step() 58 if (curve == NULL) in cras_volume_curve_create_simple_step() 60 curve->curve.get_dBFS = get_dBFS_step; in cras_volume_curve_create_simple_step() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ec/ |
D | CustomNamedCurves.java | 60 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument 62 return curve; in configureCurve() 197 ECCurve curve = configureCurveGLV(new SecP192K1Curve(), glv); 198 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04" 201 return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S); 213 ECCurve curve = configureCurve(new SecP192R1Curve()); 214 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04" 217 return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S); 241 ECCurve curve = configureCurveGLV(new SecP224K1Curve(), glv); 242 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04" [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/ec/ |
D | CustomNamedCurves.java | 64 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument 66 return curve; in configureCurve() 201 ECCurve curve = configureCurveGLV(new SecP192K1Curve(), glv); 202 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04" 205 return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S); 217 ECCurve curve = configureCurve(new SecP192R1Curve()); 218 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04" 221 return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S); 245 ECCurve curve = configureCurveGLV(new SecP224K1Curve(), glv); 246 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04" [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/ |
D | SECNamedCurves.java | 20 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument 22 return curve; in configureCurve() 51 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h)); 54 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04" 58 return new X9ECParameters(curve, G, n, h, S); 77 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h)); 80 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04" 84 return new X9ECParameters(curve, G, n, h, S); 103 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h)); 106 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04" [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/sec/ |
D | SECNamedCurves.java | 24 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument 26 return curve; in configureCurve() 55 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h)); 58 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04" 62 return new X9ECParameters(curve, G, n, h, S); 81 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h)); 84 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04" 88 return new X9ECParameters(curve, G, n, h, S); 107 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h)); 110 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04" [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/ |
D | X9ECParameters.java | 29 private ECCurve curve; field in X9ECParameters 55 this.curve = x9c.getCurve(); in X9ECParameters() 64 this.g = new X9ECPoint(curve, (ASN1OctetString)p); in X9ECParameters() 86 ECCurve curve, in X9ECParameters() argument 90 this(curve, g, n, null, null); in X9ECParameters() 94 ECCurve curve, in X9ECParameters() argument 99 this(curve, g, n, h, null); in X9ECParameters() 103 ECCurve curve, in X9ECParameters() argument 108 this(curve, g, n, h, null); in X9ECParameters() 112 ECCurve curve, in X9ECParameters() argument [all …]
|
D | X9Curve.java | 26 private ECCurve curve; field in X9Curve 31 ECCurve curve) in X9Curve() argument 33 this(curve, null); in X9Curve() 37 ECCurve curve, in X9Curve() argument 40 this.curve = curve; in X9Curve() 57 curve = new ECCurve.Fp(p, A, B, order, cofactor); in X9Curve() 91 curve = new ECCurve.F2m(m, k1, k2, k3, A, B, order, cofactor); in X9Curve() 106 if (ECAlgorithms.isFpCurve(curve)) in setFieldIdentifier() 110 else if (ECAlgorithms.isF2mCurve(curve)) in setFieldIdentifier() 122 return curve; in getCurve() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
D | ECPoint.java | 13 protected static ECFieldElement[] getInitialZCoords(ECCurve curve) in getInitialZCoords() argument 16 int coord = null == curve ? ECCurve.COORD_AFFINE : curve.getCoordinateSystem(); in getInitialZCoords() 27 ECFieldElement one = curve.fromBigInteger(ECConstants.ONE); in getInitialZCoords() 38 return new ECFieldElement[]{ one, curve.getA() }; in getInitialZCoords() 44 protected ECCurve curve; field in ECPoint 54 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) in ECPoint() argument 56 this(curve, x, y, getInitialZCoords(curve)); in ECPoint() 59 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) in ECPoint() argument 61 this.curve = curve; in ECPoint() 71 if (ECConstants.ONE.equals(curve.getCofactor())) in satisfiesOrder() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/ |
D | ECPoint.java | 15 protected static ECFieldElement[] getInitialZCoords(ECCurve curve) in getInitialZCoords() argument 18 int coord = null == curve ? ECCurve.COORD_AFFINE : curve.getCoordinateSystem(); in getInitialZCoords() 29 ECFieldElement one = curve.fromBigInteger(ECConstants.ONE); in getInitialZCoords() 40 return new ECFieldElement[]{ one, curve.getA() }; in getInitialZCoords() 46 protected ECCurve curve; field in ECPoint 56 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) in ECPoint() argument 58 this(curve, x, y, getInitialZCoords(curve)); in ECPoint() 61 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) in ECPoint() argument 63 this.curve = curve; in ECPoint() 73 if (ECConstants.ONE.equals(curve.getCofactor())) in satisfiesOrder() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x9/ |
D | X9ECParameters.java | 31 private ECCurve curve; field in X9ECParameters 57 this.curve = x9c.getCurve(); in X9ECParameters() 66 this.g = new X9ECPoint(curve, (ASN1OctetString)p); in X9ECParameters() 88 ECCurve curve, in X9ECParameters() argument 92 this(curve, g, n, null, null); in X9ECParameters() 96 ECCurve curve, in X9ECParameters() argument 101 this(curve, g, n, h, null); in X9ECParameters() 105 ECCurve curve, in X9ECParameters() argument 110 this(curve, g, n, h, null); in X9ECParameters() 114 ECCurve curve, in X9ECParameters() argument [all …]
|
D | X9Curve.java | 28 private ECCurve curve; field in X9Curve 33 ECCurve curve) in X9Curve() argument 35 this(curve, null); in X9Curve() 39 ECCurve curve, in X9Curve() argument 42 this.curve = curve; in X9Curve() 59 curve = new ECCurve.Fp(p, A, B, order, cofactor); in X9Curve() 93 curve = new ECCurve.F2m(m, k1, k2, k3, A, B, order, cofactor); in X9Curve() 108 if (ECAlgorithms.isFpCurve(curve)) in setFieldIdentifier() 112 else if (ECAlgorithms.isF2mCurve(curve)) in setFieldIdentifier() 124 return curve; in getCurve() [all …]
|
/external/skia/src/pathops/ |
D | SkPathOpsRect.h | 52 void setBounds(const SkDConic& curve) { in setBounds() 53 setBounds(curve, curve, 0, 1); in setBounds() 56 void setBounds(const SkDConic& curve, const SkDConic& sub, double tStart, double tEnd); 58 void setBounds(const SkDCubic& curve) { in setBounds() 59 setBounds(curve, curve, 0, 1); in setBounds() 62 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, double tEnd); 64 void setBounds(const SkDQuad& curve) { in setBounds() 65 setBounds(curve, curve, 0, 1); in setBounds() 68 void setBounds(const SkDQuad& curve, const SkDQuad& sub, double tStart, double tEnd); 70 void setBounds(const SkTCurve& curve);
|
D | SkOpEdgeBuilder.cpp | 29 static bool can_add_curve(SkPath::Verb verb, SkPoint* curve) { in can_add_curve() argument 34 force_small_to_zero(&curve[index]); in can_add_curve() 36 return SkPath::kLine_Verb != verb || !SkDPoint::ApproximatelyEqual(curve[0], curve[1]); in can_add_curve() 86 SkPoint curve[4]; in preFetch() local 95 closeContour(curve[0], curveStart); in preFetch() 100 curveStart = curve[0] = pts[0]; in preFetch() 105 if (SkDPoint::ApproximatelyEqual(curve[0], pts[1])) { in preFetch() 108 fPathPts.top() = curve[0] = pts[1]; in preFetch() 116 curve[1] = pts[1]; in preFetch() 117 curve[2] = pts[2]; in preFetch() [all …]
|
/external/skqp/src/pathops/ |
D | SkPathOpsRect.h | 52 void setBounds(const SkDConic& curve) { in setBounds() 53 setBounds(curve, curve, 0, 1); in setBounds() 56 void setBounds(const SkDConic& curve, const SkDConic& sub, double tStart, double tEnd); 58 void setBounds(const SkDCubic& curve) { in setBounds() 59 setBounds(curve, curve, 0, 1); in setBounds() 62 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, double tEnd); 64 void setBounds(const SkDQuad& curve) { in setBounds() 65 setBounds(curve, curve, 0, 1); in setBounds() 68 void setBounds(const SkDQuad& curve, const SkDQuad& sub, double tStart, double tEnd); 70 void setBounds(const SkTCurve& curve);
|
D | SkOpEdgeBuilder.cpp | 29 static bool can_add_curve(SkPath::Verb verb, SkPoint* curve) { in can_add_curve() argument 34 force_small_to_zero(&curve[index]); in can_add_curve() 36 return SkPath::kLine_Verb != verb || !SkDPoint::ApproximatelyEqual(curve[0], curve[1]); in can_add_curve() 86 SkPoint curve[4]; in preFetch() local 95 closeContour(curve[0], curveStart); in preFetch() 100 curveStart = curve[0] = pts[0]; in preFetch() 105 if (SkDPoint::ApproximatelyEqual(curve[0], pts[1])) { in preFetch() 108 fPathPts.top() = curve[0] = pts[1]; in preFetch() 116 curve[1] = pts[1]; in preFetch() 117 curve[2] = pts[2]; in preFetch() [all …]
|
/external/boringssl/src/third_party/wycheproof_testvectors/ |
D | x25519_test.txt | 7 [curve = curve25519] 11 curve = curve25519 19 curve = curve25519 30 curve = curve25519 42 curve = curve25519 54 curve = curve25519 66 curve = curve25519 78 curve = curve25519 90 curve = curve25519 100 curve = curve25519 [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
D | ECDomainParameters.java | 14 private ECCurve curve; field in ECDomainParameters 22 ECCurve curve, in ECDomainParameters() argument 26 this(curve, G, n, ONE, null); in ECDomainParameters() 30 ECCurve curve, in ECDomainParameters() argument 35 this(curve, G, n, h, null); in ECDomainParameters() 39 ECCurve curve, in ECDomainParameters() argument 45 if (curve == null) in ECDomainParameters() 55 this.curve = curve; in ECDomainParameters() 56 this.G = validate(curve, G); in ECDomainParameters() 64 return curve; in getCurve() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/ |
D | ECDomainParameters.java | 18 private ECCurve curve; field in ECDomainParameters 26 ECCurve curve, in ECDomainParameters() argument 30 this(curve, G, n, ONE, null); in ECDomainParameters() 34 ECCurve curve, in ECDomainParameters() argument 39 this(curve, G, n, h, null); in ECDomainParameters() 43 ECCurve curve, in ECDomainParameters() argument 49 if (curve == null) in ECDomainParameters() 59 this.curve = curve; in ECDomainParameters() 60 this.G = validate(curve, G); in ECDomainParameters() 68 return curve; in getCurve() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/ |
D | ECNamedCurveSpec.java | 28 ECCurve curve, in convertCurve() argument 31 ECField field = convertField(curve.getField()); in convertCurve() 32 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); in convertCurve() 53 ECCurve curve, in ECNamedCurveSpec() argument 57 super(convertCurve(curve, null), EC5Util.convertPoint(g), n, 1); in ECNamedCurveSpec() 64 EllipticCurve curve, in ECNamedCurveSpec() argument 68 super(curve, g, n, 1); in ECNamedCurveSpec() 75 ECCurve curve, in ECNamedCurveSpec() argument 80 super(convertCurve(curve, null), EC5Util.convertPoint(g), n, h.intValue()); in ECNamedCurveSpec() 87 EllipticCurve curve, in ECNamedCurveSpec() argument [all …]
|
D | ECParameterSpec.java | 15 private ECCurve curve; field in ECParameterSpec 22 ECCurve curve, in ECParameterSpec() argument 26 this.curve = curve; in ECParameterSpec() 34 ECCurve curve, in ECParameterSpec() argument 39 this.curve = curve; in ECParameterSpec() 47 ECCurve curve, in ECParameterSpec() argument 53 this.curve = curve; in ECParameterSpec() 66 return curve; in getCurve()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/spec/ |
D | ECParameterSpec.java | 17 private ECCurve curve; field in ECParameterSpec 24 ECCurve curve, in ECParameterSpec() argument 28 this.curve = curve; in ECParameterSpec() 36 ECCurve curve, in ECParameterSpec() argument 41 this.curve = curve; in ECParameterSpec() 49 ECCurve curve, in ECParameterSpec() argument 55 this.curve = curve; in ECParameterSpec() 68 return curve; in getCurve()
|
D | ECNamedCurveSpec.java | 30 ECCurve curve, in convertCurve() argument 33 ECField field = convertField(curve.getField()); in convertCurve() 34 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); in convertCurve() 55 ECCurve curve, in ECNamedCurveSpec() argument 59 super(convertCurve(curve, null), EC5Util.convertPoint(g), n, 1); in ECNamedCurveSpec() 66 EllipticCurve curve, in ECNamedCurveSpec() argument 70 super(curve, g, n, 1); in ECNamedCurveSpec() 77 ECCurve curve, in ECNamedCurveSpec() argument 82 super(convertCurve(curve, null), EC5Util.convertPoint(g), n, h.intValue()); in ECNamedCurveSpec() 89 EllipticCurve curve, in ECNamedCurveSpec() argument [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | EC5Util.java | 70 ECCurve curve; in getCurve() local 86 curve = ecP.getCurve(); in getCurve() 95 curve = configuration.getEcImplicitlyCa().getCurve(); in getCurve() 101 curve = ecP.getCurve(); in getCurve() 108 return curve; in getCurve() 132 X962Parameters params, ECCurve curve) in convertToSpec() argument 150 ellipticCurve = EC5Util.convertCurve(curve, ecP.getSeed()); in convertToSpec() 167 ellipticCurve = EC5Util.convertCurve(curve, ecP.getSeed()); in convertToSpec() 211 ECCurve curve, in convertCurve() argument 214 ECField field = convertField(curve.getField()); in convertCurve() [all …]
|