Index

A B C D E F G H I K L M N O P R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AAPT_SAFE - Enum constant in enum class com.android.manifmerger.MergingReport.MergedManifestKind
Merged manifest file with unresolved placeholders encoded to be AAPT friendly.
ActionRecorder - Class in com.android.manifmerger
Records all the actions taken by the merging tool.
ActionRecorder() - Constructor for class com.android.manifmerger.ActionRecorder
 
Actions - Class in com.android.manifmerger
Contains all actions taken during a merging invocation.
Actions(Map<XmlNode.NodeKey, Actions.DecisionTreeRecord>) - Constructor for class com.android.manifmerger.Actions
 
Actions.ActionType - Enum Class in com.android.manifmerger
Defines all possible actions taken from the merging tool for an xml element or attribute.
Actions.AttributeRecord - Class in com.android.manifmerger
Defines a merging tool action for an xml attribute
Actions.NodeRecord - Class in com.android.manifmerger
Defines a merging tool action for an xml element.
Actions.Record - Class in com.android.manifmerger
Defines an abstract record contain common metadata for elements and attributes actions.
ADD_ANDROIDX_MULTIDEX_APPLICATION_IF_NO_NAME - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Adds the AndroidX name of AndroidXConstants.MULTI_DEX_APPLICATION as application name if none is specified.
ADD_DYNAMIC_FEATURE_ATTRIBUTES - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Mark this application as a feature split
ADD_SUPPORT_MULTIDEX_APPLICATION_IF_NO_NAME - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Adds the pre-AndroidX name of AndroidXConstants.MULTI_DEX_APPLICATION as application name if none is specified.
addAllowedNonUniqueNamespace(String) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Add a namespace that is allowed to appear in more than one library.
addAttribute(XmlAttribute, String) - Method in class com.android.manifmerger.XmlElement
 
addAttribute(String, String, String) - Method in class com.android.manifmerger.XmlElement
 
addChildElement(String) - Method in class com.android.manifmerger.XmlElement
Add a new Child Element with no Attributes.
addChildElementWithSingleAttribute(String, String, String, String) - Method in class com.android.manifmerger.XmlElement
Add a new Element with a single specified Attribute to parentElement
addDependencyFeatureNames(Iterable<String>) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Specifies a list of feature modules on which this module will depend.
ADDED - Enum constant in enum class com.android.manifmerger.Actions.ActionType
The element was added into the resulting merged manifest.
addFlavorAndBuildTypeManifest(File) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Add a flavor or build type manifest file last in the list.
addFlavorAndBuildTypeManifests(File...) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Add several flavor or build type manifest files last in the list.
addLibraryManifest(File) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Add one library file manifest, will be added last in the list of library files which will make the parameter the lowest priority library manifest file.
addLibraryManifest(String, File) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Add one library file manifest, will be added last in the list of library files which will make the parameter the lowest priority library manifest file.
addLibraryManifests(File...) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Add several library file manifests at the end of the list which will make them the lowest priority manifest files.
addManifestProviders(Iterable<? extends ManifestProvider>) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Sets manifest providers for this merging activity.
addNavigationFiles(Iterable<File>) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Add several navigation files last in the list.
addNavigationJsons(Iterable<File>) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Add several navigation.json files in the list.
addSelector(String, String) - Method in class com.android.manifmerger.ManifestMerger2.SelectorResolver
 
addTo(ActionRecorder, XmlDocument, String) - Method in interface com.android.manifmerger.ManifestMerger2.AutoAddingProperty
Add itself (possibly just override the current value) with the passed value
addToNode(Element, String) - Method in class com.android.manifmerger.XmlNode.Name
 
addToNode(Element, String) - Method in class com.android.manifmerger.XmlNode.NamespaceAwareName
 
addToNode(Element, String) - Method in interface com.android.manifmerger.XmlNode.NodeName
Adds a new attribute of this name to a xml element with a value.
ADVANCED_PROFILING - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Perform Studio advanced profiling manifest modifications
ALWAYS - Enum constant in enum class com.android.manifmerger.MergeType
Always consume lower priority elements unless it is strictly equal to the higher priority element.
appendChild(XmlElement) - Method in class com.android.manifmerger.XmlElement
 
appendChild(Node) - Method in class com.android.manifmerger.XmlElement
 
APPLICATION - Enum constant in enum class com.android.manifmerger.ManifestMerger2.MergeType
Application merging type is used when packaging an application with a set of imported libraries.
APPLICATION_ID - Static variable in class com.android.manifmerger.PlaceholderHandler
 
applyToFirstChildElementOfType(ManifestModel.NodeTypes, Consumer<XmlElement>) - Method in class com.android.manifmerger.XmlElement
Applies the provided consumer on the first child element of the provided node type
asType(XmlDocument.Type) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Specify if the file being merged is an overlay (flavor).
autoRejectConflicts() - Method in class com.android.manifmerger.ManifestModel
 

B

blame(XmlDocument) - Method in class com.android.manifmerger.Actions
 
blame(XmlDocument) - Method in class com.android.manifmerger.MergingReport.Builder
 
BLAME - Enum constant in enum class com.android.manifmerger.MergingReport.MergedManifestKind
Blame file for merged manifest file.

C

check() - Method in interface com.android.manifmerger.ManifestMerger2.ProcessCancellationChecker
 
CHECK_IF_PACKAGE_IN_MAIN_MANIFEST - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Warn if the package attribute is present in the main manifest, or throw an exception if it's present and not equal to the component's namespace.
checkPath(String) - Method in class com.android.manifmerger.Merger
 
