Home
last modified time | relevance | path

Searched refs:add (Results 1 – 25 of 226) sorted by relevance

12345678910

/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DAlignmentTest.java59 zf.add("test.txt", new ByteArrayInputStream(testBytes), false); in addAlignedFile()
75 zf.add("test.txt.foo", new ByteArrayInputStream(testBytes), false); in addNonAlignedFile()
90 zf.add("file1.txt", new ByteArrayInputStream(testBytes1), false);
91 zf.add("file0.txt", new ByteArrayInputStream(testBytes0), false);
134 zf.add("file0.txt", new ByteArrayInputStream(testBytes0), false);
135 zf.add("file1.txt", new ByteArrayInputStream(testBytes1), false);
177 zf.add("test.txt", new ByteArrayInputStream(testBytes), false);
202 zf.add("file0.txt", new ByteArrayInputStream(testBytes0), false);
208 zf.add("file1.txt", new ByteArrayInputStream(testBytes1), false);
256 zf.add("foo", new ByteArrayInputStream(recognizable), false);
[all …]
DZFileNotificationTest.java80 added.add(new ApkZLibPair<>(entry, replaced)); in added()
87 removed.add(entry); in removed()
121 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyAddFile()
144 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyRemoveFile()
167 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyUpdateFile()
172 zf.add("foo", new ByteArrayInputStream(new byte[] { 2, 3 })); in notifyUpdateFile()
193 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyOpenUpdateClose()
217 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyOpenUpdate()
240 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyUpdate()
244 zf.add("bar", new ByteArrayInputStream(new byte[] { 2, 3 })); in notifyUpdate()
[all …]
DExtraFieldTest.java200 zf.add("before", new ByteArrayInputStream(new byte[] { 0, 1, 2 })); in addExtraFieldToExistingEntry()
201 zf.add("extra", new ByteArrayInputStream(new byte[] { 3, 4, 5 })); in addExtraFieldToExistingEntry()
202 zf.add("after", new ByteArrayInputStream(new byte[] { 6, 7, 8 })); in addExtraFieldToExistingEntry()
242 zf.add("before", new ByteArrayInputStream(new byte[] { 0, 1, 2 })); in removeExtraFieldFromExistingEntry()
243 zf.add("extra", new ByteArrayInputStream(new byte[] { 3, 4, 5 })); in removeExtraFieldFromExistingEntry()
244 zf.add("after", new ByteArrayInputStream(new byte[] { 6, 7, 8 })); in removeExtraFieldFromExistingEntry()
285 zf.add("before", new ByteArrayInputStream(new byte[] { 0, 1, 2 })); in updateExtraFieldOfExistingEntry()
286 zf.add("extra", new ByteArrayInputStream(new byte[] { 3, 4, 5 })); in updateExtraFieldOfExistingEntry()
287 zf.add("after", new ByteArrayInputStream(new byte[] { 6, 7, 8 })); in updateExtraFieldOfExistingEntry()
DZipToolsTest.java156 zf.add("root", new ByteArrayInputStream(ZipTestUtils.rsrcBytes("root"))); in testReadZFile()
157 zf.add("images/", new ByteArrayInputStream(new byte[0])); in testReadZFile()
158 zf.add( in testReadZFile()
161 zf.add("text-files/", new ByteArrayInputStream(new byte[0])); in testReadZFile()
162 zf.add( in testReadZFile()
165 zf.add( in testReadZFile()
171 command.add(zfile.getAbsolutePath()); in testReadZFile()
DZFileTest.java182 zf.add("wiki", new ByteArrayInputStream(wikiData)); in compressedFilesReadableByJavaZip()
183 zf.add("rfc", new ByteArrayInputStream(rfcData)); in compressedFilesReadableByJavaZip()
184 zf.add("lena", new ByteArrayInputStream(lenaData)); in compressedFilesReadableByJavaZip()
287 zf.add("foo", new ByteArrayInputStream(new byte[] { 0, 1 }));
331 zf.add("file2", new ByteArrayInputStream(new byte[] { 11, 12 }));
371 zf.add("file3", new ByteArrayInputStream(new byte[]{11, 12}));
422 zf.add("file1", new ByteArrayInputStream(newData));
473 zf.add("file3", new ByteArrayInputStream(newData));
546 zf.add("a/b/c", new ByteArrayInputStream(new byte[]{1, 2, 3})); in addingFileDoesNotAddDirectoriesAutomatically()
768 zipNoOffset.add("x", new ByteArrayInputStream(new byte[]{1, 2})); in extraDirectoryOffsetNonEmptyFile()
[all …]
/tools/test/connectivity/acts/framework/tests/controllers/monsoon_lib/sampling/engine/
Dcalibration_test.py50 self.calibration_windows.add(C, O, G, 0)
51 self.calibration_windows.add(C, O, G, 1)
52 self.calibration_windows.add(C, O, G, 2)
56 self.calibration_windows.add(C, O, G, expected_value)
66 self.calibration_windows.add(C, O, G, value_to_remove)
68 self.calibration_windows.add(C, O, G, new_value)
79 self.calibration_windows.add(C, O, G, value)
87 self.calibration_windows.add(C, O, G, value)
109 self.calibration_scalars.add(C, O, G, ignored_value)
110 self.calibration_scalars.add(C, O, G, expected_value)
[all …]
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DManifestGenerationTest.java49 zf.add("abc", new ByteArrayInputStream(new byte[]{1})); in elementaryManifestGeneration()
50 zf.add("x/", new ByteArrayInputStream(new byte[0])); in elementaryManifestGeneration()
51 zf.add("x/abc", new ByteArrayInputStream(new byte[]{2})); in elementaryManifestGeneration()
71 linesSet.add(l.trim()); in elementaryManifestGeneration()
86 zf.add("wiki", wiki); in manifestGenerationOnHalfWrittenFile()
107 linesSet.add(l.trim()); in manifestGenerationOnHalfWrittenFile()
122 zf.add("wiki", wiki); in manifestGenerationOnExistingFile()
145 linesSet.add(l.trim()); in manifestGenerationOnExistingFile()
164 zf.add("wiki", wiki); in manifestGenerationOnIncrementalNoChanges()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeParameterList.kt39 names.add(parameter.simpleName()) in toString()
75 add(list, s, start, i + 1) in typeParameterStrings()
78 add(list, s, start, i) in typeParameterStrings()
83 add(list, s, start, i) in typeParameterStrings()
96 private fun add(list: MutableList<String>, s: String, from: Int, to: Int) { in add() method
99 list.add(s.substring(i, to)) in add()
DTextTypeParameterItem.kt112 add(list, typeString, start, i) in bounds()
117 add(list, typeString, start, i) in bounds()
127 add(list, typeString, start, length) in bounds()
132 private fun add(list: MutableList<String>, s: String, from: Int, to: Int) { in add() method
147 list.add(element) in add()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiCompilationUnit.kt102 imports.add(classItem) in getImportStatements()
111 imports.add(pkgItem) in getImportStatements()
117 imports.add(methodItem) in getImportStatements()
127 imports.add(fieldItem) in getImportStatements()
138 imports.add(classItem) in getImportStatements()
168 imports.filterIsInstance<PackageItem>().forEach { result.add(it) } in getImportStatements()
185 found.add(name) in getImportStatements()
193 result.add(referenced) in getImportStatements()
218 topLevel.add(classItem) in classes()
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/
DSliceGroupBuilder.kt30 openSlices.add(builder) in hasOpenSlices()
40 openSlices.last().add(builder) in endSlice()
42 slices.add(builder) in endSlice()
90 fun add(child: MutableSliceGroup) { in add() method
92 _children!!.add(child) in add()
/tools/metalava/src/main/java/com/android/tools/metalava/
DPackageFilter.kt56 add(StringEqualsPredicate(exact), treatAsPositiveMatch) in addPackages()
58 add(StringPrefixPredicate(prefix), treatAsPositiveMatch) in addPackages()
60 add(StringEqualsPredicate(pkg), treatAsPositiveMatch) in addPackages()
65 fun add(predicate: Predicate<String>, treatAsPositiveMatch: Boolean) { in add() method in com.android.tools.metalava.PackageFilter
66 components.add(PackageFilterComponent(predicate, treatAsPositiveMatch)) in add()
/tools/platform-compat/java/android/processor/compat/
DAndroid.bp31 "--add-modules=jdk.compiler",
32 "--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
33 "--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
34 "--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
35 "--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
/tools/asuite/atest-py2/test_finders/
Dtest_finder_utils.py282 verified_tests.add(fpath)
290 verified_tests.add(test)
608 targets.add(_PERF_SETUP_LABEL)
613 targets.add(target_to_add)
624 targets.add(_CTS_JAR)
658 targets.add(os.path.join(rel_out_dir, sanitized_target))
726 plans.add(xml_file)
771 targets.add(value)
776 targets.add(_get_vts_binary_src_target(value, rel_out_dir))
787 targets.add(os.path.join(rel_out_dir, push_target + _VTS_BITNESS_32))
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java102 algorithms.add(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
104 algorithms.add(SignatureAlgorithm.VERITY_RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
115 algorithms.add( in getSuggestedSignatureAlgorithms()
120 algorithms.add(SignatureAlgorithm.VERITY_DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
129 algorithms.add(SignatureAlgorithm.ECDSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
131 algorithms.add(SignatureAlgorithm.VERITY_ECDSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
202 signerBlocks.add(signerBlock); in generateApkSignatureSchemeV2Block()
245 digests.add(Pair.of(signatureAlgorithm.getId(), contentDigest)); in generateSignerBlock()
DV2SchemeVerifier.java208 result.signers.add(signerInfo); in parseSigners()
266 result.signatures.add( in parseSigner()
274 supportedSignatures.add( in parseSigner()
326 contentDigestsToVerify.add(signatureAlgorithm.getContentDigestAlgorithm()); in parseSigner()
361 result.certs.add(certificate); in parseSigner()
394 result.contentDigests.add( in parseSigner()
405 sigAlgsFromSignaturesRecord.add(signature.getAlgorithmId()); in parseSigner()
409 sigAlgsFromDigestsRecord.add(digest.getSignatureAlgorithmId()); in parseSigner()
431 result.additionalAttributes.add( in parseSigner()
439 supportedExpectedApkSigSchemeIds.add(foundId); in parseSigner()
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/tracks/
DMultiLineTrack.kt34 add(SchedTrack(thread.schedSlices, renderState))
38 add(SliceTrack(it, renderState)) in <lambda>()
55 while (index >= rows.size) rows.add(mutableListOf()) in push()
63 row.add(slice) in addSlice()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DFileUseMap.java103 map.add(entry); in internalAdd()
106 free.add(entry); in internalAdd()
131 private void add(@Nonnull FileUseMapEntry<?> entry) { in add() method in FileUseMap
177 <T> FileUseMapEntry<T> add(long start, long end, @Nonnull T store) {
182 add(entry);
228 result.add(FileUseMapEntry.makeFree(farStart, start)); in split()
231 result.add(entry); in split()
234 result.add(FileUseMapEntry.makeFree(end, farEnd)); in split()
520 freeAreas.add(area); in getFreeAreas()
583 .forEach(j::add);
/tools/platform-compat/java/android/processor/compat/unsupportedappusage/
DAndroid.bp32 "--add-modules=jdk.compiler",
33 "--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
34 "--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
35 "--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
36 "--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/compress/
DMultiCompressorTest.java65 zf.add("file", new ByteArrayInputStream(new byte[0])); in storeIsBest()
84 zf.add("file", new ByteArrayInputStream(data)); in sameCompressionResultButBetterThanStore()
116 defaultZFile.add("wikipedia.html", new ByteArrayInputStream(data));
117 resultZFile.add("wikipedia.html", new ByteArrayInputStream(data));
146 defaultZFile.add("wikipedia.html", new ByteArrayInputStream(data));
147 resultZFile.add("wikipedia.html", new ByteArrayInputStream(data));
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java90 algorithms.add(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
92 algorithms.add(SignatureAlgorithm.VERITY_RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
103 algorithms.add( in getSuggestedSignatureAlgorithms()
108 algorithms.add(SignatureAlgorithm.VERITY_DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
117 algorithms.add(SignatureAlgorithm.ECDSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
119 algorithms.add(SignatureAlgorithm.VERITY_ECDSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
182 signerBlocks.add(signerBlock); in generateApkSignatureSchemeV3Block()
223 digests.add(Pair.of(signatureAlgorithm.getId(), contentDigest)); in generateSignerBlock()
/tools/test/graphicsbenchmark/functional_tests/
DCleanSpec.mk48 $(call add-clean-step, rm -rf $(HOST_OUT)/gts/android-gts/testcases/GameQualificationJavaTestCases*)
49 $(call add-clean-step, rm -rf $(HOST_OUT)/gts/android-gts/testcases/GameQualificationHostTestCases*)
50 $(call add-clean-step, rm -rf $(HOST_OUT)/gts/android-gts/testcases/GameQualificationNativeTestCase…
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java150 if (!cdEntryNames.add(entryName)) { in checkForDuplicateEntries()
155 if (duplicateCdEntryNames.add(entryName)) { in checkForDuplicateEntries()
243 sigBlockEntries.add(cdRecord); in verify()
298 signers.add(signer); in verify()
312 result.signers.add(signer.getResult()); in verify()
334 result.ignoredSigners.add(signer.getResult()); in verify()
337 result.signers.add(signer.getResult()); in verify()
339 remainingSigners.add(signer); in verify()
385 signatureEntryNames.add(manifestEntry.getName()); in verify()
387 signatureEntryNames.add(signer.getSignatureBlockEntryName()); in verify()
[all …]
/tools/test/connectivity/acts/framework/tests/metrics/loggers/
Dbounded_metrics_test.py60 logger.add('towels_metric', 123, lower_limit=1, upper_limit=2,
84 logger.add('limitless_metric', 123, unit='skies')
113 logger.add('limitless_metric', 123, unit='skies')
133 logger.add('limitless_metric', 123, unit='skies')
207 self.bounded_metrics.add('galaxies', 1234, lower_limit=-5,
242 self.bounded_metric.add('never_gonna_give_you_up', 1)
245 self.bounded_metric.add('never_gonna_let_you_down', 2)
248 self.bounded_metric.add('never_gonna_run_around_and_desert_you',
/tools/apksig/src/test/java/com/android/apksig/
DSigningCertificateLineageTest.java100 signers.add( in testLineageFromBytesContainsExpectedSigners()
102 signers.add( in testLineageFromBytesContainsExpectedSigners()
104 signers.add( in testLineageFromBytesContainsExpectedSigners()
117 signers.add( in testLineageFromFileContainsExpectedSigners()
119 signers.add( in testLineageFromFileContainsExpectedSigners()
121 signers.add( in testLineageFromFileContainsExpectedSigners()
336 expectedCertSet.add(mSigners.get(i).getCertificate()); in testAllExpectedCertificatesAreInLineage()
377 lineages.add(createLineageWithSignersFromResources(FIRST_RSA_1024_SIGNER_RESOURCE_NAME, in testConsolidatedLineageWithDisjointLineagesFail()
379 lineages.add(createLineageWithSignersFromResources(FIRST_RSA_2048_SIGNER_RESOURCE_NAME, in testConsolidatedLineageWithDisjointLineagesFail()
512 mSigners.add(oldSignerConfig); in createLineageWithSignersFromResources()
[all …]

12345678910