Searched refs:mockView (Results 1 – 5 of 5) sorted by relevance
/aosp12/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
H A D | StateListDrawableTest.java | 37 private MockView mockView; field in StateListDrawableTest 51 mockView.requestFocus(); in broken_testFocusScenarioSetStringWildcardFirst() 52 mockView.getBackground().draw(null); in broken_testFocusScenarioSetStringWildcardFirst() 63 mockView.requestFocus(); in broken_testFocusScenarioStateSetWildcardLast() 64 mockView.getBackground().draw(null); in broken_testFocusScenarioStateSetWildcardLast() 75 mockView = new MockView(); in setUp() 76 mockView.setBackgroundDrawable(slDrawable); in setUp()
|
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
H A D | BackgroundFallbackTest.java | 204 mStatusBarView = mockView(0, 0, SCREEN_WIDTH, STATUS_HEIGHT, in setUpViewHierarchy() 212 mNavigationBarView = mockView(0, SCREEN_HEIGHT - NAV_SIZE, SCREEN_WIDTH, in setUpViewHierarchy() 219 mNavigationBarView = mockView(0, 0, NAV_SIZE, SCREEN_HEIGHT, in setUpViewHierarchy() 226 mNavigationBarView = mockView(SCREEN_WIDTH - NAV_SIZE, 0, SCREEN_WIDTH, in setUpViewHierarchy() 234 mContentMock = mockView(0, 0, SCREEN_WIDTH - insetLeft - insetRight, in setUpViewHierarchy() 236 mContentContainerMock = mockView(0, 0, SCREEN_WIDTH - insetLeft - insetRight, in setUpViewHierarchy() 238 mContentRootMock = mockView(insetLeft, insetTop, SCREEN_WIDTH - insetRight, in setUpViewHierarchy() 241 mDecorViewMock = mockView(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, null, VISIBLE, in setUpViewHierarchy() 249 private ViewGroup mockView(int left, int top, int right, int bottom, Drawable background, in mockView() method in BackgroundFallbackTest
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
H A D | QuickStatusBarHeaderControllerTest.kt | 89 private lateinit var mockView: View 205 `when`(view.findViewById<View>(anyInt())).thenReturn(mockView)
|
/aosp12/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
H A D | AccessibilityCacheTest.java | 811 View mockView = mock(View.class); in getMockViewWithA11yAndWindowIds() local 812 when(mockView.getAccessibilityViewId()).thenReturn(a11yId); in getMockViewWithA11yAndWindowIds() 813 when(mockView.getAccessibilityWindowId()).thenReturn(windowId); in getMockViewWithA11yAndWindowIds() 818 }).when(mockView).createAccessibilityNodeInfo(); in getMockViewWithA11yAndWindowIds() 819 return mockView; in getMockViewWithA11yAndWindowIds()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | ScrollCaptureSearchResultsTest.java | 307 View mockView = new View(getTargetContext()); in createTarget() local 308 return createTargetWithView(mockView, callback, localVisibleRect, positionInWindow, in createTarget()
|