cleanToolsReferences(ManifestMerger2.MergeType, XmlDocument, ILogger) - Static method in class com.android.manifmerger.ToolsInstructionsCleaner
Cleans all attributes belonging to the SdkConstants.TOOLS_URI namespace.
clearNodeNamespaces() - Method in class com.android.manifmerger.XmlDocument
Removes the android namespace from all nodes.
cloneAndTransform(Predicate<Node>, Predicate<Node>) - Method in class com.android.manifmerger.XmlDocument
Clones and transforms an XML document.
com.android.manifmerger - package com.android.manifmerger
 
compareTo(XmlDocument) - Method in class com.android.manifmerger.XmlDocument
Compares this document to another XmlDocument ignoring all attributes belonging to the SdkConstants.TOOLS_URI namespace.
compareTo(Object) - Method in class com.android.manifmerger.XmlElement
Compares this element with another XmlElement ignoring all attributes belonging to the SdkConstants.TOOLS_URI namespace.
COMPATIBLE_SCREENS_SUB_MANIFEST - Static variable in class com.android.manifmerger.ManifestMerger2
 
CONFLICT - Enum constant in enum class com.android.manifmerger.MergeType
Always generate a merging failure when encountering lower priority elements.
CONVERTED - Enum constant in enum class com.android.manifmerger.Actions.ActionType
The element was converted into a different type of element in the resulting merged manifest.
ConvertibleName - Interface in com.android.manifmerger
Defines conversion routines for named types that can be converted into Xml name or Camel case names.
createInvoker(File, ILogger) - Method in class com.android.manifmerger.Merger
 
createLogger(StdLogger.Level) - Method in class com.android.manifmerger.Merger
 
createOrGetElementOfType(XmlDocument, ManifestModel.NodeTypes, Consumer<XmlElement>) - Method in class com.android.manifmerger.XmlElement
 
createXmlAttribute(XmlElement, Attr) - Static method in class com.android.manifmerger.XmlAttribute
 

D

DEBUGGABLE - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Set the android:debuggable flag to the application.
DISABLE_MINSDKLIBRARY_CHECK - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Unsafely disables minSdkVersion check in libraries.
DISABLE_PACKAGE_NAME_UNIQUENESS_CHECK - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
 
DISABLE_STRIP_LIBRARY_TARGET_SDK - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Removes target SDK for library manifest

E

ElementsTrimmer - Class in com.android.manifmerger
Trims the document from unwanted, repeated elements.
ElementsTrimmer() - Constructor for class com.android.manifmerger.ElementsTrimmer
 
elementUsesNamespacePrefix(String) - Method in class com.android.manifmerger.XmlElement
Check whether this element or any of its descendants have an attribute with the given namespace
encode(Node) - Static method in class com.android.manifmerger.PlaceholderEncoder
Iterate through each attribute for a placeholder existence.
ENFORCE_UNIQUE_PACKAGE_NAME - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Enforce that dependencies manifests don't have duplicated package names.
enforceNamespaceDeclaration(String, String) - Method in class com.android.manifmerger.XmlElement
Check that given namespace is declared on the element and create one if not.
enforceToolsNamespaceDeclaration(XmlDocument) - Static method in class com.android.manifmerger.PostValidator
Enforces SdkConstants.TOOLS_URI declaration in the top level element, if necessary.
equals(Object) - Method in class com.android.manifmerger.MergingReport.Record
 
equals(Object) - Method in class com.android.manifmerger.XmlNode.Name
 
equals(Object) - Method in class com.android.manifmerger.XmlNode.NamespaceAwareName
 
equals(Object) - Method in class com.android.manifmerger.XmlNode.NodeKey
 
ERROR - Enum constant in enum class com.android.manifmerger.MergingReport.Record.Severity
 
ERROR - Enum constant in enum class com.android.manifmerger.MergingReport.Result
 
EXTRACT_FQCNS - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Perform a sweep after all merging activities to remove all fully qualified class names and replace them with the equivalent short version.

F

FEATURE_NAME - Static variable in class com.android.manifmerger.PlaceholderHandler
 
FileStreamProvider() - Constructor for class com.android.manifmerger.ManifestMerger2.FileStreamProvider
 
findMergeableChild(Element) - Method in class com.android.manifmerger.XmlElement
 
fromNSName(String, String, String) - Static method in class com.android.manifmerger.XmlNode
 
fromXml(Element, DocumentModel<ManifestModel.NodeTypes>) - Static method in class com.android.manifmerger.XmlNode.NodeKey
 
fromXmlName(String) - Static method in class com.android.manifmerger.XmlNode
 
fromXmlSimpleName(String) - Method in class com.android.manifmerger.ManifestModel
Returns the ManifestModel.NodeTypes instance from an xml element name (without namespace decoration).
FULLY_NAMESPACE_LOCAL_RESOURCES - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Rewrite local resource references with fully qualified namespace
FUSED_LIBRARY - Enum constant in enum class com.android.manifmerger.ManifestMerger2.MergeType
Fused library merging type is similar to application manifest merging as library manifests are merged, however tools annotations are kept for application merging, placeholder replacements are non-exhaustive and final validation is not performed.

G

getActionLocation() - Method in class com.android.manifmerger.Actions.Record
 
getActions() - Method in class com.android.manifmerger.MergingReport
 
getActionType() - Method in class com.android.manifmerger.Actions.Record
 
getAllNodesByType(ManifestModel.NodeTypes) - Method in class com.android.manifmerger.XmlElement
Returns all immediate children of this node for a particular type, irrespective of their key.
getAttribute(XmlNode.NodeName) - Method in class com.android.manifmerger.XmlElement
Returns the XmlAttribute for an attribute present on this xml element, or Optional.empty() if not present.
getAttributeCount() - Method in class com.android.manifmerger.XmlElement
 
