Home
last modified time | relevance | path

Searched refs:Result (Results 1 – 25 of 34) sorted by relevance

12

/tools/apksig/src/test/java/com/android/apksig/
DSourceStampVerifierTest.java26 import com.android.apksig.SourceStampVerifier.Result;
27 import com.android.apksig.SourceStampVerifier.Result.SignerInfo;
54 Result verificationResult = verifySourceStamp("valid-stamp.apk"); in verifySourceStamp_correctSignature()
80 Result verificationResult = verifySourceStamp("v1v2v3-rotated-v3-key-valid-stamp.apk", 23, in verifySourceStamp_rotatedV3Key_signingCertDigestsMatch()
103 Result verificationResult = verifySourceStamp( in verifySourceStamp_signatureMissing()
111 Result verificationResult = verifySourceStamp( in verifySourceStamp_certificateMismatch()
120 Result verificationResult = verifySourceStamp("v1-only-with-stamp.apk"); in verifySourceStamp_v1OnlySignatureValidStamp()
139 Result verificationResult = verifySourceStamp("v2-only-with-stamp.apk", in verifySourceStamp_v2OnlySignatureValidStamp()
155 Result verificationResult = verifySourceStamp("v3-only-with-stamp.apk", in verifySourceStamp_v3OnlySignatureValidStamp()
163 Result verificationResult = verifySourceStamp( in verifySourceStamp_apkHashMismatch_v1SignatureScheme()
[all …]
DApkVerifierTest.java26 import com.android.apksig.ApkVerifier.Result.SourceStampInfo.SourceStampVerificationStatus;
638 ApkVerifier.Result result = verify("v1-only-pkcs7-cert-bag-first-cert-not-used.apk"); in testCorrectCertUsedFromPkcs7SignedDataCertsSet()
663 ApkVerifier.Result result = verify("v1-only-with-rsa-1024-cert-not-der.apk"); in testV1SchemeSignatureCertNotReencoded()
669 List<ApkVerifier.Result.V1SchemeSignerInfo> signers = result.getV1SchemeSigners(); in testV1SchemeSignatureCertNotReencoded()
671 ApkVerifier.Result.V1SchemeSignerInfo signer = signers.get(0); in testV1SchemeSignatureCertNotReencoded()
717 ApkVerifier.Result result = verify("v1-only-with-rsa-1024-cert-not-der2.apk"); in testV1SchemeSignatureCertNotReencoded2()
1067 ApkVerifier.Result verificationResult = verify("valid-stamp.apk"); in testSourceStampBlock_correctSignature()
1076 ApkVerifier.Result verificationResult = verifySourceStamp("valid-stamp.apk"); in verifySourceStamp_correctSignature()
1103 ApkVerifier.Result verificationResult = verify("stamp-without-block.apk"); in testSourceStampBlock_signatureMissing()
1111 ApkVerifier.Result verificationResult = verifySourceStamp("stamp-without-block.apk"); in verifySourceStamp_signatureMissing()
[all …]
DApkSignerTest.java1140 ApkVerifier.Result sourceStampVerificationResult = in testSignApk_existingStampFile_sameSourceStamp()
1192 ApkVerifier.Result sourceStampVerificationResult = in testSignApk_existingStampFile_differentSourceStamp_forceOverwrite()
1215 ApkSigningBlockUtils.Result result = in testSignApk_stampBlock_noStampGenerated()
1216 new ApkSigningBlockUtils.Result(ApkSigningBlockUtils.VERSION_SOURCE_STAMP); in testSignApk_stampBlock_noStampGenerated()
1246 ApkVerifier.Result sourceStampVerificationResult = in testSignApk_stampBlock_whenV1SignaturePresent()
1268 ApkVerifier.Result sourceStampVerificationResult = in testSignApk_stampBlock_whenV2SignaturePresent()
1290 ApkVerifier.Result sourceStampVerificationResult = in testSignApk_stampBlock_whenV3SignaturePresent()
1316 ApkVerifier.Result sourceStampVerificationResult = in testSignApk_stampBlock_withStampLineage()
1357 ApkVerifier.Result result = verify(signedApk, null); in testOtherSignersSignaturesPreserved_extraSigBlock_signatureAppended()
1379 ApkVerifier.Result result = verify(signedApk, null); in testOtherSignersSignaturesPreserved_v1Only_signatureAppended()
[all …]
/tools/ndkports/src/main/kotlin/com/android/ndkports/
DPort.kt26 ): Result<Unit, String> { in executeProcessStep()
39 Result.Ok(Unit) in executeProcessStep()
41 Result.Error("Process failed with exit code $it") in executeProcessStep()
159 ): Result<Unit, String> { in installDirectoryForPort()
166 ).onFailure { return Result.Error(it) } in installDirectoryForPort()
168 build(toolchain, buildDirectory).onFailure { return Result.Error(it) } in installDirectoryForPort()
174 ).onFailure { return Result.Error(it) } in installDirectoryForPort()
176 return Result.Ok(Unit) in installDirectoryForPort()
195 ): Result<Unit, String> { in installDirectoryForPort()
232 ): Result<Unit, String> = Result.Ok(Unit) in installDirectoryForPort()
[all …]
DMesonPort.kt36 ): Result<Unit, String> { in configure()
87 ): Result<Unit, String> =
94 ): Result<Unit, String> =
DAutoconfPort.kt38 ): Result<Unit, String> { in configureArgs()
61 ): Result<Unit, String> =
70 ): Result<Unit, String> =
/tools/ndkports/src/test/kotlin/com/android/ndkports/
DResultTest.kt26 val result = Result.Error("foo") in onFailure executes block on failure()
36 val result = Result.Ok(Unit) in onFailure does not execute block on success()
42 val result = Result.Error(Unit) in onFailure returns same result object()
48 val result = Result.Ok("foo") in onSuccess executes block on success()
58 val result = Result.Error(Unit) in onSuccess does not execute block on failure()
64 val result = Result.Ok(Unit) in onSuccess returns same result object()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeVerifier.java68 public static ApkSigningBlockUtils.Result verify(DataSource apk, File v4SignatureFile) in verify()
77 final ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in verify()
99 ApkSigningBlockUtils.Result.SignerInfo signerInfo = parseAndVerifySignatureBlock( in verify()
121 private static ApkSigningBlockUtils.Result.SignerInfo parseAndVerifySignatureBlock( in parseAndVerifySignatureBlock()
124 final ApkSigningBlockUtils.Result.SignerInfo result = in parseAndVerifySignatureBlock()
125 new ApkSigningBlockUtils.Result.SignerInfo(); in parseAndVerifySignatureBlock()
131 new ApkSigningBlockUtils.Result.SignerInfo.Signature(sigAlgorithmId, sigBytes)); in parseAndVerifySignatureBlock()
212 ApkSigningBlockUtils.Result.SignerInfo.ContentDigest contentDigest = in parseAndVerifySignatureBlock()
213 new ApkSigningBlockUtils.Result.SignerInfo.ContentDigest( in parseAndVerifySignatureBlock()
221 ApkSigningBlockUtils.Result.SignerInfo signerInfo, byte[] expectedDigest, in verifyRootHashAndTree()
DV4SchemeSigner.java226 final ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in getBestV3Digest()
243 ApkSigningBlockUtils.Result.SignerInfo signer = result.signers.get(0); in getBestV3Digest()
248 final List<ApkSigningBlockUtils.Result.SignerInfo.ContentDigest> contentDigests = in getBestV3Digest()
257 final ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in getBestV2Digest()
280 ApkSigningBlockUtils.Result.SignerInfo signer = result.signers.get(0); in getBestV2Digest()
285 final List<ApkSigningBlockUtils.Result.SignerInfo.ContentDigest> contentDigests = in getBestV2Digest()
290 …private static byte[] pickBestDigest(List<ApkSigningBlockUtils.Result.SignerInfo.ContentDigest> co… in pickBestDigest()
297 for (ApkSigningBlockUtils.Result.SignerInfo.ContentDigest contentDigest : contentDigests) { in pickBestDigest()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java94 public static ApkSigningBlockUtils.Result verify( in verify()
101 ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in verify()
148 ApkSigningBlockUtils.Result result) in verify()
162 SortedMap<Integer, ApkSigningBlockUtils.Result.SignerInfo> sortedSigners = new TreeMap<>(); in verify()
163 for (ApkSigningBlockUtils.Result.SignerInfo signer : result.signers) { in verify()
175 for (ApkSigningBlockUtils.Result.SignerInfo signer : sortedSigners.values()) { in verify()
232 ApkSigningBlockUtils.Result result) throws NoSuchAlgorithmException { in parseSigners()
255 ApkSigningBlockUtils.Result.SignerInfo signerInfo = in parseSigners()
256 new ApkSigningBlockUtils.Result.SignerInfo(); in parseSigners()
284 ApkSigningBlockUtils.Result.SignerInfo result, in parseSigner()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java87 public static ApkSigningBlockUtils.Result verify( in verify()
97 ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in verify()
142 ApkSigningBlockUtils.Result result) in verify()
182 ApkSigningBlockUtils.Result result) throws NoSuchAlgorithmException { in parseSigners()
205 ApkSigningBlockUtils.Result.SignerInfo signerInfo = in parseSigners()
206 new ApkSigningBlockUtils.Result.SignerInfo(); in parseSigners()
242 ApkSigningBlockUtils.Result.SignerInfo result, in parseSigner()
267 new ApkSigningBlockUtils.Result.SignerInfo.Signature( in parseSigner()
395 new ApkSigningBlockUtils.Result.SignerInfo.ContentDigest( in parseSigner()
404 for (ApkSigningBlockUtils.Result.SignerInfo.Signature signature : result.signatures) { in parseSigner()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DV1SourceStampVerifier.java64 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/
Dtesttracker_results_writer.py21 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/apksig/src/main/java/com/android/apksig/
DSourceStampVerifier.java110 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/test/connectivity/acts/framework/tests/
Dacts_utils_test.py465 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'),
467 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
476 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'),
478 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
487 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'),
489 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
499 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'),
501 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
/tools/ndkports/ports/openssl/
Dport.kts43 ): Result<Unit, String> { in configure()
65 ): Result<Unit, String> =
82 ): Result<Unit, String> =
/tools/test/connectivity/acts/framework/tests/libs/testtracker/
Dtesttracker_results_writer_test.py20 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/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/
DMetricsReporter.java29 private ResultDataProto.Result.Builder builder = ResultDataProto.Result.newBuilder();
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java103 public static Result verify( in verify()
116 Result result = new Result(); in verify()
145 List<CentralDirectoryRecord> cdRecords, Result result) { in checkForDuplicateEntries()
174 byte[] manifestBytes, Set<String> cdEntryNames, Result result) { in parseManifest()
220 Result result) throws ApkFormatException, IOException, NoSuchAlgorithmException { in verify()
294 Result.SignerInfo signerInfo = in verify()
295 new Result.SignerInfo( in verify()
414 private final Result.SignerInfo mResult;
426 Result.SignerInfo result) { in Signer()
457 public Result.SignerInfo getResult() { in getResult()
[all …]
/tools/test/connectivity/acts/framework/acts/libs/testtracker/protos/
Dtesttracker_result.proto5 // 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/hostside/src/com/android/game/qualification/metric/
DBaseGameQualificationMetricCollector.java37 protected ResultDataProto.Result mDeviceResultData;
60 public void setDeviceResultData(ResultDataProto.Result resultData) { in setDeviceResultData()
/tools/test/connectivity/acts/framework/acts/libs/proc/
Djob.py37 class Result(object): class
151 result = Result(command=command,
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/test/
DPerformanceTest.java185 ResultDataProto.Result resultData = retrieveResultData(); in run()
248 private ResultDataProto.Result retrieveResultData() throws DeviceNotAvailableException { in retrieveResultData()
253 return ResultDataProto.Result.parseFrom(inputStream); in retrieveResultData()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java136 Result result) throws IOException, NoSuchAlgorithmException { in verifyIntegrity()
192 for (Result.SignerInfo signerInfo : result.signers) { in verifyIntegrity()
193 for (Result.SignerInfo.ContentDigest expected : signerInfo.contentDigests) { in verifyIntegrity()
233 Result result) throws SignatureNotFoundException { in findApkSignatureSchemeBlock()
789 DataSource apk, ApkUtils.ZipSections zipSections, int blockId, Result result) in findSignature()
1273 public static class Result extends ApkSigResult { class in ApkSigningBlockUtils
1275 public final List<Result.SignerInfo> signers = new ArrayList<>();
1279 public Result(int signatureSchemeVersion) { in Result() method in ApkSigningBlockUtils.Result
1288 for (Result.SignerInfo signer : signers) { in containsErrors()
1302 for (Result.SignerInfo signer : signers) { in containsWarnings()
/tools/metalava/
DFORMAT.md363 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;

12