Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/base/tools/localize/
DXMLHandler_test.cpp70 XMLNode* root = NodeHandler::ParseFile("testdata/xml.xml", XMLNode::EXACT); in ParseFile_EXACT_test() local
71 if (root == NULL) { in ParseFile_EXACT_test()
74 string result = root->ToString(NO_NAMESPACES); in ParseFile_EXACT_test()
75 delete root; in ParseFile_EXACT_test()
83 XMLNode* root = NodeHandler::ParseFile("testdata/xml.xml", XMLNode::PRETTY); in ParseFile_PRETTY_test() local
84 if (root == NULL) { in ParseFile_PRETTY_test()
87 string result = root->ToString(NO_NAMESPACES); in ParseFile_PRETTY_test()
88 delete root; in ParseFile_PRETTY_test()
97 XMLNode* root = NodeHandler::ParseString("testdata/xml.xml", text, XMLNode::EXACT); in ParseString_EXACT_test() local
98 if (root == NULL) { in ParseString_EXACT_test()
[all …]
DValuesFile.cpp213 XMLNode* root; in ToXMLNode() local
219 root = XMLNode::NewElement(GENERATED_POS, "", "resources", attrs, XMLNode::PRETTY); in ToXMLNode()
230 root->EditChildren().push_back(arrayNode); in ToXMLNode()
250 root->EditChildren().push_back(strNode); in ToXMLNode()
253 return root; in ToXMLNode()
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java79 LinearLayout root = new LinearLayout(this); in onCreate() local
80 root.setOrientation(LinearLayout.VERTICAL); in onCreate()
86 addLabelToRoot(root, "Prescaled bitmap in drawable"); in onCreate()
87 addChildToRoot(root, layout); in onCreate()
93 addLabelToRoot(root, "Autoscaled bitmap in drawable"); in onCreate()
94 addChildToRoot(root, layout); in onCreate()
100 addLabelToRoot(root, "Prescaled resource drawable"); in onCreate()
101 addChildToRoot(root, layout); in onCreate()
104 addLabelToRoot(root, "Inflated layout"); in onCreate()
105 addChildToRoot(root, layout); in onCreate()
[all …]
/frameworks/base/core/java/android/view/
DWindowManagerImpl.java111 ViewRoot root; in addView() local
128 root = mRoots[index]; in addView()
129 root.mAddNesting++; in addView()
132 root.setLayoutParams(wparams, true); in addView()
148 root = new ViewRoot(view.getContext()); in addView()
149 root.mAddNesting = 1; in addView()
173 mRoots[index] = root; in addView()
177 root.setView(view, wparams, panelParentView); in addView()
192 ViewRoot root = mRoots[index]; in updateViewLayout() local
194 root.setLayoutParams(wparams, false); in updateViewLayout()
[all …]
DFocusFinder.java59 public final View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus() argument
63 View userSetNextFocus = focused.findUserSetNextFocus(root, direction); in findNextFocus()
73 root.offsetDescendantRectToMyCoords(focused, mFocusedRect); in findNextFocus()
79 final int rootTop = root.getScrollY(); in findNextFocus()
80 final int rootLeft = root.getScrollX(); in findNextFocus()
86 final int rootBottom = root.getScrollY() + root.getHeight(); in findNextFocus()
87 final int rootRight = root.getScrollX() + root.getWidth(); in findNextFocus()
93 return findNextFocus(root, focused, mFocusedRect, direction); in findNextFocus()
104 public View findNextFocusFromRect(ViewGroup root, Rect focusedRect, int direction) { in findNextFocusFromRect() argument
105 return findNextFocus(root, null, focusedRect, direction); in findNextFocusFromRect()
[all …]
DLayoutInflater.java275 public View inflate(int resource, ViewGroup root) { in inflate() argument
276 return inflate(resource, root, root != null); in inflate()
295 public View inflate(XmlPullParser parser, ViewGroup root) { in inflate() argument
296 return inflate(parser, root, root != null); in inflate()
316 public View inflate(int resource, ViewGroup root, boolean attachToRoot) { in inflate() argument
320 return inflate(parser, root, attachToRoot); in inflate()
348 public View inflate(XmlPullParser parser, ViewGroup root, boolean attachToRoot) { in inflate() argument
352 View result = root; in inflate()
377 if (root == null || !attachToRoot) { in inflate()
382 rInflate(parser, root, attrs); in inflate()
[all …]
DViewDebug.java700 private static View findView(View root, String parameter) { in findView() argument
707 View view = root.getRootView(); in findView()
713 final int id = root.getResources().getIdentifier(parameter, null, null); in findView()
714 return root.getRootView().findViewById(id); in findView()
720 private static void invalidate(View root, String parameter) { in invalidate() argument
721 final View view = findView(root, parameter); in invalidate()
727 private static void requestLayout(View root, String parameter) { in requestLayout() argument
728 final View view = findView(root, parameter); in requestLayout()
730 root.post(new Runnable() { in requestLayout()
738 private static void profile(View root, OutputStream clientStream, String parameter) in profile() argument
[all …]
/frameworks/base/awt/javax/imageio/metadata/
DIIOMetadata.java143 public abstract void mergeTree(String formatName, Node root) throws IIOInvalidTreeException; in mergeTree() argument
335 … IIOMetadataNode root = new IIOMetadataNode(IIOMetadataFormatImpl.standardMetadataFormatName); in getStandardTree() local
339 root.appendChild(node); in getStandardTree()
342 root.appendChild(node); in getStandardTree()
345 root.appendChild(node); in getStandardTree()
348 root.appendChild(node); in getStandardTree()
351 root.appendChild(node); in getStandardTree()
354 root.appendChild(node); in getStandardTree()
357 root.appendChild(node); in getStandardTree()
360 root.appendChild(node); in getStandardTree()
[all …]
DIIOMetadataFormatImpl.java84 Element root = new Element(); in IIOMetadataFormatImpl() local
85 root.name = rootName; in IIOMetadataFormatImpl()
86 root.childPolicy = childPolicy; in IIOMetadataFormatImpl()
87 elementHash.put(rootName, root); in IIOMetadataFormatImpl()
113 Element root = new Element(); in IIOMetadataFormatImpl() local
114 root.name = rootName; in IIOMetadataFormatImpl()
115 root.minChildren = minChildren; in IIOMetadataFormatImpl()
116 root.maxChildren = maxChildren; in IIOMetadataFormatImpl()
117 root.childPolicy = CHILD_POLICY_REPEAT; in IIOMetadataFormatImpl()
118 elementHash.put(rootName, root); in IIOMetadataFormatImpl()
/frameworks/base/test-runner/android/test/suitebuilder/
DAssignableFrom.java23 private final Class root; field in AssignableFrom
25 AssignableFrom(Class root) { in AssignableFrom() argument
26 this.root = root; in AssignableFrom()
30 return root.isAssignableFrom(testMethod.getEnclosingClass()); in apply()
/frameworks/base/tools/preload/
DWritePreloadedClassFile.java44 Root root = Root.fromFile(rootFile); in main() local
47 for (LoadedClass loadedClass : root.loadedClasses.values()) { in main()
74 for (LoadedClass loadedClass : root.loadedClasses.values()) { in main()
87 for (Proc proc : root.processes.values()) { in main()
107 addAllClassesFrom("zygote", root, toPreload); in main()
119 root.toFile(rootFile); in main()
122 private static void addAllClassesFrom(String processName, Root root, in addAllClassesFrom() argument
124 for (Proc proc : root.processes.values()) { in addAllClassesFrom()
DCompile.java39 Root root = new Root(); in main() local
62 root.indexProcess(record); in main()
66 root.indexClassOperation(record); in main()
71 root.toFile(args[1]); in main()
DPrintHtmlDiff.java36 Root root = Root.fromFile(args[0]); in main() local
43 for (Proc proc : root.processes.values()) { in main()
55 for (LoadedClass loadedClass : root.loadedClasses.values()) { in main()
64 LoadedClass clazz = root.loadedClasses.get(line); in main()
81 printTable(out, root.baseline, added); in main()
83 printTable(out, root.baseline, removed); in main()
DPrintPsTree.java38 Root root = (Root) oin.readObject(); in main() local
40 for (Proc proc : root.processes.values()) { in main()
DMemoryUsage.java289 Root root = Root.fromFile(args[0]); in main() local
290 root.baseline = baseline(); in main()
291 for (LoadedClass loadedClass : root.loadedClasses.values()) { in main()
296 root.toFile(args[0]); in main()
DPrintBugReports.java38 Root root = Root.fromFile(args[0]); in main() local
47 for (Proc proc : root.processes.values()) { in main()
83 printApplicationHtml(first.name, root.baseline, classes, in main()
87 printHtml("core", root.baseline, coreClasses); in main()
88 printHtml("framework", root.baseline, frameworkClasses); in main()
/frameworks/base/media/libdrm/mobile2/src/util/xml/
DDomExpatAgent.cpp174 ElementImpl *root = mXMLDocumentPtr->getDocumentElement(); in generateXMLFromDocument() local
176 traverse(root); in generateXMLFromDocument()
182 void DomExpatAgent::traverse(ElementImpl *root) in traverse() argument
184 if (NULL == root) in traverse()
189 mXMLostream << "<" << *(root->getNodeName()); in traverse()
191 if (root->hasAttributes()) in traverse()
194 const DOMStringMap* attrMapPtr = (static_cast<XMLElementImpl*>(root))->getAttributeMap(); in traverse()
210 NodeImpl *child = root->getFirstChild(); in traverse()
227 mXMLostream << "</" << *(root->getNodeName()) << ">" << endl; in traverse()
/frameworks/base/tests/CoreTests/android/content/
DObserverNodeTest.java37 ObserverNode root = new ObserverNode(""); in testUri() local
52 root.addObserver(uris[0], new TestObserver().getContentObserver(), false); in testUri()
54 root.addObserver(uris[i], new TestObserver().getContentObserver(), true); in testUri()
60 root.collectObservers(uris[i], 0, null, false, calls); in testUri()
67 ObserverNode root = new ObserverNode(""); in testUriNotNotify() local
81 root.addObserver(uris[i], new TestObserver().getContentObserver(), false); in testUriNotNotify()
87 root.collectObservers(uris[i], 0, null, false, calls); in testUriNotNotify()
/frameworks/base/core/java/android/preference/
DGenericInflater.java219 public T inflate(int resource, P root) { in inflate() argument
220 return inflate(resource, root, root != null); in inflate()
239 public T inflate(XmlPullParser parser, P root) { in inflate() argument
240 return inflate(parser, root, root != null); in inflate()
259 public T inflate(int resource, P root, boolean attachToRoot) { in inflate() argument
263 return inflate(parser, root, attachToRoot); in inflate()
290 public T inflate(XmlPullParser parser, P root, in inflate() argument
295 T result = (T) root; in inflate()
320 result = (T) onMergeRoots(root, attachToRoot, (P) xmlRoot); in inflate()
/frameworks/base/sax/java/android/sax/
DRootElement.java142 Element root = RootElement.this; in startRoot() local
143 if (root.uri.compareTo(uri) != 0 in startRoot()
144 || root.localName.compareTo(localName) != 0) { in startRoot()
146 + " not match. Expected: " + root + ", Got: " in startRoot()
150 start(root, attributes); in startRoot()
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/
DSafeSaxTest.java89 RootElement root = new RootElement(ATOM_NAMESPACE, "feed"); in testListener() local
90 Element entry = root.requireChild(ATOM_NAMESPACE, "entry"); in testListener()
97 root.setElementListener(rootCounter); in testListener()
101 Xml.parse(xml, root.getContentHandler()); in testListener()
114 RootElement root = new RootElement("feed"); in testMissingRequiredChild() local
115 root.requireChild("entry"); in testMissingRequiredChild()
118 Xml.parse(xml, root.getContentHandler()); in testMissingRequiredChild()
129 RootElement root = new RootElement("feed"); in testMixedContent() local
130 root.setEndTextElementListener(new EndTextElementListener() { in testMixedContent()
136 Xml.parse(xml, root.getContentHandler()); in testMixedContent()
[all …]
/frameworks/base/core/java/com/google/android/util/
DAbstractMessageParser.java1356 public static void addToTrie(TrieNode root, String str, String value) { in addToTrie() argument
1359 root = root.getOrCreateChild(str.charAt(index++)); in addToTrie()
1361 root.setValue(value); in addToTrie()
1368 private static boolean matches(TrieNode root, String str) { in matches() argument
1371 root = root.getChild(str.charAt(index++)); in matches()
1372 if (root == null) { in matches()
1374 } else if (root.exists()) { in matches()
1386 TrieNode root, AbstractMessageParser p, int start) { in longestMatch() argument
1387 return longestMatch(root, p, start, false); in longestMatch()
1396 TrieNode root, AbstractMessageParser p, int start, boolean smiley) { in longestMatch() argument
[all …]
/frameworks/base/tests/FrameworkTest/src/com/android/frameworktest/focus/
DHorizontalFocusSearch.java102 private Button addShort(LinearLayout root, String label, boolean atBottom) { in addShort() argument
126 root.addView(ll); in addShort()
130 root.addView(ll); in addShort()
DVerticalFocusSearch.java118 private Button addSkinny(LinearLayout root, String label, boolean atRight) { in addSkinny() argument
142 root.addView(ll); in addSkinny()
146 root.addView(ll); in addSkinny()
/frameworks/base/tests/FrameworkTest/tests/src/com/android/frameworktest/focus/
DVerticalFocusSearchTest.java49 View findNextFocus(ViewGroup root, View focused, int direction); in findNextFocus() argument
55 public View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus() argument
57 .findNextFocus(root, focused, direction); in findNextFocus()

1234