getAttributeInfo(String, String) - Method in class com.android.manifmerger.OrphanXmlElement
 
getAttributeNames(Predicate<Node>) - Method in class com.android.manifmerger.XmlElement
 
getAttributeNode(String) - Method in class com.android.manifmerger.OrphanXmlElement
 
getAttributeNodeNS(String, String) - Method in class com.android.manifmerger.OrphanXmlElement
 
getAttributeOperations() - Method in class com.android.manifmerger.XmlElement
 
getAttributeOperationType(XmlNode.NodeName) - Method in class com.android.manifmerger.XmlElement
Get the attribute operation type as optionally specified by the user.
getAttributeRecords(XmlNode.NodeKey, XmlNode.NodeName) - Method in class com.android.manifmerger.Actions
Returns the ImmutableList of Actions.AttributeRecord for the attribute identified by attributeName of the element identified by elementKey.
getAttributes() - Method in class com.android.manifmerger.XmlElement
Returns the list of attributes for this xml element.
getAttributeValue(String, String) - Method in class com.android.manifmerger.OrphanXmlElement
 
getByTypeAndKey(ManifestModel.NodeTypes, String) - Method in class com.android.manifmerger.XmlDocument
 
getChildElementsByName(Element, String) - Static method in class com.android.manifmerger.ManifestMerger2
Returns a list of elements which are the immediate children of the given element and have the given name.
getDocument() - Method in class com.android.manifmerger.XmlElement
Returns the owning XmlDocument
getFileStreamProvider() - Method in class com.android.manifmerger.ManifestMerger2
Returns the ManifestMerger2.FileStreamProvider used by this manifest merger.
getFileType() - Method in class com.android.manifmerger.XmlDocument
 
getId() - Method in class com.android.manifmerger.OrphanXmlElement
 
getId() - Method in class com.android.manifmerger.XmlAttribute
Returns a display friendly identification string that can be used in machine and user readable messages.
getId() - Method in class com.android.manifmerger.XmlNode
Returns an unique id within the manifest file for the element.
getInputStream(File) - Method in class com.android.manifmerger.ManifestMerger2.FileStreamProvider
Creates a reader for the given file -- which may not necessarily read the contents of the file on disk.
getIntermediaryStages() - Method in class com.android.manifmerger.MergingReport
Returns all the merging intermediary stages if ManifestMerger2.Invoker.Feature.KEEP_INTERMEDIARY_STAGES is set.
getKey() - Method in class com.android.manifmerger.OrphanXmlElement
Returns the unique key for this xml element within the xml file or null if there can be only one element of this type.
getKeys() - Method in interface com.android.manifmerger.KeyResolver
 
getKeys() - Method in class com.android.manifmerger.ManifestMerger2.SelectorResolver
 
getLocalName() - Method in class com.android.manifmerger.XmlNode.Name
 
getLocalName() - Method in class com.android.manifmerger.XmlNode.NamespaceAwareName
 
getLocalName() - Method in interface com.android.manifmerger.XmlNode.NodeName
The local name.
getLogger() - Method in class com.android.manifmerger.MergingReport.Builder
 
getLoggingRecords() - Method in class com.android.manifmerger.MergingReport
 
getManifest() - Method in interface com.android.manifmerger.ManifestProvider
Returns the location of the manifest.
getManifestDocument(File) - Method in interface com.android.manifmerger.ManifestMerger2.ManifestDocumentProvider
Gets a Merged manifest XML document for the given file's project.
getMaxSdkVersion(MergingReport.Builder) - Method in class com.android.manifmerger.XmlDocument
Returns the maxSdkVersion version for this manifest file.
getMergeableElements() - Method in class com.android.manifmerger.XmlElement
 
getMergedDocument(MergingReport.MergedManifestKind) - Method in class com.android.manifmerger.MergingReport
 
getMergedXmlDocument(MergingReport.MergedManifestKind) - Method in class com.android.manifmerger.MergingReport
 
getMessage() - Method in class com.android.manifmerger.MergingReport.Record
 
getMinSdkVersion(MergingReport.Builder) - Method in class com.android.manifmerger.XmlDocument
Returns the minSdk version for this manifest file.
getModel() - Method in class com.android.manifmerger.XmlAttribute
 
getModel() - Method in class com.android.manifmerger.XmlDocument
 
getName() - Method in interface com.android.manifmerger.ManifestProvider
Returns a user friendly name.
getName() - Method in class com.android.manifmerger.OrphanXmlElement
 
getName() - Method in class com.android.manifmerger.XmlAttribute
Returns the attribute's name, providing isolation from details like namespaces handling.
getName() - Method in class com.android.manifmerger.XmlNode
Returns the name of this xml element or attribute.
getNamespace() - Method in class com.android.manifmerger.XmlDocument
Namespace for this android manifest which will be used to resolve partial paths.
getNamespaceURI() - Method in class com.android.manifmerger.OrphanXmlElement
 
getNodeByTypeAndKey(ManifestModel.NodeTypes, String) - Method in class com.android.manifmerger.XmlElement
Returns a child of a particular type and a particular key.
getNodeKeys() - Method in class com.android.manifmerger.Actions
Returns a ImmutableSet of all the element's keys that have at least one Actions.NodeRecord.
getNodeRecords(XmlNode.NodeKey) - Method in class com.android.manifmerger.Actions
Returns an ImmutableList of Actions.NodeRecord for the element identified with the passed key.
getOperationType() - Method in class com.android.manifmerger.Actions.AttributeRecord
 
