Home
last modified time | relevance | path

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

12345678910

/frameworks/base/core/tests/coretests/src/android/content/pm/
DSignatureTest.java27 …private static final Signature A = new Signature("308201D33082013CA0030201020219373565373461363A31…
29 …private static final Signature M = new Signature("308201D43082013CA0030201020219373565373461363A31…
31 …private static final Signature B = new Signature("308204a830820390a003020102020900a1573d0f45bea193…
34 assertTrue(Signature.areExactMatch(asArray(A), asArray(A))); in testExactlyEqual()
35 assertTrue(Signature.areExactMatch(asArray(M), asArray(M))); in testExactlyEqual()
37 assertFalse(Signature.areExactMatch(asArray(A), asArray(B))); in testExactlyEqual()
38 assertFalse(Signature.areExactMatch(asArray(A), asArray(M))); in testExactlyEqual()
39 assertFalse(Signature.areExactMatch(asArray(M), asArray(A))); in testExactlyEqual()
41 assertTrue(Signature.areExactMatch(asArray(A, M), asArray(M, A))); in testExactlyEqual()
45 assertTrue(Signature.areEffectiveMatch(asArray(A), asArray(A))); in testEffectiveMatch()
[all …]
/frameworks/base/core/java/android/content/pm/
DSignature.java42 public class Signature implements Parcelable { class
66 public Signature(byte[] signature) { in Signature() method in Signature
78 public Signature(Certificate[] certificateChain) throws CertificateEncodingException { in Signature() method in Signature
105 public Signature(String text) { in Signature() method in Signature
219 public Signature[] getChainSignatures() throws CertificateEncodingException { in getChainSignatures()
221 return new Signature[] { this }; in getChainSignatures()
224 Signature[] chain = new Signature[1 + mCertificateChain.length]; in getChainSignatures()
229 chain[i++] = new Signature(c.getEncoded()); in getChainSignatures()
239 Signature other = (Signature)obj; in equals()
265 public static final @android.annotation.NonNull Parcelable.Creator<Signature> CREATOR
[all …]
/frameworks/native/libs/gui/
DIGraphicBufferConsumer.cpp69 using Signature = decltype(&IGraphicBufferConsumer::acquireBuffer); in acquireBuffer() typedef
70 return callRemote<Signature>(Tag::ACQUIRE_BUFFER, buffer, presentWhen, maxFrameNumber); in acquireBuffer()
74 using Signature = decltype(&IGraphicBufferConsumer::detachBuffer); in detachBuffer() typedef
75 return callRemote<Signature>(Tag::DETACH_BUFFER, slot); in detachBuffer()
79 using Signature = decltype(&IGraphicBufferConsumer::attachBuffer); in attachBuffer() typedef
80 return callRemote<Signature>(Tag::ATTACH_BUFFER, slot, buffer); in attachBuffer()
91 using Signature = decltype(&IGraphicBufferConsumer::consumerConnect); in consumerConnect() typedef
92 return callRemote<Signature>(Tag::CONSUMER_CONNECT, consumer, controlledByApp); in consumerConnect()
101 using Signature = decltype(&IGraphicBufferConsumer::getReleasedBuffers); in getReleasedBuffers() typedef
102 return callRemote<Signature>(Tag::GET_RELEASED_BUFFERS, slotMask); in getReleasedBuffers()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DAppBackupUtilsTest.java30 import android.content.pm.Signature;
52 private static final Signature SIGNATURE_1 = generateSignature((byte) 1);
53 private static final Signature SIGNATURE_2 = generateSignature((byte) 2);
54 private static final Signature SIGNATURE_3 = generateSignature((byte) 3);
55 private static final Signature SIGNATURE_4 = generateSignature((byte) 4);
410 boolean result = AppBackupUtils.signaturesMatch(new Signature[] {SIGNATURE_1}, null, in signaturesMatch_targetIsNull_returnsFalse()
423 boolean result = AppBackupUtils.signaturesMatch(new Signature[0], packageInfo, in signaturesMatch_systemApplication_returnsTrue()
436 new Signature[] {SIGNATURE_1}, in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse()
455 new Signature[] {SIGNATURE_1}, in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse()
461 boolean result = AppBackupUtils.signaturesMatch(new Signature[0], packageInfo, in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse()
[all …]
DTarBackupReaderTest.java43 import android.content.pm.Signature;
83 private static final Signature FAKE_SIGNATURE_1 = new Signature("1234");
84 private static final Signature FAKE_SIGNATURE_2 = new Signature("5678");
148 Signature[] signatures = tarBackupReader.readAppManifestAndReturnSignatures( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
186 Signature[] signatures = tarBackupReader.readAppManifestAndReturnSignatures(fileMetadata); in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
207 Signature[] signatures = tarBackupReader.readAppManifestAndReturnSignatures(fileMetadata); in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest()
249 true /* allowApks */, info, new Signature[0] /* signatures */, in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndHasApk_returnsAcceptIfApk()
274 true /* allowApks */, info, new Signature[0] /* signatures */, in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndDoesNotHaveApk_returnsAcceptIfApkLogsCannotRestore()
300 false /* allowApks */, new FileMetadata(), new Signature[0] /* signatures */, in chooseRestorePolicy_packageDoesNotExistAndDoesNotAllowApks_returnsIgnore()
325 false /* allowApks */, new FileMetadata(), new Signature[0] /* signatures */, in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore()
[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()
/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()
/frameworks/base/core/java/android/util/apk/
DApkSignatureVerifier.java29 import android.content.pm.Signature;
82 Signature[] signerSigs = convertToSignatures(signerCerts); in verify()
83 Signature[] pastSignerSigs = null; in verify()
86 pastSignerSigs = new Signature[vSigner.por.certs.size()]; in verify()
88 pastSignerSigs[i] = new Signature(vSigner.por.certs.get(i).getEncoded()); in verify()
122 Signature[] signerSigs = convertToSignatures(signerCerts); in verify()
167 final Signature[] lastSigs; in verifyV1Signature()
218 final Signature[] entrySigs = convertToSignatures(entryCerts); in verifyV1Signature()
219 if (!Signature.areExactMatch(lastSigs, entrySigs)) { in verifyV1Signature()
279 public static Signature[] convertToSignatures(Certificate[][] certs) in convertToSignatures()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
DBackupUtilsTest.java29 import android.content.pm.Signature;
51 private static final Signature SIGNATURE_1 = generateSignature((byte) 1);
52 private static final Signature SIGNATURE_2 = generateSignature((byte) 2);
53 private static final Signature SIGNATURE_3 = generateSignature((byte) 3);
54 private static final Signature SIGNATURE_4 = generateSignature((byte) 4);
99 new Signature[] {SIGNATURE_1}, in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse()
118 new Signature[] {SIGNATURE_1}, in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse()
201 new Signature[] {SIGNATURE_1, SIGNATURE_2, SIGNATURE_3}, in signaturesMatch_equalSignatures_returnsTrue()
223 new Signature[] {SIGNATURE_1, SIGNATURE_2, SIGNATURE_3}, in signaturesMatch_extraSignatureInTarget_returnsTrue()
244 new Signature[] {SIGNATURE_1, SIGNATURE_2}, in signaturesMatch_extraSignatureInStored_returnsFalse()
[all …]
/frameworks/native/libs/binder/tests/
DbinderSafeInterfaceTest.cpp292 using Signature = in increment() typedef
295 return callRemote<Signature>(Tag::IncrementFlattenable, a, aPlusOne); in increment()
299 using Signature = status_t (ISafeInterfaceTest::*)(const TestLightFlattenable&, in increment() typedef
302 return callRemote<Signature>(Tag::IncrementLightFlattenable, a, aPlusOne); in increment()
306 using Signature = status_t (ISafeInterfaceTest::*)(const sp<TestLightRefBaseFlattenable>&, in increment() typedef
308 return callRemote<Signature>(Tag::IncrementLightRefBaseFlattenable, a, aPlusOne); in increment()
312 using Signature = in increment() typedef
314 return callRemote<Signature>(Tag::IncrementNativeHandle, a, aPlusOne); in increment()
318 using Signature = status_t (ISafeInterfaceTest::*)(const NoCopyNoMove& a, in increment() typedef
320 return callRemote<Signature>(Tag::IncrementNoCopyNoMove, a, aPlusOne); in increment()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSignatures.java22 import android.content.pm.Signature;
56 ArrayList<Signature> writtenSignatures) throws IOException { in writeXml()
78 private void writeCertsListXml(XmlSerializer serializer, ArrayList<Signature> writtenSignatures, in writeCertsListXml()
79 Signature[] signatures, boolean isPastSigs) throws IOException { in writeCertsListXml()
82 final Signature sig = signatures[i]; in writeCertsListXml()
87 Signature writtenSig = writtenSignatures.get(j); in writeCertsListXml()
107 void readXml(XmlPullParser parser, ArrayList<Signature> readSignatures) in readXml()
133 ArrayList<Signature> signatureList = new ArrayList<>(); in readXml()
135 Signature[] signatures = signatureList.toArray(new Signature[signatureList.size()]); in readXml()
153 private int readCertsListXml(XmlPullParser parser, ArrayList<Signature> readSignatures, in readCertsListXml()
[all …]
/frameworks/base/core/java/android/webkit/
DWebViewProviderInfo.java21 import android.content.pm.Signature;
39 this.signatures = new Signature[0]; in WebViewProviderInfo()
41 this.signatures = new Signature[signatures.length]; in WebViewProviderInfo()
43 this.signatures[n] = new Signature(Base64.decode(signatures[n], Base64.DEFAULT)); in WebViewProviderInfo()
66 signatures = in.createTypedArray(Signature.CREATOR); in WebViewProviderInfo()
88 public final Signature[] signatures;
/frameworks/base/core/java/android/hardware/biometrics/
DCryptoObject.java23 import java.security.Signature;
37 public CryptoObject(@NonNull Signature signature) { in CryptoObject()
57 public Signature getSignature() { in getSignature()
58 return mCrypto instanceof Signature ? (Signature) mCrypto : null; in getSignature()
/frameworks/base/core/java/android/security/keymaster/
DKeyAttestationPackageInfo.java19 import android.content.pm.Signature;
32 private final Signature[] mPackageSignatures;
40 String mPackageName, long mPackageVersionCode, Signature[] mPackageSignatures) { in KeyAttestationPackageInfo()
61 public Signature[] getPackageSignatures() { in getPackageSignatures()
93 mPackageSignatures = source.createTypedArray(Signature.CREATOR); in KeyAttestationPackageInfo()

12345678910