Home
last modified time | relevance | path

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

123

/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/tests/tests/widget/src/android/widget/cts/
DHorizontalScrollViewTest.java296 MyView child = new MyView(mActivity); in testMeasureChild() local
297 child.setBackgroundDrawable(null); in testMeasureChild()
298 child.setPadding(0, 0, 0, 0); in testMeasureChild()
299 child.setMinimumWidth(30); in testMeasureChild()
300 child.setLayoutParams(new ViewGroup.LayoutParams(100, 100)); in testMeasureChild()
301 child.measure(MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild()
304 assertEquals(100, child.getMeasuredHeight()); in testMeasureChild()
305 assertEquals(100, child.getMeasuredWidth()); in testMeasureChild()
307 scrollView.measureChild(child, MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild()
310 assertEquals(100, child.getMeasuredHeight()); in testMeasureChild()
[all …]
DScrollViewTest.java318 MyView child = new MyView(mActivity); in testMeasureChild() local
319 child.setBackgroundDrawable(null); in testMeasureChild()
320 child.setPadding(0, 0, 0, 0); in testMeasureChild()
321 child.setMinimumHeight(30); in testMeasureChild()
322 child.setLayoutParams(new ViewGroup.LayoutParams(100, 100)); in testMeasureChild()
323 child.measure(MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild()
326 assertEquals(100, child.getMeasuredHeight()); in testMeasureChild()
327 assertEquals(100, child.getMeasuredWidth()); in testMeasureChild()
329 scrollView.measureChild(child, MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild()
332 assertEquals(30, child.getMeasuredHeight()); in testMeasureChild()
[all …]
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.java188 View child; in testSetGravity() local
210 child = mGridView.getChildAt(0); // get the first view. in testSetGravity()
211 ViewAsserts.assertHorizontalCenterAligned(mGridView, child); in testSetGravity()
222 child = mGridView.getChildAt(0); // get the first view. in testSetGravity()
223 ViewAsserts.assertLeftAligned(mGridView, child, mGridView.getListPaddingLeft()); in testSetGravity()
234 child = mGridView.getChildAt(0); // get the first view. in testSetGravity()
235 ViewAsserts.assertRightAligned(mGridView, child, mGridView.getListPaddingRight()); in testSetGravity()
323 View child; in testAccessStretchMode() local
358 child = mGridView.getChildAt(NUM_COLUMNS - 1); // get the rightmost view at the first line. in testAccessStretchMode()
359 childRight[STRETCH_SPACING][INDEX_RIGHTMOST] = child.getRight(); in testAccessStretchMode()
[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()
/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/core/runner/src/com/android/cts/core/runner/support/
DTestNgRunner.java108 for (Description child : getDescription().getChildren()) { in run()
109 String className = child.getClassName(); in run()
110 String methodName = child.getMethodName(); in run()
119 notifier.fireTestStarted(child); in run()
124 notifier.fireTestFinished(child); in run()
131 notifier.fireTestFailure(new Failure(child, new AssertionError())); in run()
134 notifier.fireTestFinished(child); in run()
158 for (Description child : desc.getChildren()) { in filterDescription()
159 Description filteredChild = filterDescription(child, filter); in filterDescription()
203 Description child = Description.createTestDescription(cls, name); in generateTestNgDescription() local
[all …]
/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/com/android/cts/verifier/
DBoxInsetLayout.java115 final View child = getChildAt(i); in onMeasure() local
116 if (child.getVisibility() != GONE) { in onMeasure()
117 LayoutParams lp = (BoxInsetLayout.LayoutParams) child.getLayoutParams(); in onMeasure()
143 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0); in onMeasure()
145 child.getMeasuredWidth() + marginLeft + marginRight); in onMeasure()
147 child.getMeasuredHeight() + marginTop + marginBottom); in onMeasure()
148 childState = combineMeasuredStates(childState, child.getMeasuredState()); in onMeasure()
176 final View child = getChildAt(i); in onMeasure() local
178 final LayoutParams lp = (BoxInsetLayout.LayoutParams) child.getLayoutParams(); in onMeasure()
231 child.measure(childWidthMeasureSpec, childHeightMeasureSpec); in onMeasure()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewGroupTest.java237 TextView child = new TextView(mContext); in testAttachViewToParent() local
238 child.setFocusable(true); in testAttachViewToParent()
239 vg.attachViewToParent(child, -1, param); in testAttachViewToParent()
240 assertSame(vg, child.getParent()); in testAttachViewToParent()
242 assertSame(child, vg.getChildAt(0)); in testAttachViewToParent()
339 MockViewGroup child = new MockViewGroup(mContext); in testClearDisappearingChildren() local
340 child.setAnimation(new MockAnimation()); in testClearDisappearingChildren()
341 vg.addView(child); in testClearDisappearingChildren()
344 assertNotNull(child.getAnimation()); in testClearDisappearingChildren()
348 child.setAnimation(new MockAnimation()); in testClearDisappearingChildren()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DViewClippingTests.java39 ViewGroup child = (ViewGroup) rootView.findViewById(R.id.child);
40 child.setClipToPadding(true);
41 child.setWillNotDraw(true);
42 child.addView(new UnclippedBlueView(rootView.getContext()));
46 View child = rootView.findViewById(R.id.child);
47 child.setOutlineProvider(new ViewOutlineProvider() {
53 child.setClipToOutline(true);
/cts/tools/testng/
Dgen-test-list-xml.py60 def append_child(self, child): argument
61 self._children.append(child)
109 for child in self.children:
110 child.write_xml(out, indent + INDENTATION_INCREASE)
128 for child in self.children:
129 if child.name == current_package:
130 return child.get_or_create_suite(rest_of_packages)
156 for child in self.children:
157 if child.name == just_class_name:
158 return child
/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/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DBasePermissionsTest.java364 AccessibilityNodeInfo child = root.getChild(i); in findByTextInCollection() local
365 if (child == null) { in findByTextInCollection()
368 if (child.getCollectionInfo() != null) { in findByTextInCollection()
369 scrollTop(child); in findByTextInCollection()
370 result = getNodeTimed(() -> findByText(child, text)); in findByTextInCollection()
374 while (child.getActionList().contains(AccessibilityAction.ACTION_SCROLL_FORWARD)) { in findByTextInCollection()
375 scrollForward(child); in findByTextInCollection()
376 result = getNodeTimed(() -> findByText(child, text)); in findByTextInCollection()
382 result = findByTextInCollection(child, text); in findByTextInCollection()
447 AccessibilityNodeInfo child = root.getChild(i); in findSwitch() local
[all …]
/cts/tools/vm-tests-tf/src/util/build/
DBuildStep.java85 for (BuildStep child : children) { in build()
86 if (!child.build()) { in build()
104 public void addChild(BuildStep child) { in addChild() argument
108 children.add(child); in addChild()
/cts/tests/tests/animation/src/android/animation/cts/
DLayoutAnimationTest.java221 public void addChild(ViewGroup parent, View child) { in addChild() argument
222 super.addChild(parent, child); in addChild()
227 public void hideChild(ViewGroup parent, View child) { in hideChild() argument
228 super.hideChild(parent, child); in hideChild()
244 public void removeChild(ViewGroup parent, View child) { in removeChild() argument
245 super.removeChild(parent, child); in removeChild()
262 public void showChild(ViewGroup parent, View child) { in showChild() argument
263 super.showChild(parent, child); in showChild()
/cts/tests/core/runner/src/com/android/cts/core/runner/
DTestFilter.java118 Description child = children.get(0); in getTestDescription() local
119 String methodName = child.getMethodName(); in getTestDescription()
121 return child; in getTestDescription()
/cts/tests/openglperf2/jni/graphics/
DSceneGraphNode.cpp22 void SceneGraphNode::addChild(SceneGraphNode* child) { in addChild() argument
23 mChildren.push_back(child); in addChild()

123