Searched refs:root (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/base/test-runner/src/android/test/suitebuilder/
H A DAssignableFrom.java23 private final Class root; field in class:AssignableFrom
25 AssignableFrom(Class root) { argument
26 this.root = root;
30 return root.isAssignableFrom(testMethod.getEnclosingClass());
/frameworks/base/tools/localize/
H A DXMLHandler_test.cpp70 XMLNode* root = NodeHandler::ParseFile("testdata/xml.xml", XMLNode::EXACT); local
71 if (root == NULL) {
74 string result = root->ToString(NO_NAMESPACES);
75 delete root;
83 XMLNode* root = NodeHandler::ParseFile("testdata/xml.xml", XMLNode::PRETTY); local
84 if (root == NULL) {
87 string result = root->ToString(NO_NAMESPACES);
88 delete root;
97 XMLNode* root = NodeHandler::ParseString("testdata/xml.xml", text, XMLNode::EXACT); local
98 if (root
111 XMLNode* root = NodeHandler::ParseString("testdata/xml.xml", text, XMLNode::PRETTY); local
[all...]
/frameworks/base/tests/backup/
H A Dtest_backup_common.sh22 # restart adb as root and wait for it to come back again
25 root_status=$(a root)
26 if [ "$root_status" != "adbd is already running as root" ]; then
27 echo -n "Restarting adb as root..."
/frameworks/base/core/tests/coretests/src/android/content/
H A DObserverNodeTest.java36 ObserverNode root = new ObserverNode("");
51 root.addObserverLocked(uris[0], new TestObserver().getContentObserver(), false, root);
53 root.addObserverLocked(uris[i], new TestObserver().getContentObserver(), true, root);
59 root.collectObserversLocked(uris[i], 0, null, false, calls);
66 ObserverNode root = new ObserverNode("");
80 root.addObserverLocked(uris[i], new TestObserver().getContentObserver(), false, root);
86 root
[all...]
/frameworks/base/media/libstagefright/codecs/aacdec/
H A Dpv_sqrt.h62 Int32 root; member in struct:intg_sqrt
H A Dpv_sqrt.cpp40 Implement root squared of a number
130 result->root = sqrt_cache[2];
199 result->root = y;
204 result->root = 0;
210 sqrt_cache[2] = result->root;
/frameworks/base/opengl/tests/gldual/src/com/android/gldual/
H A DGLDualActivity.java34 View root = getLayoutInflater().inflate(R.layout.gldual_activity, null);
35 mGLView = (GLSurfaceView) root.findViewById(R.id.gl1);
38 mGL2View = (GLDualGL2View) root.findViewById(R.id.gl2);
39 setContentView(root);
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A DDpiTestActivity.java80 LinearLayout root = new LinearLayout(this);
81 root.setOrientation(LinearLayout.VERTICAL);
87 addLabelToRoot(root, "Prescaled bitmap in drawable");
88 addChildToRoot(root, layout);
94 addLabelToRoot(root, "Autoscaled bitmap in drawable");
95 addChildToRoot(root, layout);
101 addLabelToRoot(root, "Prescaled resource drawable");
102 addChildToRoot(root, layout);
105 addLabelToRoot(root, "Inflated layout");
106 addChildToRoot(root, layou
150 addLabelToRoot(LinearLayout root, String text) argument
157 addChildToRoot(LinearLayout root, LinearLayout layout) argument
[all...]
/frameworks/base/tools/preload/
H A DPrintPsTree.java38 Root root = (Root) oin.readObject();
40 for (Proc proc : root.processes.values()) {
H A DWritePreloadedClassFile.java49 Root root = Root.fromFile(rootFile);
52 for (LoadedClass loadedClass : root.loadedClasses.values()) {
80 for (LoadedClass loadedClass : root.loadedClasses.values()) {
98 for (Proc proc : root.processes.values()) {
118 addAllClassesFrom("zygote", root, toPreload);
130 root.toFile(rootFile);
133 private static void addAllClassesFrom(String processName, Root root, argument
135 for (Proc proc : root.processes.values()) {
H A DCompile.java39 Root root = new Root();
62 root.indexProcess(record);
66 root.indexClassOperation(record);
71 root.toFile(args[1]);
H A DPrintHtmlDiff.java36 Root root = Root.fromFile(args[0]);
43 for (Proc proc : root.processes.values()) {
55 for (LoadedClass loadedClass : root.loadedClasses.values()) {
64 LoadedClass clazz = root.loadedClasses.get(line);
81 printTable(out, root.baseline, added);
83 printTable(out, root.baseline, removed);
H A DPrintCsv.java40 Root root = Root.fromFile(args[0]);
46 for (LoadedClass loadedClass : root.loadedClasses.values()) {
/frameworks/base/core/java/android/view/
H A DWindowManagerImpl.java111 ViewRoot root;
128 root = mRoots[index];
129 root.mAddNesting++;
132 root.setLayoutParams(wparams, true);
148 root = new ViewRoot(view.getContext());
149 root.mAddNesting = 1;
173 mRoots[index] = root;
177 root.setView(view, wparams, panelParentView);
192 ViewRoot root = mRoots[index];
194 root
[all...]
H A DFocusFinder.java52 * Find the next view to take focus in root's descendants, starting from the view
54 * @param root Contains focused
59 public final View findNextFocus(ViewGroup root, View focused, int direction) { argument
63 View userSetNextFocus = focused.findUserSetNextFocus(root, direction);
73 root.offsetDescendantRectToMyCoords(focused, mFocusedRect);
75 // make up a rect at top left or bottom right of root
79 final int rootTop = root.getScrollY();
80 final int rootLeft = root.getScrollX();
86 final int rootBottom = root.getScrollY() + root
104 findNextFocusFromRect(ViewGroup root, Rect focusedRect, int direction) argument
108 findNextFocus(ViewGroup root, View focused, Rect focusedRect, int direction) argument
393 findNearestTouchable(ViewGroup root, int x, int y, int direction, int[] deltas) argument
[all...]
H A DLayoutInflater.java270 * @param root Optional view to be the parent of the generated hierarchy.
271 * @return The root View of the inflated hierarchy. If root was supplied,
272 * this is the root View; otherwise it is the root of the inflated
275 public View inflate(int resource, ViewGroup root) { argument
276 return inflate(resource, root, root != null);
290 * @param root Optional view to be the parent of the generated hierarchy.
291 * @return The root Vie
295 inflate(XmlPullParser parser, ViewGroup root) argument
316 inflate(int resource, ViewGroup root, boolean attachToRoot) argument
348 inflate(XmlPullParser parser, ViewGroup root, boolean attachToRoot) argument
[all...]
/frameworks/base/sax/java/android/sax/
H A DRootElement.java26 * The root XML element. The entry point for this API. Not safe for concurrent
46 * RootElement root = new RootElement(ATOM_NAMESPACE, "feed");
47 * Element entry = root.getChild(ATOM_NAMESPACE, "entry");
56 * reader.setContentHandler(root.getContentHandler());
71 * Constructs a new root element with the given name.
81 * Constructs a new root element with the given name. Uses an empty string
115 // This is the root element.
142 Element root = RootElement.this;
143 if (root.uri.compareTo(uri) != 0
144 || root
[all...]
/frameworks/base/media/libstagefright/codecs/aacenc/basic_op/
H A Doper_32b.c235 if ((0x40000000l >> shift) + root <= value) \
237 value -= (0x40000000l >> shift) + root; \
238 root = (root >> 1) | (0x40000000l >> shift); \
240 root = root >> 1; \
243 Word32 rsqrt(Word32 value, /*!< Operand to square root (0.0 ... 1) */
246 Word32 root = 0; local
263 if (root < value)
264 ++root;
[all...]
/frameworks/base/core/java/android/preference/
H A DGenericInflater.java214 * @param root Optional parent of the generated hierarchy.
215 * @return The root of the inflated hierarchy. If root was supplied,
216 * this is the root item; otherwise it is the root of the inflated
219 public T inflate(int resource, P root) { argument
220 return inflate(resource, root, root != null);
234 * @param root Optional parent of the generated hierarchy.
235 * @return The root o
239 inflate(XmlPullParser parser, P root) argument
259 inflate(int resource, P root, boolean attachToRoot) argument
290 inflate(XmlPullParser parser, P root, boolean attachToRoot) argument
[all...]
/frameworks/base/sax/tests/saxtests/src/android/sax/
H A DSafeSaxTest.java91 RootElement root = new RootElement(ATOM_NAMESPACE, "feed");
92 Element entry = root.requireChild(ATOM_NAMESPACE, "entry");
99 root.setElementListener(rootCounter);
103 Xml.parse(xml, root.getContentHandler());
116 RootElement root = new RootElement("feed");
117 root.requireChild("entry");
120 Xml.parse(xml, root.getContentHandler());
131 RootElement root = new RootElement("feed");
132 root.setEndTextElementListener(new EndTextElementListener() {
138 Xml.parse(xml, root
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DHorizontalFocusSearch.java102 private Button addShort(LinearLayout root, String label, boolean atBottom) { argument
126 root.addView(ll);
130 root.addView(ll);
H A DVerticalFocusSearch.java113 * @param root The layout to add the button to.
118 private Button addSkinny(LinearLayout root, String label, boolean atRight) { argument
142 root.addView(ll);
146 root.addView(ll);
H A DVerticalFocusSearchTest.java49 View findNextFocus(ViewGroup root, View focused, int direction); argument
55 public View findNextFocus(ViewGroup root, View focused, int direction) { argument
57 .findNextFocus(root, focused, direction);
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
H A DTransformTestActivity.java52 LinearLayout root = new LinearLayout(this);
53 root.setOrientation(LinearLayout.VERTICAL);
60 root.addView(view);
61 setContentView(root);
/frameworks/base/core/java/com/google/android/util/
H A DAbstractMessageParser.java1369 public static void addToTrie(TrieNode root, String str, String value) { argument
1372 root = root.getOrCreateChild(str.charAt(index++));
1374 root.setValue(value);
1381 private static boolean matches(TrieNode root, String str) { argument
1384 root = root.getChild(str.charAt(index++));
1385 if (root == null) {
1387 } else if (root.exists()) {
1399 TrieNode root, AbstractMessageParse
1398 longestMatch( TrieNode root, AbstractMessageParser p, int start) argument
1408 longestMatch( TrieNode root, AbstractMessageParser p, int start, boolean smiley) argument
[all...]

Completed in 846 milliseconds

12