getOperationType() - Method in class com.android.manifmerger.XmlElement
Get the node operation type as optionally specified by the user.
getOriginalId() - Method in class com.android.manifmerger.XmlNode
Returns a constant Nodekey that can be used throughout the lifecycle of the xml element.
getOverrideUsesSdkLibrarySelectors() - Method in class com.android.manifmerger.XmlElement
 
getPackage() - Method in class com.android.manifmerger.XmlDocument
 
getPosition() - Method in class com.android.manifmerger.OrphanXmlElement
 
getPosition() - Method in class com.android.manifmerger.XmlAttribute
 
getPosition() - Method in class com.android.manifmerger.XmlElement
 
getPosition() - Method in class com.android.manifmerger.XmlNode
Returns the element's position
getReason() - Method in class com.android.manifmerger.Actions.Record
 
getRecordedAttributeNames(XmlNode.NodeKey) - Method in class com.android.manifmerger.Actions
Returns a ImmutableList of all attributes names that have at least one record for the element identified with the passed key.
getReportString() - Method in class com.android.manifmerger.MergingReport
 
getResult() - Method in class com.android.manifmerger.MergingReport
 
getResultingSourceMapping(XmlDocument) - Method in class com.android.manifmerger.Actions
 
getRootNode() - Method in class com.android.manifmerger.XmlDocument
 
getSelector() - Method in class com.android.manifmerger.XmlElement
Returns a potentially null (if not present) selector decoration on this element.
getSelectors() - Method in class com.android.manifmerger.XmlDocument
Returns a KeyResolver capable of resolving all selectors types
getSeverity() - Method in class com.android.manifmerger.MergingReport.Record
 
getSourceFile() - Method in class com.android.manifmerger.OrphanXmlElement
 
getSourceFile() - Method in class com.android.manifmerger.XmlAttribute
 
getSourceFile() - Method in class com.android.manifmerger.XmlDocument
Returns the SourceFile associated with this XML document.
getSourceFile() - Method in class com.android.manifmerger.XmlElement
 
getSourceFile() - Method in class com.android.manifmerger.XmlNode
Returns the element's document xml source file location.
getSourceFilePosition() - Method in class com.android.manifmerger.XmlNode
Returns the element's document xml source file location.
getSourceLocation() - Method in class com.android.manifmerger.MergingReport.Record
 
getSplitName() - Method in class com.android.manifmerger.XmlDocument
Returns the split name if this manifest file has one.
getSystemPropertyResolver() - Method in class com.android.manifmerger.XmlDocument
Returns the PlaceholderHandler.KeyBasedValueResolver capable of resolving all injected ManifestSystemProperty
getTagName() - Method in class com.android.manifmerger.OrphanXmlElement
 
getTargetId() - Method in class com.android.manifmerger.Actions.Record
 
getTargetSdkVersion(MergingReport.Builder) - Method in class com.android.manifmerger.XmlDocument
Returns the targetSdk version for this manifest file.
getType() - Method in class com.android.manifmerger.OrphanXmlElement
Returns this xml element ManifestModel.NodeTypes
getValue() - Method in class com.android.manifmerger.XmlAttribute
Returns the attribute's value
getValue(T) - Method in class com.android.manifmerger.ManifestMerger2.MapBasedKeyBasedValueResolver
 
getValue(T) - Method in interface com.android.manifmerger.PlaceholderHandler.KeyBasedValueResolver
Returns a placeholder value for the placeholder key or null if none exists.
getXml() - Method in class com.android.manifmerger.OrphanXmlElement
 
getXml() - Method in class com.android.manifmerger.XmlAttribute
 
getXml() - Method in class com.android.manifmerger.XmlDocument
 
getXml() - Method in class com.android.manifmerger.XmlNode
Returns the element's xml

H

HANDLE_VALUE_CONFLICTS_AUTOMATICALLY - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
When there are attribute value conflicts, automatically pick the higher priority value.
hashCode() - Method in class com.android.manifmerger.MergingReport.Record
 
hashCode() - Method in class com.android.manifmerger.XmlNode.Name
 
hashCode() - Method in class com.android.manifmerger.XmlNode.NamespaceAwareName
 
hashCode() - Method in class com.android.manifmerger.XmlNode.NodeKey
 

I

ignore - Enum constant in enum class com.android.manifmerger.OtherOperationType
 
IGNORE - Enum constant in enum class com.android.manifmerger.MergeType
Do not attempt to merge with lower priority elements.
IMPLIED - Enum constant in enum class com.android.manifmerger.Actions.ActionType
The implied element was added was added when importing a library that expected the element to be present by default while targeted SDK requires its declaration.
INFO - Enum constant in enum class com.android.manifmerger.MergingReport.Record.Severity
 
INJECTED - Enum constant in enum class com.android.manifmerger.Actions.ActionType
The element was injected from the merger invocation parameters.
insertBefore(XmlElement, Node) - Method in class com.android.manifmerger.XmlElement
 
insertBefore(Node, Node) - Method in class com.android.manifmerger.XmlElement
Inserts the node newChild before the existing child node refChild.
INSTRUMENTATION_RUNNER - Static variable in class com.android.manifmerger.PlaceholderHandler
 
isA(ManifestModel.NodeTypes) - Method in class com.android.manifmerger.OrphanXmlElement
Returns true if this xml element's ManifestModel.NodeTypes is the passed one.
isAaptSafeManifestUnchanged() - Method in class com.android.manifmerger.MergingReport
 
isEquals(XmlElement) - Method in class com.android.manifmerger.XmlElement
 
isError() - Method in enum class com.android.manifmerger.MergingReport.Result
 
isFullPlaceholderSubstitutionRequired() - Method in enum class com.android.manifmerger.ManifestMerger2.MergeType
 
