/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SetFrameRateTest.cpp | 113 auto child2 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local 116 addChild(child1, child2); in TEST_P() 118 child2->setFrameRate(FRAME_RATE_VOTE1.vote); in TEST_P() 122 EXPECT_EQ(FRAME_RATE_VOTE1, child2->getFrameRateForLayerTree()); in TEST_P() 124 child2->setFrameRate(FRAME_RATE_NO_VOTE.vote); in TEST_P() 128 EXPECT_EQ(FRAME_RATE_NO_VOTE, child2->getFrameRateForLayerTree()); in TEST_P() 138 auto child2 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local 141 addChild(child1, child2); in TEST_P() 143 child2->setFrameRate(FRAME_RATE_VOTE1.vote); in TEST_P() 149 EXPECT_EQ(FRAME_RATE_VOTE1, child2->getFrameRateForLayerTree()); in TEST_P() [all …]
|
D | FrameRateSelectionStrategyTest.cpp | 112 auto child2 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local 114 addChild(child1, child2); in TEST_P() 116 child2->setFrameRate(FRAME_RATE_VOTE1.vote); in TEST_P() 117 child2->setFrameRateSelectionStrategy(FrameRateSelectionStrategy::OverrideChildren); in TEST_P() 125 EXPECT_EQ(FRAME_RATE_VOTE1, child2->getFrameRateForLayerTree()); in TEST_P() 127 child2->getDrawingState().frameRateSelectionStrategy); in TEST_P()
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | FindViewByIdTest.java | 55 View child2 = new View(getContext()); in testFindViewById() local 57 child2.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); in testFindViewById() 60 contentView.addView(child2); in testFindViewById() 62 child2.getAccessibilityViewId()); in testFindViewById() 63 assertEquals(result, child2); in testFindViewById() 72 View child2 = new View(getContext()); in testFindViewByIdReturnNullIfRemovedFromHierarchy() local 74 contentView.addView(child2); in testFindViewByIdReturnNullIfRemovedFromHierarchy() 76 child2.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); in testFindViewByIdReturnNullIfRemovedFromHierarchy() 90 View child2 = new View(getContext()); in testFindViewByIdReturnNullIfNotImportant() local 91 child2.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); in testFindViewByIdReturnNullIfNotImportant() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | MessagingLinearLayoutTest.java | 69 FakeImageFloatingTextView child2 = fakeChild(1); in testLargeSmall() local 72 mView.addView(child2); in testLargeSmall() 78 assertFalse("child2 should not be hidden", child2.isHidden()); in testLargeSmall() 85 FakeImageFloatingTextView child2 = fakeChild(1); in testSmallSmall() local 88 mView.addView(child2); in testSmallSmall() 94 assertFalse("child2 should not be hidden", child2.isHidden()); in testSmallSmall() 101 FakeImageFloatingTextView child2 = fakeChild(7); in testLargeLarge() local 104 mView.addView(child2); in testLargeLarge() 110 assertFalse("child2 should not be hidden", child2.isHidden()); in testLargeLarge() 117 FakeImageFloatingTextView child2 = fakeChild(1); in testLargeSmall_largeWrapsWith3indentbutNotFullHeight_andHitsMax() local [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowContainerTests.java | 182 final TestWindowContainer child2 = root.addChildWindow(); in testAdd_AlreadyHasParent() local 186 child1.addChildWindow(child2); in testAdd_AlreadyHasParent() 194 root.addChildWindow(child2); in testAdd_AlreadyHasParent() 207 final TestWindowContainer child2 = root.addChildWindow(); in testHasChild() local 210 final TestWindowContainer child21 = child2.addChildWindow(); in testHasChild() 214 assertEquals(1, child2.getChildrenCount()); in testHasChild() 217 assertTrue(root.hasChild(child2)); in testHasChild() 226 assertTrue(child2.hasChild(child21)); in testHasChild() 227 assertFalse(child2.hasChild(child11)); in testHasChild() 228 assertFalse(child2.hasChild(child12)); in testHasChild() [all …]
|
D | ConfigurationContainerTests.java | 75 final TestConfigurationContainer child2 = root.addChild(); in testConfigurationInit() local 76 assertEquals(EMPTY, child2.getRequestedOverrideConfiguration()); in testConfigurationInit() 77 assertEquals(rootOverrideConfig, child2.getMergedOverrideConfiguration()); in testConfigurationInit() 78 assertEquals(rootOverrideConfig, child2.getConfiguration()); in testConfigurationInit() 156 final TestConfigurationContainer child2 = child1.addChild(); in testConfigurationChangePropagation() local 160 child2.onRequestedOverrideConfigurationChanged(childOverrideConfig2); in testConfigurationChangePropagation() 182 assertEquals(childOverrideConfig2, child2.getRequestedOverrideConfiguration()); in testConfigurationChangePropagation() 183 assertEquals(mergedOverrideConfig2, child2.getMergedOverrideConfiguration()); in testConfigurationChangePropagation() 184 assertEquals(mergedConfig2, child2.getConfiguration()); in testConfigurationChangePropagation() 208 assertEquals(childOverrideConfig2, child2.getRequestedOverrideConfiguration()); in testConfigurationChangePropagation() [all …]
|
D | WindowStateTests.java | 149 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testIsParentWindowHidden() local 155 assertTrue(child2.isParentWindowHidden()); in testIsParentWindowHidden() 160 assertFalse(child2.isParentWindowHidden()); in testIsParentWindowHidden() 167 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testIsChildWindow() local 172 assertTrue(child2.isChildWindow()); in testIsChildWindow() 201 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testGetParentWindow() local 205 assertEquals(parentWindow, child2.getParentWindow()); in testGetParentWindow() 222 final WindowState child2 = createWindow(child1, FIRST_SUB_WINDOW, "child2"); in testGetTopParentWindow() local 226 assertEquals(child1, child2.getParentWindow()); in testGetTopParentWindow() 227 assertEquals(root, child2.getTopParentWindow()); in testGetTopParentWindow() [all …]
|
D | DisplayAreaTest.java | 635 DisplayArea<WindowContainer> child2 = new TestDisplayArea(mWm, bounds, "Child2"); in testSetAlwaysOnTop_movesDisplayAreaToTop() local 636 child2.setWindowingMode(WINDOWING_MODE_MULTI_WINDOW); in testSetAlwaysOnTop_movesDisplayAreaToTop() 637 parent.addChild(child2, 0); in testSetAlwaysOnTop_movesDisplayAreaToTop() 640 child2.setAlwaysOnTop(true); in testSetAlwaysOnTop_movesDisplayAreaToTop() 642 assertEquals(parent.getChildAt(1), child2); in testSetAlwaysOnTop_movesDisplayAreaToTop() 643 assertThat(child2.isAlwaysOnTop()).isTrue(); in testSetAlwaysOnTop_movesDisplayAreaToTop()
|
D | RecentTasksTest.java | 471 final Task child2 = createTaskBuilder(".Task2").setParentTask(root).build(); in testAppendOrganizedChildTaskInfo() local 473 doReturn(false).when(child2).isOrganized(); in testAppendOrganizedChildTaskInfo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | RowAlertTimeCoordinatorTest.kt | 68 val child2 = NotificationEntryBuilder().setLastAudiblyAlertedMs(8).build() in testSetLastAudiblyAlerted() constant 74 .addChild(child2) in testSetLastAudiblyAlerted() 77 val entries = listOf(entry1, summary, child1, child2, entry2) in testSetLastAudiblyAlerted() 95 child2 to 8L, in testSetLastAudiblyAlerted()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | InlinePresentationStyleUtilsTest.java | 171 Bundle child2 = bundle.getBundle("child"); in testFilterContentTypes_binderInChild_removedBinder() local 172 assertNotNull(child2); in testFilterContentTypes_binderInChild_removedBinder() 173 assertNull(child2.getBinder("binder")); in testFilterContentTypes_binderInChild_removedBinder()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | ScreenCapture_test.cpp | 349 sp<SurfaceControl> child2 = createSurface(mClient, "Child surface", 10, 10, in TEST_F() local 351 TransactionUtils::fillSurfaceRGBA8(child2, 200, 0, 200); in TEST_F() 355 .show(child2) in TEST_F() 357 .setLayer(child2, 2) in TEST_F() 364 captureArgs.excludeHandles = {child2->getHandle()}; in TEST_F() 385 sp<SurfaceControl> child2 = createSurface(mClient, "Child surface", 10, 10, in TEST_F() local 387 TransactionUtils::fillSurfaceRGBA8(child2, 200, 0, 200); in TEST_F() 389 PIXEL_FORMAT_RGBA_8888, 0, child2.get()); in TEST_F() 390 TransactionUtils::fillSurfaceRGBA8(child2, 200, 0, 200); in TEST_F() 394 .show(child2) in TEST_F() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | RankingHelperTest.java | 391 NotificationRecord child2 = new NotificationRecord(mContext, in testSort_oldWhenChildren_unspecifiedSummary() local 421 expected.add(child2); in testSort_oldWhenChildren_unspecifiedSummary() 442 NotificationRecord child2 = new NotificationRecord(mContext, in testSort_oldChildren_unspecifiedSummary() local 471 expected.add(child2); in testSort_oldChildren_unspecifiedSummary() 492 NotificationRecord child2 = new NotificationRecord(mContext, in testSort_oldChildren_oldSummary() local 522 expected.add(child2); in testSort_oldChildren_oldSummary()
|
D | NotificationManagerServiceTest.java | 2788 final NotificationRecord child2 = generateNotificationRecord( in testCancelNotificationWithTag_fromApp_cannotCancelFgsChild() local 2790 child2.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testCancelNotificationWithTag_fromApp_cannotCancelFgsChild() 2793 mService.addNotification(child2); in testCancelNotificationWithTag_fromApp_cannotCancelFgsChild() 2816 final NotificationRecord child2 = generateNotificationRecord( in testCancelNotificationWithTag_fromApp_cannotCancelFgsParent() local 2820 mService.addNotification(child2); in testCancelNotificationWithTag_fromApp_cannotCancelFgsParent() 2839 final NotificationRecord child2 = generateNotificationRecord( in testCancelNotificationWithTag_fromApp_canCancelOngoingNoClearChild() local 2841 child2.getNotification().flags |= FLAG_ONGOING_EVENT | FLAG_NO_CLEAR; in testCancelNotificationWithTag_fromApp_canCancelOngoingNoClearChild() 2844 mService.addNotification(child2); in testCancelNotificationWithTag_fromApp_canCancelOngoingNoClearChild() 2864 final NotificationRecord child2 = generateNotificationRecord( in testCancelNotificationWithTag_fromApp_canCancelOngoingNoClearParent() local 2868 mService.addNotification(child2); in testCancelNotificationWithTag_fromApp_canCancelOngoingNoClearParent() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewCaptureTest.java | 48 EXPECTED_CHILDREN_VISIBILITY.append(R.id.child2, View.INVISIBLE); in EXPECTED_CHILDREN_VISIBILITY.append() argument
|
/frameworks/base/core/java/android/view/ |
D | ViewGroup.java | 9286 final View child2 = holder2.mView.findViewByPredicateTraversal((view) -> { in compareBoundsOfTree() local 9293 if ((child1 != null) && (child2 != null)) { in compareBoundsOfTree() 9297 ViewLocationHolder.obtain(holder1.mRoot, child2); in compareBoundsOfTree() 9306 if (child2 != null) { in compareBoundsOfTree()
|