/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SetFrameRateTest.cpp | 208 auto child2 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local 211 addChild(child1, child2); in TEST_P() 213 child2->setFrameRate(FRAME_RATE_VOTE1); in TEST_P() 217 EXPECT_EQ(FRAME_RATE_VOTE1, child2->getFrameRateForLayerTree()); in TEST_P() 219 child2->setFrameRate(FRAME_RATE_NO_VOTE); in TEST_P() 223 EXPECT_EQ(FRAME_RATE_NO_VOTE, child2->getFrameRateForLayerTree()); in TEST_P() 233 auto child2 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local 236 addChild(child1, child2); in TEST_P() 238 child2->setFrameRate(FRAME_RATE_VOTE1); in TEST_P() 244 EXPECT_EQ(FRAME_RATE_VOTE1, child2->getFrameRateForLayerTree()); in TEST_P() [all …]
|
/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 | 160 final TestWindowContainer child2 = root.addChildWindow(); in testAdd_AlreadyHasParent() local 164 child1.addChildWindow(child2); in testAdd_AlreadyHasParent() 172 root.addChildWindow(child2); in testAdd_AlreadyHasParent() 185 final TestWindowContainer child2 = root.addChildWindow(); in testHasChild() local 188 final TestWindowContainer child21 = child2.addChildWindow(); in testHasChild() 192 assertEquals(1, child2.getChildrenCount()); in testHasChild() 195 assertTrue(root.hasChild(child2)); in testHasChild() 204 assertTrue(child2.hasChild(child21)); in testHasChild() 205 assertFalse(child2.hasChild(child11)); in testHasChild() 206 assertFalse(child2.hasChild(child12)); in testHasChild() [all …]
|
D | ConfigurationContainerTests.java | 74 final TestConfigurationContainer child2 = root.addChild(); in testConfigurationInit() local 75 assertEquals(EMPTY, child2.getRequestedOverrideConfiguration()); in testConfigurationInit() 76 assertEquals(rootOverrideConfig, child2.getMergedOverrideConfiguration()); in testConfigurationInit() 77 assertEquals(rootOverrideConfig, child2.getConfiguration()); in testConfigurationInit() 155 final TestConfigurationContainer child2 = child1.addChild(); in testConfigurationChangePropagation() local 159 child2.onRequestedOverrideConfigurationChanged(childOverrideConfig2); in testConfigurationChangePropagation() 181 assertEquals(childOverrideConfig2, child2.getRequestedOverrideConfiguration()); in testConfigurationChangePropagation() 182 assertEquals(mergedOverrideConfig2, child2.getMergedOverrideConfiguration()); in testConfigurationChangePropagation() 183 assertEquals(mergedConfig2, child2.getConfiguration()); in testConfigurationChangePropagation() 207 assertEquals(childOverrideConfig2, child2.getRequestedOverrideConfiguration()); in testConfigurationChangePropagation() [all …]
|
D | WindowStateTests.java | 125 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testIsParentWindowHidden() local 131 assertTrue(child2.isParentWindowHidden()); in testIsParentWindowHidden() 136 assertFalse(child2.isParentWindowHidden()); in testIsParentWindowHidden() 143 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testIsChildWindow() local 148 assertTrue(child2.isChildWindow()); in testIsChildWindow() 177 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testGetParentWindow() local 181 assertEquals(parentWindow, child2.getParentWindow()); in testGetParentWindow() 198 final WindowState child2 = createWindow(child1, FIRST_SUB_WINDOW, "child2"); in testGetTopParentWindow() local 202 assertEquals(child1, child2.getParentWindow()); in testGetTopParentWindow() 203 assertEquals(root, child2.getTopParentWindow()); in testGetTopParentWindow() [all …]
|
D | RecentTasksTest.java | 475 final Task child2 = createTaskBuilder(".Task2").setParentTask(root).build(); in testAppendOrganizedChildTaskInfo() local 477 doReturn(false).when(child2).isOrganized(); in testAppendOrganizedChildTaskInfo()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | InlinePresentationStyleUtilsTest.java | 163 Bundle child2 = bundle.getBundle("child"); in testFilterContentTypes_binderInChild_removedBinder() local 164 assertNotNull(child2); in testFilterContentTypes_binderInChild_removedBinder() 165 assertNull(child2.getBinder("binder")); in testFilterContentTypes_binderInChild_removedBinder()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | ScreenCapture_test.cpp | 199 sp<SurfaceControl> child2 = createSurface(mClient, "Child surface", 10, 10, in TEST_F() local 201 TransactionUtils::fillSurfaceRGBA8(child2, 200, 0, 200); in TEST_F() 205 .show(child2) in TEST_F() 207 .setLayer(child2, 2) in TEST_F() 214 captureArgs.excludeHandles = {child2->getHandle()}; in TEST_F() 227 sp<SurfaceControl> child2 = createSurface(mClient, "Child surface", 10, 10, in TEST_F() local 229 TransactionUtils::fillSurfaceRGBA8(child2, 200, 0, 200); in TEST_F() 231 PIXEL_FORMAT_RGBA_8888, 0, child2.get()); in TEST_F() 232 TransactionUtils::fillSurfaceRGBA8(child2, 200, 0, 200); in TEST_F() 236 .show(child2) in TEST_F() [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/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 1805 final NotificationRecord child2 = generateNotificationRecord( in testCancelAllCancelNotificationsFromListener_NoClearFlag() local 1807 child2.getNotification().flags |= Notification.FLAG_NO_CLEAR; in testCancelAllCancelNotificationsFromListener_NoClearFlag() 1812 mService.addNotification(child2); in testCancelAllCancelNotificationsFromListener_NoClearFlag() 1827 final NotificationRecord child2 = generateNotificationRecord( in testUserInitiatedCancelAllWithGroup_NoClearFlag() local 1829 child2.getNotification().flags |= Notification.FLAG_NO_CLEAR; in testUserInitiatedCancelAllWithGroup_NoClearFlag() 1834 mService.addNotification(child2); in testUserInitiatedCancelAllWithGroup_NoClearFlag() 1887 final NotificationRecord child2 = generateNotificationRecord( in testCancelAllCancelNotificationsFromListener_ForegroundServiceFlag() local 1889 child2.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testCancelAllCancelNotificationsFromListener_ForegroundServiceFlag() 1894 mService.addNotification(child2); in testCancelAllCancelNotificationsFromListener_ForegroundServiceFlag() 1910 final NotificationRecord child2 = generateNotificationRecord( in testCancelAllCancelNotificationsFromListener_ForegroundServiceFlagWithParameter() local [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewGroup.java | 9158 final View child2 = holder2.mView.findViewByPredicateTraversal((view) -> { in compareBoundsOfTree() local 9165 if ((child1 != null) && (child2 != null)) { in compareBoundsOfTree() 9169 ViewLocationHolder.obtain(holder1.mRoot, child2); in compareBoundsOfTree() 9178 if (child2 != null) { in compareBoundsOfTree()
|