isInNamespace(String) - Method in class com.android.manifmerger.XmlNode.Name
 
isInNamespace(String) - Method in class com.android.manifmerger.XmlNode.NamespaceAwareName
 
isInNamespace(String) - Method in interface com.android.manifmerger.XmlNode.NodeName
Returns true if this attribute name has a namespace declaration and that namespapce is the same as provided, false otherwise.
isKeepToolsAttributeRequired(String, String) - Method in enum class com.android.manifmerger.ManifestMerger2.MergeType
Return true if the localName attribute should be removed from the node declaring it.
isOverriding() - Method in enum class com.android.manifmerger.NodeOperationType
Returns true if the element will override (remove or replace) lower priority elements.
isPlaceHolder(String) - Static method in class com.android.manifmerger.PlaceholderHandler
Returns true if the passed string is a placeholder value, false otherwise.
isSelectable() - Method in enum class com.android.manifmerger.NodeOperationType
Returns true if this operation supports a Selector
isSuccess() - Method in enum class com.android.manifmerger.MergingReport.Result
 
isWarning() - Method in enum class com.android.manifmerger.MergingReport.Result
 

K

KEEP_GOING_AFTER_ERRORS - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
If set, merger will continue merging after any errors, allowing to surface errors in the "merged manifest" editor view.
KEEP_INTERMEDIARY_STAGES - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Keep all intermediary merged files during the merging process.
KeyResolver<T> - Interface in com.android.manifmerger
Facility to identify an element from its key.

L

LIBRARY - Enum constant in enum class com.android.manifmerger.ManifestMerger2.MergeType
Library merging type is used when packaging a library.
LIBRARY - Enum constant in enum class com.android.manifmerger.XmlDocument.Type
A library manifest that is imported in the application.
load(KeyResolver<String>, PlaceholderHandler.KeyBasedValueResolver<ManifestSystemProperty>, SourceFile, String, XmlDocument.Type, String, DocumentModel<ManifestModel.NodeTypes>) - Static method in class com.android.manifmerger.XmlLoader
Loads a xml document from its String representation without doing xml validation and return a XmlDocument
load(KeyResolver<String>, PlaceholderHandler.KeyBasedValueResolver<ManifestSystemProperty>, String, File, InputStream, XmlDocument.Type, String, DocumentModel<ManifestModel.NodeTypes>, boolean) - Static method in class com.android.manifmerger.XmlLoader
Loads an xml file without doing xml validation and return a XmlDocument
load(InputStream) - Static method in class com.android.manifmerger.Actions
 
load(String) - Static method in class com.android.manifmerger.Actions
 
load(Document, KeyResolver<String>, PlaceholderHandler.KeyBasedValueResolver<ManifestSystemProperty>, String, File, XmlDocument.Type, String, DocumentModel<ManifestModel.NodeTypes>, boolean) - Static method in class com.android.manifmerger.XmlLoader
log(ILogger) - Method in class com.android.manifmerger.MergingReport
dumps all logging records to a logger.
lookupNamespacePrefix(String, boolean) - Method in class com.android.manifmerger.OrphanXmlElement
 
lookupNamespacePrefix(String, String, boolean) - Method in class com.android.manifmerger.OrphanXmlElement
 

M

mActionLocation - Variable in class com.android.manifmerger.Actions.Record
 
mActionType - Variable in class com.android.manifmerger.Actions.Record
 
main(String[]) - Static method in class com.android.manifmerger.Merger
 
MAIN - Enum constant in enum class com.android.manifmerger.XmlDocument.Type
The main android manifest file.
MAKE_AAPT_SAFE - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Encode unresolved placeholders to be AAPT friendly.
ManifestMerger2 - Class in com.android.manifmerger
merges android manifest files, idempotent.
ManifestMerger2.AutoAddingProperty - Interface in com.android.manifmerger
Defines a property that can add or override itself into an XML document.
ManifestMerger2.FileStreamProvider - Class in com.android.manifmerger
A ManifestMerger2.FileStreamProvider provides (buffered, if necessary) InputStream instances for a given File handle.
ManifestMerger2.Invoker - Class in com.android.manifmerger
This class will hold all invocation parameters for the manifest merging tool.
ManifestMerger2.Invoker.Feature - Enum Class in com.android.manifmerger
Optional behavior of the merging tool can be turned on by setting these Feature.
ManifestMerger2.ManifestDocumentProvider - Interface in com.android.manifmerger
A ManifestMerger2.ManifestDocumentProvider provides the merged manifest XML Document instance for the project a given File belongs to.
ManifestMerger2.MapBasedKeyBasedValueResolver<T> - Class in com.android.manifmerger
Helper class for map based placeholders key value pairs.
ManifestMerger2.MergeFailureException - Exception in com.android.manifmerger
 
ManifestMerger2.MergeType - Enum Class in com.android.manifmerger
Defines the merging type expected from the tool.
ManifestMerger2.ProcessCancellationChecker - Interface in com.android.manifmerger
 
ManifestMerger2.SelectorResolver - Class in com.android.manifmerger
Implementation a KeyResolver capable of resolving all selectors value in the context of the passed libraries to this merging activities.
ManifestModel - Class in com.android.manifmerger
Model for the manifest file merging activities.
ManifestModel() - Constructor for class com.android.manifmerger.ManifestModel
Creates a DocumentModel to be used for merging Android manifest documents
ManifestModel(boolean) - Constructor for class com.android.manifmerger.ManifestModel
Creates a DocumentModel to be used for merging Android manifest documents
ManifestProvider - Interface in com.android.manifmerger
An Object that provides a manifest.
MapBasedKeyBasedValueResolver(Map<T, Object>) - Constructor for class com.android.manifmerger.ManifestMerger2.MapBasedKeyBasedValueResolver
 
