Home
last modified time | relevance | path

Searched refs:Str (Results 1 – 9 of 9) sorted by relevance

/build/make/tools/product_config/src/com/android/build/config/
DStr.java25 public class Str implements Comparable<Str> { class
29 public Str(String s) { in Str() method in Str
34 public Str(Position pos, String s) { in Str() method in Str
58 if (!(o instanceof Str)) { in equals()
61 final Str that = (Str)o; in equals()
71 public int compareTo(Str that) { in compareTo()
75 public static ArrayList<Str> toList(Position pos, List<String> list) { in toList()
76 final ArrayList<Str> result = new ArrayList(list.size()); in toList()
78 result.add(new Str(pos, s)); in toList()
DFlattenConfig.java43 private final Set<Str> mStack = new HashSet();
96 mVariables.put("PRODUCTS", new Value(VarType.UNKNOWN, new Str(root))); in flattenImpl()
117 private void forEachStatement(Str filename, VarType varType, Set<String> seen, in forEachStatement()
171 private void forEachInheritAlpha(final Str filename, VarType varType, Set<String> seen, in forEachInheritAlpha()
173 final TreeMap<Str, GenericConfig.Inherit> alpha = new TreeMap(); in forEachInheritAlpha()
195 Map<String, Value> vars = flattenListVars(new Str(filename), new HashSet()); in flattenListVars()
209 private Map<String, Value> flattenListVars(final Str filename, Set<String> seen) { in flattenListVars()
219 final Map<Str, Map<String, Value>> children = new HashMap(); in flattenListVars()
222 final Str child = inherit.getFilename(); in flattenListVars()
251 flattenSingleVars(new Str(filename), new HashSet(), new HashSet()); in flattenSingleVars()
[all …]
DOutputChecker.java56 public final Str original;
59 public Variable(String name, VarType type, Str original) { in Variable()
63 public Variable(String name, VarType type, Str original, Value updated) { in Variable()
81 final Str normalizedOriginal = Value.normalize(original); in isSame()
82 final Str normalizedUpdated = Value.normalize(updated); in isSame()
142 for (Map.Entry<String, Str> entry: getModifiedVars(config.getInitialVariables(), in getVariables()
166 public static Map<String, Str> getModifiedVars(Map<String, Str> before, in getModifiedVars()
167 Map<String, Str> after) { in getModifiedVars()
168 final HashMap<String, Str> result = new HashMap(); in getModifiedVars()
171 for (Map.Entry<String, Str> afterEntry: after.entrySet()) { in getModifiedVars()
[all …]
DGenericConfig.java77 private final List<Str> mValue;
82 public Assign(String varName, Str value) { in Assign()
92 public Assign(String varName, List<Str> value) { in Assign()
101 public List<Str> getValue() { in getValue()
110 private final Str mFilename;
112 public Inherit(Str filename) { in Inherit()
116 public Str getFilename() { in getFilename()
DConvertMakeToGenericConfig.java83 for (final Map.Entry<String, Str> entry: block.getVars().entrySet()) { in convert()
98 new GenericConfig.Assign(prevName, new Str(""))); in convert()
119 final Map<String, Str> productsFinal = products.getFinalVariables(); in convert()
120 final Map<String, Str> expandInitial = expand.getInitialVariables(); in convert()
121 final Map<String, Str> expandFinal = expand.getFinalVariables(); in convert()
122 final Map<String, Str> finalFinal = result.getFinalVariables(); in convert()
124 for (Map.Entry<String, Str> var: expandFinal.entrySet()) { in convert()
138 GenericConfig.Assign convertAssignment(MakeConfig.BlockType blockType, Str inheritedFile, in convertAssignment()
139 VarType varType, String varName, Str varVal, Str prevVal) { in convertAssignment()
175 GenericConfig.Assign convertInheritedVar(MakeConfig.BlockType blockType, Str inheritedFile, in convertInheritedVar()
[all …]
DMakeConfig.java72 private final TreeMap<String, Str> mValues = new TreeMap();
73 private Str mInheritedFile;
83 public void addVar(String varName, Str varValue) { in addVar()
87 public Str getVar(String varName) { in getVar()
91 public TreeMap<String, Str> getVars() { in getVars()
95 public void setInheritedFile(Str filename) { in setInheritedFile()
99 public Str getInheritedFile() { in getInheritedFile()
155 for (Map.Entry<String,Str> var: block.getVars().entrySet()) { in printToStream()
DMakeWriter.java78 final List<Str> values = statement.getValue(); in writeAssign()
86 final Str value = values.get(0); in writeAssign()
91 final Str value = values.get(1); in writeAssign()
109 final Str filename = statement.getFilename(); in writeInherit()
118 Var(String name, Str val) { in Var()
123 final Str val;
126 private static void writeStrVars(PrintStream out, Map<String, Str> vars, ConfigBase config) { in writeStrVars()
129 for (Map.Entry<String, Str> entry: vars.entrySet()) { in writeStrVars()
147 final List<Str> list = value.getList(); in writeFlat()
DConfigBase.java36 protected Map<String, Str> mInitialVariables = new HashMap();
41 protected Map<String, Str> mFinalVariables = new HashMap();
89 public Map<String, Str> getInitialVariables() { in getInitialVariables()
96 public Map<String, Str> getFinalVariables() { in getFinalVariables()
DDumpConfigParser.java119 Map<String, Str> initialVariables = new HashMap(); in parseImpl()
120 Map<String, Str> finalVariables = new HashMap(); in parseImpl()
195 block.setInheritedFile(new Str(inheritedFile)); in parseImpl()
232 final Str str = new Str(pos, varValue); in parseImpl()