/tools/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 21 import com.android.apksig.internal.util.Pair; 54 Pair<ByteBuffer, Long> eocdAndOffsetInFile = in findZipSections() 399 private static final Pair<Character, Integer>[] SORTED_CODENAMES_FIRST_CHAR_TO_API_LEVEL = 400 new Pair[] { 401 Pair.of('C', 2), 402 Pair.of('D', 3), 403 Pair.of('E', 4), 404 Pair.of('F', 7), 405 Pair.of('G', 8), 406 Pair.of('H', 10), [all …]
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AudioLoopbackImageAnalyzer.java | 19 import com.android.tradefed.util.Pair; 79 public static Pair<Result, String> analyzeImage(String imgFile) { in analyzeImage() 134 final Pair<Integer, Integer> durationBounds = getBounds(horizontal, horizontalStart, -1); in analyzeImage() 139 return new Pair<Result, String>(Result.FAIL, err); in analyzeImage() 144 final Pair<Integer, Integer> amplitudeBounds = getBounds(vertical, -1, -1); in analyzeImage() 149 return new Pair<Result, String>(Result.FAIL, err); in analyzeImage() 162 Pair<Result, String> amplResult = in analyzeImage() 189 return new Pair<Result, String>(Result.PASS, ""); in analyzeImage() 207 private static Pair<Result, String> analyzeDuration( in analyzeDuration() 321 return new Pair<Result, String>(Result.PASS, ""); in analyzeDuration() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | PairTest.java | 27 Pair<Object, Object> p1 = Pair.create(obj1, obj1); in testPairs() 32 Pair<Object, Object> p2 = null; in testPairs() 36 p1 = Pair.create(null, null); in testPairs() 37 p2 = Pair.create(null, null); in testPairs() 44 p1 = Pair.create(null, new Object()); in testPairs() 45 p2 = Pair.create(null, new Object()); in testPairs() 49 p1 = Pair.create(null, obj1); in testPairs() 50 p2 = Pair.create(null, obj1); in testPairs() 55 p1 = Pair.create(obj1, obj2); in testPairs() 56 p2 = Pair.create(obj1, obj2); in testPairs() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | SignatureAlgorithm.java | 20 import com.android.apksig.internal.util.Pair; 38 Pair.of("SHA256withRSA/PSS", 51 Pair.of( 62 Pair.of("SHA256withRSA", null), 70 Pair.of("SHA512withRSA", null), 78 Pair.of("SHA256withECDSA", null), 86 Pair.of("SHA512withECDSA", null), 94 Pair.of("SHA256withDSA", null), 106 Pair.of("SHA256withRSA", null), 118 Pair.of("SHA256withECDSA", null), [all …]
|
D | ApkSigningBlockUtils.java | 30 import com.android.apksig.internal.util.Pair; 885 List<Pair<Integer, byte[]>> sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes() 887 for (Pair<Integer, byte[]> element : sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes() 892 for (Pair<Integer, byte[]> element : sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes() 951 public static Pair<DataSource, Integer> generateApkSigningBlockPadding( in generateApkSigningBlockPadding() 967 return Pair.of(beforeCentralDir, padSizeBeforeSigningBlock); in generateApkSigningBlockPadding() 986 List<Pair<byte[], Integer>> apkSignatureSchemeBlockPairs) { in generateApkSigningBlock() 998 for (Pair<byte[], Integer> schemeBlockPair : apkSignatureSchemeBlockPairs) { in generateApkSigningBlock() 1028 for (Pair<byte[], Integer> schemeBlockPair : apkSignatureSchemeBlockPairs) { in generateApkSigningBlock() 1060 public static Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeSigner.java | 34 import com.android.apksig.internal.util.Pair; 240 public static List<Pair<String, byte[]>> sign( in sign() 272 public static List<Pair<String, byte[]>> signManifest( in signManifest() 285 List<Pair<String, byte[]>> signatureJarEntries = in signManifest() 304 signatureJarEntries.add(Pair.of("META-INF/" + signerName + ".SF", sfBytes)); in signManifest() 310 Pair.of(signatureBlockFileName, signatureBlock)); in signManifest() 312 signatureJarEntries.add(Pair.of(MANIFEST_ENTRY_NAME, manifest.contents)); in signManifest() 507 Pair<String, AlgorithmIdentifier> signatureAlgs = in generateSignatureBlock() 613 private static Pair<String, AlgorithmIdentifier> getSignerInfoSignatureAlgorithm( in getSignerInfoSignatureAlgorithm() 629 return Pair.of( in getSignerInfoSignatureAlgorithm() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 28 import com.android.apksig.internal.util.Pair; 141 public static Pair<byte[], Integer> generateApkSignatureSchemeV2Block( in generateApkSignatureSchemeV2Block() 150 Pair<List<SignerConfig>, in generateApkSignatureSchemeV2Block() 158 private static Pair<byte[], Integer> generateApkSignatureSchemeV2Block( in generateApkSignatureSchemeV2Block() 181 return Pair.of(encodeAsSequenceOfLengthPrefixedElements( in generateApkSignatureSchemeV2Block() 206 List<Pair<Integer, byte[]>> digests = in generateSignerBlock() 217 digests.add(Pair.of(signatureAlgorithm.getId(), contentDigest)); in generateSignerBlock() 283 public List<Pair<Integer, byte[]>> signatures; 288 public List<Pair<Integer, byte[]>> digests;
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeSigner.java | 30 import com.android.apksig.internal.util.Pair; 130 public static Pair<byte[], Integer> generateApkSignatureSchemeV3Block( in generateApkSignatureSchemeV3Block() 138 Pair<List<SignerConfig>, in generateApkSignatureSchemeV3Block() 145 private static Pair<byte[], Integer> generateApkSignatureSchemeV3Block( in generateApkSignatureSchemeV3Block() 167 return Pair.of(encodeAsSequenceOfLengthPrefixedElements( in generateApkSignatureSchemeV3Block() 191 List<Pair<Integer, byte[]>> digests = in generateSignerBlock() 202 digests.add(Pair.of(signatureAlgorithm.getId(), contentDigest)); in generateSignerBlock() 312 public List<Pair<Integer, byte[]>> signatures; 317 public List<Pair<Integer, byte[]>> digests;
|
/tools/tradefederation/contrib/src/com/android/regression/tests/ |
D | Metrics.java | 21 import com.android.tradefed.util.Pair; 31 private final MultiMap<Pair<TestDescription, String>, Double> mTestMetrics = new MultiMap<>(); 93 Pair<TestDescription, String> metricId = new Pair<>(testId, name); in addTestMetric() 120 for (Pair<TestDescription, String> id : mTestMetrics.keySet()) { in validate() 157 for (Pair<TestDescription, String> id : mTestMetrics.keySet()) { in crossValidate() 166 for (Pair<TestDescription, String> id : after.mTestMetrics.keySet()) { in crossValidate() 226 public MultiMap<Pair<TestDescription, String>, Double> getTestMetrics() { in getTestMetrics()
|
D | DetectRegression.java | 29 import com.android.tradefed.util.Pair; 150 Set<Pair<TestDescription, String>> testMetricsToCompare = in runRegressionDetection() 154 for (Pair<TestDescription, String> id : testMetricsToCompare) { in runRegressionDetection()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | Pair.java | 23 public class Pair<A, B> { class 27 public Pair(A first, B second) { in Pair() method in Pair 37 if (!(o instanceof Pair)) { in equals() 41 final Pair<?, ?> pair = (Pair<?, ?>) o; in equals() 76 public static <A, B> Pair<A, B> create(A a, B b) { in create() 77 return new Pair<A, B> (a, b); in create()
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | Pair.java | 22 public final class Pair<A, B> { class 26 private Pair(A first, B second) { in Pair() method in Pair 31 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()
|
D | ChainedDataSource.java | 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()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | DefaultApkSignerEngine.java | 30 import com.android.apksig.internal.util.Pair; 431 Pair<ManifestParser.Section, Map<String, ManifestParser.Section>> sections = in initWith() 653 List<Pair<String, byte[]>> signatureZipEntries; in outputJarEntries() 700 signatureZipEntries.add(Pair.of(entryName, expectedData)); in outputJarEntries() 705 signatureZipEntries.add(Pair.of(entryName, expectedData)); in outputJarEntries() 724 for (Pair<String, byte[]> entry : signatureZipEntries) { in outputJarEntries() 770 Pair<DataSource, Integer> paddingPair = in outputZipSectionsInternal() 778 List<Pair<byte[], Integer>> signingSchemeBlocks = new ArrayList<>(); in outputZipSectionsInternal()
|
/tools/apksig/src/main/java/com/android/apksig/internal/zip/ |
D | ZipUtils.java | 19 import com.android.apksig.internal.util.Pair; 112 public static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord(DataSource zip) in findZipEndOfCentralDirectoryRecord() 132 Pair<ByteBuffer, Long> result = findZipEndOfCentralDirectoryRecord(zip, 0); in findZipEndOfCentralDirectoryRecord() 155 private static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord( in findZipEndOfCentralDirectoryRecord() 192 return Pair.of(eocd, bufOffsetInFile + eocdOffsetInBuf); in findZipEndOfCentralDirectoryRecord()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | ApiFile.java | 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() 771 … Pair<String, List<String>> kotlinTypeSuffix = processKotlinTypeSuffix(api, token, annotations); in parseProperty() 846 … Pair<String, List<String>> kotlinTypeSuffix = processKotlinTypeSuffix(api, type, annotations); in parseParameterList()
|
/tools/tradefederation/contrib/tests/src/com/android/regression/tests/ |
D | MetricsTest.java | 25 import com.android.tradefed.util.Pair; 70 mMetrics.getTestMetrics().get(new Pair<>(id1, "metric1"))); in testAddTestMetrics() 73 mMetrics.getTestMetrics().get(new Pair<>(id2, "metric1"))); in testAddTestMetrics() 76 mMetrics.getTestMetrics().get(new Pair<>(id2, "metric2"))); in testAddTestMetrics()
|
/tools/trebuchet/trebuchet/startup-summarizer/src/ |
D | StartupSummarizer.kt | 115 fun averageAndStandardDeviation(values : List<Double>) : Pair<Double, Double> { in averageAndStandardDeviation() 125 return Pair(averageValue, sqrt(sumOfSquaredDiffs / values.size)) in averageAndStandardDeviation() 331 val exceptions : MutableList<Pair<String, Exception>> = mutableListOf() in main() 350 exceptions.add(Pair(fileName, e)) in main()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | UAnnotationItem.kt | 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>()
|
D | PsiAnnotationItem.kt | 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>()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | PerfettoPullerMetricCollector.java | 35 import com.android.tradefed.util.Pair; 240 Pair<String, String> kv = splitKeyValue(metric); in processMetricFile() 508 static Pair<String, String> splitKeyValue(String s) { in splitKeyValue() 514 return new Pair<>(s.substring(0, separatorIdx), s.substring(separatorIdx + 1)); in splitKeyValue()
|
/tools/trebuchet/trebuchet/startup-common/src/ |
D | StartupCommon.kt | 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()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | PerfettoPullerMetricCollectorTest.java | 32 import com.android.tradefed.util.Pair; 324 PerfettoPullerMetricCollector.splitKeyValue("abc:xyz"), new Pair<>("abc", "xyz")); in testSplitKeyValue() 327 new Pair<>("a:b:c", "xyz")); in testSplitKeyValue()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ExtractAnnotations.kt | 76 …private val packageToAnnotationPairs = LinkedHashMap<PackageItem, MutableList<Pair<Item, Annotatio… in <lambda>() 170 mutableListOf<Pair<Item, AnnotationHolder>>() in <lambda>() 174 list.add(Pair(item, annotation)) in <lambda>()
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | DriverTest.kt | 942 ): Pair<Array<String>, File?> { in <lambda>() 947 return Pair(arrayOf(argBaseline, baselineFile.path), baselineFile) in <lambda>() 949 return Pair(arrayOf(argBaseline, in <lambda>() 955 return Pair(emptyArray(), null) in <lambda>()
|