merge() - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Perform the merging and return the result.
merge(XmlDocument, MergingReport.Builder, boolean, boolean, boolean, ManifestMerger2.ProcessCancellationChecker) - Method in class com.android.manifmerger.XmlDocument
merge this higher priority document with a higher priority document.
merge(XmlDocument, MergingReport.Builder, ManifestMerger2.ProcessCancellationChecker) - Method in class com.android.manifmerger.XmlDocument
merge this higher priority document with a higher priority document.
MERGE - Enum constant in enum class com.android.manifmerger.MergeType
Merge this element with lower priority elements.
MERGE - Enum constant in enum class com.android.manifmerger.NodeOperationType
Merges further definitions of the same element with this one.
MERGE_CHILDREN_ONLY - Enum constant in enum class com.android.manifmerger.MergeType
Merge this element's children with lower priority element's children.
MERGE_ONLY_ATTRIBUTES - Enum constant in enum class com.android.manifmerger.NodeOperationType
Remove all children from the target element before merging it into the resulting merged manifest.
mergeChildren(XmlElement, MergingReport.Builder, ManifestMerger2.ProcessCancellationChecker) - Method in class com.android.manifmerger.XmlElement
 
MERGED - Enum constant in enum class com.android.manifmerger.Actions.ActionType
The element was merged with another element into the resulting merged manifest.
MERGED - Enum constant in enum class com.android.manifmerger.MergingReport.MergedManifestKind
Merged manifest file as packaged in the APK or AAR
MergeFailureException(Exception) - Constructor for exception com.android.manifmerger.ManifestMerger2.MergeFailureException
 
MergeFailureException(String, Exception) - Constructor for exception com.android.manifmerger.ManifestMerger2.MergeFailureException
 
Merger - Class in com.android.manifmerger
Command line interface to the ManifestMerger2
Merger() - Constructor for class com.android.manifmerger.Merger
 
MergeType - Enum Class in com.android.manifmerger
Defines the default merging activity for same type.
mergeWithLowerPriorityNode(XmlElement, MergingReport.Builder, ManifestMerger2.ProcessCancellationChecker) - Method in class com.android.manifmerger.XmlElement
Merge this xml element with a lower priority node.
MergingReport - Class in com.android.manifmerger
Contains the result of 2 files merging.
MergingReport.Builder - Class in com.android.manifmerger
This builder is used to accumulate logging, action recording and intermediary results as well as final result of the merging activity.
MergingReport.MergedManifestKind - Enum Class in com.android.manifmerger
 
MergingReport.Record - Class in com.android.manifmerger
Log record.
MergingReport.Record.Severity - Enum Class in com.android.manifmerger
 
MergingReport.Result - Enum Class in com.android.manifmerger
Overall result of the merging process.
mLogger - Variable in class com.android.manifmerger.ManifestMerger2.Invoker
 
mMainManifestFile - Variable in class com.android.manifmerger.ManifestMerger2.Invoker
 
mPlaceholders - Variable in class com.android.manifmerger.ManifestMerger2.Invoker
 
mReason - Variable in class com.android.manifmerger.Actions.Record
 
mSystemProperties - Variable in class com.android.manifmerger.ManifestMerger2.Invoker
 
mTargetId - Variable in class com.android.manifmerger.Actions.Record
 

N

newMerger(File, ILogger, ManifestMerger2.MergeType) - Static method in class com.android.manifmerger.ManifestMerger2
Creates a new ManifestMerger2.Invoker instance to invoke the merging tool to merge manifest files for an application.
NO_IMPLICIT_PERMISSION_ADDITION - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Do not perform implicit permission addition.
NO_PLACEHOLDER_REPLACEMENT - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Do no perform placeholders replacement.
NODE_TO_NAME - Static variable in class com.android.manifmerger.XmlNode
 
NodeOperationType - Enum Class in com.android.manifmerger
Defines node operation types as it can be provided by user's through attributes on the target xml element.

O

originalNodeOperation - Variable in class com.android.manifmerger.XmlDocument
 
OrphanXmlElement - Class in com.android.manifmerger
An xml element that does not belong to a XmlDocument
OrphanXmlElement(Element, DocumentModel<ManifestModel.NodeTypes>) - Constructor for class com.android.manifmerger.OrphanXmlElement
 
OtherOperationType - Enum Class in com.android.manifmerger
List of other http://schemas.android.com/tools namespace instructions that can be present in a manifest file.
OVERLAY - Enum constant in enum class com.android.manifmerger.XmlDocument.Type
A manifest overlay as found in the build types and variants.

P

PACKAGE_NAME - Static variable in class com.android.manifmerger.PlaceholderHandler
 
performSystemPropertiesInjection(MergingReport.Builder, XmlDocument) - Method in class com.android.manifmerger.ManifestMerger2
Perform ManifestSystemProperty injection.
persist() - Method in class com.android.manifmerger.Actions
 
PlaceholderEncoder - Class in com.android.manifmerger
encode all non resolved placeholders key names.
PlaceholderEncoder() - Constructor for class com.android.manifmerger.PlaceholderEncoder
 
PlaceholderHandler - Class in com.android.manifmerger
Replaces all placeholders of the form ${name} with a tool invocation provided value
PlaceholderHandler() - Constructor for class com.android.manifmerger.PlaceholderHandler
 
PlaceholderHandler.KeyBasedValueResolver<T> - Interface in com.android.manifmerger
Interface to provide a value for a placeholder key.
PostValidator - Class in com.android.manifmerger
Validator that runs post merging activities and verifies that all "tools:" instructions triggered an action by the merging tool.
PostValidator() - Constructor for class com.android.manifmerger.PostValidator
 
