Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 50) sorted by relevance

12

/cts/tools/utils/
Dandroid_api_description_splitter.py105 for child in elem.childNodes:
106 if child.nodeType == xml.dom.minidom.Node.ELEMENT_NODE:
107 children.append(child)
109 for child in children:
110 if child.nodeName == "doc":
111 elem.removeChild(child)
112 children.remove(child)
114 for child in children:
115 child = self.__trimElem(child)
138 for child in elem.childNodes:
[all …]
Drerun.py24 for child in parent.childNodes:
25 if (child.nodeType == Node.ELEMENT_NODE) and (child.tagName == tagName):
28 children.append(child)
36 for child in childSuites:
37 for failure in parseSuite(child, parentName + child.getAttribute("name")):
40 for child in childTestCases:
41 className = parentName + child.getAttribute("name")
42 for test in getChildrenWithTag(child, "Test"):
DDescriptionGenerator.java329 Node child = suiteChildren.iterator().next(); in mergeEmptySuites() local
333 + getAttribute(child, ATTRIBUTE_NAME); in mergeEmptySuites()
334 setAttribute(child, ATTRIBUTE_NAME, newName); in mergeEmptySuites()
339 parentNode.appendChild(child); in mergeEmptySuites()
341 mergeEmptySuites(child); in mergeEmptySuites()
376 for (Node child : children) { in appendSuiteToElement()
377 String childName = child.getAttributes().getNamedItem(ATTRIBUTE_NAME) in appendSuiteToElement()
383 appendTestCases(child, testSuite.mCases); in appendSuiteToElement()
386 appendSuiteToElement(child, testSuite); in appendSuiteToElement()
408 Node child = children.item(i); in getSuiteChildren() local
[all …]
/cts/suite/audio_quality/lib/src/task/
DTaskBatch.cpp38 bool TaskBatch::addChild(TaskGeneric* child) in addChild() argument
40 if (child->getType() != TaskGeneric::ETaskCase) { in addChild()
41 LOGE("TaskBatch::addChild wrong child type %d", child->getType()); in addChild()
44 return TaskGeneric::addChild(child); in addChild()
47 bool runAlways(TaskGeneric* child, void* data) in runAlways() argument
49 child->run(); in runAlways()
DTaskGeneric.cpp29 bool deleteChildInstance(TaskGeneric* child, void* /*data*/) in deleteChildInstance() argument
31 delete child; in deleteChildInstance()
41 bool TaskGeneric::addChild(TaskGeneric* child) in addChild() argument
43 mChildren.push_back(child); in addChild()
44 child->setParent(this); in addChild()
48 bool TaskGeneric::forEachChild(bool (*runForEachChild)(TaskGeneric* child, void* data), void* data) in forEachChild() argument
86 bool runChild(TaskGeneric* child, void* data) in runChild() argument
89 *result = child->run(); in runChild()
91 LOGE("child type %d returned %d", child->getType(), *result); in runChild()
DModelBuilder.cpp121 const TiXmlElement* child = self.FirstChildElement(); in parseGeneric() local
122 while (child != NULL) { in parseGeneric()
127 if (strcmp(child->Value(), mParsingTable[i].name) == 0) { in parseGeneric()
132 LOGE("ModelBuilder::parseGeneric unknown element %s", child->Value()); in parseGeneric()
151 UniquePtr<TaskGeneric> taskChild(parseGeneric(*child, i)); in parseGeneric()
164 child = child->NextSiblingElement(); in parseGeneric()
DTaskSequential.cpp59 TaskGeneric* child = *i; in run() local
60 TaskGeneric::ExecutionResult result = child->run(); in run()
110 TaskAsync* child = *i; in runAsyncTasksQueued() local
111 TaskGeneric::ExecutionResult result = child->complete(); in runAsyncTasksQueued()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DViewClippingTests.java38 ViewGroup child = (ViewGroup) rootView.findViewById(R.id.child);
39 child.setClipToPadding(true);
40 child.setWillNotDraw(true);
41 child.addView(new UnclippedBlueView(rootView.getContext()));
47 View child = rootView.findViewById(R.id.child);
48 child.setOutlineProvider(new ViewOutlineProvider() {
54 child.setClipToOutline(true);
/cts/hostsidetests/theme/app/src/android/theme/app/
DReferenceViewGroup.java55 View child = getChildAt(i); in onMeasure() local
56 LayoutParams params = child.getLayoutParams(); in onMeasure()
59 child.measure(width, height); in onMeasure()
77 View child = getChildAt(i); in onLayout() local
78 child.layout(0, 0, child.getMeasuredWidth(), child.getMeasuredHeight()); in onLayout()
/cts/apps/CtsVerifier/src/android/support/wearable/view/
DBoxInsetLayout.java117 final View child = getChildAt(i); in onMeasure() local
118 if (child.getVisibility() != GONE) { in onMeasure()
119 LayoutParams lp = (BoxInsetLayout.LayoutParams) child.getLayoutParams(); in onMeasure()
145 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0); in onMeasure()
147 child.getMeasuredWidth() + marginLeft + marginRight); in onMeasure()
149 child.getMeasuredHeight() + marginTop + marginBottom); in onMeasure()
150 childState = combineMeasuredStates(childState, child.getMeasuredState()); in onMeasure()
178 final View child = getChildAt(i); in onMeasure() local
180 final LayoutParams lp = (BoxInsetLayout.LayoutParams) child.getLayoutParams(); in onMeasure()
233 child.measure(childWidthMeasureSpec, childHeightMeasureSpec); in onMeasure()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DMyHorizontalScrollView.java59 protected void measureChild(View child, int parentWidthMeasureSpec, in measureChild() argument
61 super.measureChild(child, parentWidthMeasureSpec, parentHeightMeasureSpec); in measureChild()
65 protected void measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed, in measureChildWithMargins() argument
67 super.measureChildWithMargins(child, parentWidthMeasureSpec, in measureChildWithMargins()
DGridViewTest.java186 View child; in testSetGravity() local
208 child = mGridView.getChildAt(0); // get the first view. in testSetGravity()
209 ViewAsserts.assertHorizontalCenterAligned(mGridView, child); in testSetGravity()
220 child = mGridView.getChildAt(0); // get the first view. in testSetGravity()
221 ViewAsserts.assertLeftAligned(mGridView, child, mGridView.getListPaddingLeft()); in testSetGravity()
232 child = mGridView.getChildAt(0); // get the first view. in testSetGravity()
233 ViewAsserts.assertRightAligned(mGridView, child, mGridView.getListPaddingRight()); in testSetGravity()
321 View child; in testAccessStretchMode() local
356 child = mGridView.getChildAt(NUM_COLUMNS - 1); // get the rightmost view at the first line. in testAccessStretchMode()
357 childRight[STRETCH_SPACING][INDEX_RIGHTMOST] = child.getRight(); in testAccessStretchMode()
[all …]
DScrollViewTest.java314 MyView child = new MyView(mActivity); in testMeasureChild() local
315 child.setBackgroundDrawable(null); in testMeasureChild()
316 child.setPadding(0, 0, 0, 0); in testMeasureChild()
317 child.setMinimumHeight(30); in testMeasureChild()
318 child.setLayoutParams(new ViewGroup.LayoutParams(100, 100)); in testMeasureChild()
319 child.measure(MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild()
322 assertEquals(100, child.getMeasuredHeight()); in testMeasureChild()
323 assertEquals(100, child.getMeasuredWidth()); in testMeasureChild()
325 scrollView.measureChild(child, MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild()
328 assertEquals(30, child.getMeasuredHeight()); in testMeasureChild()
[all …]
DHorizontalScrollViewTest.java295 MyView child = new MyView(mActivity); in testMeasureChild() local
296 child.setBackgroundDrawable(null); in testMeasureChild()
297 child.setPadding(0, 0, 0, 0); in testMeasureChild()
298 child.setMinimumWidth(30); in testMeasureChild()
299 child.setLayoutParams(new ViewGroup.LayoutParams(100, 100)); in testMeasureChild()
300 child.measure(MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild()
303 assertEquals(100, child.getMeasuredHeight()); in testMeasureChild()
304 assertEquals(100, child.getMeasuredWidth()); in testMeasureChild()
306 scrollView.measureChild(child, MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild()
309 assertEquals(100, child.getMeasuredHeight()); in testMeasureChild()
[all …]
DLayoutDirectionTest.java75 LinearLayout child = new LinearLayout(getActivity()); in checkDirectionInheritanceForOneLayoutWithCode() local
76 child.setLayoutDirection(LAYOUT_DIRECTION_INHERIT); in checkDirectionInheritanceForOneLayoutWithCode()
77 parent.addView(child); in checkDirectionInheritanceForOneLayoutWithCode()
83 assertEquals(LAYOUT_DIRECTION_LTR, child.getLayoutDirection()); in checkDirectionInheritanceForOneLayoutWithCode()
89 assertEquals(LAYOUT_DIRECTION_RTL, child.getLayoutDirection()); in checkDirectionInheritanceForOneLayoutWithCode()
DMyScrollView.java64 protected void measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed, in measureChildWithMargins() argument
66 super.measureChildWithMargins(child, parentWidthMeasureSpec, widthUsed, in measureChildWithMargins()
DMyGallery.java48 protected boolean getChildStaticTransformation(View child, Transformation t) { in getChildStaticTransformation() argument
49 return super.getChildStaticTransformation(child, t); in getChildStaticTransformation()
/cts/suite/cts/utils/
Dget_csv_report.py26 for child in parent.childNodes:
27 if (child.nodeType == Node.ELEMENT_NODE) and (child.tagName == tagName):
30 children.append(child)
60 for child in childSuites:
61 cases.update(parseSuite(child, parentName + child.getAttribute("name")))
63 for child in childTestCases:
64 className = parentName + child.getAttribute("name")
65 for test in getChildrenWithTag(child, "Test"):
/cts/tools/utils/cts/
Dtools.py56 child = doc.createElement('TestSuite')
57 child.setAttribute('name', suite_name)
58 parent.appendChild(child)
60 suite.WriteDescription(doc, child)
62 child = doc.createElement('TestCase')
63 child.setAttribute('name', case_name)
64 parent.appendChild(child)
68 child.appendChild(test)
/cts/tools/vm-tests-tf/src/util/build/
DBuildStep.java80 for (BuildStep child : children) { in build()
81 if (!child.build()) { in build()
99 public void addChild(BuildStep child) { in addChild() argument
103 children.add(child); in addChild()
/cts/tests/tests/animation/src/android/animation/cts/
DLayoutAnimationTest.java212 public void addChild(ViewGroup parent, View child) { in addChild() argument
213 super.addChild(parent, child); in addChild()
218 public void hideChild(ViewGroup parent, View child) { in hideChild() argument
219 super.hideChild(parent, child); in hideChild()
235 public void removeChild(ViewGroup parent, View child) { in removeChild() argument
236 super.removeChild(parent, child); in removeChild()
253 public void showChild(ViewGroup parent, View child) { in showChild() argument
254 super.showChild(parent, child); in showChild()
/cts/suite/cts/deviceTests/opengl/jni/graphics/
DSceneGraphNode.cpp22 void SceneGraphNode::addChild(SceneGraphNode* child) { in addChild() argument
23 mChildren.add(child); in addChild()
/cts/tests/tests/view/src/android/view/cts/
DMyScrollView.java64 protected void measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed, in measureChildWithMargins() argument
66 super.measureChildWithMargins(child, parentWidthMeasureSpec, widthUsed, in measureChildWithMargins()
/cts/suite/audio_quality/lib/include/task/
DTaskGeneric.h79 virtual bool addChild(TaskGeneric* child);
95 bool forEachChild(bool (*runForEachChild)(TaskGeneric* child, void* data), void* data);
DTaskBatch.h28 virtual bool addChild(TaskGeneric* child);

12