Home
last modified time | relevance | path

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

1234567891011

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DGetSetTest.java144 private void verify(byte[] a1, byte[] a2, Allocation alloc, String s, int vsize) { in verify() method in GetSetTest
158 private void verify(short[] a1, short[] a2, Allocation alloc, String s, int vsize) { in verify() method in GetSetTest
172 private void verify(int[] a1, int[] a2, Allocation alloc, String s, int vsize) { in verify() method in GetSetTest
186 private void verify(long[] a1, long[] a2, Allocation alloc, String s, int vsize) { in verify() method in GetSetTest
200 private void verify(float[] a1, float[] a2, Allocation alloc, String s, int vsize) { in verify() method in GetSetTest
214 private void verify(double[] a1, double[] a2, Allocation alloc, String s, int vsize) { in verify() method in GetSetTest
298 verify(tmp, tmp2, out1DAlloc, "Data mismatch char: ", 1); in testGetSet_char()
300 verify(tmp, tmp2, out1DAlloc, "Data mismatch relaxed char: ", 1); in testGetSet_char()
303 verify(tmp, tmp2, out2DAlloc, "Data mismatch char: ", 1); in testGetSet_char()
305 verify(tmp, tmp2, out2DAlloc, "Data mismatch relaxed char: ", 1); in testGetSet_char()
[all …]
DVLoadTest.java110 private void verify(byte[] a1, byte[] a2, String s) { in verify() method in VLoadTest
121 private void verify(short[] a1, short[] a2, String s) { in verify() method in VLoadTest
132 private void verify(int[] a1, int[] a2, String s) { in verify() method in VLoadTest
143 private void verify(long[] a1, long[] a2, String s) { in verify() method in VLoadTest
154 private void verify(float[] a1, float[] a2, String s) { in verify() method in VLoadTest
165 private void verify(double[] a1, double[] a2, String s) { in verify() method in VLoadTest
215 verify(tmp, tmp2, "Data mismatch char: "); in testVload_char()
223 verify(tmp, tmp2, "Data mismatch uchar: "); in testVload_uchar()
231 verify(tmp, tmp2, "Data mismatch relaxed char: "); in testVload_char_relaxed()
239 verify(tmp, tmp2, "Data mismatch relaxed uchar: "); in testVload_uchar_relaxed()
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java31 import static org.mockito.Mockito.verify;
71 verify(inputConnection, times(1)).beginBatchEdit(); in testInputConnectionWrapper()
74 verify(inputConnection, times(1)).clearMetaKeyStates(KeyEvent.META_ALT_ON); in testInputConnectionWrapper()
79 verify(inputConnection, times(1)).commitCompletion(completionInfoCaptor.capture()); in testInputConnectionWrapper()
87 verify(inputConnection, times(1)).commitCorrection(correctionInfoCaptor.capture()); in testInputConnectionWrapper()
93 verify(inputConnection, times(1)).commitText(sameCharSequence("Text"), eq(1)); in testInputConnectionWrapper()
96 verify(inputConnection, times(1)).deleteSurroundingText(10, 100); in testInputConnectionWrapper()
99 verify(inputConnection, times(1)).deleteSurroundingTextInCodePoints(10, 100); in testInputConnectionWrapper()
102 verify(inputConnection, times(1)).endBatchEdit(); in testInputConnectionWrapper()
105 verify(inputConnection, times(1)).finishComposingText(); in testInputConnectionWrapper()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DLoginFilterTest.java28 import static org.mockito.Mockito.verify;
55 verify(loginFilter, never()).onStart(); in testFilter()
56 verify(loginFilter, never()).onStop(); in testFilter()
57 verify(loginFilter, never()).onInvalidCharacter(anyChar()); in testFilter()
60 verify(loginFilter, times(1)).onStart(); in testFilter()
61 verify(loginFilter, times(1)).onStop(); in testFilter()
62 verify(loginFilter, never()).onInvalidCharacter(anyChar()); in testFilter()
66 verify(loginFilter, times(1)).onStart(); in testFilter()
67 verify(loginFilter, times(1)).onStop(); in testFilter()
68 verify(loginFilter, times(4)).onInvalidCharacter(anyChar()); in testFilter()
[all …]
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DSafeCleanerRuleTest.java21 import static org.mockito.Mockito.verify;
87 verify(mDumper).dump("Whatever", actualException); in testEmptyRule_testFails_withDumper()
98 verify(mGoodGuyRunner1).run(); in testOnlyTestFails()
99 verify(mGoodGuyExtraExceptions1).call(); in testOnlyTestFails()
111 verify(mGoodGuyRunner1).run(); in testOnlyTestFails_withDumper()
112 verify(mGoodGuyExtraExceptions1).call(); in testOnlyTestFails_withDumper()
113 verify(mDumper).dump("Whatever", actualException); in testOnlyTestFails_withDumper()
126 verify(mGoodGuyRunner1).run(); in testTestPass_oneRunnerFails()
127 verify(mGoodGuyRunner2).run(); in testTestPass_oneRunnerFails()
128 verify(mGoodGuyExtraExceptions1).call(); in testTestPass_oneRunnerFails()
[all …]
DStateChangerRuleTest.java25 import static org.mockito.Mockito.verify;
64 verify(mStatement, times(1)).evaluate(); in testSetAndRestoreOnSuccess()
65 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testSetAndRestoreOnSuccess()
66 verify(mStateManager, times(1)).set("newValue"); in testSetAndRestoreOnSuccess()
67 verify(mStateManager, times(1)).set("before"); in testSetAndRestoreOnSuccess()
79 verify(mStatement, times(1)).evaluate(); in testDontSetIfSameValueOnSuccess()
80 verify(mStateManager, never()).set(anyString()); in testDontSetIfSameValueOnSuccess()
91 verify(mStatement, times(1)).evaluate(); in testSetButDontRestoreIfSameValueOnSuccess()
92 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testSetButDontRestoreIfSameValueOnSuccess()
93 verify(mStateManager, times(1)).set("newValue"); in testSetButDontRestoreIfSameValueOnSuccess()
[all …]
DStateKeeperRuleTest.java25 import static org.mockito.Mockito.verify;
62 verify(mStatement, times(1)).evaluate(); in testRestoreOnSuccess()
63 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testRestoreOnSuccess()
64 verify(mStateManager, times(1)).set("before"); in testRestoreOnSuccess()
78 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testRestoreOnFailure()
79 verify(mStateManager, times(1)).set("before"); in testRestoreOnFailure()
90 verify(mStatement, times(1)).evaluate(); in testDoNotRestoreWhenNotChanged()
91 verify(mStateManager, never()).set(anyString()); in testDoNotRestoreWhenNotChanged()
105 verify(mStateManager, never()).set(anyString()); in testDoNotRestoreOnFailure()
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DSafeCleanerRuleTest.java21 import static org.mockito.Mockito.verify;
87 verify(mDumper).dump("Whatever", actualException); in testEmptyRule_testFails_withDumper()
98 verify(mGoodGuyRunner1).run(); in testOnlyTestFails()
99 verify(mGoodGuyExtraExceptions1).call(); in testOnlyTestFails()
111 verify(mGoodGuyRunner1).run(); in testOnlyTestFails_withDumper()
112 verify(mGoodGuyExtraExceptions1).call(); in testOnlyTestFails_withDumper()
113 verify(mDumper).dump("Whatever", actualException); in testOnlyTestFails_withDumper()
126 verify(mGoodGuyRunner1).run(); in testTestPass_oneRunnerFails()
127 verify(mGoodGuyRunner2).run(); in testTestPass_oneRunnerFails()
128 verify(mGoodGuyExtraExceptions1).call(); in testTestPass_oneRunnerFails()
[all …]
DStateChangerRuleTest.java25 import static org.mockito.Mockito.verify;
64 verify(mStatement, times(1)).evaluate(); in testSetAndRestoreOnSuccess()
65 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testSetAndRestoreOnSuccess()
66 verify(mStateManager, times(1)).set("newValue"); in testSetAndRestoreOnSuccess()
67 verify(mStateManager, times(1)).set("before"); in testSetAndRestoreOnSuccess()
79 verify(mStatement, times(1)).evaluate(); in testDontSetIfSameValueOnSuccess()
80 verify(mStateManager, never()).set(anyString()); in testDontSetIfSameValueOnSuccess()
91 verify(mStatement, times(1)).evaluate(); in testSetButDontRestoreIfSameValueOnSuccess()
92 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testSetButDontRestoreIfSameValueOnSuccess()
93 verify(mStateManager, times(1)).set("newValue"); in testSetButDontRestoreIfSameValueOnSuccess()
[all …]
DStateKeeperRuleTest.java25 import static org.mockito.Mockito.verify;
62 verify(mStatement, times(1)).evaluate(); in testRestoreOnSuccess()
63 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testRestoreOnSuccess()
64 verify(mStateManager, times(1)).set("before"); in testRestoreOnSuccess()
78 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testRestoreOnFailure()
79 verify(mStateManager, times(1)).set("before"); in testRestoreOnFailure()
90 verify(mStatement, times(1)).evaluate(); in testDoNotRestoreWhenNotChanged()
91 verify(mStateManager, never()).set(anyString()); in testDoNotRestoreWhenNotChanged()
105 verify(mStateManager, never()).set(anyString()); in testDoNotRestoreOnFailure()
/cts/tests/tests/content/src/android/content/cts/
DContentProviderClientTest.java23 import static org.mockito.Mockito.verify;
104 verify(mICancellationSignal, never()).cancel(); in tearDown()
110 verify(mIContentProvider).query(PACKAGE_NAME, URI, null, ARGS, mICancellationSignal); in testQuery()
119 verify(mIContentProvider).query(PACKAGE_NAME, URI, null, ARGS, mICancellationSignal); in testQueryTimeout()
125 verify(mIContentProvider, never()).query(PACKAGE_NAME, URI, null, ARGS, in testQueryAlreadyCancelled()
131 verify(mIContentProvider).getType(URI); in testGetType()
140 verify(mIContentProvider).getType(URI); in testGetTypeTimeout()
145 verify(mIContentProvider).getStreamTypes(URI, ""); in testGetStreamTypes()
154 verify(mIContentProvider).getStreamTypes(URI, ""); in testGetStreamTypesTimeout()
159 verify(mIContentProvider).canonicalize(PACKAGE_NAME, URI); in testCanonicalize()
[all …]
DDeferSyncTest.java36 import static org.mockito.Mockito.verify;
98 verify(notAlwaysSyncableAdapter, atLeast(1)).onUnsyncableAccount(); in noSyncsWhenDeferred()
99 verify(notAlwaysSyncableAdapter, never()).onPerformSync(any(), any(), any(), any(), in noSyncsWhenDeferred()
102 verify(alwaysSyncableAdapter, atLeast(1)).onUnsyncableAccount(); in noSyncsWhenDeferred()
103 verify(alwaysSyncableAdapter, never()).onPerformSync(any(), any(), any(), any(), any()); in noSyncsWhenDeferred()
116 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onUnsyncableAccount(); in deferSyncAndMakeSyncable()
123 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), in deferSyncAndMakeSyncable()
141 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onUnsyncableAccount(); in deferSyncAndReportIsReady()
146 verify(adapter, atLeast(1)).onUnsyncableAccount(); in deferSyncAndReportIsReady()
149 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), in deferSyncAndReportIsReady()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/verify/
DAllTests.java17 package dot.junit.verify;
35 suite.addTestSuite(dot.junit.verify.a1.Test_a1.class); in suite()
36 suite.addTestSuite(dot.junit.verify.a3.Test_a3.class); in suite()
37 suite.addTestSuite(dot.junit.verify.a5.Test_a5.class); in suite()
38 suite.addTestSuite(dot.junit.verify.b2.Test_b2.class); in suite()
39 suite.addTestSuite(dot.junit.verify.b3.Test_b3.class); in suite()
40 suite.addTestSuite(dot.junit.verify.b17.Test_b17.class); in suite()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionManagerTest.java27 import static org.mockito.Mockito.verify;
61 verify(mListener, never()).onTransitionResume(any()); in testBeginDelayedTransition()
62 verify(mListener, never()).onTransitionPause(any()); in testBeginDelayedTransition()
63 verify(mListener, never()).onTransitionCancel(any()); in testBeginDelayedTransition()
66 verify(mListener, times(1)).onTransitionStart(transitionArgumentCaptor.capture()); in testBeginDelayedTransition()
154 verify(mListener, never()).onTransitionResume(any()); in testGo()
155 verify(mListener, never()).onTransitionPause(any()); in testGo()
156 verify(mListener, never()).onTransitionCancel(any()); in testGo()
159 verify(mListener, times(1)).onTransitionStart(transitionArgumentCaptor.capture()); in testGo()
203 verify(mListener, never()).onTransitionResume(any()); in testSetTransition1()
[all …]
DActivityTransitionTest.java28 import static org.mockito.Mockito.verify;
145 verify(targetActivity.enterListener, within(5000)).onTransitionStart(any()); in viewsNotStripped()
146 verify(targetActivity.enterListener, within(5000)).onTransitionEnd(any()); in viewsNotStripped()
147 verify(mExitListener, times(1)).onTransitionEnd(any()); in viewsNotStripped()
170 verify(mReenterListener, within(5000)).onTransitionStart(any()); in viewsNotStripped()
171 verify(mReenterListener, within(5000)).onTransitionEnd(any()); in viewsNotStripped()
172 verify(mSharedElementReenterListener, within(5000)).onTransitionStart(any()); in viewsNotStripped()
173 verify(mSharedElementReenterListener, within(5000)).onTransitionEnd(any()); in viewsNotStripped()
174 verify(targetActivity.returnListener, times(1)).onTransitionStart(any()); in viewsNotStripped()
175 verify(targetActivity.returnListener, times(1)).onTransitionEnd(any()); in viewsNotStripped()
[all …]
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminReceiverTest.java29 import static org.mockito.Mockito.verify;
93 verify(mReceiver).onPasswordChanged(any(), actionEq(ACTION_PASSWORD_CHANGED), eq(USER)); in testOnReceivePasswordChanged()
94 verify(mReceiver).onPasswordChanged(any(), actionEq(ACTION_PASSWORD_CHANGED)); in testOnReceivePasswordChanged()
104 verify(mReceiver).onPasswordFailed(any(), actionEq(ACTION_PASSWORD_FAILED), eq(USER)); in testOnReceivePasswordFailed()
105 verify(mReceiver).onPasswordFailed(any(), actionEq(ACTION_PASSWORD_FAILED)); in testOnReceivePasswordFailed()
115 verify(mReceiver).onPasswordSucceeded(any(), actionEq(ACTION_PASSWORD_SUCCEEDED), eq(USER)); in testOnReceivePasswordSucceeded()
116 verify(mReceiver).onPasswordSucceeded(any(), actionEq(ACTION_PASSWORD_SUCCEEDED)); in testOnReceivePasswordSucceeded()
126 verify(mReceiver).onPasswordExpiring(any(), actionEq(ACTION_PASSWORD_EXPIRING), eq(USER)); in testOnReceivePasswordExpiring()
127 verify(mReceiver).onPasswordExpiring(any(), actionEq(ACTION_PASSWORD_EXPIRING)); in testOnReceivePasswordExpiring()
137 verify(mReceiver).onEnabled( in testOnReceiveEnabled()
[all …]
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityDelegateTest.java23 import static org.mockito.Mockito.verify;
78 verify(mockDelegate).sendAccessibilityEvent( in testViewDelegatesToAccessibilityDelegate()
82 verify(mockDelegate).sendAccessibilityEventUnchecked(mParentView, event); in testViewDelegatesToAccessibilityDelegate()
85 verify(mockDelegate).dispatchPopulateAccessibilityEvent(mParentView, event); in testViewDelegatesToAccessibilityDelegate()
88 verify(mockDelegate).onPopulateAccessibilityEvent(mParentView, event); in testViewDelegatesToAccessibilityDelegate()
91 verify(mockDelegate).onInitializeAccessibilityEvent(mParentView, event); in testViewDelegatesToAccessibilityDelegate()
95 verify(mockDelegate).onInitializeAccessibilityNodeInfo(mParentView, info); in testViewDelegatesToAccessibilityDelegate()
98 verify(mockDelegate).onRequestSendAccessibilityEvent(mParentView, mChildView, event); in testViewDelegatesToAccessibilityDelegate()
101 verify(mockDelegate).getAccessibilityNodeProvider(mParentView); in testViewDelegatesToAccessibilityDelegate()
106 verify(mockDelegate).performAccessibilityAction( in testViewDelegatesToAccessibilityDelegate()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceDataStoreTest.java36 import static org.mockito.Mockito.verify;
153 verify(mDataStore, atLeastOnce()).getString(eq(KEY), any()); in testDataStoresHierarchy()
173 verify(mDataStore, atLeast(0)).getString(eq(KEY), nullable(String.class)); in putStringTestCommon()
174 verify(mDataStore, atLeastOnce()).putString(eq(KEY), anyString()); in putStringTestCommon()
186 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR)); in testGetStringWithDataStoreOnPref()
194 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR)); in testGetStringWithDataStoreOnMgr()
267 verify(mDataStore, atLeast(0)).getStringSet(eq(KEY), or(isNull(Set.class), any())); in putStringSetTestCommon()
268 verify(mDataStore, atLeastOnce()).putStringSet(eq(KEY), or(isNull(Set.class), any())); in putStringSetTestCommon()
281 verify(mDataStore, atLeastOnce()).getStringSet(eq(KEY), eq(testSet)); in testGetStringSetWithDataStoreOnPref()
290 verify(mDataStore, atLeastOnce()).getStringSet(eq(KEY), eq(testSet)); in testGetStringSetWithDataStoreOnMgr()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DFlashlightTest.java83 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff()
85 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff()
88 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff()
90 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff()
92 verify(torchListener, after(TORCH_TIMEOUT_MS).never()). in testSetTorchModeOnOff()
116 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(mFlashCameraIdList.size())). in testSetTorchModeOnOff()
119 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff()
154 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testTorchCallback()
157 verify(torchListener, after(TORCH_TIMEOUT_MS).never()). in testTorchCallback()
159 verify(torchListener, after(TORCH_TIMEOUT_MS).never()). in testTorchCallback()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableWrapperTest.java33 import static org.mockito.Mockito.verify;
106 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
110 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
115 verify(cb, never()).invalidateDrawable(any()); in testInvalidateDrawable()
126 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
130 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
135 verify(cb, never()).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
146 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
150 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
155 verify(cb, never()).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
[all …]
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DMeanVerificationTest.java52 verification.verify(stats); in testVerify()
60 verification.verify(stats); in testVerify()
67 verification.verify(stats); in testVerify()
78 verification.verify(stats); in testVerify()
89 verification.verify(stats); in testVerify()
102 verification.verify(stats); in testVerify()
109 verification.verify(stats); in testVerify()
120 verification.verify(stats); in testVerify()
131 verification.verify(stats); in testVerify()
/cts/tests/tests/view/src/android/view/cts/
DChoreographerTest.java25 import static org.mockito.Mockito.verify;
85 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 30).times(1)).run(); in testPostCallbackWithoutDelay()
86 verify(addedCallback2, timeout(NOMINAL_VSYNC_PERIOD * 30).times(1)).run(); in testPostCallbackWithoutDelay()
93 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 30).times(2)).run(); in testPostCallbackWithoutDelay()
94 verify(addedCallback2, times(1)).run(); in testPostCallbackWithoutDelay()
104 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 30).times(3)).run(); in testPostCallbackWithoutDelay()
115 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 30).times(4)).run(); in testPostCallbackWithoutDelay()
148 verify(addedCallback, timeout(DELAY_PERIOD * 3).times(1)).run(); in testPostCallbackWithDelay()
158 verify(addedCallback, timeout(DELAY_PERIOD * 3).times(2)).run(); in testPostCallbackWithDelay()
169 verify(addedCallback, timeout(DELAY_PERIOD * 3).times(3)).run(); in testPostCallbackWithDelay()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DImageTransformationTest.java23 import static org.mockito.Mockito.verify;
89 verify(template, never()).setImageViewResource(anyInt(), anyInt()); in fieldCannotBeFound()
107 verify(template).setImageViewResource(0, 42); in theOneOptionsMatches()
124 verify(template).setImageViewResource(0, 42); in theOneOptionsMatchesWithContentDescription()
125 verify(template).setContentDescription(0, "Are you content?"); in theOneOptionsMatchesWithContentDescription()
143 verify(template, never()).setImageViewResource(anyInt(), anyInt()); in noOptionsMatches()
162 verify(template).setImageViewResource(0, 2); in multipleOptionsOneMatches()
180 verify(template).setImageViewResource(0, 2); in multipleOptionsOneMatchesWithContentDescription()
181 verify(template).setContentDescription(0, "I am content"); in multipleOptionsOneMatchesWithContentDescription()
201 verify(template, only()).setImageViewResource(0, 1); in twoOptionsMatch()
[all …]
/cts/tests/tests/content/src/android/content/om/cts/
DOverlayManagerTest.java23 import static org.mockito.Mockito.verify;
63 verify(mMockService, times(0)).setEnabled(packageName, true, userId); in testSetEnabled()
67 verify(mMockService, times(1)).setEnabled(packageName, true, userId); in testSetEnabled()
75 verify(mMockService, times(0)).setEnabledExclusiveInCategory(packageName, userId); in testSetEnabledExclusiveInCategory()
79 verify(mMockService, times(1)).setEnabledExclusiveInCategory(packageName, userId); in testSetEnabledExclusiveInCategory()
87 verify(mMockService, times(0)).getOverlayInfosForTarget(targetPackageName, userId); in testGetOverlayInfosForTarget()
89 verify(mMockService, times(1)).getOverlayInfosForTarget(targetPackageName, userId); in testGetOverlayInfosForTarget()
/cts/tests/tests/widget/src/android/widget/cts/
DCheckBoxTest.java23 import static org.mockito.Mockito.verify;
123 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testAccessChecked()
128 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testAccessChecked()
133 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, false); in testAccessChecked()
151 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testToggleViaApi()
156 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, false); in testToggleViaApi()
173 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testToggleViaEmulatedTap()
178 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, false); in testToggleViaEmulatedTap()
196 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testToggleViaPerformClick()
201 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, false); in testToggleViaPerformClick()

1234567891011