Home
last modified time | relevance | path

Searched refs:Attributes (Results 1 – 14 of 14) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/jar/
DSignatureFileWriter.java22 import java.util.jar.Attributes;
32 public static void writeMainSection(OutputStream out, Attributes attributes) in writeMainSection()
37 String signatureVersion = attributes.getValue(Attributes.Name.SIGNATURE_VERSION); in writeMainSection()
40 "Mandatory " + Attributes.Name.SIGNATURE_VERSION + " attribute missing"); in writeMainSection()
42 ManifestWriter.writeAttribute(out, Attributes.Name.SIGNATURE_VERSION, signatureVersion); in writeMainSection()
47 namedAttributes.remove(Attributes.Name.SIGNATURE_VERSION.toString()); in writeMainSection()
53 public static void writeIndividualSection(OutputStream out, String name, Attributes attributes) in writeIndividualSection()
DManifestWriter.java26 import java.util.jar.Attributes;
40 public static void writeMainSection(OutputStream out, Attributes attributes) in writeMainSection()
45 String manifestVersion = attributes.getValue(Attributes.Name.MANIFEST_VERSION); in writeMainSection()
48 "Mandatory " + Attributes.Name.MANIFEST_VERSION + " attribute missing"); in writeMainSection()
50 writeAttribute(out, Attributes.Name.MANIFEST_VERSION, manifestVersion); in writeMainSection()
54 namedAttributes.remove(Attributes.Name.MANIFEST_VERSION.toString()); in writeMainSection()
60 public static void writeIndividualSection(OutputStream out, String name, Attributes attributes) in writeIndividualSection()
74 static void writeAttribute(OutputStream out, Attributes.Name name, String value) in writeAttribute()
108 static SortedMap<String, String> getAttributesSortedByName(Attributes attributes) { in getAttributesSortedByName()
DManifestParser.java24 import java.util.jar.Attributes;
344 public String getAttributeValue(Attributes.Name name) { in getAttributeValue()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java58 import java.util.jar.Attributes;
69 private static final Attributes.Name ATTRIBUTE_NAME_CREATED_BY =
70 new Attributes.Name("Created-By");
74 private static final Attributes.Name SF_ATTRIBUTE_NAME_ANDROID_APK_SIGNED_NAME =
75 new Attributes.Name(V1SchemeConstants.SF_ATTRIBUTE_NAME_ANDROID_APK_SIGNED_NAME_STR);
367 Attributes mainAttrs = new Attributes(); in generateManifestFile()
375 mainAttrs.put(Attributes.Name.MANIFEST_VERSION, ATTRIBUTE_VALUE_MANIFEST_VERSION); in generateManifestFile()
391 Attributes entryAttrs = new Attributes(); in generateManifestFile()
433 public Attributes mainSectionAttributes;
442 Attributes mainAttrs = sf.getMainAttributes(); in generateSignatureFile()
[all …]
DV1SchemeVerifier.java83 import java.util.jar.Attributes;
843 if (sfMainSection.getAttributeValue(Attributes.Name.SIGNATURE_VERSION) == null) { in verifySigFileAgainstManifest()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DJarSigningTest.java35 import java.util.jar.Attributes;
101 Attributes attrs = manifest.getAttributes("directory/file"); in signJarWithPrexistingSimpleTextFilePre18()
121 Attributes signAttrs = signature.getAttributes("directory/file"); in signJarWithPrexistingSimpleTextFilePre18()
158 Attributes attrs = manifest.getAttributes("directory/file"); in signJarWithPrexistingSimpleTextFilePos18()
179 Attributes signAttrs = signature.getAttributes("directory/file"); in signJarWithPrexistingSimpleTextFilePos18()
243 Attributes file1Attrs = manifest.getEntries().get(file1Name); in v1ReSignOnFileChange()
267 Attributes file1Attrs = manifest.getEntries().get(file1Name); in v1ReSignOnFileChange()
298 Attributes file1Attrs = manifest.getEntries().get(file1Name); in v1ReSignOnFileChange()
/tools/tradefederation/core/src/com/android/tradefed/util/
DJUnitXmlParser.java29 import org.xml.sax.Attributes;
79 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement()
158 String getMandatoryAttribute(String tagName, String attrName, Attributes attributes) in getMandatoryAttribute()
173 long getTimeMillis(String tagName, Attributes attributes) throws SAXException { in getTimeMillis()
/tools/metalava/metalava-model-testsuite-cli/src/main/java/com/android/tools/metalava/model/testsuite/cli/
DUpdateBaselineCommand.kt30 import org.xml.sax.Attributes in <lambda>()
116 fun Attributes.requiredValue(name: String) = in Attributes() method
123 attributes: Attributes? in Attributes()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DManifestGenerationExtension.java31 import java.util.jar.Attributes;
195 Attributes mainAttributes = manifest.getMainAttributes(); in rebuildManifest()
221 Attributes mainAttributes = manifest.getMainAttributes(); in setMainAttribute()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiToExtensionsMap.kt20 import org.xml.sax.Attributes
211 attributes: Attributes in fromXml()
318 private fun Attributes.getStringOrThrow(tag: String, attr: String): String = in Attributes() method
321 private fun Attributes.getIntOrThrow(tag: String, attr: String): Int = in Attributes() method
/tools/tradefederation/contrib/src/com/android/regression/tests/
DMetricsXmlParser.java24 import org.xml.sax.Attributes;
81 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement()
111 private String getMandatoryAttribute(String tagName, String attrName, Attributes attributes) in getMandatoryAttribute()
/tools/asuite/atest/
DAndroid.bp21 // Attributes common to both atest binaries and unittests.
52 // Attributes common to atest binaries.
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationXmlParser.java22 import org.xml.sax.Attributes;
110 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement()
307 void addObject(String objectTypeName, Attributes attributes) throws SAXException { in addObject()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/doc/
DDocAnalyzer.kt53 import org.xml.sax.Attributes in <lambda>()
1010 attributes: Attributes in createSymbolToSdkExtSinceMap()