/cts/tools/utils/ |
D | android_api_description_splitter.py | 105 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 …]
|
D | rerun.py | 24 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"):
|
D | DescriptionGenerator.java | 317 Node child = suiteChildren.iterator().next(); in mergeEmptySuites() local 321 + getAttribute(child, ATTRIBUTE_NAME); in mergeEmptySuites() 322 setAttribute(child, ATTRIBUTE_NAME, newName); in mergeEmptySuites() 327 parentNode.appendChild(child); in mergeEmptySuites() 329 mergeEmptySuites(child); in mergeEmptySuites() 364 for (Node child : children) { in appendSuiteToElement() 365 String childName = child.getAttributes().getNamedItem(ATTRIBUTE_NAME) in appendSuiteToElement() 371 appendTestCases(child, testSuite.mCases); in appendSuiteToElement() 374 appendSuiteToElement(child, testSuite); in appendSuiteToElement() 396 Node child = children.item(i); in getSuiteChildren() local [all …]
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskBatch.cpp | 38 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()
|
D | TaskGeneric.cpp | 29 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()
|
D | ModelBuilder.cpp | 121 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()
|
D | TaskSequential.cpp | 59 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()
|
D | TaskCase.cpp | 56 bool TaskCase::addChild(TaskGeneric* child) in addChild() argument 58 if ((child->getType() != TaskGeneric::ETaskSetup) in addChild() 59 && (child->getType() != TaskGeneric::ETaskAction) in addChild() 60 && (child->getType() != TaskGeneric::ETaskSave)) { in addChild() 61 LOGE("TestCase::addChild wrong child type %d", child->getType()); in addChild() 64 return TaskGeneric::addChild(child); in addChild()
|
/cts/tests/tests/holo/src/android/holo/cts/ |
D | ReferenceViewGroup.java | 55 View child = getChildAt(i); in onMeasure() local 56 LayoutParams params = child.getLayoutParams(); in onMeasure() 59 child.measure(width, height); in onMeasure() 81 View child = getChildAt(i); in onLayout() local 82 child.layout(0, 0, child.getMeasuredWidth(), child.getMeasuredHeight()); in onLayout()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | GridViewTest.java | 179 View child; in testSetGravity() local 201 child = mGridView.getChildAt(0); // get the first view. in testSetGravity() 202 ViewAsserts.assertHorizontalCenterAligned(mGridView, child); in testSetGravity() 213 child = mGridView.getChildAt(0); // get the first view. in testSetGravity() 214 ViewAsserts.assertLeftAligned(mGridView, child, mGridView.getListPaddingLeft()); in testSetGravity() 225 child = mGridView.getChildAt(0); // get the first view. in testSetGravity() 226 ViewAsserts.assertRightAligned(mGridView, child, mGridView.getListPaddingRight()); in testSetGravity() 292 View child; in testAccessStretchMode() local 327 child = mGridView.getChildAt(NUM_COLUMNS - 1); // get the rightmost view at the first line. in testAccessStretchMode() 328 childRight[STRETCH_SPACING][INDEX_RIGHTMOST] = child.getRight(); in testAccessStretchMode() [all …]
|
D | ScrollViewTest.java | 314 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 …]
|
D | HorizontalScrollViewTest.java | 294 MyView child = new MyView(mActivity); in testMeasureChild() local 295 child.setBackgroundDrawable(null); in testMeasureChild() 296 child.setPadding(0, 0, 0, 0); in testMeasureChild() 297 child.setMinimumWidth(30); in testMeasureChild() 298 child.setLayoutParams(new ViewGroup.LayoutParams(100, 100)); in testMeasureChild() 299 child.measure(MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild() 302 assertEquals(100, child.getMeasuredHeight()); in testMeasureChild() 303 assertEquals(100, child.getMeasuredWidth()); in testMeasureChild() 305 scrollView.measureChild(child, MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild() 308 assertEquals(100, child.getMeasuredHeight()); in testMeasureChild() [all …]
|
D | LayoutDirectionTest.java | 75 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()
|
D | ListViewTest.java | 456 final TextView child = (TextView) mAdapter_countries.getView(2, null, mListView); in testPerformItemClick() local 457 assertNotNull(child); in testPerformItemClick() 458 assertEquals(mCountryList[2], child.getText().toString()); in testPerformItemClick() 464 mListView.performItemClick(child, 2, itemID); in testPerformItemClick() 478 mListView.performItemClick(child, 2, itemID); in testPerformItemClick() 483 assertSame(child, onClickListener.getView()); in testPerformItemClick() 540 TextView child = (TextView) mAdapter_countries.getView(0, null, mListView); in testRequestChildRectangleOnScreen() local 541 assertNotNull(child); in testRequestChildRectangleOnScreen() 542 assertEquals(mCountryList[0], child.getText().toString()); in testRequestChildRectangleOnScreen() 545 assertFalse(mListView.requestChildRectangleOnScreen(child, rect, false)); in testRequestChildRectangleOnScreen()
|
/cts/suite/pts/utils/ |
D | get_csv_report.py | 28 for child in parent.childNodes: 29 if (child.nodeType == Node.ELEMENT_NODE) and (child.tagName == tagName): 32 children.append(child) 59 for child in childSuites: 60 cases.update(parseSuite(child, parentName + child.getAttribute("name"))) 62 for child in childTestCases: 63 className = parentName + child.getAttribute("name") 64 for test in getChildrenWithTag(child, "Test"):
|
/cts/tools/utils/cts/ |
D | tools.py | 56 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/tests/src/android/widget/cts/ |
D | MyHorizontalScrollView.java | 59 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()
|
D | MyScrollView.java | 64 protected void measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed, in measureChildWithMargins() argument 66 super.measureChildWithMargins(child, parentWidthMeasureSpec, widthUsed, in measureChildWithMargins()
|
D | MyGallery.java | 48 protected boolean getChildStaticTransformation(View child, Transformation t) { in getChildStaticTransformation() argument 49 return super.getChildStaticTransformation(child, t); in getChildStaticTransformation()
|
/cts/tools/vm-tests-tf/src/util/build/ |
D | BuildStep.java | 80 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/ |
D | LayoutAnimationTest.java | 212 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/audio_quality/lib/include/task/ |
D | TaskGeneric.h | 79 virtual bool addChild(TaskGeneric* child); 95 bool forEachChild(bool (*runForEachChild)(TaskGeneric* child, void* data), void* data);
|
D | TaskBatch.h | 28 virtual bool addChild(TaskGeneric* child);
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewGroupTest.java | 236 TextView child = new TextView(mContext); in testAttachViewToParent() local 237 child.setFocusable(true); in testAttachViewToParent() 238 vg.attachViewToParent(child, -1, param); in testAttachViewToParent() 239 assertSame(vg, child.getParent()); in testAttachViewToParent() 241 assertSame(child, vg.getChildAt(0)); in testAttachViewToParent() 1168 public void onChildViewAdded(View parent, View child) { in onChildViewAdded() argument 1171 public void onChildViewRemoved(View parent, View child) { in onChildViewRemoved() argument 1173 sChild = child; in onChildViewRemoved() 1858 public boolean addViewInLayout(View child, int index, in addViewInLayout() argument 1860 return super.addViewInLayout(child, index, params); in addViewInLayout() [all …]
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityWindowQueryTest.java | 120 AccessibilityNodeInfo child = getInteractionBridge().getChild(current, i); in testTraverseWindow() local 121 fringe.add(child); in testTraverseWindow() 401 AccessibilityNodeInfo child = getInteractionBridge().getChild(parent, i); in testObjectContract() local 402 assertNotNull(child); in testObjectContract() 403 if (child.equals(button)) { in testObjectContract() 405 child.hashCode()); in testObjectContract()
|