Home
last modified time | relevance | path

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

12345

/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.java80 LinearLayout root = new LinearLayout(this); in onCreate() local
81 root.setOrientation(LinearLayout.VERTICAL); in onCreate()
87 addLabelToRoot(root, "Prescaled bitmap in drawable"); in onCreate()
88 addChildToRoot(root, layout); in onCreate()
94 addLabelToRoot(root, "Autoscaled bitmap in drawable"); in onCreate()
95 addChildToRoot(root, layout); in onCreate()
101 addLabelToRoot(root, "Prescaled resource drawable"); in onCreate()
102 addChildToRoot(root, layout); in onCreate()
105 addLabelToRoot(root, "Inflated layout"); in onCreate()
106 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
353 View result = root; in inflate()
378 if (root == null || !attachToRoot) { in inflate()
383 rInflate(parser, root, attrs); in inflate()
[all …]
DViewDebug.java880 private static View findView(View root, String parameter) { in findView() argument
887 View view = root.getRootView(); in findView()
893 final int id = root.getResources().getIdentifier(parameter, null, null); in findView()
894 return root.getRootView().findViewById(id); in findView()
900 private static void invalidate(View root, String parameter) { in invalidate() argument
901 final View view = findView(root, parameter); in invalidate()
907 private static void requestLayout(View root, String parameter) { in requestLayout() argument
908 final View view = findView(root, parameter); in requestLayout()
910 root.post(new Runnable() { in requestLayout()
918 private static void profile(View root, OutputStream clientStream, String parameter) in profile() argument
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DObserverNodeTest.java36 ObserverNode root = new ObserverNode(""); in testUri() local
51 root.addObserverLocked(uris[0], new TestObserver().getContentObserver(), false, root); in testUri()
53 root.addObserverLocked(uris[i], new TestObserver().getContentObserver(), true, root); in testUri()
59 root.collectObserversLocked(uris[i], 0, null, false, calls); in testUri()
66 ObserverNode root = new ObserverNode(""); in testUriNotNotify() local
80 root.addObserverLocked(uris[i], new TestObserver().getContentObserver(), false, root); in testUriNotNotify()
86 root.collectObserversLocked(uris[i], 0, null, false, calls); in testUriNotNotify()
/frameworks/base/test-runner/src/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/media/libstagefright/codecs/aacenc/basic_op/
Doper_32b.c235 if ((0x40000000l >> shift) + root <= value) \
237 value -= (0x40000000l >> shift) + root; \
238 root = (root >> 1) | (0x40000000l >> shift); \
240 root = root >> 1; \
246 Word32 root = 0; in rsqrt() local
263 if (root < value) in rsqrt()
264 ++root; in rsqrt()
266 root >>= scale; in rsqrt()
267 return root* 46334; in rsqrt()
/frameworks/base/tools/preload/
DWritePreloadedClassFile.java49 Root root = Root.fromFile(rootFile); in main() local
52 for (LoadedClass loadedClass : root.loadedClasses.values()) { in main()
80 for (LoadedClass loadedClass : root.loadedClasses.values()) { in main()
98 for (Proc proc : root.processes.values()) { in main()
118 addAllClassesFrom("zygote", root, toPreload); in main()
130 root.toFile(rootFile); in main()
133 private static void addAllClassesFrom(String processName, Root root, in addAllClassesFrom() argument
135 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()
/frameworks/base/opengl/tests/gldual/src/com/android/gldual/
DGLDualActivity.java34 View root = getLayoutInflater().inflate(R.layout.gldual_activity, null); in onCreate() local
35 mGLView = (GLSurfaceView) root.findViewById(R.id.gl1); in onCreate()
38 mGL2View = (GLDualGL2View) root.findViewById(R.id.gl2); in onCreate()
39 setContentView(root); in onCreate()
/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/media/libstagefright/codecs/aacdec/
Dpv_sqrt.cpp130 result->root = sqrt_cache[2]; in pv_sqrt()
199 result->root = y; in pv_sqrt()
204 result->root = 0; in pv_sqrt()
210 sqrt_cache[2] = result->root; in pv_sqrt()
/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/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java91 RootElement root = new RootElement(ATOM_NAMESPACE, "feed"); in testListener() local
92 Element entry = root.requireChild(ATOM_NAMESPACE, "entry"); in testListener()
99 root.setElementListener(rootCounter); in testListener()
103 Xml.parse(xml, root.getContentHandler()); in testListener()
116 RootElement root = new RootElement("feed"); in testMissingRequiredChild() local
117 root.requireChild("entry"); in testMissingRequiredChild()
120 Xml.parse(xml, root.getContentHandler()); in testMissingRequiredChild()
131 RootElement root = new RootElement("feed"); in testMixedContent() local
132 root.setEndTextElementListener(new EndTextElementListener() { in testMixedContent()
138 Xml.parse(xml, root.getContentHandler()); in testMixedContent()
[all …]
/frameworks/base/core/java/com/google/android/util/
DAbstractMessageParser.java1369 public static void addToTrie(TrieNode root, String str, String value) { in addToTrie() argument
1372 root = root.getOrCreateChild(str.charAt(index++)); in addToTrie()
1374 root.setValue(value); in addToTrie()
1381 private static boolean matches(TrieNode root, String str) { in matches() argument
1384 root = root.getChild(str.charAt(index++)); in matches()
1385 if (root == null) { in matches()
1387 } else if (root.exists()) { in matches()
1399 TrieNode root, AbstractMessageParser p, int start) { in longestMatch() argument
1400 return longestMatch(root, p, start, false); in longestMatch()
1409 TrieNode root, AbstractMessageParser p, int start, boolean smiley) { in longestMatch() argument
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
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()
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()
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()
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java52 LinearLayout root = new LinearLayout(this); in onCreate() local
53 root.setOrientation(LinearLayout.VERTICAL); in onCreate()
60 root.addView(view); in onCreate()
61 setContentView(root); in onCreate()

12345