Home
last modified time | relevance | path

Searched refs:Signature (Results 1 – 25 of 90) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/content/pm/
DSignatureTest.java24 …private static final Signature A = new Signature("308201D33082013CA0030201020219373565373461363A31…
26 …private static final Signature M = new Signature("308201D43082013CA0030201020219373565373461363A31…
28 …private static final Signature B = new Signature("308204a830820390a003020102020900a1573d0f45bea193…
31 assertTrue(Signature.areExactMatch(asArray(A), asArray(A))); in testExactlyEqual()
32 assertTrue(Signature.areExactMatch(asArray(M), asArray(M))); in testExactlyEqual()
34 assertFalse(Signature.areExactMatch(asArray(A), asArray(B))); in testExactlyEqual()
35 assertFalse(Signature.areExactMatch(asArray(A), asArray(M))); in testExactlyEqual()
36 assertFalse(Signature.areExactMatch(asArray(M), asArray(A))); in testExactlyEqual()
38 assertTrue(Signature.areExactMatch(asArray(A, M), asArray(M, A))); in testExactlyEqual()
42 assertTrue(Signature.areEffectiveMatch(asArray(A), asArray(A))); in testEffectiveMatch()
[all …]
/frameworks/base/core/java/android/content/pm/
DSignature.java41 public class Signature implements Parcelable { class
51 public Signature(byte[] signature) { in Signature() method in Signature
63 public Signature(Certificate[] certificateChain) throws CertificateEncodingException { in Signature() method in Signature
90 public Signature(String text) { in Signature() method in Signature
187 public Signature[] getChainSignatures() throws CertificateEncodingException { in getChainSignatures()
189 return new Signature[] { this }; in getChainSignatures()
192 Signature[] chain = new Signature[1 + mCertificateChain.length]; in getChainSignatures()
197 chain[i++] = new Signature(c.getEncoded()); in getChainSignatures()
207 Signature other = (Signature)obj; in equals()
233 public static final Parcelable.Creator<Signature> CREATOR
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DResizeFilter.java30 public Signature getSignature() { in getSignature()
33 return new Signature() in getSignature()
34 .addInputPort("image", Signature.PORT_REQUIRED, imageIn) in getSignature()
35 .addInputPort("outputWidth", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature()
36 .addInputPort("outputHeight", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature()
37 .addInputPort("useMipmaps", Signature.PORT_OPTIONAL, FrameType.single(boolean.class)) in getSignature()
38 .addOutputPort("image", Signature.PORT_REQUIRED, imageOut) in getSignature()
DScaleFilter.java23 import androidx.media.filterfw.Signature;
34 public Signature getSignature() { in getSignature()
37 return new Signature() in getSignature()
38 .addInputPort("image", Signature.PORT_REQUIRED, imageIn) in getSignature()
39 .addInputPort("scale", Signature.PORT_OPTIONAL, FrameType.single(float.class)) in getSignature()
40 .addInputPort("useMipmaps", Signature.PORT_OPTIONAL, FrameType.single(boolean.class)) in getSignature()
41 .addOutputPort("image", Signature.PORT_REQUIRED, imageOut) in getSignature()
DNewChromaHistogramFilter.java28 import androidx.media.filterfw.Signature;
54 public Signature getSignature() { in getSignature()
58 return new Signature() in getSignature()
59 .addInputPort("image", Signature.PORT_REQUIRED, imageIn) in getSignature()
60 .addInputPort("huebins", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature()
61 .addInputPort("saturationbins", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature()
62 .addInputPort("saturationthreshold", Signature.PORT_OPTIONAL, in getSignature()
64 .addInputPort("valuethreshold", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature()
65 .addOutputPort("histogram", Signature.PORT_REQUIRED, dataOut) in getSignature()
DRotateFilter.java26 import androidx.media.filterfw.Signature;
40 public Signature getSignature() { in getSignature()
43 return new Signature() in getSignature()
44 .addInputPort("image", Signature.PORT_REQUIRED, imageIn) in getSignature()
45 .addInputPort("rotateAngle", Signature.PORT_REQUIRED, FrameType.single(float.class)) in getSignature()
46 .addInputPort("sourceRect", Signature.PORT_OPTIONAL, FrameType.single(Quad.class)) in getSignature()
47 .addOutputPort("image", Signature.PORT_REQUIRED, imageOut) in getSignature()
DNormFilter.java25 import androidx.media.filterfw.Signature;
40 public Signature getSignature() { in getSignature()
42 return new Signature() in getSignature()
43 .addInputPort("x", Signature.PORT_REQUIRED, floatT) in getSignature()
44 .addInputPort("y", Signature.PORT_REQUIRED, floatT) in getSignature()
45 .addOutputPort("norm", Signature.PORT_REQUIRED, floatT) in getSignature()
DThroughputFilter.java38 public Signature getSignature() { in getSignature()
40 return new Signature() in getSignature()
41 .addInputPort("frame", Signature.PORT_REQUIRED, FrameType.any()) in getSignature()
42 .addOutputPort("throughput", Signature.PORT_REQUIRED, throughputType) in getSignature()
43 .addOutputPort("frame", Signature.PORT_REQUIRED, FrameType.any()) in getSignature()
44 .addInputPort("period", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature()
DBrightnessFilter.java26 import androidx.media.filterfw.Signature;
54 public Signature getSignature() { in getSignature()
57 return new Signature() in getSignature()
58 .addInputPort("image", Signature.PORT_REQUIRED, imageIn) in getSignature()
59 .addInputPort("brightness", Signature.PORT_OPTIONAL, FrameType.single(float.class)) in getSignature()
60 .addOutputPort("image", Signature.PORT_REQUIRED, imageOut) in getSignature()
DToStringFilter.java24 import androidx.media.filterfw.Signature;
33 public Signature getSignature() { in getSignature()
34 return new Signature() in getSignature()
35 .addInputPort("object", Signature.PORT_REQUIRED, FrameType.single()) in getSignature()
36 .addOutputPort("string", Signature.PORT_REQUIRED, FrameType.single(String.class)) in getSignature()
DStatsFilter.java32 import androidx.media.filterfw.Signature;
62 public Signature getSignature() { in getSignature()
65 return new Signature() in getSignature()
66 .addInputPort("buffer", Signature.PORT_REQUIRED, inputFrame) in getSignature()
67 .addInputPort("cropRect", Signature.PORT_OPTIONAL, FrameType.single(Quad.class)) in getSignature()
68 .addOutputPort("mean", Signature.PORT_REQUIRED, floatT) in getSignature()
69 .addOutputPort("stdev", Signature.PORT_REQUIRED, floatT) in getSignature()
DCropFilter.java31 import androidx.media.filterfw.Signature;
48 public Signature getSignature() { in getSignature()
51 return new Signature() in getSignature()
52 .addInputPort("image", Signature.PORT_REQUIRED, imageIn) in getSignature()
53 .addInputPort("cropRect", Signature.PORT_REQUIRED, FrameType.single(Quad.class)) in getSignature()
54 .addInputPort("outputWidth", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature()
55 .addInputPort("outputHeight", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature()
56 .addInputPort("useMipmaps", Signature.PORT_OPTIONAL, FrameType.single(boolean.class)) in getSignature()
57 .addOutputPort("image", Signature.PORT_REQUIRED, imageOut) in getSignature()
DBranchFilter.java25 import androidx.media.filterfw.Signature;
41 public Signature getSignature() { in getSignature()
42 return new Signature() in getSignature()
43 .addInputPort("input", Signature.PORT_REQUIRED, FrameType.any()) in getSignature()
44 .addInputPort("synchronized", Signature.PORT_OPTIONAL,FrameType.single(boolean.class)) in getSignature()
DGraphInputSource.java9 import androidx.media.filterfw.Signature;
20 public Signature getSignature() { in getSignature()
21 return new Signature() in getSignature()
22 .addOutputPort("frame", Signature.PORT_REQUIRED, FrameType.any()) in getSignature()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSignatures.java25 import android.content.pm.Signature;
32 Signature[] mSignatures;
40 PackageSignatures(Signature[] sigs) { in PackageSignatures()
48 ArrayList<Signature> pastSignatures) throws IOException { in writeXml()
57 final Signature sig = mSignatures[i]; in writeXml()
62 Signature pastSig = pastSignatures.get(j); in writeXml()
78 void readXml(XmlPullParser parser, ArrayList<Signature> pastSignatures) in readXml()
88 mSignatures = new Signature[count]; in readXml()
111 Signature sig = pastSignatures.get(idx); in readXml()
131 Signature sig = new Signature(key); in readXml()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DCSVWriterFilter.java32 import androidx.media.filterfw.Signature;
49 public Signature getSignature() { in getSignature()
54 return new Signature() in getSignature()
55 .addInputPort("sharpness", Signature.PORT_REQUIRED, floatT) in getSignature()
56 .addInputPort("overExposure", Signature.PORT_REQUIRED, floatT) in getSignature()
57 .addInputPort("underExposure", Signature.PORT_REQUIRED, floatT) in getSignature()
58 .addInputPort("colorfulness", Signature.PORT_REQUIRED, floatT) in getSignature()
59 .addInputPort("contrastRating", Signature.PORT_REQUIRED, floatT) in getSignature()
60 .addInputPort("brightness", Signature.PORT_REQUIRED, floatT) in getSignature()
61 .addInputPort("motionValues", Signature.PORT_REQUIRED, floatArrayT) in getSignature()
[all …]
DIfElseFilter.java27 import androidx.media.filterfw.Signature;
40 public Signature getSignature() { in getSignature()
45 return new Signature().addInputPort("falseResult", Signature.PORT_REQUIRED, imageIn) in getSignature()
46 .addInputPort("trueResult", Signature.PORT_REQUIRED, videoIn) in getSignature()
47 .addInputPort("condition", Signature.PORT_REQUIRED, FrameType.single(boolean.class)) in getSignature()
48 .addOutputPort("output", Signature.PORT_REQUIRED, imageOut) in getSignature()
DExposureFilter.java27 import androidx.media.filterfw.Signature;
43 public Signature getSignature() { in getSignature()
46 return new Signature().addInputPort("image", Signature.PORT_REQUIRED, imageIn) in getSignature()
47 .addOutputPort("overExposedNum", Signature.PORT_OPTIONAL, floatT) in getSignature()
48 .addOutputPort("overExposureRating", Signature.PORT_REQUIRED, floatT) in getSignature()
49 .addOutputPort("underExposedNum", Signature.PORT_OPTIONAL, floatT) in getSignature()
50 .addOutputPort("underExposureRating", Signature.PORT_REQUIRED, floatT) in getSignature()
DFloatArrayToSizeFilter.java26 import androidx.media.filterfw.Signature;
43 public Signature getSignature() { in getSignature()
47 return new Signature() in getSignature()
48 .addInputPort("array", Signature.PORT_REQUIRED, floatType) in getSignature()
49 .addOutputPort("size", Signature.PORT_REQUIRED, intT) in getSignature()
DFloatArrayToStrFilter.java26 import androidx.media.filterfw.Signature;
45 public Signature getSignature() { in getSignature()
48 return new Signature() in getSignature()
49 .addInputPort("array", Signature.PORT_REQUIRED, floatType) in getSignature()
50 .addOutputPort("string", Signature.PORT_REQUIRED, FrameType.single(String.class)) in getSignature()
DAverageFilter.java26 import androidx.media.filterfw.Signature;
46 public Signature getSignature() { in getSignature()
48 return new Signature() in getSignature()
49 .addInputPort("sharpness", Signature.PORT_REQUIRED, floatT) in getSignature()
50 .addOutputPort("avg", Signature.PORT_REQUIRED, floatT) in getSignature()
DAvgBrightnessFilter.java27 import androidx.media.filterfw.Signature;
41 public Signature getSignature() { in getSignature()
44 return new Signature().addInputPort("image", Signature.PORT_REQUIRED, imageIn) in getSignature()
45 .addOutputPort("brightnessRating", Signature.PORT_OPTIONAL, floatT) in getSignature()
DContrastRatioFilter.java27 import androidx.media.filterfw.Signature;
41 public Signature getSignature() { in getSignature()
44 return new Signature().addInputPort("image", Signature.PORT_REQUIRED, imageIn) in getSignature()
45 .addOutputPort("contrastRatingToGoodness", Signature.PORT_REQUIRED, floatT) in getSignature()
DImageGoodnessFilter.java30 import androidx.media.filterfw.Signature;
72 public Signature getSignature() { in getSignature()
76 return new Signature() in getSignature()
77 .addInputPort("sharpness", Signature.PORT_REQUIRED, floatT) in getSignature()
78 .addInputPort("overExposure", Signature.PORT_REQUIRED, floatT) in getSignature()
79 .addInputPort("underExposure", Signature.PORT_REQUIRED, floatT) in getSignature()
80 .addInputPort("colorfulness", Signature.PORT_REQUIRED, floatT) in getSignature()
81 .addInputPort("contrastRating", Signature.PORT_REQUIRED, floatT) in getSignature()
82 .addInputPort("motionValues", Signature.PORT_REQUIRED, FrameType.array(float.class)) in getSignature()
83 .addInputPort("brightness", Signature.PORT_REQUIRED, floatT) in getSignature()
[all …]
/frameworks/base/services/core/java/com/android/server/
DServiceWatcher.java29 import android.content.pm.Signature;
55 private final List<HashSet<Signature>> mSignatureSets;
79 public static ArrayList<HashSet<Signature>> getSignatureSets(Context context, in getSignatureSets()
82 ArrayList<HashSet<Signature>> sigSets = new ArrayList<HashSet<Signature>>(); in getSignatureSets()
86 HashSet<Signature> set = new HashSet<Signature>(); in getSignatureSets()
87 Signature[] sigs = pm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES).signatures; in getSignatureSets()
248 public static boolean isSignatureMatch(Signature[] signatures, in isSignatureMatch()
249 List<HashSet<Signature>> sigSets) { in isSignatureMatch()
253 HashSet<Signature> inputSet = new HashSet<Signature>(); in isSignatureMatch()
254 for (Signature s : signatures) { in isSignatureMatch()
[all …]

1234