Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 65) 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"):
/cts/tests/tests/widget/src/android/widget/cts/
DHorizontalScrollViewTest.java310 MyView child = new MyView(mActivity); in testMeasureChild() local
311 child.setBackgroundDrawable(null); in testMeasureChild()
312 child.setPadding(0, 0, 0, 0); in testMeasureChild()
313 child.setMinimumWidth(30); in testMeasureChild()
314 child.setLayoutParams(new ViewGroup.LayoutParams(100, 100)); in testMeasureChild()
315 child.measure(MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild()
318 assertEquals(100, child.getMeasuredHeight()); in testMeasureChild()
319 assertEquals(100, child.getMeasuredWidth()); in testMeasureChild()
322 child, MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild()
325 assertEquals(100, child.getMeasuredHeight()); in testMeasureChild()
[all …]
DScrollViewTest.java324 MyView child = new MyView(mActivity); in testMeasureChild() local
325 child.setBackgroundDrawable(null); in testMeasureChild()
326 child.setPadding(0, 0, 0, 0); in testMeasureChild()
327 child.setMinimumHeight(30); in testMeasureChild()
328 child.setLayoutParams(new ViewGroup.LayoutParams(100, 100)); in testMeasureChild()
329 child.measure(MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), in testMeasureChild()
332 assertEquals(100, child.getMeasuredHeight()); in testMeasureChild()
333 assertEquals(100, child.getMeasuredWidth()); in testMeasureChild()
335 mScrollViewCustomEmpty.measureChild(child, in testMeasureChild()
339 assertEquals(30, child.getMeasuredHeight()); in testMeasureChild()
[all …]
DGridViewTest.java338 View child; in testAccessStretchMode() local
369 child = mGridView.getChildAt(NUM_COLUMNS - 1); // get the rightmost view at the first line. in testAccessStretchMode()
370 childRight[STRETCH_SPACING][INDEX_RIGHTMOST] = child.getRight(); in testAccessStretchMode()
372 child = mGridView.getChildAt(0); in testAccessStretchMode()
373 childRight[STRETCH_SPACING][INDEX_0] = child.getRight(); in testAccessStretchMode()
375 child = mGridView.getChildAt(1); in testAccessStretchMode()
376 childRight[STRETCH_SPACING][INDEX_1] = child.getRight(); in testAccessStretchMode()
386 child = mGridView.getChildAt(NUM_COLUMNS - 1); // get the rightmost view at the first line. in testAccessStretchMode()
387 childRight[STRETCH_COLUMN_WIDTH][INDEX_RIGHTMOST] = child.getRight(); in testAccessStretchMode()
389 child = mGridView.getChildAt(0); in testAccessStretchMode()
[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.cpp124 const XMLElement* child = self.FirstChildElement(); in parseGeneric() local
125 while (child != NULL) { in parseGeneric()
130 if (strcmp(child->Value(), mParsingTable[i].name) == 0) { in parseGeneric()
135 LOGE("ModelBuilder::parseGeneric unknown element %s", child->Value()); in parseGeneric()
154 std::unique_ptr<TaskGeneric> taskChild(parseGeneric(*child, i)); in parseGeneric()
167 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/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/uirendering/src/android/uirendering/cts/testclasses/
DViewClippingTests.java43 ViewGroup child = (ViewGroup) rootView.findViewById(R.id.child);
44 child.setClipToPadding(true);
45 child.setWillNotDraw(true);
46 child.addView(new UnclippedBlueView(rootView.getContext()));
50 View child = rootView.findViewById(R.id.child);
51 child.setOutlineProvider(new ViewOutlineProvider() {
57 child.setClipToOutline(true);
DBitmapTests.java115 final BitmapView child = new BitmapView(view.getContext()); in testChangeDuringRtAnimation()
116 child.setLayoutParams(new FrameLayout.LayoutParams(50, 50)); in testChangeDuringRtAnimation()
117 root.addView(child); in testChangeDuringRtAnimation()
119 mAnimator = ViewAnimationUtils.createCircularReveal(child, 0, 0, 0, 90); in testChangeDuringRtAnimation()
127 child.setColor(Color.RED); in testChangeDuringRtAnimation()
133 child.setColor(Color.BLUE); in testChangeDuringRtAnimation()
182 final BitmapView child = new BitmapView(view.getContext()); in testChangeDuringUiAnimation()
186 child.setLayoutParams(new FrameLayout.LayoutParams(ActivityTestBase.TEST_WIDTH / 2, in testChangeDuringUiAnimation()
188 root.addView(child); in testChangeDuringUiAnimation()
189 child.setColor(Color.BLUE); in testChangeDuringUiAnimation()
[all …]
DVectorDrawableTests.java95 final VectorDrawableView child = new VectorDrawableView(view.getContext()); in testInvalidateCache()
97 child.setLayoutParams(new FrameLayout.LayoutParams(ActivityTestBase.TEST_WIDTH, in testInvalidateCache()
108 child.setVDSize(new Rect(0, 0, 2, 2)); //first draw with VD size set to 1x1 pixels. in testInvalidateCache()
109 root.addView(child); in testInvalidateCache()
118 child.setVDSize(new Rect(0, 0, (int)(progress*child.getWidth()), in testInvalidateCache()
119 (int)(progress*child.getHeight()))); in testInvalidateCache()
120 child.invalidate(); in testInvalidateCache()
DLayerTests.java125 View child = new View(view.getContext()); in testLayerPaintAlphaChanged()
126 child.setLayerType(View.LAYER_TYPE_HARDWARE, null); in testLayerPaintAlphaChanged()
127 child.setAlpha(0.0f); in testLayerPaintAlphaChanged()
129 child.setBackgroundColor(Color.RED); in testLayerPaintAlphaChanged()
130 root.addView(child, new FrameLayout.LayoutParams(TEST_WIDTH, TEST_HEIGHT, in testLayerPaintAlphaChanged()
202 final View child = new View(view.getContext()); in testLayerClear()
203 child.setBackgroundColor(Color.BLUE); in testLayerClear()
204 child.setTranslationX(10); in testLayerClear()
205 child.setLayoutParams( in testLayerClear()
207 child.setLayerType(View.LAYER_TYPE_HARDWARE, null); in testLayerClear()
[all …]
DAlphaBlendTest.java70 final ViewWithAlpha child = new ViewWithAlpha(view.getContext()); in testBlendAlphaNonOverlappingView()
72 child.setLayoutParams(new FrameLayout.LayoutParams( in testBlendAlphaNonOverlappingView()
74 child.setAlpha(0.5f); in testBlendAlphaNonOverlappingView()
75 root.addView(child); in testBlendAlphaNonOverlappingView()
/cts/tests/core/runner/src/com/android/cts/core/runner/support/
DTestNgRunner.java103 for (Description child : getDescription().getChildren()) { in run()
104 String className = child.getClassName(); in run()
105 String methodName = child.getMethodName(); in run()
114 notifier.fireTestStarted(child); in run()
120 notifier.fireTestFailure(new Failure(child, extractException(result.getFailures()))); in run()
123 notifier.fireTestFinished(child); in run()
173 for (Description child : desc.getChildren()) { in filterDescription()
174 Description filteredChild = filterDescription(child, filter); in filterDescription()
218 Description child = Description.createTestDescription(cls, name); in generateTestNgDescription() local
220 parent.addChild(child); in generateTestNgDescription()
/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/tests/tests/view/src/android/view/cts/
DViewGroupTest.java465 MockViewGroup child = new MockViewGroup(mContext); in testClearDisappearingChildren() local
466 child.setAnimation(new MockAnimation()); in testClearDisappearingChildren()
467 mMockViewGroup.addView(child); in testClearDisappearingChildren()
470 assertNotNull(child.getAnimation()); in testClearDisappearingChildren()
474 child.setAnimation(new MockAnimation()); in testClearDisappearingChildren()
481 child.setAnimation(new MockAnimation()); in testClearDisappearingChildren()
804 MockView child = new MockView(mContext); in testFocusableViewAvailable() local
805 mMockViewGroup.addView(child); in testFocusableViewAvailable()
807 child.setDescendantFocusability(ViewGroup.FOCUS_BEFORE_DESCENDANTS); in testFocusableViewAvailable()
808 child.focusableViewAvailable(mMockViewGroup); in testFocusableViewAvailable()
[all …]
/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.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/openglperf2/jni/graphics/
DSceneGraphNode.cpp22 void SceneGraphNode::addChild(SceneGraphNode* child) { in addChild() argument
23 mChildren.push_back(child); in addChild()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DWebViewActivity.java168 for (UiObject2 child : parent.getChildren()) { in getInput()
170 if (child.getClassName().equals(EditText.class.getName())) { in getInput()
171 return child; in getInput()
173 uiBot.dumpScreen("getInput() for " + child + "failed"); in getInput()
174 throw new IllegalStateException("Invalid class for " + child); in getInput()
176 previous = child; in getInput()
/cts/tests/tests/animation/src/android/animation/cts/
DLayoutAnimationTest.java240 public void addChild(ViewGroup parent, View child) { in addChild() argument
241 super.addChild(parent, child); in addChild()
246 public void hideChild(ViewGroup parent, View child) { in hideChild() argument
247 super.hideChild(parent, child); in hideChild()
263 public void removeChild(ViewGroup parent, View child) { in removeChild() argument
264 super.removeChild(parent, child); in removeChild()
281 public void showChild(ViewGroup parent, View child) { in showChild() argument
282 super.showChild(parent, child); in showChild()

123