Home
last modified time | relevance | path

Searched refs:verify (Results 1 – 25 of 1444) sorted by relevance

12345678910>>...58

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/
H A DMetadataAnimationHandlerTest.kt34 import org.mockito.Mockito.verify
65 verify(exitAnimator).start()
74 verify(postExitCB, never()).invoke()
75 verify(postEnterCB, never()).invoke()
82 verify(postExitCB, times(1)).invoke()
83 verify(postEnterCB, never()).invoke()
90 verify(postExitCB, times(1)).invoke()
102 verify(postExitCB, times(1)).invoke()
103 verify(postExitCB2, never()).invoke()
115 verify(postExitCB, never()).invoke()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
H A DAppStateTrackerTest.java36 import static org.mockito.Mockito.verify;
1036 verify(l, times(0)).updateAllJobs(); in assertNoCallbacks()
1059 verify(l, times(1)).updateAllJobs(); in testPowerSaveListener()
1075 verify(l, times(1)).updateAllJobs(); in testPowerSaveListener()
1107 verify(l, times(0)).updateAllJobs(); in testAllListeners()
1123 verify(l, times(0)).updateAllJobs(); in testAllListeners()
1138 verify(l, times(0)).updateAllJobs(); in testAllListeners()
1157 verify(l, times(1)).updateAllJobs(); in testAllListeners()
1175 verify(l, times(1)).updateAllJobs(); in testAllListeners()
1195 verify(l, times(1)).updateAllJobs(); in testAllListeners()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
H A DMessageRouterImplTest.java25 import static org.mockito.Mockito.verify;
76 verify(mNoMdListener).onMessage(MESSAGE_A); in testSingleMessage_NoMetaData()
87 verify(mStringListener).onMessage(METADATA_A); in testSingleMessage_WithMetaData()
100 verify(mStringListener).onMessage(METADATA_A); in testMessages_WithMixedMetaData()
125 verify(mNoMdListener).onMessage(MESSAGE_A); in testMessages_WithAndWithoutMetaData()
198 verify(mNoMdListener).onMessage(MESSAGE_A); in testSendMessage_NoSubscriber()
220 verify(mNoMdListener).onMessage(MESSAGE_B); in testUnsubscribe_SpecificMessage_NoMetadata()
257 verify(mNoMdListener).onMessage(MESSAGE_A); in testUnsubscribe_AllMessages_NoMetadata()
258 verify(mNoMdListener).onMessage(MESSAGE_B); in testUnsubscribe_AllMessages_NoMetadata()
259 verify(mNoMdListener).onMessage(MESSAGE_C); in testUnsubscribe_AllMessages_NoMetadata()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
H A DTaskStackListenerImplTest.java24 import static org.mockito.Mockito.verify;
92 verify(mCallback).onRecentTaskListUpdated(); in testOnRecentTaskListUpdated()
93 verify(mOtherCallback).onRecentTaskListUpdated(); in testOnRecentTaskListUpdated()
107 verify(mCallback).onTaskStackChanged(); in testOnTaskStackChanged()
109 verify(mOtherCallback).onTaskStackChanged(); in testOnTaskStackChanged()
137 verify(mCallback).onTaskRemoved(eq(123)); in testOnTaskRemoved()
138 verify(mOtherCallback).onTaskRemoved(eq(123)); in testOnTaskRemoved()
145 verify(mCallback).onTaskMovedToFront(eq(info)); in testOnTaskMovedToFront()
191 verify(mCallback).onActivityUnpinned(); in testOnActivityUnpinned()
192 verify(mOtherCallback).onActivityUnpinned(); in testOnActivityUnpinned()
[all …]
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/utils/
H A DWatcherTest.java210 tester.verify(3, "Removed b"); in testWatchedArrayMap()
233 tester.verify(11, "Added c"); in testWatchedArrayMap()
235 tester.verify(12, "Ticked c"); in testWatchedArrayMap()
310 tester.verify(3, "Removed b"); in testWatchedArraySet()
319 tester.verify(7, "Removed b"); in testWatchedArraySet()
335 tester.verify(12, "Ticked c"); in testWatchedArraySet()
341 tester.verify(14, "Append c"); in testWatchedArraySet()
445 tester.verify(13, "Added c"); in testWatchedArrayList()
552 tester.verify(13, "Added c"); in testWatchedSparseArray()
676 tester.verify(13, "Added c"); in testWatchedLongSparseArray()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/
H A DDumpHandlerTest.kt34 import org.mockito.Mockito.verify
106 verify(dumpable1).dump(pw, args)
107 verify(dumpable2, never()).dump(
112 verify(buffer2).dump(pw, 0)
114 verify(table2).dump(pw, args)
180 verify(buffer1).dump(pw, 0)
181 verify(buffer2).dump(pw, 0)
182 verify(table1).dump(pw, args)
183 verify(table2).dump(pw, args)
269 verify(table1).dump(pw, args)
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
H A DCompatUIControllerTest.java34 import static org.mockito.Mockito.verify;
220 verify(mMockCompatLayout).release(); in testOnCompatInfoChanged()
221 verify(mMockLetterboxEduLayout).release(); in testOnCompatInfoChanged()
222 verify(mMockRestartDialogLayout).release(); in testOnCompatInfoChanged()
316 verify(mMockCompatLayout, never()).release(); in testOnDisplayRemoved()
325 verify(mMockCompatLayout).release(); in testOnDisplayRemoved()
326 verify(mMockLetterboxEduLayout).release(); in testOnDisplayRemoved()
327 verify(mMockRestartDialogLayout).release(); in testOnDisplayRemoved()
402 verify(mMockCompatLayout).updateVisibility(true); in testChangeLayoutsVisibilityOnImeShowHide()
508 verify(mMockRestartDialogLayout, times(2)) in testRestartLayoutRecreatedIfNeeded()
[all …]
H A DCompatUIWindowManagerTest.java35 import static org.mockito.Mockito.verify;
117 verify(mWindowManager).inflateLayout(); in testCreateSizeCompatButton()
128 verify(mWindowManager).inflateLayout(); in testCreateSizeCompatButton()
155 verify(mWindowManager).inflateLayout(); in testCreateCameraCompatControl()
166 verify(mWindowManager).inflateLayout(); in testCreateCameraCompatControl()
186 verify(mWindowManager).inflateLayout(); in testRelease()
190 verify(mViewHost).release(); in testRelease()
213 verify(mWindowManager).release(); in testUpdateCompatInfo()
280 verify(mWindowManager).release(); in testUpdateCompatInfo()
304 verify(mWindowManager).inflateLayout(); in testUpdateCompatInfoLayoutNotInflatedYet()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/listeners/
H A DListenerMultiplexerTest.java29 import static org.mockito.Mockito.verify;
90 mInOrder.verify(mCallbacks).onRegister(); in testAdd()
93 mInOrder.verify(mCallbacks).onActive(); in testAdd()
115 mInOrder.verify(mCallbacks).onRegister(); in testReplace()
118 mInOrder.verify(mCallbacks).onActive(); in testReplace()
137 mInOrder.verify(mCallbacks).onRegister(); in testRemove()
140 mInOrder.verify(mCallbacks).onActive(); in testRemove()
184 mInOrder.verify(mCallbacks).onActive(); in testMergeMultiple()
248 mInOrder.verify(mCallbacks).onActive(); in testInactive()
257 mInOrder.verify(mCallbacks).onActive(); in testInactive()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
H A DClipboardOverlayControllerTest.java36 import static org.mockito.Mockito.verify;
176 verify(mClipboardOverlayView, times(1)).showShareChip(); in test_setClipData_invalidImageData_legacy()
191 verify(mClipboardOverlayView, times(1)).showShareChip(); in test_setClipData_nonImageUri_legacy()
204 verify(mClipboardOverlayView, times(1)).showShareChip(); in test_setClipData_textData_legacy()
221 verify(mClipboardOverlayView, times(1)).showShareChip(); in test_setClipData_sensitiveTextData_legacy()
384 verify(mTimeoutHandler, never()).resetTimeout(); in test_remoteCopy_withFlagOn()
394 verify(mTimeoutHandler).resetTimeout(); in test_nonRemoteCopy()
446 verify(mClipboardOverlayView).setMinimized(false); in test_noInsets_showsExpanded()
459 verify(mClipboardOverlayView).setMinimized(true); in test_insets_showsMinimized()
468 verify(mClipboardOverlayView).setMinimized(false); in test_insets_showsMinimized()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/
H A DSlogfTest.java64 verify(()-> Slog.v(TAG, "msg")); in testV_msg()
71 verify(()-> Slog.v(TAG, "msg", mThrowable)); in testV_msgAndThrowable()
92 verify(()-> Slog.d(TAG, "msg")); in testD_msg()
120 verify(()-> Slog.i(TAG, "msg")); in testI_msg()
148 verify(()-> Slog.w(TAG, "msg")); in testW_msg()
162 verify(()-> Slog.w(TAG, mThrowable)); in testW_Throwable()
183 verify(()-> Slog.e(TAG, "msg")); in testE_msg()
211 verify(()-> Slog.wtf(TAG, "msg")); in testWtf_msg()
225 verify(()-> Slog.wtf(TAG, mThrowable)); in testWtf_Throwable()
239 verify(()-> Slog.wtfQuiet(TAG, "msg")); in testWtfQuiet()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bouncer/domain/interactor/
H A DPrimaryBouncerInteractorTest.kt58 import org.mockito.Mockito.verify
125 verify(repository).setPrimaryShow(true)
149 verify(repository).setPrimaryShow(false)
150 verify(repository).setPrimaryShow(true)
159 verify(repository).setPrimaryShow(false)
178 verify(falsingCollector).onBouncerShown()
187 verify(repository).setPrimaryShow(false)
232 verify(repository).setShowMessage(null)
266 verify(runnable).run()
423 verify(repository).setPrimaryShow(true)
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
H A DHeadsUpCoordinatorTest.kt68 import org.mockito.Mockito.verify
133 verify(notifPipeline).addPromoter(capture())
145 verify(headsUpManager).addListener(capture())
373 verify(headsUpManager).showNotification(entry)
403 verify(headsUpManager).showNotification(entry)
480 verify(headsUpManager).showNotification(groupChild1)
531 verify(headsUpManager).showNotification(groupChild1)
758 verify(headsUpManager).showNotification(groupChild1)
779 verify(headsUpManager).showNotification(entry)
817 verify(headsUpManager).showNotification(entry)
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
H A DShadeHeaderControllerTest.kt84 import org.mockito.Mockito.verify
300 verify(animator).alpha(0f)
302 verify(animator).start()
314 verify(animator).alpha(1f)
316 verify(animator).start()
354 verify(animator).setListener(null)
362 verify(clock).onDemoModeStarted()
371 verify(clock).onDemoModeFinished()
411 verify(clock).pivotX = 0f
495 verify(view).progress = 0.3f
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DCommandQueueTest.java26 import static org.mockito.Mockito.verify;
92 verify(mCallbacks).removeIcon(eq(slot)); in testIcon()
193 verify(mCallbacks).setImeWindowStatus( in testShowImeButton()
206 verify(mCallbacks).setImeWindowStatus( in testShowImeButtonForSecondaryDisplay()
228 verify(mCallbacks).toggleRecentApps(); in testToggleRecentApps()
235 verify(mCallbacks).preloadRecentApps(); in testPreloadRecentApps()
350 verify(mCallbacks).startAssist(eq(b)); in testStartAssist()
372 verify(mCallbacks).addQsTile(eq(c)); in testAddQsTile()
380 verify(mCallbacks).remQsTile(eq(c)); in testRemoveQsTile()
388 verify(mCallbacks).clickTile(eq(c)); in testClickQsTile()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
H A DNotificationSwipeHelperTest.java32 import static org.mockito.Mockito.verify;
240 verify(mMenuRow, times(1)).onTouchEnd(); in testHandleUpEvent_menuRowWithoutMenu_dismiss()
256 verify(mMenuRow, times(1)).onTouchEnd(); in testHandleUpEvent_menuRowWithoutMenu_snapback()
274 verify(mMenuRow, times(1)).onTouchEnd(); in testHandleUpEvent_menuRowWithOpenMenu_dismissed()
291 verify(mMenuRow, times(1)).onTouchEnd(); in testHandleUpEvent_menuRowWithOpenMenu_snapback()
309 verify(mMenuRow, times(1)).onTouchEnd(); in testHandleUpEvent_menuRowWithClosedMenu_dismissed()
326 verify(mMenuRow, times(1)).onTouchEnd(); in testHandleUpEvent_menuRowWithClosedMenu_snapback()
391 verify(mCallback, times(1)).onDismiss(); in testDismissChild_notExpanded()
421 verify(mCallback).onDragCancelled(mView); in testSnapchild_targetNotSwipeable()
574 verify(animator, times(1)).start(); in testResetExposedMenuView_animate()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DAutoTileManagerTest.java36 import static org.mockito.Mockito.verify;
223 verify(tracker, never()).initialize(); in testCreatedAutoTileManagerIsNotInitialized()
224 verify(hC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized()
228 verify(cC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized()
367 verify(mQsHost).addTile("night"); in nightTileAdded_whenActivated()
386 verify(mQsHost).addTile("night"); in nightTileAdded_whenNightModeTwilight()
396 verify(mQsHost).addTile("night"); in nightTileAdded_whenNightModeCustom()
431 verify(mQsHost).addTile("cast"); in castTileAdded_whenDeviceIsCasting()
445 verify(mQsHost).addTile(TEST_SPEC); in testSettingTileAdded_onChanged()
461 verify(mQsHost).addTile(TEST_SPEC); in testSettingTileAdded_onlyOnce()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
H A DStationaryThrottlingLocationProviderTest.java27 import static org.mockito.Mockito.verify;
110 verify(mDelegate).onSetRequest(request); in testThrottle_stationaryExit()
123 verify(mDelegate, times(2)).onSetRequest(request); in testThrottle_stationaryExit()
132 verify(mDelegate).onSetRequest(request); in testThrottle_idleExit()
145 verify(mDelegate, times(2)).onSetRequest(request); in testThrottle_idleExit()
154 verify(mDelegate).onSetRequest(request); in testThrottle_NoInitialLocation()
166 verify(mDelegate, times(2)).onSetRequest(request); in testThrottle_NoInitialLocation()
175 verify(mDelegate).onSetRequest(request); in testNoThrottle_noLocation()
189 verify(mDelegate).onSetRequest(request); in testNoThrottle_oldLocation()
196 verify(mListener, times(1)).onReportLocation(loc); in testNoThrottle_oldLocation()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/clocks/
H A DDefaultClockProviderTest.kt48 import org.mockito.Mockito.verify
110 verify(mockSmallClockView).refreshTime()
111 verify(mockLargeClockView).refreshTime()
112 verify(mockLargeClockView).setLayoutParams(any())
121 verify(mockSmallClockView).refreshTime()
122 verify(mockLargeClockView).refreshTime()
130 verify(mockSmallClockView).refreshFormat(true)
131 verify(mockLargeClockView).refreshFormat(true)
158 verify(mockLargeClockView).setLayoutParams(any())
197 verify(mockSmallClockView, times(2)).refreshFormat()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/
H A DTemporaryViewDisplayControllerTest.kt51 import org.mockito.Mockito.verify
137 verify(logger).logViewAddition(info)
244 verify(windowManager).removeView(any())
284 verify(windowManager).removeView(any())
296 verify(windowManager).removeView(any())
347 verify(windowManager).removeView(any())
356 verify(windowManager).removeView(any())
369 verify(windowManager).removeView(any())
386 verify(windowManager).removeView(any())
402 verify(windowManager).removeView(any())
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/input/
H A DInputManagerServiceTests.kt50 import org.mockito.Mockito.verify
117 verify(native).start()
126 verify(native).setPointerSpeed(anyInt())
131 verify(native).setShowTouches(anyBoolean())
132 verify(native).reloadPointerIcons()
146 verify(native).setPointerDisplayId(displayId)
183 verify(wmCallbacks, never()).pointerDisplayId
281 verify(native).setPointerAcceleration(eq(5f))
284 verify(native).displayRemoved(eq(10))
286 verify(native).setPointerAcceleration(
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
H A DKeyguardStatusViewControllerTest.java22 import static org.mockito.Mockito.verify;
46 verify(mKeyguardSliceViewController).refresh(); in dozeTimeTick_updatesSlice()
52 verify(mKeyguardClockSwitchController).refresh(); in dozeTimeTick_updatesClock()
73 verify(mKeyguardClockSwitchController).onLocaleListChanged(); in onLocaleListChangedNotifiesClockSwitchController()
84 verify(mControllerMock).setProperty(AnimatableProperty.Y, 15f, true); in updatePosition_primaryClockAnimation()
85 verify(mKeyguardClockSwitchController).updatePosition( in updatePosition_primaryClockAnimation()
87 verify(mControllerMock).setProperty(AnimatableProperty.SCALE_X, 1f, true); in updatePosition_primaryClockAnimation()
88 verify(mControllerMock).setProperty(AnimatableProperty.SCALE_Y, 1f, true); in updatePosition_primaryClockAnimation()
99 verify(mControllerMock).setProperty(AnimatableProperty.Y, 15f, true); in updatePosition_alternateClockAnimation()
100 verify(mKeyguardClockSwitchController).updatePosition( in updatePosition_alternateClockAnimation()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/
H A DExpandedViewAnimationControllerTest.java25 import static org.mockito.Mockito.verify;
78 verify(mMockExpandedView).setTopClip(dampenedDistance); in testUpdateDrag_expandedViewMovesUpAndClipped()
89 verify(mMockExpandedView, times(1)).setAnimating(true); in testUpdateDrag_zOrderUpdates()
158 verify(mMockExpandedView).setContentAlpha(1); in testReset()
159 verify(mMockExpandedView).setBackgroundAlpha(1); in testReset()
160 verify(mMockExpandedView).setManageButtonAlpha(1); in testReset()
161 verify(mMockExpandedView).setManageButtonAlpha(1); in testReset()
162 verify(mMockExpandedView).setTopClip(0); in testReset()
163 verify(mMockExpandedView).setContentTranslationY(-0f); in testReset()
165 verify(mMockExpandedView).setBottomClip(0); in testReset()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/resume/
H A DResumeMediaBrowserTest.kt39 import org.mockito.Mockito.verify
108 verify(callback).onError()
109 verify(browser).disconnect()
129 verify(callback).onError()
130 verify(browser).disconnect()
156 verify(browser).disconnect()
185 verify(callback).onError()
197 verify(callback).onError()
252 verify(callback).onError()
263 verify(callback).onError()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
H A DFavoritesModelTest.kt41 import org.mockito.Mockito.verify
114 verify(callback).onFirstChange()
125 verify(callback).onFirstChange()
138 verify(callback).onFirstChange()
150 verify(callback).onFirstChange()
163 verify(callback).onFirstChange()
177 verify(callback).onFirstChange()
192 verify(callback).onFirstChange()
205 verify(callback).onFirstChange()
217 verify(callback).onFirstChange()
[all …]

12345678910>>...58