/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SetFrameRateTest.cpp | 112 auto child1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local 115 addChild(parent, child1); in TEST_P() 116 addChild(child1, child2); in TEST_P() 121 EXPECT_EQ(FRAME_RATE_TREE, child1->getFrameRateForLayerTree()); in TEST_P() 127 EXPECT_EQ(FRAME_RATE_NO_VOTE, child1->getFrameRateForLayerTree()); in TEST_P() 137 auto child1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local 140 addChild(parent, child1); in TEST_P() 141 addChild(child1, child2); in TEST_P() 144 child1->setFrameRate(FRAME_RATE_VOTE2.vote); in TEST_P() 148 EXPECT_EQ(FRAME_RATE_VOTE2, child1->getFrameRateForLayerTree()); in TEST_P() [all …]
|
D | FrameRateSelectionStrategyTest.cpp | 111 auto child1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local 113 addChild(parent, child1); in TEST_P() 114 addChild(child1, child2); in TEST_P() 122 EXPECT_EQ(FRAME_RATE_TREE, child1->getFrameRateForLayerTree()); in TEST_P() 124 child1->getDrawingState().frameRateSelectionStrategy); in TEST_P()
|
/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/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowContainerTests.java | 181 final TestWindowContainer child1 = root.addChildWindow(); in testAdd_AlreadyHasParent() local 186 child1.addChildWindow(child2); in testAdd_AlreadyHasParent() 206 final TestWindowContainer child1 = root.addChildWindow(); in testHasChild() local 208 final TestWindowContainer child11 = child1.addChildWindow(); in testHasChild() 209 final TestWindowContainer child12 = child1.addChildWindow(); in testHasChild() 213 assertEquals(2, child1.getChildrenCount()); in testHasChild() 216 assertTrue(root.hasChild(child1)); in testHasChild() 222 assertTrue(child1.hasChild(child11)); in testHasChild() 223 assertTrue(child1.hasChild(child12)); in testHasChild() 224 assertFalse(child1.hasChild(child21)); in testHasChild() [all …]
|
D | ConfigurationContainerTests.java | 66 final TestConfigurationContainer child1 = root.addChild(); in testConfigurationInit() local 67 assertEquals(EMPTY, child1.getRequestedOverrideConfiguration()); in testConfigurationInit() 68 assertEquals(EMPTY, child1.getMergedOverrideConfiguration()); in testConfigurationInit() 69 assertEquals(EMPTY, child1.getConfiguration()); in testConfigurationInit() 150 final TestConfigurationContainer child1 = root.addChild(); in testConfigurationChangePropagation() local 154 child1.onRequestedOverrideConfigurationChanged(childOverrideConfig1); in testConfigurationChangePropagation() 156 final TestConfigurationContainer child2 = child1.addChild(); in testConfigurationChangePropagation() 178 assertEquals(childOverrideConfig1, child1.getRequestedOverrideConfiguration()); in testConfigurationChangePropagation() 179 assertEquals(mergedOverrideConfig1, child1.getMergedOverrideConfiguration()); in testConfigurationChangePropagation() 180 assertEquals(mergedConfig1, child1.getConfiguration()); in testConfigurationChangePropagation() [all …]
|
D | WindowStateTests.java | 148 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testIsParentWindowHidden() local 154 assertTrue(child1.isParentWindowHidden()); in testIsParentWindowHidden() 159 assertFalse(child1.isParentWindowHidden()); in testIsParentWindowHidden() 166 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testIsChildWindow() local 171 assertTrue(child1.isChildWindow()); in testIsChildWindow() 200 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testGetParentWindow() local 204 assertEquals(parentWindow, child1.getParentWindow()); in testGetParentWindow() 221 final WindowState child1 = createWindow(root, FIRST_SUB_WINDOW, "child1"); in testGetTopParentWindow() local 222 final WindowState child2 = createWindow(child1, FIRST_SUB_WINDOW, "child2"); in testGetTopParentWindow() 225 assertEquals(root, child1.getTopParentWindow()); in testGetTopParentWindow() [all …]
|
D | DisplayAreaTest.java | 633 DisplayArea<WindowContainer> child1 = new TestDisplayArea(mWm, bounds, "Child1"); in testSetAlwaysOnTop_movesDisplayAreaToTop() local 634 child1.setWindowingMode(WINDOWING_MODE_MULTI_WINDOW); in testSetAlwaysOnTop_movesDisplayAreaToTop() 638 parent.addChild(child1, 1); in testSetAlwaysOnTop_movesDisplayAreaToTop()
|
D | RecentTasksTest.java | 470 final Task child1 = createTaskBuilder(".Task1").setParentTask(root).build(); in testAppendOrganizedChildTaskInfo() local 472 doReturn(true).when(child1).isOrganized(); in testAppendOrganizedChildTaskInfo() 480 assertEquals(childrenTaskInfos.get(0).taskId, child1.mTaskId); in testAppendOrganizedChildTaskInfo()
|
D | DisplayContentTests.java | 2328 final WindowState child1 = createWindow(mAppWindow, FIRST_SUB_WINDOW, "child1"); in testComputeImeTarget_shouldNotCheckOutdatedImeTargetLayerWhenRemoved() local 2331 spyOn(child1); in testComputeImeTarget_shouldNotCheckOutdatedImeTargetLayerWhenRemoved() 2333 mDisplayContent.setImeLayeringTarget(child1); in testComputeImeTarget_shouldNotCheckOutdatedImeTargetLayerWhenRemoved() 2341 child1.removeImmediately(); in testComputeImeTarget_shouldNotCheckOutdatedImeTargetLayerWhenRemoved() 2345 verify(child1, never()).needsRelativeLayeringToIme(); in testComputeImeTarget_shouldNotCheckOutdatedImeTargetLayerWhenRemoved()
|
/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | RowAlertTimeCoordinatorTest.kt | 67 val child1 = NotificationEntryBuilder().setLastAudiblyAlertedMs(0).build() in testSetLastAudiblyAlerted() constant 73 .addChild(child1) in testSetLastAudiblyAlerted() 77 val entries = listOf(entry1, summary, child1, child2, entry2) in testSetLastAudiblyAlerted() 94 child1 to 0L, in testSetLastAudiblyAlerted()
|
D | PreparationCoordinatorTest.java | 438 final NotificationEntry child1 = group.getChildren().get(1); in testPartiallyInflatedGroupsAreFilteredOutSummaryVersion() local 443 mNotifInflater.invokeInflateCallbackForEntry(child1); in testPartiallyInflatedGroupsAreFilteredOutSummaryVersion() 448 assertTrue(mUninflatedFilter.shouldFilterOut(child1, 401)); in testPartiallyInflatedGroupsAreFilteredOutSummaryVersion() 462 final NotificationEntry child1 = group.getChildren().get(1); in testNullGroupSummary() local 469 .addChild(child1) in testNullGroupSummary() 474 mNotifInflater.invokeInflateCallbackForEntry(child1); in testNullGroupSummary() 478 assertFalse(mUninflatedFilter.shouldFilterOut(child1, 401)); in testNullGroupSummary() 496 final NotificationEntry child1 = group.getChildren().get(1); in testPartiallyInflatedGroupsAreNotFilteredOutIfSummaryReinflate() local 501 mNotifInflater.invokeInflateCallbackForEntry(child1); in testPartiallyInflatedGroupsAreNotFilteredOutIfSummaryReinflate() 512 assertFalse(mUninflatedFilter.shouldFilterOut(child1, 401)); in testPartiallyInflatedGroupsAreNotFilteredOutIfSummaryReinflate() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | RankingHelperTest.java | 383 NotificationRecord child1 = new NotificationRecord(mContext, in testSort_oldWhenChildren_unspecifiedSummary() local 422 expected.add(child1); in testSort_oldWhenChildren_unspecifiedSummary() 435 NotificationRecord child1 = new NotificationRecord(mContext, in testSort_oldChildren_unspecifiedSummary() local 472 expected.add(child1); in testSort_oldChildren_unspecifiedSummary() 485 NotificationRecord child1 = new NotificationRecord(mContext, in testSort_oldChildren_oldSummary() local 523 expected.add(child1); in testSort_oldChildren_oldSummary()
|
/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 | 9282 final View child1 = holder1.mView.findViewByPredicateTraversal((view) -> { in compareBoundsOfTree() local 9293 if ((child1 != null) && (child2 != null)) { in compareBoundsOfTree() 9295 ViewLocationHolder.obtain(holder1.mRoot, child1); in compareBoundsOfTree() 9302 if (child1 != null) { in compareBoundsOfTree()
|