/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | SignatureTest.java | 27 …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/ |
D | Signature.java | 42 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/ |
D | IGraphicBufferConsumer.cpp | 69 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/ |
D | AppBackupUtilsTest.java | 30 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 …]
|
D | TarBackupReaderTest.java | 43 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/ |
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()
|
/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()
|
/frameworks/base/core/java/android/util/apk/ |
D | ApkSignatureVerifier.java | 29 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/ |
D | BackupUtilsTest.java | 29 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/ |
D | binderSafeInterfaceTest.cpp | 292 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/ |
D | PackageSignatures.java | 22 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/ |
D | WebViewProviderInfo.java | 21 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/ |
D | CryptoObject.java | 23 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/ |
D | KeyAttestationPackageInfo.java | 19 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()
|