/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | SignatureTest.java | 24 …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/ |
D | Signature.java | 41 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/ |
D | ResizeFilter.java | 30 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()
|
D | ScaleFilter.java | 23 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()
|
D | NewChromaHistogramFilter.java | 28 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()
|
D | RotateFilter.java | 26 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()
|
D | NormFilter.java | 25 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()
|
D | ThroughputFilter.java | 38 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()
|
D | BrightnessFilter.java | 26 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()
|
D | ToStringFilter.java | 24 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()
|
D | StatsFilter.java | 32 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()
|
D | CropFilter.java | 31 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()
|
D | BranchFilter.java | 25 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()
|
D | GraphInputSource.java | 9 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/ |
D | PackageSignatures.java | 25 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/ |
D | CSVWriterFilter.java | 32 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 …]
|
D | IfElseFilter.java | 27 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()
|
D | ExposureFilter.java | 27 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()
|
D | FloatArrayToSizeFilter.java | 26 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()
|
D | FloatArrayToStrFilter.java | 26 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()
|
D | AverageFilter.java | 26 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()
|
D | AvgBrightnessFilter.java | 27 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()
|
D | ContrastRatioFilter.java | 27 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()
|
D | ImageGoodnessFilter.java | 30 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/ |
D | ServiceWatcher.java | 29 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 …]
|