prettyPrint() - Method in class com.android.manifmerger.XmlDocument
Returns a pretty string representation of this document.
prettyPrint(Document) - Static method in class com.android.manifmerger.XmlDocument
Returns a pretty string representation of this document.
PreValidator - Class in com.android.manifmerger
Validates a loaded XmlDocument and check for potential inconsistencies in the model due to user error or omission.
print(StringBuilder) - Method in class com.android.manifmerger.Actions.Record
 
PRINT_SIMPLE_FILENAMES - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
When logging file names, use File.getName() rather than File.getPath()
printPosition() - Method in class com.android.manifmerger.XmlNode
Returns the position of this attribute in the original xml file.
PRIVACY_SANDBOX_LIBRARY - Enum constant in enum class com.android.manifmerger.ManifestMerger2.MergeType
Privacy sandbox library merging similar to fused library merging except that resulting manifest is expected to be processed by aapt2 and shipped into an .asb file to the Play Store.
process(String[]) - Method in class com.android.manifmerger.Merger
 

R

REJECTED - Enum constant in enum class com.android.manifmerger.Actions.ActionType
The element was rejected.
REMOVE - Enum constant in enum class com.android.manifmerger.NodeOperationType
Remove the next definition of the same element from the resulting merged manifest.
REMOVE_ALL - Enum constant in enum class com.android.manifmerger.NodeOperationType
Remove all definitions of the same element from the resulting merged manifest.
REMOVE_CHILDREN - Enum constant in enum class com.android.manifmerger.NodeOperationType
Remove all children from the target element before merging it into the resulting merged manifest.
REMOVE_TOOLS_DECLARATIONS - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Perform a sweep after all merging activities to remove all tools: decorations.
removeAttribute(String) - Method in class com.android.manifmerger.XmlElement
 
removeAttributeNS(String, String) - Method in class com.android.manifmerger.XmlElement
 
removeChild(XmlElement) - Method in class com.android.manifmerger.XmlElement
 
removeChild(Node) - Method in class com.android.manifmerger.XmlElement
Removes given child from DOM and from this list of mMergeableChildren
REPLACE - Enum constant in enum class com.android.manifmerger.NodeOperationType
Replace further definitions of the same element with this one.
resetRootNode() - Method in class com.android.manifmerger.XmlDocument
 
resolve(String) - Method in interface com.android.manifmerger.KeyResolver
Returns an element identified with the passed key.
resolve(String) - Method in class com.android.manifmerger.ManifestMerger2.SelectorResolver
 

S

Selector - Class in com.android.manifmerger
Represents a selector to be able to identify manifest file xml elements.
Selector(String) - Constructor for class com.android.manifmerger.Selector
 
SELECTOR_LOCAL_NAME - Static variable in class com.android.manifmerger.Selector
local name for tools:selector attributes.
SelectorResolver() - Constructor for class com.android.manifmerger.ManifestMerger2.SelectorResolver
 
setAndroidAttribute(XmlElement, String, String) - Static method in class com.android.manifmerger.ManifestMerger2
Set an Android-namespaced XML attribute on the given node.
setAttribute(XmlAttribute, String) - Method in class com.android.manifmerger.XmlElement
 
setAttribute(String, String) - Method in class com.android.manifmerger.XmlElement
 
setAttributeNS(String, String, String) - Method in class com.android.manifmerger.XmlElement
 
setFeatureName(String) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Specify the feature name for feature merging.
setGeneratedLocaleConfigAttribute(String) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Set the location of the generated locale config to add to the manifest.
setManifestAndroidAttribute(XmlDocument, String, String) - Static method in class com.android.manifmerger.ManifestMerger2
Set an android namespaced attribute for the manifest element.
setMergeReportFile(File) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Sets the file to use to write the merging report.
setNamespace(String) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Specify the module namespace.
setOverride(ManifestSystemProperty, String) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Sets a value for a ManifestSystemProperty
setPlaceHolderValue(String, String) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Adds a new placeholder name and value for substitution.
setPlaceHolderValues(Map<String, Object>) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Adds placeholders names and associated values for substitution.
setValue(String) - Method in class com.android.manifmerger.XmlAttribute
 
SKIP_BLAME - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Clients will not request the blame history
SKIP_XML_STRING - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Clients will only request the merged XML documents, not XML pretty printed documents
STRICT - Enum constant in enum class com.android.manifmerger.NodeOperationType
No further definition of this element should be encountered.
SUCCESS - Enum constant in enum class com.android.manifmerger.MergingReport.Result
 
supportsSelector() - Method in class com.android.manifmerger.XmlElement
Returns true if this element supports having a tools:selector decoration, false otherwise.

T

targetapi - Enum constant in enum class com.android.manifmerger.OtherOperationType
 
TEST_ONLY - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Add android:testOnly="true" attribute to prevent APK from being uploaded to Play store.
toCamelCaseName() - Method in interface com.android.manifmerger.ConvertibleName
Returns a camel case version of itself.
toCamelCaseName() - Method in enum class com.android.manifmerger.NodeOperationType
 
ToolsInstructionsCleaner - Class in com.android.manifmerger
Removes all "tools:" statements from the resulting xml.
ToolsInstructionsCleaner() - Constructor for class com.android.manifmerger.ToolsInstructionsCleaner
 
toString() - Method in class com.android.manifmerger.Actions.AttributeRecord
 
toString() - Method in class com.android.manifmerger.Actions.NodeRecord
 
toString() - Method in class com.android.manifmerger.MergingReport.Record
 
