/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowContainerTests.java | 131 final TestWindowContainer child1 = root.addChildWindow(); in testAdd_AlreadyHasParent() local 136 child1.addChildWindow(child2); in testAdd_AlreadyHasParent() 156 final TestWindowContainer child1 = root.addChildWindow(); in testHasChild() local 158 final TestWindowContainer child11 = child1.addChildWindow(); in testHasChild() 159 final TestWindowContainer child12 = child1.addChildWindow(); in testHasChild() 163 assertEquals(2, child1.getChildrenCount()); in testHasChild() 166 assertTrue(root.hasChild(child1)); in testHasChild() 172 assertTrue(child1.hasChild(child11)); in testHasChild() 173 assertTrue(child1.hasChild(child12)); in testHasChild() 174 assertFalse(child1.hasChild(child21)); in testHasChild() [all …]
|
D | ConfigurationContainerTests.java | 64 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 …]
|
D | WindowStateTests.java | 122 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testIsParentWindowHidden() local 128 assertTrue(child1.isParentWindowHidden()); in testIsParentWindowHidden() 133 assertFalse(child1.isParentWindowHidden()); in testIsParentWindowHidden() 140 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testIsChildWindow() local 145 assertTrue(child1.isChildWindow()); in testIsChildWindow() 174 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testGetParentWindow() local 178 assertEquals(parentWindow, child1.getParentWindow()); in testGetParentWindow() 195 final WindowState child1 = createWindow(root, FIRST_SUB_WINDOW, "child1"); in testGetTopParentWindow() local 196 final WindowState child2 = createWindow(child1, FIRST_SUB_WINDOW, "child2"); in testGetTopParentWindow() 199 assertEquals(root, child1.getTopParentWindow()); in testGetTopParentWindow() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | FindViewByIdTest.java | 54 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/ |
D | MessagingLinearLayoutTest.java | 68 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/ |
D | ItemInflaterTest.java | 53 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/ |
D | ViewCaptureTest.java | 47 EXPECTED_CHILDREN_VISIBILITY.append(R.id.child1, View.VISIBLE); in EXPECTED_CHILDREN_VISIBILITY.append() argument
|
/frameworks/base/core/java/android/view/ |
D | ViewGroup.java | 8900 final View child1 = holder1.mView.findViewByPredicateTraversal((view) -> { in compareBoundsOfTree() local 8911 if ((child1 != null) && (child2 != null)) { in compareBoundsOfTree() 8913 ViewLocationHolder.obtain(holder1.mRoot, child1); in compareBoundsOfTree() 8920 if (child1 != null) { in compareBoundsOfTree()
|