/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...] |
/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...] |
cras_volume_curve.h | 16 * curve - A curve from cras_volume_curve_create_* functions. 22 long (*get_dBFS)(const struct cras_volume_curve *curve, size_t volume); 25 /* Creates a system-default volume curve. The default curve maps one volume step 27 * Returns null on error, or the new volume curve on success. 31 /* Creates a volume curve with a specified max volume and step. 40 /* Creates a volume curve with each step's dB value called out. 45 * A volume curve pointer that should be passed to 52 /* Destroys a curve created with cras_volume_curve_create_* [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/ |
ECNamedCurveParameterSpec.java | 9 * specification signifying that the curve parameters can also be 21 ECCurve curve, 25 super(curve, G, n); 32 ECCurve curve, 37 super(curve, G, n, h); 44 ECCurve curve, 50 super(curve, G, n, h, seed); 56 * return the name of the curve the EC domain parameters belong to.
|
ECNamedCurveSpec.java | 18 * specification signifying that the curve parameters can also be 27 ECCurve curve, 30 ECField field = convertField(curve.getField()); 31 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); 59 ECCurve curve, 63 super(convertCurve(curve, null), convertPoint(g), n, 1); 70 EllipticCurve curve, 74 super(curve, g, n, 1); 81 ECCurve curve, [all...] |
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...] |
ECKeySpec.java | 6 * base class for an Elliptic Curve Key Spec 20 * return the domain parameters for the curve
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
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()))
|
/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...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
ECNamedDomainParameters.java | 14 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n) 16 this(name, curve, G, n, null, null); 19 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h) 21 this(name, curve, G, n, h, null); 24 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed) 26 super(curve, G, n, h, seed);
|
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/skia/tools/ |
pathops_sorter.htm | 119 var curve = test[curves]; 120 var last = curve.length - (curve.length % 2 == 1 ? 1 : 0); 122 xmin = Math.min(xmin, curve[idx]); 123 xmax = Math.max(xmax, curve[idx]); 124 ymin = Math.min(ymin, curve[idx + 1]); 125 ymax = Math.max(ymax, curve[idx + 1]); 177 function dxy_at_t(curve, t) { 179 if (curve.length == 6) { 183 dxy.x = a * curve[0] + b * curve[2] + c * curve[4] [all...] |
/external/skqp/tools/ |
pathops_sorter.htm | 125 var curve = test[curves]; 126 var last = curve.length - (curve.length % 2 == 1 ? 1 : 0); 128 xmin = Math.min(xmin, curve[idx]); 129 xmax = Math.max(xmax, curve[idx]); 130 ymin = Math.min(ymin, curve[idx + 1]); 131 ymax = Math.max(ymax, curve[idx + 1]); 183 function dxy_at_t(curve, t) { 185 if (curve.length == 6) { 189 dxy.x = a * curve[0] + b * curve[2] + c * curve[4] [all...] |
/external/skia/src/pathops/ |
SkPathOpsRect.h | 50 void setBounds(const SkDConic& curve) { 51 setBounds(curve, curve, 0, 1); 54 void setBounds(const SkDConic& curve, const SkDConic& sub, double tStart, double tEnd); 56 void setBounds(const SkDCubic& curve) { 57 setBounds(curve, curve, 0, 1); 60 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, double tEnd); 62 void setBounds(const SkDQuad& curve) { 63 setBounds(curve, curve, 0, 1) [all...] |
/external/skqp/src/pathops/ |
SkPathOpsRect.h | 50 void setBounds(const SkDConic& curve) { 51 setBounds(curve, curve, 0, 1); 54 void setBounds(const SkDConic& curve, const SkDConic& sub, double tStart, double tEnd); 56 void setBounds(const SkDCubic& curve) { 57 setBounds(curve, curve, 0, 1); 60 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, double tEnd); 62 void setBounds(const SkDQuad& curve) { 63 setBounds(curve, curve, 0, 1) [all...] |
/external/pdfium/third_party/lcms/ |
0027-changes-from-beginning-of-time.patch | 21 @@ -749,14 +749,19 @@ void CMSEXPORT cmsFreeToneCurve(cmsToneCurve* Curve) 25 - if (Curve == NULL) return; 27 + // Curve->InterpParams may be null 28 + if (Curve == NULL || Curve->InterpParams == NULL) return; 30 ContextID = Curve ->InterpParams->ContextID; 32 _cmsFreeInterpParams(Curve ->InterpParams); 33 + Curve ->InterpParams = NULL; 35 - if (Curve -> Table16) 36 + if (Curve -> Table16) [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...] |
/frameworks/base/core/java/android/hardware/display/ |
Curve.java | 23 public final class Curve implements Parcelable { 27 public Curve(float[] x, float[] y) { 40 public static final Creator<Curve> CREATOR = new Creator<Curve>() { 41 public Curve createFromParcel(Parcel in) { 44 return new Curve(x, y); 47 public Curve[] newArray(int size) { 48 return new Curve[size];
|
/prebuilts/go/darwin-x86/src/crypto/x509/ |
sec1.go | 18 // ecPrivateKey reflects an ASN.1 Elliptic Curve Private Key Structure. 31 // ParseECPrivateKey parses an ASN.1 Elliptic Curve Private Key Structure. 38 oid, ok := oidFromNamedCurve(key.Curve) 40 return nil, errors.New("x509: unknown elliptic curve") 47 // sets the curve ID to the given OID, or omits it if OID is nil. 50 paddedPrivateKey := make([]byte, (key.Curve.Params().N.BitLen()+7)/8) 57 PublicKey: asn1.BitString{Bytes: elliptic.Marshal(key.Curve, key.X, key.Y)}, 61 // parseECPrivateKey parses an ASN.1 Elliptic Curve Private Key Structure. 62 // The OID for the named curve may be provided from another source (such as 74 var curve elliptic.Curv [all...] |
/prebuilts/go/linux-x86/src/crypto/x509/ |
sec1.go | 18 // ecPrivateKey reflects an ASN.1 Elliptic Curve Private Key Structure. 31 // ParseECPrivateKey parses an ASN.1 Elliptic Curve Private Key Structure. 38 oid, ok := oidFromNamedCurve(key.Curve) 40 return nil, errors.New("x509: unknown elliptic curve") 47 // sets the curve ID to the given OID, or omits it if OID is nil. 50 paddedPrivateKey := make([]byte, (key.Curve.Params().N.BitLen()+7)/8) 57 PublicKey: asn1.BitString{Bytes: elliptic.Marshal(key.Curve, key.X, key.Y)}, 61 // parseECPrivateKey parses an ASN.1 Elliptic Curve Private Key Structure. 62 // The OID for the named curve may be provided from another source (such as 74 var curve elliptic.Curv [all...] |
/prebuilts/go/darwin-x86/src/crypto/elliptic/ |
elliptic.go | 10 // (x, y) position on the curve, the Jacobian coordinates are (x1, y1, z1) 22 // A Curve represents a short-form Weierstrass curve with a=-3. 24 type Curve interface { 25 // Params returns the parameters for the curve. 27 // IsOnCurve reports whether the given (x,y) lies on the curve. 40 // CurveParams contains the parameters of an elliptic curve and also provides 41 // a generic, non-constant time implementation of Curve. 45 B *big.Int // the constant of the curve equation 48 Name string // the canonical name of the curve [all...] |
/prebuilts/go/linux-x86/src/crypto/elliptic/ |
elliptic.go | 10 // (x, y) position on the curve, the Jacobian coordinates are (x1, y1, z1) 22 // A Curve represents a short-form Weierstrass curve with a=-3. 24 type Curve interface { 25 // Params returns the parameters for the curve. 27 // IsOnCurve reports whether the given (x,y) lies on the curve. 40 // CurveParams contains the parameters of an elliptic curve and also provides 41 // a generic, non-constant time implementation of Curve. 45 B *big.Int // the constant of the curve equation 48 Name string // the canonical name of the curve [all...] |
/frameworks/base/core/tests/coretests/src/android/net/ |
ScoredNetworkTest.java | 37 private static final RssiCurve CURVE = 54 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, null /* attributes */); 56 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, null /* attributes */); 63 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, ATTRIBUTES); 65 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, null /* attributes */); 72 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, ATTRIBUTES); 76 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, attr); 83 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, ATTRIBUTES); 87 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, attr); 94 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, ATTRIBUTES) [all...] |
/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...] |
/external/boringssl/src/crypto/fipsmodule/ecdsa/ |
ecdsa_verify_tests.txt | 8 Curve = P-224 15 Curve = P-224 23 Curve = P-224 31 Curve = P-224 38 Curve = P-224 46 Curve = P-224 54 Curve = P-224 62 Curve = P-224 70 Curve = P-224 78 Curve = P-22 [all...] |