Home
last modified time | relevance | path

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

12345678910

/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;
70 verify(inputConnection, times(1)).beginBatchEdit(); in testInputConnectionWrapper()
73 verify(inputConnection, times(1)).clearMetaKeyStates(KeyEvent.META_ALT_ON); in testInputConnectionWrapper()
78 verify(inputConnection, times(1)).commitCompletion(completionInfoCaptor.capture()); in testInputConnectionWrapper()
86 verify(inputConnection, times(1)).commitCorrection(correctionInfoCaptor.capture()); in testInputConnectionWrapper()
92 verify(inputConnection, times(1)).commitText(sameCharSequence("Text"), eq(1)); in testInputConnectionWrapper()
95 verify(inputConnection, times(1)).deleteSurroundingText(10, 100); in testInputConnectionWrapper()
98 verify(inputConnection, times(1)).deleteSurroundingTextInCodePoints(10, 100); in testInputConnectionWrapper()
101 verify(inputConnection, times(1)).endBatchEdit(); in testInputConnectionWrapper()
104 verify(inputConnection, times(1)).finishComposingText(); in testInputConnectionWrapper()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DLoginFilterTest.java28 import static org.mockito.Mockito.verify;
54 verify(loginFilter, never()).onStart(); in testFilter()
55 verify(loginFilter, never()).onStop(); in testFilter()
56 verify(loginFilter, never()).onInvalidCharacter(anyChar()); in testFilter()
59 verify(loginFilter, times(1)).onStart(); in testFilter()
60 verify(loginFilter, times(1)).onStop(); in testFilter()
61 verify(loginFilter, never()).onInvalidCharacter(anyChar()); in testFilter()
65 verify(loginFilter, times(1)).onStart(); in testFilter()
66 verify(loginFilter, times(1)).onStop(); in testFilter()
67 verify(loginFilter, times(4)).onInvalidCharacter(anyChar()); in testFilter()
[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.java25 import static org.mockito.Mockito.verify;
58 verify(mListener, never()).onTransitionResume(any()); in testBeginDelayedTransition()
59 verify(mListener, never()).onTransitionPause(any()); in testBeginDelayedTransition()
60 verify(mListener, never()).onTransitionCancel(any()); in testBeginDelayedTransition()
63 verify(mListener, times(1)).onTransitionStart(transitionArgumentCaptor.capture()); in testBeginDelayedTransition()
114 verify(mListener, never()).onTransitionResume(any()); in testGo()
115 verify(mListener, never()).onTransitionPause(any()); in testGo()
116 verify(mListener, never()).onTransitionCancel(any()); in testGo()
119 verify(mListener, times(1)).onTransitionStart(transitionArgumentCaptor.capture()); in testGo()
160 verify(mListener, never()).onTransitionResume(any()); in testSetTransition1()
[all …]
DFadeTest.java20 import static org.mockito.Mockito.verify;
58 verify(mListener, never()).onTransitionEnd(any()); in testMode()
63 verify(mListener, never()).onTransitionEnd(any()); in testMode()
71 verify(mListener, never()).onTransitionEnd(any()); in testMode()
89 verify(mListener, never()).onTransitionEnd(any()); in testMode()
DTransitionSetTest.java26 import static org.mockito.Mockito.verify;
61 verify(fadeListener, times(1)).onTransitionStart(any()); in testTransitionTogether()
62 verify(changeBoundsListener, times(1)).onTransitionStart(any()); in testTransitionTogether()
89 verify(fadeListener, times(1)).onTransitionStart(any()); in testTransitionSequentially()
90 verify(changeBoundsListener, never()).onTransitionStart(any()); in testTransitionSequentially()
92 verify(fadeListener, within(400)).onTransitionEnd(any()); in testTransitionSequentially()
94 () -> verify(changeBoundsListener, times(1)).onTransitionStart(any())); in testTransitionSequentially()
DTransitionTest.java31 import static org.mockito.Mockito.verify;
84 verify(mListener, times(1)).onTransitionPause(any()); in testAddListener()
85 verify(mListener, times(1)).onTransitionResume(any()); in testAddListener()
86 verify(mListener, never()).onTransitionCancel(any()); in testAddListener()
87 verify(mListener, never()).onTransitionEnd(any()); in testAddListener()
88 verify(mListener, times(1)).onTransitionStart(any()); in testAddListener()
90 verify(listener2, never()).onTransitionPause(any()); in testAddListener()
91 verify(listener2, never()).onTransitionResume(any()); in testAddListener()
92 verify(listener2, never()).onTransitionCancel(any()); in testAddListener()
93 verify(listener2, never()).onTransitionEnd(any()); in testAddListener()
[all …]
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminReceiverTest.java27 import static org.mockito.Mockito.verify;
91 verify(mReceiver).onPasswordChanged(any(), actionEq(ACTION_PASSWORD_CHANGED), eq(USER)); in testOnReceivePasswordChanged()
92 verify(mReceiver).onPasswordChanged(any(), actionEq(ACTION_PASSWORD_CHANGED)); in testOnReceivePasswordChanged()
102 verify(mReceiver).onPasswordFailed(any(), actionEq(ACTION_PASSWORD_FAILED), eq(USER)); in testOnReceivePasswordFailed()
103 verify(mReceiver).onPasswordFailed(any(), actionEq(ACTION_PASSWORD_FAILED)); in testOnReceivePasswordFailed()
113 verify(mReceiver).onPasswordSucceeded(any(), actionEq(ACTION_PASSWORD_SUCCEEDED), eq(USER)); in testOnReceivePasswordSucceeded()
114 verify(mReceiver).onPasswordSucceeded(any(), actionEq(ACTION_PASSWORD_SUCCEEDED)); in testOnReceivePasswordSucceeded()
124 verify(mReceiver).onPasswordExpiring(any(), actionEq(ACTION_PASSWORD_EXPIRING), eq(USER)); in testOnReceivePasswordExpiring()
125 verify(mReceiver).onPasswordExpiring(any(), actionEq(ACTION_PASSWORD_EXPIRING)); in testOnReceivePasswordExpiring()
135 verify(mReceiver).onEnabled( in testOnReceiveEnabled()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableWrapperTest.java33 import static org.mockito.Mockito.verify;
101 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
105 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
110 verify(cb, never()).invalidateDrawable(any()); in testInvalidateDrawable()
121 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
125 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
130 verify(cb, never()).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
141 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
145 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
150 verify(cb, never()).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
[all …]
DScaleDrawableTest.java36 import static org.mockito.Mockito.verify;
95 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
99 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
104 verify(callback, never()).invalidateDrawable(any()); in testInvalidateDrawable()
116 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
120 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
125 verify(callback, never()).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
137 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
141 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
146 verify(callback, never()).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
[all …]
DTransitionDrawableTest.java28 import static org.mockito.Mockito.verify;
88 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
95 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
102 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
116 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
122 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
130 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
142 verify(cb, times(1)).invalidateDrawable(any()); in testReverseTransition()
148 verify(cb, times(1)).invalidateDrawable(any()); in testReverseTransition()
155 verify(cb, never()).invalidateDrawable(any()); in testReverseTransition()
[all …]
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceDataStoreTest.java36 import static org.mockito.Mockito.verify;
152 verify(mDataStore, atLeastOnce()).getString(eq(KEY), any()); in testDataStoresHierarchy()
172 verify(mDataStore, atLeast(0)).getString(eq(KEY), nullable(String.class)); in putStringTestCommon()
173 verify(mDataStore, atLeastOnce()).putString(eq(KEY), anyString()); in putStringTestCommon()
185 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR)); in testGetStringWithDataStoreOnPref()
193 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR)); in testGetStringWithDataStoreOnMgr()
266 verify(mDataStore, atLeast(0)).getStringSet(eq(KEY), or(isNull(Set.class), any())); in putStringSetTestCommon()
267 verify(mDataStore, atLeastOnce()).putStringSet(eq(KEY), or(isNull(Set.class), any())); in putStringSetTestCommon()
280 verify(mDataStore, atLeastOnce()).getStringSet(eq(KEY), eq(testSet)); in testGetStringSetWithDataStoreOnPref()
289 verify(mDataStore, atLeastOnce()).getStringSet(eq(KEY), eq(testSet)); in testGetStringSetWithDataStoreOnMgr()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DFlashlightTest.java81 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff()
83 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff()
86 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff()
88 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff()
90 verify(torchListener, after(TORCH_TIMEOUT_MS).never()). in testSetTorchModeOnOff()
114 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(mFlashCameraIdList.size())). in testSetTorchModeOnOff()
117 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff()
142 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testTorchCallback()
145 verify(torchListener, after(TORCH_TIMEOUT_MS).never()). in testTorchCallback()
147 verify(torchListener, after(TORCH_TIMEOUT_MS).never()). in testTorchCallback()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DChoreographerTest.java25 import static org.mockito.Mockito.verify;
84 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 10).times(1)).run(); in testPostCallbackWithoutDelay()
85 verify(addedCallback2, times(1)).run(); in testPostCallbackWithoutDelay()
92 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 10).times(2)).run(); in testPostCallbackWithoutDelay()
93 verify(addedCallback2, times(1)).run(); in testPostCallbackWithoutDelay()
103 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 10).times(3)).run(); in testPostCallbackWithoutDelay()
114 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 10).times(4)).run(); in testPostCallbackWithoutDelay()
147 verify(addedCallback, timeout(DELAY_PERIOD * 3).times(1)).run(); in testPostCallbackWithDelay()
157 verify(addedCallback, timeout(DELAY_PERIOD * 3).times(2)).run(); in testPostCallbackWithDelay()
168 verify(addedCallback, timeout(DELAY_PERIOD * 3).times(3)).run(); in testPostCallbackWithDelay()
[all …]
DGestureDetectorTest.java24 import static org.mockito.Mockito.verify;
107 verify(mListener, never()).onContextClick(any(MotionEvent.class)); in testOnSetContextClickListener()
111 verify(mListener, times(1)).onContextClick(mButtonPressPrimaryMotionEvent); in testOnSetContextClickListener()
117 verify(mListener, times(1)).onContextClick(mButtonPressPrimaryMotionEvent); in testOnContextClick()
120 verify(mListener, times(1)).onContextClick(mButtonPressSecondaryMotionEvent); in testOnContextClick()
126 verify(mListener, times(1)).onContextClick(mButtonPressPrimaryMotionEvent); in testOnGenericMotionEvent()
DViewTreeObserverTest.java26 import static org.mockito.Mockito.verify;
97 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testAddOnGlobalFocusChangeListener()
108 verify(listener, times(1)).onGlobalLayout(); in testAddOnGlobalLayoutListener()
119 verify(listener, times(1)).onPreDraw(); in testAddOnPreDrawListener()
130 verify(listener, times(1)).onDraw(); in testAddOnDrawListener()
163 verify(listener, within(TIMEOUT_MS)).onTouchModeChanged(anyBoolean()); in testAddOnTouchModeChangeListener()
181 verify(listener, times(1)).onGlobalLayout(); in testRemoveGlobalOnLayoutListener()
201 verify(listener, times(1)).onGlobalLayout(); in testRemoveOnGlobalLayoutListener()
226 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testRemoveOnGlobalFocusChangeListener()
247 verify(listener, times(1)).onPreDraw(); in testRemoveOnPreDrawListener()
[all …]
/cts/tests/tests/print/src/android/print/cts/
DPrinterDiscoverySessionLifecycleTest.java149 inOrder.verify(firstSessionCallbacks).onStartPrinterDiscovery( in normalLifecycle()
153 inOrder.verify(firstSessionCallbacks).onStartPrinterStateTracking( in normalLifecycle()
157 inOrder.verify(firstSessionCallbacks).onStopPrinterStateTracking( in normalLifecycle()
161 inOrder.verify(firstSessionCallbacks).onStartPrinterStateTracking( in normalLifecycle()
165 inOrder.verify(firstSessionCallbacks).onStopPrinterStateTracking( in normalLifecycle()
169 inOrder.verify(firstSessionCallbacks).onStopPrinterDiscovery(); in normalLifecycle()
172 inOrder.verify(firstSessionCallbacks).onDestroy(); in normalLifecycle()
247 inOrder.verify(firstSessionCallbacks).onStartPrinterDiscovery( in cancelPrintServicesAlertDialog()
251 inOrder.verify(firstSessionCallbacks).onStartPrinterStateTracking( in cancelPrintServicesAlertDialog()
255 inOrder.verify(firstSessionCallbacks).onStopPrinterStateTracking( in cancelPrintServicesAlertDialog()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DCheckBoxTest.java23 import static org.mockito.Mockito.verify;
122 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testAccessChecked()
127 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testAccessChecked()
132 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, false); in testAccessChecked()
150 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testToggleViaApi()
155 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, false); in testToggleViaApi()
172 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testToggleViaEmulatedTap()
177 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, false); in testToggleViaEmulatedTap()
195 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testToggleViaPerformClick()
200 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, false); in testToggleViaPerformClick()
DVideoViewTest.java28 import static org.mockito.Mockito.verify;
157 verify(mockPreparedListener, within(TIME_OUT)).onPrepared(any(MediaPlayer.class)); in testPlayVideo()
158 verify(mockPreparedListener, times(1)).onPrepared(any(MediaPlayer.class)); in testPlayVideo()
163 verify(mockCompletionListener, within(TIME_OUT)).onCompletion(any(MediaPlayer.class)); in testPlayVideo()
164 verify(mockCompletionListener, times(1)).onCompletion(any(MediaPlayer.class)); in testPlayVideo()
206 verify(mockCompletionListener, within(TIME_OUT)).onCompletion(any(MediaPlayer.class)); in testAudioAttributes()
207 verify(mockCompletionListener, times(1)).onCompletion(any(MediaPlayer.class)); in testAudioAttributes()
229 verify(mockErrorListener, within(TIME_OUT)).onError( in testSetOnErrorListener()
231 verify(mockErrorListener, times(1)).onError(any(MediaPlayer.class), anyInt(), anyInt()); in testSetOnErrorListener()
250 verify(mockPreparedListener, within(TIME_OUT)).onPrepared(any(MediaPlayer.class)); in testGetBufferPercentage()
[all …]
DPopupMenuTest.java26 import static org.mockito.Mockito.verify;
149 verify(mBuilder.mOnDismissListener, never()).onDismiss(mPopupMenu); in testDismissalViaAPI()
153 verify(mBuilder.mOnDismissListener, times(1)).onDismiss(mPopupMenu); in testDismissalViaAPI()
171 verify(mBuilder.mOnDismissListener, never()).onDismiss(mPopupMenu); in testNestedDismissalViaAPI()
184 verify(mBuilder.mOnDismissListener, times(1)).onDismiss(mPopupMenu); in testNestedDismissalViaAPI()
215 verify(mBuilder.mOnDismissListener, times(1)).onDismiss(mPopupMenu); in testDismissalViaTouch()
224 verify(mBuilder.mOnMenuItemClickListener, never()).onMenuItemClick(any(MenuItem.class)); in testSimpleMenuItemClickViaAPI()
230 verify(mBuilder.mOnMenuItemClickListener, times(1)).onMenuItemClick( in testSimpleMenuItemClickViaAPI()
234 verify(mBuilder.mOnDismissListener, times(1)).onDismiss(mPopupMenu); in testSimpleMenuItemClickViaAPI()
249 verify(mBuilder.mOnMenuItemClickListener, never()).onMenuItemClick(any(MenuItem.class)); in testSubMenuClickViaAPI()
[all …]
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DMeanVerificationTest.java49 verification.verify(stats); in testVerify()
56 verification.verify(stats); in testVerify()
64 verification.verify(stats); in testVerify()
76 verification.verify(stats); in testVerify()
87 verification.verify(stats); in testVerify()
DFrequencyVerificationTest.java41 verification.verify(getEnvironment(1000), stats); in testVerifification()
46 verification.verify(getEnvironment(950), stats); in testVerifification()
51 verification.verify(getEnvironment(1050), stats); in testVerifification()
57 verification.verify(getEnvironment(950), stats); in testVerifification()
67 verification.verify(getEnvironment(1050), stats); in testVerifification()
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/
DCompatibilityTestTest.java81 EasyMock.verify(mMockDevice); in testGetAbis()
99 EasyMock.verify(mMockDevice); in testGetAbis_notSupported()
118 EasyMock.verify(mMockDevice); in testGetAbis_primaryAbiOnly()
138 EasyMock.verify(mMockDevice); in testGetAbis_primaryAbiOnly_NotSupported()
159 EasyMock.verify(mMockDevice); in testGetAbis_skipCtsArchCheck()
178 EasyMock.verify(mMockDevice); in testGetAbis_skipCtsArchCheck_abiSpecified()
208 EasyMock.verify(mMockDevice, mMockLogger); in testRunPreModuleCheck()
233 EasyMock.verify(mMockDevice, mMockLogger); in testRunPreModuleCheck_failure()
247 EasyMock.verify(mMockDevice, mMockLogger); in testRunPostModuleCheck()
272 EasyMock.verify(mMockDevice, mMockLogger); in testRunPostModuleCheck_failure()
[all …]

12345678910