/tools/security/remote_provisioning/cert_validator/src/ |
D | valueas.rs | 4 use anyhow::{anyhow, ensure, Result}; 26 fn as_i64(&self) -> Result<i64, ValueAsError>; in as_i64() 27 fn as_u64(&self) -> Result<u64, ValueAsError>; in as_u64() 28 fn as_bytes(&self) -> Result<&[u8], ValueAsError>; in as_bytes() 29 fn as_array(&self) -> Result<&[Self], ValueAsError>; in as_array() 30 fn as_string(&self) -> Result<String, ValueAsError>; in as_string() 31 fn as_date(&self) -> Result<NaiveDate, ValueAsError>; in as_date() 32 fn as_array_of_len(&self, len: usize) -> Result<&[Self], ValueAsError>; in as_array_of_len() 33 fn as_map(&self) -> Result<&[(Self, Self)], ValueAsError>; in as_map() 34 fn map_lookup<T: Into<Self>>(&self, key: T) -> Result<&Self, ValueAsError>; in map_lookup() [all …]
|
D | bcc.rs | 8 use anyhow::{anyhow, bail, ensure, Context, Result}; 31 pub fn read(fname: &str) -> Result<Chain> { in read() 40 pub fn check(&self) -> Result<Vec<entry::Payload>> { in check() 77 fn from_cbor_value(value: Value) -> Result<Self, CoseError> { in from_cbor_value() 84 let entries = it.map(CoseSign1::from_cbor_value).collect::<Result<Vec<_>, _>>()?; in from_cbor_value() 88 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() 102 pub fn get_label_value(key: &coset::CoseKey, label: i64) -> Result<&Value> { in get_label_value() 113 pub fn get_label_value_as_bytes(key: &coset::CoseKey, label: i64) -> Result<&Vec<u8>> { in get_label_value_as_bytes() 125 pub fn check_sign1_cert_chain(certs: &[&str]) -> Result<()> { in check_sign1_cert_chain() argument 140 pub fn check_sign1_chain_array(cbor_arr: &[Value]) -> Result<()> { in check_sign1_chain_array() argument [all …]
|
D | publickey.rs | 6 use anyhow::{bail, ensure, Context, Result}; 31 pub fn from_cose_key(pkey: &CoseKey) -> Result<Self> { in from_cose_key() 59 fn new(key: PubKey) -> Result<Self> { in new() 63 fn sha256(message: &[u8]) -> Result<[u8; 32]> { in sha256() 76 fn raw_p256_sig_to_der(signature: &[u8]) -> Result<Vec<u8>> { in raw_p256_sig_to_der() 123 fn verify_p256(signature: &[u8], message: &[u8], ec_point: &[u8]) -> Result<i32> { in verify_p256() 169 pub fn verify(&self, signature: &[u8], message: &[u8], alg: &Option<Algorithm>) -> Result<()> { in verify() argument
|
D | lib.rs | 11 use anyhow::{Context, Result}; 16 pub fn file_value(fname: &str) -> Result<Value> { in file_value() 86 fn test_check_chain_valid() -> Result<()> { in test_check_chain_valid() 94 fn test_check_chain_valid_p256() -> Result<()> { in test_check_chain_valid_p256() 128 fn test_check_bcc_entry_protected_header() -> Result<()> { in test_check_bcc_entry_protected_header()
|
D | deviceinfo.rs | 4 use anyhow::{anyhow, ensure, Context, Result}; 16 pub fn extract(filevalue: &Value) -> Result<&[Value]> { in extract() 22 pub fn check(deviceinfo: &[Value]) -> Result<()> { in check() argument
|
D | bcc_main.rs | 6 use anyhow::{bail, Result}; 10 fn main() -> Result<()> { in main()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | SourceStampVerifierTest.java | 27 import com.android.apksig.SourceStampVerifier.Result; 28 import com.android.apksig.SourceStampVerifier.Result.SignerInfo; 56 Result verificationResult = verifySourceStamp("valid-stamp.apk"); in verifySourceStamp_correctSignature() 82 Result verificationResult = verifySourceStamp("v1v2v3-rotated-v3-key-valid-stamp.apk", 23, in verifySourceStamp_rotatedV3Key_signingCertDigestsMatch() 105 Result verificationResult = verifySourceStamp( in verifySourceStamp_signatureMissing() 113 Result verificationResult = verifySourceStamp( in verifySourceStamp_certificateMismatch() 122 Result verificationResult = verifySourceStamp("v1-only-with-stamp.apk"); in verifySourceStamp_v1OnlySignatureValidStamp() 141 Result verificationResult = verifySourceStamp("v2-only-with-stamp.apk", in verifySourceStamp_v2OnlySignatureValidStamp() 157 Result verificationResult = verifySourceStamp("v3-only-with-stamp.apk", in verifySourceStamp_v3OnlySignatureValidStamp() 165 Result verificationResult = verifySourceStamp( in verifySourceStamp_apkHashMismatch_v1SignatureScheme() [all …]
|
D | ApkVerifierTest.java | 31 import com.android.apksig.ApkVerifier.Result.SourceStampInfo.SourceStampVerificationStatus; 676 ApkVerifier.Result result = verify("v1-only-pkcs7-cert-bag-first-cert-not-used.apk"); in testCorrectCertUsedFromPkcs7SignedDataCertsSet() 701 ApkVerifier.Result result = verify("v1-only-with-rsa-1024-cert-not-der.apk"); in testV1SchemeSignatureCertNotReencoded() 707 List<ApkVerifier.Result.V1SchemeSignerInfo> signers = result.getV1SchemeSigners(); in testV1SchemeSignatureCertNotReencoded() 709 ApkVerifier.Result.V1SchemeSignerInfo signer = signers.get(0); in testV1SchemeSignatureCertNotReencoded() 755 ApkVerifier.Result result = verify("v1-only-with-rsa-1024-cert-not-der2.apk"); in testV1SchemeSignatureCertNotReencoded2() 1105 ApkVerifier.Result verificationResult = verify("valid-stamp.apk"); in testSourceStampBlock_correctSignature() 1114 ApkVerifier.Result verificationResult = verifySourceStamp("valid-stamp.apk"); in verifySourceStamp_correctSignature() 1141 ApkVerifier.Result verificationResult = verify("stamp-without-block.apk"); in testSourceStampBlock_signatureMissing() 1149 ApkVerifier.Result verificationResult = verifySourceStamp("stamp-without-block.apk"); in verifySourceStamp_signatureMissing() [all …]
|
D | ApkSignerTest.java | 1261 ApkVerifier.Result sourceStampVerificationResult = in testSignApk_existingStampFile_sameSourceStamp() 1313 ApkVerifier.Result sourceStampVerificationResult = in testSignApk_existingStampFile_differentSourceStamp_forceOverwrite() 1336 ApkSigningBlockUtils.Result result = in testSignApk_stampBlock_noStampGenerated() 1337 new ApkSigningBlockUtils.Result(ApkSigningBlockUtils.VERSION_SOURCE_STAMP); in testSignApk_stampBlock_noStampGenerated() 1367 ApkVerifier.Result sourceStampVerificationResult = in testSignApk_stampBlock_whenV1SignaturePresent() 1389 ApkVerifier.Result sourceStampVerificationResult = in testSignApk_stampBlock_whenV2SignaturePresent() 1411 ApkVerifier.Result sourceStampVerificationResult = in testSignApk_stampBlock_whenV3SignaturePresent() 1437 ApkVerifier.Result sourceStampVerificationResult = in testSignApk_stampBlock_withStampLineage() 1478 ApkVerifier.Result result = verify(signedApk, null); in testOtherSignersSignaturesPreserved_extraSigBlock_signatureAppended() 1500 ApkVerifier.Result result = verify(signedApk, null); in testOtherSignersSignaturesPreserved_v1Only_signatureAppended() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 136 public Result verify() throws IOException, ApkFormatException, NoSuchAlgorithmException, in verify() 169 private Result verify(DataSource apk) in verify() 184 Result result = new Result(); in verify() 211 ApkSigningBlockUtils.Result v31Result = new V3SchemeVerifier.Builder(apk, in verify() 243 ApkSigningBlockUtils.Result v3Result = builder.build().verify(); in verify() 269 ApkSigningBlockUtils.Result v2Result = in verify() 293 final ApkSigningBlockUtils.Result v4Result = in verify() 329 V1SchemeVerifier.Result v1Result = in verify() 386 ArrayList<Result.V1SchemeSignerInfo> v1Signers = in verify() 388 ArrayList<Result.V2SchemeSignerInfo> v2Signers = in verify() [all …]
|
D | SourceStampVerifier.java | 110 public SourceStampVerifier.Result verifySourceStamp() { in verifySourceStamp() 126 public SourceStampVerifier.Result verifySourceStamp(String expectedCertDigest) { in verifySourceStamp() 141 Result result = new Result(); in verifySourceStamp() 161 private SourceStampVerifier.Result verifySourceStamp(DataSource apk, in verifySourceStamp() 163 Result result = new Result(); in verifySourceStamp() 292 Result result) { in parseSigners() 317 Result.SignerInfo signerInfo = new Result.SignerInfo(); in parseSigners() 357 Result.SignerInfo signerInfo) in parseSigner() 431 Result result) in getApkContentDigestFromV1SigningScheme() 472 Result.SignerInfo signerInfo = new Result.SignerInfo(); in getApkContentDigestFromV1SigningScheme() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 75 private final ApkSigningBlockUtils.Result mResult; 90 ApkSigningBlockUtils.Result result, in V3SchemeVerifier() 131 public static ApkSigningBlockUtils.Result verify( in verify() 154 public ApkSigningBlockUtils.Result verify() in verify() 183 SortedMap<Integer, ApkSigningBlockUtils.Result.SignerInfo> sortedSigners = new TreeMap<>(); in verify() 184 for (ApkSigningBlockUtils.Result.SignerInfo signer : mResult.signers) { in verify() 196 for (ApkSigningBlockUtils.Result.SignerInfo signer : sortedSigners.values()) { in verify() 257 ApkSigningBlockUtils.Result result) throws NoSuchAlgorithmException { in parseSigners() 284 public ApkSigningBlockUtils.Result parseSigners() in parseSigners() 313 ApkSigningBlockUtils.Result.SignerInfo signerInfo = in parseSigners() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeVerifier.java | 68 public static ApkSigningBlockUtils.Result verify(DataSource apk, File v4SignatureFile) in verify() 77 final ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in verify() 97 final ApkSigningBlockUtils.Result.SignerInfo signerInfo; in verify() 138 private static ApkSigningBlockUtils.Result.SignerInfo parseAndVerifySignatureBlock( in parseAndVerifySignatureBlock() 141 final ApkSigningBlockUtils.Result.SignerInfo result = in parseAndVerifySignatureBlock() 142 new ApkSigningBlockUtils.Result.SignerInfo(); in parseAndVerifySignatureBlock() 148 new ApkSigningBlockUtils.Result.SignerInfo.Signature(sigAlgorithmId, sigBytes)); in parseAndVerifySignatureBlock() 229 ApkSigningBlockUtils.Result.SignerInfo.ContentDigest contentDigest = in parseAndVerifySignatureBlock() 230 new ApkSigningBlockUtils.Result.SignerInfo.ContentDigest( in parseAndVerifySignatureBlock() 238 ApkSigningBlockUtils.Result.SignerInfo signerInfo, byte[] expectedDigest, in verifyRootHashAndTree()
|
D | V4SchemeSigner.java | 264 final ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in getBestV3Digest() 281 ApkSigningBlockUtils.Result.SignerInfo signer = result.signers.get(0); in getBestV3Digest() 286 final List<ApkSigningBlockUtils.Result.SignerInfo.ContentDigest> contentDigests = in getBestV3Digest() 295 final ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in getBestV2Digest() 318 ApkSigningBlockUtils.Result.SignerInfo signer = result.signers.get(0); in getBestV2Digest() 323 final List<ApkSigningBlockUtils.Result.SignerInfo.ContentDigest> contentDigests = in getBestV2Digest() 328 …private static byte[] pickBestDigest(List<ApkSigningBlockUtils.Result.SignerInfo.ContentDigest> co… in pickBestDigest() 335 for (ApkSigningBlockUtils.Result.SignerInfo.ContentDigest contentDigest : contentDigests) { in pickBestDigest()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 89 public static ApkSigningBlockUtils.Result verify( in verify() 99 ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in verify() 144 ApkSigningBlockUtils.Result result) in verify() 184 ApkSigningBlockUtils.Result result) throws NoSuchAlgorithmException { in parseSigners() 207 ApkSigningBlockUtils.Result.SignerInfo signerInfo = in parseSigners() 208 new ApkSigningBlockUtils.Result.SignerInfo(); in parseSigners() 247 ApkSigningBlockUtils.Result.SignerInfo result, in parseSigner() 272 new ApkSigningBlockUtils.Result.SignerInfo.Signature( in parseSigner() 400 new ApkSigningBlockUtils.Result.SignerInfo.ContentDigest( in parseSigner() 409 for (ApkSigningBlockUtils.Result.SignerInfo.Signature signature : result.signatures) { in parseSigner() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | V1SourceStampVerifier.java | 64 public static ApkSigningBlockUtils.Result verify( in verify() 73 ApkSigningBlockUtils.Result result = in verify() 74 new ApkSigningBlockUtils.Result(ApkSigningBlockUtils.VERSION_SOURCE_STAMP); in verify() 101 ApkSigningBlockUtils.Result result) in verify() 103 ApkSigningBlockUtils.Result.SignerInfo signerInfo = in verify() 104 new ApkSigningBlockUtils.Result.SignerInfo(); in verify()
|
/tools/test/connectivity/acts/framework/acts/libs/testtracker/ |
D | testtracker_results_writer.py | 21 from acts.libs.testtracker.protos.gen.testtracker_result_pb2 import Result 38 TestResultEnums.TEST_RESULT_PASS: Result.PASSED, 39 TestResultEnums.TEST_RESULT_FAIL: Result.FAILED, 40 TestResultEnums.TEST_RESULT_SKIP: Result.SKIPPED, 41 TestResultEnums.TEST_RESULT_ERROR: Result.ERROR 143 result = Result()
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_utils_test.py | 462 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'), 464 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'), 473 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'), 475 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'), 484 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'), 486 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'), 496 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'), 498 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
|
/tools/test/connectivity/acts/framework/tests/libs/testtracker/ |
D | testtracker_results_writer_test.py | 20 from acts.libs.testtracker.protos.gen.testtracker_result_pb2 import Result 116 self.assertEqual(result.status, Result.PASSED) 125 self.assertEqual(result.status, Result.FAILED) 134 self.assertEqual(result.status, Result.SKIPPED) 143 self.assertEqual(result.status, Result.ERROR)
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 109 public static Result verify( in verify() 122 Result result = new Result(); in verify() 151 List<CentralDirectoryRecord> cdRecords, Result result) { in checkForDuplicateEntries() 180 byte[] manifestBytes, Set<String> cdEntryNames, Result result) { in parseManifest() 226 Result result) throws ApkFormatException, IOException, NoSuchAlgorithmException { in verify() 300 Result.SignerInfo signerInfo = in verify() 301 new Result.SignerInfo( in verify() 425 private final Result.SignerInfo mResult; 437 Result.SignerInfo result) { in Signer() 468 public Result.SignerInfo getResult() { in getResult() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 138 Result result) throws IOException, NoSuchAlgorithmException { in verifyIntegrity() 194 for (Result.SignerInfo signerInfo : result.signers) { in verifyIntegrity() 195 for (Result.SignerInfo.ContentDigest expected : signerInfo.contentDigests) { in verifyIntegrity() 235 Result result) throws SignatureNotFoundException { in findApkSignatureSchemeBlock() 792 DataSource apk, ApkUtils.ZipSections zipSections, int blockId, Result result) in findSignature() 1276 public static class Result extends ApkSigResult { class in ApkSigningBlockUtils 1278 public final List<Result.SignerInfo> signers = new ArrayList<>(); 1282 public Result(int signatureSchemeVersion) { in Result() method in ApkSigningBlockUtils.Result 1291 for (Result.SignerInfo signer : signers) { in containsErrors() 1305 for (Result.SignerInfo signer : signers) { in containsWarnings()
|
/tools/metalava/ |
D | FORMAT.md | 363 public static final class CursorJoiner.Result extends java.lang.Enum { 364 method public static android.database.CursorJoiner.Result valueOf(java.lang.String); 365 method public static final android.database.CursorJoiner.Result[] values(); 366 enum_constant public static final android.database.CursorJoiner.Result BOTH; 367 enum_constant public static final android.database.CursorJoiner.Result LEFT; 368 enum_constant public static final android.database.CursorJoiner.Result RIGHT; 380 public static enum CursorJoiner.Result { 381 enum_constant public static final android.database.CursorJoiner.Result BOTH; 382 enum_constant public static final android.database.CursorJoiner.Result LEFT; 383 enum_constant public static final android.database.CursorJoiner.Result RIGHT;
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | ApkSignerTool.java | 560 ApkVerifier.Result result; in verify() 577 ApkVerifier.Result.SourceStampInfo sourceStampInfo = result.getSourceStampInfo(); in verify() 608 for (ApkVerifier.Result.V3SchemeSignerInfo signer : in verify() 618 … for (ApkVerifier.Result.V3SchemeSignerInfo signer : result.getV3SchemeSigners()) { in verify() 651 for (ApkVerifier.Result.V1SchemeSignerInfo signer : result.getV1SchemeSigners()) { in verify() 661 for (ApkVerifier.Result.V2SchemeSignerInfo signer : result.getV2SchemeSigners()) { in verify() 673 for (ApkVerifier.Result.V3SchemeSignerInfo signer : result.getV3SchemeSigners()) { in verify() 685 for (ApkVerifier.Result.V3SchemeSignerInfo signer : result.getV31SchemeSigners()) { in verify()
|
/tools/test/connectivity/acts/framework/acts/libs/testtracker/protos/ |
D | testtracker_result.proto | 5 // The Result is the base proto for describing Results that can be stored 37 // A Result contains information about the each piece of the report. 41 message Result { message
|
/tools/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/ |
D | MetricsReporter.java | 29 private ResultDataProto.Result.Builder builder = ResultDataProto.Result.newBuilder();
|