toString() - Method in class com.android.manifmerger.Selector
 
toString() - Method in class com.android.manifmerger.XmlNode.Name
 
toString() - Method in class com.android.manifmerger.XmlNode.NamespaceAwareName
 
toString() - Method in class com.android.manifmerger.XmlNode.NodeKey
 
toXmlName() - Method in interface com.android.manifmerger.ConvertibleName
Returns a xml lower-hyphen separated name of itself.
toXmlName() - Method in enum class com.android.manifmerger.NodeOperationType
 
toXmlName(ManifestModel.NodeTypes) - Method in class com.android.manifmerger.ManifestModel
Returns the Xml name for this node type
trim(XmlDocument, MergingReport.Builder) - Static method in class com.android.manifmerger.ElementsTrimmer
Trims unwanted, duplicated elements from the merged document.

U

unwrapName(Node) - Static method in class com.android.manifmerger.XmlNode
Factory method to create an instance of XmlNode.NodeName for an existing xml node.
usage() - Static method in class com.android.manifmerger.Merger
 

V

validate(MergingReport.Builder, XmlDocument, boolean, boolean) - Static method in class com.android.manifmerger.PreValidator
Validates a loaded XmlDocument and return a status of the merging model.
validate(XmlDocument, MergingReport.Builder) - Static method in class com.android.manifmerger.PostValidator
Post validation of the merged document.
VALIDATE_EXTRACT_NATIVE_LIBS_FROM_DEPENDENCIES - Enum constant in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Warn if the SdkConstants.ATTR_EXTRACT_NATIVE_LIBS attribute is set to true in a dependency manifest but not set to true in the merged manifest.
valueOf(String) - Static method in enum class com.android.manifmerger.Actions.ActionType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.android.manifmerger.ManifestMerger2.MergeType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.android.manifmerger.MergeType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.android.manifmerger.MergingReport.MergedManifestKind
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.android.manifmerger.MergingReport.Record.Severity
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.android.manifmerger.MergingReport.Result
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.android.manifmerger.NodeOperationType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.android.manifmerger.OtherOperationType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.android.manifmerger.XmlDocument.Type
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.android.manifmerger.Actions.ActionType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.android.manifmerger.ManifestMerger2.Invoker.Feature
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.android.manifmerger.ManifestMerger2.MergeType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.android.manifmerger.MergeType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.android.manifmerger.MergingReport.MergedManifestKind
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.android.manifmerger.MergingReport.Record.Severity
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.android.manifmerger.MergingReport.Result
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.android.manifmerger.NodeOperationType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.android.manifmerger.OtherOperationType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.android.manifmerger.XmlDocument.Type
Returns an array containing the constants of this enum class, in the order they are declared.
visit(MergingReport.Record.Severity, XmlDocument, PlaceholderHandler.KeyBasedValueResolver<String>, MergingReport.Builder) - Static method in class com.android.manifmerger.PlaceholderHandler
Visits a document's entire tree and check each attribute for a placeholder existence.

W

WARNING - Enum constant in enum class com.android.manifmerger.MergingReport.Record.Severity
 
WARNING - Enum constant in enum class com.android.manifmerger.MergingReport.Result
 
WEAR_APP_SUB_MANIFEST - Static variable in class com.android.manifmerger.ManifestMerger2
 
withFeatures(ManifestMerger2.Invoker.Feature...) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Sets some optional features for the merge tool.
withFileStreamProvider(ManifestMerger2.FileStreamProvider) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Sets a file stream provider which allows the client of the manifest merger to provide arbitrary content lookup for files.
withManifestDocumentProvider(ManifestMerger2.ManifestDocumentProvider) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
Sets a manifest XML document provider which allows the client of the manifest merger to provide manifest DOM Document object lookup for given files.
withProcessCancellationChecker(ManifestMerger2.ProcessCancellationChecker) - Method in class com.android.manifmerger.ManifestMerger2.Invoker
 

X

XmlAttribute - Class in com.android.manifmerger
Defines an XML attribute inside a XmlElement.
XmlAttribute(XmlElement, Attr, AttributeModel) - Constructor for class com.android.manifmerger.XmlAttribute
Creates a new facade object to a Attr xml attribute in a XmlElement.
XmlDocument - Class in com.android.manifmerger
Represents a loaded xml document.
XmlDocument(SourceFile, KeyResolver<String>, PlaceholderHandler.KeyBasedValueResolver<ManifestSystemProperty>, Element, XmlDocument.Type, String, DocumentModel<ManifestModel.NodeTypes>) - Constructor for class com.android.manifmerger.XmlDocument
 
XmlDocument.Type - Enum Class in com.android.manifmerger
The document type.
XmlElement - Class in com.android.manifmerger
Xml Element which is mergeable.
XmlElement(Element, XmlDocument) - Constructor for class com.android.manifmerger.XmlElement
 
XmlLoader - Class in com.android.manifmerger
Responsible for loading XML files.
XmlNode - Class in com.android.manifmerger
Common behavior of any xml declaration.
XmlNode() - Constructor for class com.android.manifmerger.XmlNode
 
XmlNode.Name - Class in com.android.manifmerger
Implementation of XmlNode.NodeName for an node's declaration not using a namespace.
XmlNode.NamespaceAwareName - Class in com.android.manifmerger
Implementation of the XmlNode.NodeName for a namespace aware attribute.
XmlNode.NodeKey - Class in com.android.manifmerger
A xml element or attribute key.
XmlNode.NodeName - Interface in com.android.manifmerger
Abstraction to an xml name to isolate whether the name has a namespace or not.
A B C D E F G H I K L M N O P R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form