Searched refs:Pair (Results 1 – 25 of 25) sorted by relevance
20 import com.android.apksig.internal.util.Pair;38 Pair.of("SHA256withRSA/PSS",52 Pair.of(64 Pair.of("SHA256withRSA", null),73 Pair.of("SHA512withRSA", null),82 Pair.of("SHA256withECDSA", null),91 Pair.of("SHA512withECDSA", null),100 Pair.of("SHA256withDSA", null),112 Pair.of("SHA256withDetDSA", null),125 Pair.of("SHA256withRSA", null),[all …]
43 import com.android.apksig.internal.util.Pair;772 List<Pair<Integer, byte[]>> sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()807 public static Pair<DataSource, Integer> generateApkSigningBlockPadding( in generateApkSigningBlockPadding()823 return Pair.of(beforeCentralDir, padSizeBeforeSigningBlock); in generateApkSigningBlockPadding()842 List<Pair<byte[], Integer>> apkSignatureSchemeBlockPairs) { in generateApkSigningBlock()854 for (Pair<byte[], Integer> schemeBlockPair : apkSignatureSchemeBlockPairs) { in generateApkSigningBlock()883 for (Pair<byte[], Integer> schemeBlockPair : apkSignatureSchemeBlockPairs) { in generateApkSigningBlock()909 public static List<Pair<byte[], Integer>> getApkSignatureBlocks( in getApkSignatureBlocks()930 List<Pair<byte[], Integer>> signatureBlocks = new ArrayList<>(); in getApkSignatureBlocks()943 signatureBlocks.add(Pair.of(blockValue, blockId)); in getApkSignatureBlocks()[all …]
22 import com.android.apksig.internal.util.Pair;377 List<Pair<Integer, byte[]>> sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()379 for (Pair<Integer, byte[]> element : sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()384 for (Pair<Integer, byte[]> element : sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()
22 import com.android.apksig.internal.util.Pair;301 private static final Pair<Character, Integer>[] SORTED_CODENAMES_FIRST_CHAR_TO_API_LEVEL =302 new Pair[] {303 Pair.of('C', 2),304 Pair.of('D', 3),305 Pair.of('E', 4),306 Pair.of('F', 7),307 Pair.of('G', 8),308 Pair.of('H', 10),309 Pair.of('I', 13),[all …]
19 import com.android.apksig.internal.util.Pair;46 Pair<ByteBuffer, Long> eocdAndOffsetInFile = in findZipSections()
30 import com.android.apksig.internal.util.Pair;65 public static Pair<byte[], Integer> generateSourceStampBlock( in generateSourceStampBlock()74 List<Pair<Integer, byte[]>> signatureSchemeDigests = new ArrayList<>(); in generateSourceStampBlock()90 Collections.sort(signatureSchemeDigests, Comparator.comparing(Pair::getFirst)); in generateSourceStampBlock()132 return Pair.of(encodeAsLengthPrefixedElement(sourceStampSignerBlock), in generateSourceStampBlock()140 List<Pair<Integer, byte[]>> signatureSchemeDigests) in getSignedDigestsFor()148 List<Pair<Integer, byte[]>> digests = new ArrayList<>(); in getSignedDigestsFor()150 digests.add(Pair.of(digest.getKey().getId(), digest.getValue())); in getSignedDigestsFor()152 Collections.sort(digests, Comparator.comparing(Pair::getFirst)); in getSignedDigestsFor()165 List<Pair<Integer, byte[]>> signedDigest = in getSignedDigestsFor()[all …]
26 import com.android.apksig.internal.util.Pair;57 public static Pair<byte[], Integer> generateSourceStampBlock( in generateSourceStampBlock()64 List<Pair<Integer, byte[]>> digests = new ArrayList<>(); in generateSourceStampBlock()66 digests.add(Pair.of(digest.getKey().getId(), digest.getValue())); in generateSourceStampBlock()68 Collections.sort(digests, Comparator.comparing(Pair::getFirst)); in generateSourceStampBlock()101 return Pair.of(encodeAsLengthPrefixedElement(sourceStampSignerBlock), in generateSourceStampBlock()107 public List<Pair<Integer, byte[]>> signedDigests;
27 import com.android.apksig.internal.util.Pair;129 private static List<Pair<Integer, byte[]>> getApkDigests( in getApkDigests()131 List<Pair<Integer, byte[]>> digests = new ArrayList<>(); in getApkDigests()134 digests.add(Pair.of(apkContentDigest.getKey().getId(), apkContentDigest.getValue())); in getApkDigests()136 Collections.sort(digests, Comparator.comparing(Pair::getFirst)); in getApkDigests()
22 public final class Pair<A, B> { class26 private Pair(A first, B second) { in Pair() method in Pair31 public static <A, B> Pair<A, B> of(A first, B second) { in of()32 return new Pair<A, B>(first, second); in of()64 Pair other = (Pair) obj; in equals()
76 Pair<Integer, Long> firstSource = locateDataSource(offset); in getByteBuffer()104 Pair<Integer, Long> firstSource = locateDataSource(offset); in slice()118 Pair<Integer, Long> lastSource = locateDataSource(offset + size - 1); in slice()134 private Pair<Integer, Long> locateDataSource(long offset) { in locateDataSource()138 return Pair.of(i, localOffset); in locateDataSource()
28 import com.android.apksig.internal.util.Pair;168 Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> digestInfo = in generateApkSignatureSchemeV2Block()178 private static Pair<byte[], Integer> generateApkSignatureSchemeV2Block( in generateApkSignatureSchemeV2Block()205 return Pair.of( in generateApkSignatureSchemeV2Block()232 List<Pair<Integer, byte[]>> digests = in generateSignerBlock()245 digests.add(Pair.of(signatureAlgorithm.getId(), contentDigest)); in generateSignerBlock()311 public List<Pair<Integer, byte[]>> signatures;316 public List<Pair<Integer, byte[]>> digests;
30 import com.android.apksig.internal.util.Pair;141 Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> digestInfo = in generateApkSignatureSchemeV3Block()165 private static Pair<byte[], Integer> generateApkSignatureSchemeV3Block( in generateApkSignatureSchemeV3Block()185 return Pair.of( in generateApkSignatureSchemeV3Block()210 List<Pair<Integer, byte[]>> digests = in generateSignerBlock()223 digests.add(Pair.of(signatureAlgorithm.getId(), contentDigest)); in generateSignerBlock()320 public List<Pair<Integer, byte[]>> signatures;325 public List<Pair<Integer, byte[]>> digests;
32 import com.android.apksig.internal.util.Pair;100 Pair<V4Signature, byte[]> pair = generateV4Signature(apkContent, signerConfig); in generateV4Signature()111 public static Pair<V4Signature, byte[]> generateV4Signature( in generateV4Signature()134 final Pair<Integer, Byte> hashingAlgorithmBlockSizePair = convertToV4HashingInfo( in generateV4Signature()149 return Pair.of(signature, tree); in generateV4Signature()178 final List<Pair<Integer, byte[]>> signatures = in generateSignature()344 private static Pair<Integer, Byte> convertToV4HashingInfo(ContentDigestAlgorithm algorithm) in convertToV4HashingInfo()348 return Pair.of(V4Signature.HASHING_ALGORITHM_SHA256, in convertToV4HashingInfo()
34 import com.android.apksig.internal.util.Pair;79 public static Pair<String, AlgorithmIdentifier> getSignerInfoSignatureAlgorithm( in getSignerInfoSignatureAlgorithm()96 return Pair.of( in getSignerInfoSignatureAlgorithm()121 return Pair.of(signingAlgorithmName, sigAlgId); in getSignerInfoSignatureAlgorithm()123 return Pair.of( in getSignerInfoSignatureAlgorithm()
28 import com.android.apksig.internal.util.Pair;237 public static List<Pair<String, byte[]>> sign( in sign()269 public static List<Pair<String, byte[]>> signManifest( in signManifest()282 List<Pair<String, byte[]>> signatureJarEntries = in signManifest()301 signatureJarEntries.add(Pair.of("META-INF/" + signerName + ".SF", sfBytes)); in signManifest()307 Pair.of(signatureBlockFileName, signatureBlock)); in signManifest()309 signatureJarEntries.add(Pair.of(V1SchemeConstants.MANIFEST_ENTRY_NAME, manifest.contents)); in signManifest()502 Pair<String, AlgorithmIdentifier> signatureAlgs = in generateSignatureBlock()
46 import com.android.apksig.internal.util.Pair;173 public static Pair<ManifestParser.Section, Map<String, ManifestParser.Section>> parseManifest( in parseManifest()198 return Pair.of(manifestMainSection, entryNameToManifestSection); in parseManifest()261 Pair<ManifestParser.Section, Map<String, ManifestParser.Section>> manifestSections = in verify()
20 import com.android.apksig.internal.util.Pair;118 public static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord(DataSource zip) in findZipEndOfCentralDirectoryRecord()138 Pair<ByteBuffer, Long> result = findZipEndOfCentralDirectoryRecord(zip, 0); in findZipEndOfCentralDirectoryRecord()161 private static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord( in findZipEndOfCentralDirectoryRecord()198 return Pair.of(eocd, bufOffsetInFile + eocdOffsetInBuf); in findZipEndOfCentralDirectoryRecord()
68 val values : MutableMap<String, Pair<Int, Double>> = mutableMapOf() in <lambda>()260 …nt, uniqueValueDuration) = aggInfo.values.getOrDefault(sliceContents.value as String, Pair(0, 0.0)) in aggregateSliceInfo()261 …aggInfo.values[sliceContents.value as String] = Pair(uniqueValueCount + 1, uniqueValueDuration + d… in aggregateSliceInfo()
123 List<Pair<String?, UExpression?>> { in <lambda>()125 val list = mutableListOf<Pair<String?, UExpression?>>() in <lambda>()131 list.add(Pair(method.name, annotation.findAttributeValue(method.name))) in <lambda>()135 list.add(Pair(attr.name, attr.expression)) in <lambda>()
138 List<Pair<String?, PsiAnnotationMemberValue?>> { in <lambda>()140 val list = mutableListOf<Pair<String?, PsiAnnotationMemberValue?>>() in <lambda>()146 list.add(Pair(method.name, annotation.findAttributeValue(method.name))) in <lambda>()150 list.add(Pair(attr.name, attr.value)) in <lambda>()
27 import kotlin.Pair;365 …private static Pair<String, List<String>> processKotlinTypeSuffix(TextCodebase api, String type, L… in processKotlinTypeSuffix()389 return new Pair<>(type, annotations); in processKotlinTypeSuffix()485 … Pair<String, List<String>> kotlinTypeSuffix = processKotlinTypeSuffix(api, token, annotations); in parseMethod()566 … Pair<String, List<String>> kotlinTypeSuffix = processKotlinTypeSuffix(api, token, annotations); in parseField()775 … Pair<String, List<String>> kotlinTypeSuffix = processKotlinTypeSuffix(api, token, annotations); in parseProperty()855 … Pair<String, List<String>> kotlinTypeSuffix = processKotlinTypeSuffix(api, type, annotations); in parseParameterList()
31 // Session information that gets logged for every Pair event.183 // Pair event time
40 import com.android.apksig.internal.util.Pair;1361 assertSigningBlockContains(signedApk, Pair.of(EXTRA_BLOCK_VALUE, EXTRA_BLOCK_ID)); in testOtherSignersSignaturesPreserved_extraSigBlock_signatureAppended()1427 assertSigningBlockContains(signedApk, Pair.of(EXTRA_BLOCK_VALUE, EXTRA_BLOCK_ID)); in testOtherSignersSignaturesPreserved_v2OnlyAppendV2V3SameSigner_signatureAppended()1507 Pair<byte[], Integer> expectedBlock) throws Exception { in assertSigningBlockContains()1511 List<Pair<byte[], Integer>> signatureBlocks = in assertSigningBlockContains()1513 for (Pair<byte[], Integer> signatureBlock : signatureBlocks) { in assertSigningBlockContains()
32 import com.android.apksig.internal.util.Pair;383 List<Pair<Integer, byte[]>> signatures = in spawnDescendant()
META-INF/ META-INF/MANIFEST.MF META-INF/maven/ META- ...