Home
last modified time | relevance | path

Searched refs:mockView (Results 1 – 9 of 9) sorted by relevance

/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
H A DStateListDrawableTest.java37 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()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DBackgroundFallbackTest.java204 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
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/
H A DDreamOverlayAnimationsControllerTest.kt73 val mockView: View = mock()
74 whenever(mockView.resources).thenReturn(mContext.resources)
76 runBlocking(Dispatchers.Main.immediate) { controller.init(mockView) }
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/smartspace/
H A DDreamSmartspaceControllerTest.kt193 val mockView = Mockito.mock(TestView::class.java) regex
195 stateChangeListener.onViewAttachedToWindow(mockView)
198 verify(mockView).setDozeAmount(0f)
200 stateChangeListener.onViewDetachedFromWindow(mockView)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/
H A DNotificationMessagingTemplateViewWrapperTest.kt97 val mockView: View =
101 return mockView
H A DNotificationConversationTemplateViewWrapperTest.kt122 val mockView: View =
141 return mockView
/aosp14/frameworks/base/core/tests/coretests/src/android/view/accessibility/
H A DAccessibilityCacheTest.java1078 View mockView = mock(View.class); in getMockViewWithA11yAndWindowIds() local
1079 when(mockView.getAccessibilityViewId()).thenReturn(a11yId); in getMockViewWithA11yAndWindowIds()
1080 when(mockView.getAccessibilityWindowId()).thenReturn(windowId); in getMockViewWithA11yAndWindowIds()
1085 }).when(mockView).createAccessibilityNodeInfo(); in getMockViewWithA11yAndWindowIds()
1086 return mockView; in getMockViewWithA11yAndWindowIds()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DScrollCaptureSearchResultsTest.java307 View mockView = new View(getTargetContext()); in createTarget() local
308 return createTargetWithView(mockView, callback, localVisibleRect, positionInWindow, in createTarget()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/stylus/
H A DHandwritingInitiatorTest.java623 View mockView = createView(sHwArea1, false /* autoHandwritingEnabled */, in autoHandwriting_whenDisabled_wontStartHW() local
625 mHandwritingInitiator.onInputConnectionCreated(mockView); in autoHandwriting_whenDisabled_wontStartHW()