Home
last modified time | relevance | path

Searched refs:child1 (Results 1 – 9 of 9) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DSetFrameRateTest.cpp219 auto child1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local
222 addChild(parent, child1); in TEST_P()
223 addChild(child1, child2); in TEST_P()
228 EXPECT_EQ(FRAME_RATE_TREE, child1->getFrameRateForLayerTree()); in TEST_P()
234 EXPECT_EQ(FRAME_RATE_NO_VOTE, child1->getFrameRateForLayerTree()); in TEST_P()
244 auto child1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local
247 addChild(parent, child1); in TEST_P()
248 addChild(child1, child2); in TEST_P()
251 child1->setFrameRate(FRAME_RATE_VOTE2); in TEST_P()
255 EXPECT_EQ(FRAME_RATE_VOTE2, child1->getFrameRateForLayerTree()); in TEST_P()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowContainerTests.java154 final TestWindowContainer child1 = root.addChildWindow(); in testAdd_AlreadyHasParent() local
159 child1.addChildWindow(child2); in testAdd_AlreadyHasParent()
179 final TestWindowContainer child1 = root.addChildWindow(); in testHasChild() local
181 final TestWindowContainer child11 = child1.addChildWindow(); in testHasChild()
182 final TestWindowContainer child12 = child1.addChildWindow(); in testHasChild()
186 assertEquals(2, child1.getChildrenCount()); in testHasChild()
189 assertTrue(root.hasChild(child1)); in testHasChild()
195 assertTrue(child1.hasChild(child11)); in testHasChild()
196 assertTrue(child1.hasChild(child12)); in testHasChild()
197 assertFalse(child1.hasChild(child21)); in testHasChild()
[all …]
DConfigurationContainerTests.java64 final TestConfigurationContainer child1 = root.addChild(); in testConfigurationInit() local
65 assertEquals(EMPTY, child1.getRequestedOverrideConfiguration()); in testConfigurationInit()
66 assertEquals(EMPTY, child1.getMergedOverrideConfiguration()); in testConfigurationInit()
67 assertEquals(EMPTY, child1.getConfiguration()); in testConfigurationInit()
148 final TestConfigurationContainer child1 = root.addChild(); in testConfigurationChangePropagation() local
152 child1.onRequestedOverrideConfigurationChanged(childOverrideConfig1); in testConfigurationChangePropagation()
154 final TestConfigurationContainer child2 = child1.addChild(); in testConfigurationChangePropagation()
176 assertEquals(childOverrideConfig1, child1.getRequestedOverrideConfiguration()); in testConfigurationChangePropagation()
177 assertEquals(mergedOverrideConfig1, child1.getMergedOverrideConfiguration()); in testConfigurationChangePropagation()
178 assertEquals(mergedConfig1, child1.getConfiguration()); in testConfigurationChangePropagation()
[all …]
DWindowStateTests.java114 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testIsParentWindowHidden() local
120 assertTrue(child1.isParentWindowHidden()); in testIsParentWindowHidden()
125 assertFalse(child1.isParentWindowHidden()); in testIsParentWindowHidden()
132 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testIsChildWindow() local
137 assertTrue(child1.isChildWindow()); in testIsChildWindow()
166 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testGetParentWindow() local
170 assertEquals(parentWindow, child1.getParentWindow()); in testGetParentWindow()
187 final WindowState child1 = createWindow(root, FIRST_SUB_WINDOW, "child1"); in testGetTopParentWindow() local
188 final WindowState child2 = createWindow(child1, FIRST_SUB_WINDOW, "child2"); in testGetTopParentWindow()
191 assertEquals(root, child1.getTopParentWindow()); in testGetTopParentWindow()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DFindViewByIdTest.java54 View child1 = new View(getContext()); in testFindViewById() local
56 child1.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); in testFindViewById()
59 contentView.addView(child1); in testFindViewById()
71 View child1 = new View(getContext()); in testFindViewByIdReturnNullIfRemovedFromHierarchy() local
73 contentView.addView(child1); in testFindViewByIdReturnNullIfRemovedFromHierarchy()
75 child1.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); in testFindViewByIdReturnNullIfRemovedFromHierarchy()
78 contentView.removeView(child1); in testFindViewByIdReturnNullIfRemovedFromHierarchy()
80 child1.getAccessibilityViewId()); in testFindViewByIdReturnNullIfRemovedFromHierarchy()
89 View child1 = new View(getContext()); in testFindViewByIdReturnNullIfNotImportant() local
93 contentView.addView(child1); in testFindViewByIdReturnNullIfNotImportant()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DMessagingLinearLayoutTest.java68 FakeImageFloatingTextView child1 = fakeChild(3); in testLargeSmall() local
71 mView.addView(child1); in testLargeSmall()
77 assertFalse("child1 should not be hidden", child1.isHidden()); in testLargeSmall()
84 FakeImageFloatingTextView child1 = fakeChild(1); in testSmallSmall() local
87 mView.addView(child1); in testSmallSmall()
93 assertFalse("child1 should not be hidden", child1.isHidden()); in testSmallSmall()
100 FakeImageFloatingTextView child1 = fakeChild(7); in testLargeLarge() local
103 mView.addView(child1); in testLargeLarge()
109 assertTrue("child1 should be hidden", child1.isHidden()); in testLargeLarge()
116 FakeImageFloatingTextView child1 = fakeChild(7); in testLargeSmall_largeWrapsWith3indentbutNotFullHeight_andHitsMax() local
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DItemInflaterTest.java53 Item child1 = (Item) itemGroup.getItemAt(1); in testInflate() local
55 assertEquals("ID of second child should be test_item_2", R.id.test_item_2, child1.getId()); in testInflate()
56 assertEquals("Summary of second child should be Summary2", "Summary2", child1.getSummary()); in testInflate()
/frameworks/base/core/tests/coretests/src/android/view/
DViewCaptureTest.java47 EXPECTED_CHILDREN_VISIBILITY.append(R.id.child1, View.VISIBLE); in EXPECTED_CHILDREN_VISIBILITY.append() argument
/frameworks/base/core/java/android/view/
DViewGroup.java9155 final View child1 = holder1.mView.findViewByPredicateTraversal((view) -> { in compareBoundsOfTree() local
9166 if ((child1 != null) && (child2 != null)) { in compareBoundsOfTree()
9168 ViewLocationHolder.obtain(holder1.mRoot, child1); in compareBoundsOfTree()
9175 if (child1 != null) { in compareBoundsOfTree()