/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowContainerTests.java | 132 final TestWindowContainer child2 = root.addChildWindow(); in testAdd_AlreadyHasParent() local 136 child1.addChildWindow(child2); in testAdd_AlreadyHasParent() 144 root.addChildWindow(child2); in testAdd_AlreadyHasParent() 157 final TestWindowContainer child2 = root.addChildWindow(); in testHasChild() local 160 final TestWindowContainer child21 = child2.addChildWindow(); in testHasChild() 164 assertEquals(1, child2.getChildrenCount()); in testHasChild() 167 assertTrue(root.hasChild(child2)); in testHasChild() 176 assertTrue(child2.hasChild(child21)); in testHasChild() 177 assertFalse(child2.hasChild(child11)); in testHasChild() 178 assertFalse(child2.hasChild(child12)); in testHasChild() [all …]
|
D | ConfigurationContainerTests.java | 73 final TestConfigurationContainer child2 = root.addChild(); in testConfigurationInit() local 74 assertEquals(EMPTY, child2.getRequestedOverrideConfiguration()); in testConfigurationInit() 75 assertEquals(rootOverrideConfig, child2.getMergedOverrideConfiguration()); in testConfigurationInit() 76 assertEquals(rootOverrideConfig, child2.getConfiguration()); in testConfigurationInit() 154 final TestConfigurationContainer child2 = child1.addChild(); in testConfigurationChangePropagation() local 158 child2.onRequestedOverrideConfigurationChanged(childOverrideConfig2); in testConfigurationChangePropagation() 180 assertEquals(childOverrideConfig2, child2.getRequestedOverrideConfiguration()); in testConfigurationChangePropagation() 181 assertEquals(mergedOverrideConfig2, child2.getMergedOverrideConfiguration()); in testConfigurationChangePropagation() 182 assertEquals(mergedConfig2, child2.getConfiguration()); in testConfigurationChangePropagation() 206 assertEquals(childOverrideConfig2, child2.getRequestedOverrideConfiguration()); in testConfigurationChangePropagation() [all …]
|
D | WindowStateTests.java | 123 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testIsParentWindowHidden() local 129 assertTrue(child2.isParentWindowHidden()); in testIsParentWindowHidden() 134 assertFalse(child2.isParentWindowHidden()); in testIsParentWindowHidden() 141 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testIsChildWindow() local 146 assertTrue(child2.isChildWindow()); in testIsChildWindow() 175 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testGetParentWindow() local 179 assertEquals(parentWindow, child2.getParentWindow()); in testGetParentWindow() 196 final WindowState child2 = createWindow(child1, FIRST_SUB_WINDOW, "child2"); in testGetTopParentWindow() local 200 assertEquals(child1, child2.getParentWindow()); in testGetTopParentWindow() 201 assertEquals(root, child2.getTopParentWindow()); in testGetTopParentWindow() [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/cmds/statsd/tests/ |
D | FieldValue_test.cpp | 208 FieldMatcher* child2 = conditionMatcher.add_child(); in TEST() local 209 child2->set_field(2); in TEST() 210 child2->set_position(Position::LAST); in TEST() 212 child2 = child2->add_child(); in TEST() 213 child2->set_field(2); in TEST()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 1217 final NotificationRecord child2 = generateNotificationRecord( in testCancelAllCancelNotificationsFromListener_NoClearFlag() local 1219 child2.getNotification().flags |= Notification.FLAG_NO_CLEAR; in testCancelAllCancelNotificationsFromListener_NoClearFlag() 1224 mService.addNotification(child2); in testCancelAllCancelNotificationsFromListener_NoClearFlag() 1239 final NotificationRecord child2 = generateNotificationRecord( in testUserInitiatedCancelAllWithGroup_NoClearFlag() local 1241 child2.getNotification().flags |= Notification.FLAG_NO_CLEAR; in testUserInitiatedCancelAllWithGroup_NoClearFlag() 1246 mService.addNotification(child2); in testUserInitiatedCancelAllWithGroup_NoClearFlag() 1293 final NotificationRecord child2 = generateNotificationRecord( in testCancelAllCancelNotificationsFromListener_ForegroundServiceFlag() local 1295 child2.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testCancelAllCancelNotificationsFromListener_ForegroundServiceFlag() 1300 mService.addNotification(child2); in testCancelAllCancelNotificationsFromListener_ForegroundServiceFlag() 1316 final NotificationRecord child2 = generateNotificationRecord( in testCancelAllCancelNotificationsFromListener_ForegroundServiceFlagWithParameter() local [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/native/services/surfaceflinger/tests/ |
D | Transaction_test.cpp | 5476 sp<SurfaceControl> child2 = createSurface(mClient, "Child surface", 10, 10, in TEST_F() local 5478 fillSurfaceRGBA8(child2, 200, 0, 200); in TEST_F() 5482 .show(child2) in TEST_F() 5484 .setLayer(child2, 2) in TEST_F() 5488 ScreenCapture::captureChildLayersExcluding(&mCapture, fgHandle, {child2->getHandle()}); in TEST_F() 5500 sp<SurfaceControl> child2 = createSurface(mClient, "Child surface", 10, 10, in TEST_F() local 5502 fillSurfaceRGBA8(child2, 200, 0, 200); in TEST_F() 5504 PIXEL_FORMAT_RGBA_8888, 0, child2.get()); in TEST_F() 5505 fillSurfaceRGBA8(child2, 200, 0, 200); in TEST_F() 5509 .show(child2) in TEST_F() [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewGroup.java | 8904 final View child2 = holder2.mView.findViewByPredicateTraversal((view) -> { in compareBoundsOfTree() local 8911 if ((child1 != null) && (child2 != null)) { in compareBoundsOfTree() 8915 ViewLocationHolder.obtain(holder1.mRoot, child2); in compareBoundsOfTree() 8924 if (child2 != null) { in compareBoundsOfTree()
|