/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputConnectionWrapperTest.java | 30 import static org.mockito.Mockito.times; 72 verify(inputConnection, times(1)).beginBatchEdit(); in testInputConnectionWrapper() 75 verify(inputConnection, times(1)).clearMetaKeyStates(KeyEvent.META_ALT_ON); in testInputConnectionWrapper() 80 verify(inputConnection, times(1)).commitCompletion(completionInfoCaptor.capture()); in testInputConnectionWrapper() 88 verify(inputConnection, times(1)).commitCorrection(correctionInfoCaptor.capture()); in testInputConnectionWrapper() 94 verify(inputConnection, times(1)).commitText(sameCharSequence("Text"), eq(1)); in testInputConnectionWrapper() 97 verify(inputConnection, times(1)).deleteSurroundingText(10, 100); in testInputConnectionWrapper() 100 verify(inputConnection, times(1)).deleteSurroundingTextInCodePoints(10, 100); in testInputConnectionWrapper() 103 verify(inputConnection, times(1)).endBatchEdit(); in testInputConnectionWrapper() 106 verify(inputConnection, times(1)).finishComposingText(); in testInputConnectionWrapper() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | LoginFilterTest.java | 27 import static org.mockito.Mockito.times; 60 verify(loginFilter, times(1)).onStart(); in testFilter() 61 verify(loginFilter, times(1)).onStop(); 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() 73 verify(loginFilter, times(1)).onStart(); in testFilter() 74 verify(loginFilter, times(1)).onStop(); in testFilter() 75 verify(loginFilter, times(3)).onInvalidCharacter(anyChar()); in testFilter() 80 verify(loginFilter, times(1)).onStart(); in testFilter() [all …]
|
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/ |
D | StateChangerRuleTest.java | 24 import static org.mockito.Mockito.times; 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() 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() 105 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testDontSetButRestoreIfValueChangedOnSuccess() [all …]
|
D | StateKeeperRuleTest.java | 24 import static org.mockito.Mockito.times; 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()
|
D | RetryRuleTest.java | 24 import static org.mockito.Mockito.times; 80 verify(mCleaner, times(mNumberCalls - 1)).run(); in verifyCleaner() 108 verify(cleaner, times(2)).run(); in testDoCleanOnRetryableException() 122 verify(cleaner, times(2)).run(); in testKeepLastStatusWhenFailOnRetryableException() 132 verify(mMockStatement, times(1)).evaluate(); in testNeverCleanWhenStatementPass() 147 verify(mMockStatement, times(1)).evaluate(); in testNeverCleanWhenDisabledAndStatementThrowsRetryableException() 181 verify(mMockStatement, times(1)).evaluate(); in testPassWhenDisabledAndStatementPass() 194 verify(mMockStatement, times(1)).evaluate(); in testFailWhenDisabledAndStatementThrowsRetryableException() 207 verify(mMockStatement, times(1)).evaluate(); in testFailWhenDisabledAndStatementThrowsNonRetryableException()
|
/cts/tests/uwb/src/android/uwb/cts/ |
D | RangingSessionTest.java | 28 import static org.mockito.Mockito.times; 71 verify(callback, times(1)).onOpened(eq(session)); in testOnRangingOpened_OnOpenSuccessCalled() 72 verify(callback, times(0)).onClosed(anyInt(), any()); in testOnRangingOpened_OnOpenSuccessCalled() 84 verify(callback, times(1)).onOpened(eq(session)); in testOnRangingOpened_CannotOpenClosedSession() 85 verify(callback, times(0)).onClosed(anyInt(), any()); in testOnRangingOpened_CannotOpenClosedSession() 89 verify(callback, times(1)).onOpened(eq(session)); in testOnRangingOpened_CannotOpenClosedSession() 90 verify(callback, times(1)).onClosed(anyInt(), any()); in testOnRangingOpened_CannotOpenClosedSession() 95 verify(callback, times(1)).onOpened(eq(session)); in testOnRangingOpened_CannotOpenClosedSession() 96 verify(callback, times(1)).onClosed(anyInt(), any()); in testOnRangingOpened_CannotOpenClosedSession() 111 verify(callback, times(0)).onOpened(eq(session)); in testOnRangingClosed_OnClosedCalledWhenSessionNotOpen() [all …]
|
/cts/tests/openglperf2/jni/reference/ |
D | ReferenceRenderer.cpp | 48 double times[NUM_SETUP_TIMES]; in setUp() local 50 times[0] = GLUtils::currentTimeMillis(); in setUp() 52 times[1] = GLUtils::currentTimeMillis(); in setUp() 54 times[2] = GLUtils::currentTimeMillis(); in setUp() 56 times[3] = GLUtils::currentTimeMillis(); in setUp() 60 mSetUpTimes[i] += times[i] - times[i - 1]; in setUp()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ChoreographerTest.java | 24 import static org.mockito.Mockito.times; 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 …]
|
D | GestureDetectorTest.java | 23 import static org.mockito.Mockito.times; 112 verify(mListener, times(1)).onContextClick(mButtonPressPrimaryMotionEvent); in testOnSetContextClickListener() 118 verify(mListener, times(1)).onContextClick(mButtonPressPrimaryMotionEvent); in testOnContextClick() 121 verify(mListener, times(1)).onContextClick(mButtonPressSecondaryMotionEvent); in testOnContextClick() 127 verify(mListener, times(1)).onContextClick(mButtonPressPrimaryMotionEvent); in testOnGenericMotionEvent()
|
D | View_UsingViewsTest.java | 32 import static org.mockito.Mockito.times; 130 verify(okButtonListener, times(1)).onClick(mButtonOk); in testSetProperties() 144 verify(cancelButtonListener, times(1)).onClick(mButtonCancel); in testSetProperties() 298 verify(editListener, times(1)).onFocusChange(mEditText, true); in testSetFocus() 309 verify(okListener, times(1)).onFocusChange(mButtonOk, true); in testSetFocus() 311 verify(editListener, times(1)).onFocusChange(mEditText, false); in testSetFocus() 321 verify(cancelListener, times(1)).onFocusChange(mButtonCancel, true); in testSetFocus() 323 verify(okListener, times(1)).onFocusChange(mButtonOk, false); in testSetFocus() 332 verify(symbolListener, times(1)).onFocusChange(mSymbolTextView, true); in testSetFocus() 334 verify(cancelListener, times(1)).onFocusChange(mButtonCancel, false); in testSetFocus() [all …]
|
/cts/tests/tests/content/src/android/content/om/cts/ |
D | OverlayManagerTest.java | 22 import static org.mockito.Mockito.times; 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/graphics/src/android/graphics/drawable/cts/ |
D | DrawableWrapperTest.java | 32 import static org.mockito.Mockito.times; 106 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable() 110 verify(cb, times(1)).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() 146 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable() 150 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable() 173 verify(mockDrawable, times(1)).draw(any()); in testDraw() 178 verify(mockDrawable, times(1)).draw(any()); in testDraw() 206 verify(mockDrawable, times(1)).getPadding(any()); in testGetPadding() [all …]
|
D | ScaleDrawableTest.java | 35 import static org.mockito.Mockito.times; 96 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable() 100 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable() 117 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable() 121 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable() 138 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable() 142 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable() 162 verify(mockDrawable, times(1)).draw(any()); in testDraw() 167 verify(mockDrawable, times(1)).draw(any()); in testDraw() 195 verify(mockDrawable, times(1)).getPadding(any()); in testGetPadding() [all …]
|
D | TransitionDrawableTest.java | 27 import static org.mockito.Mockito.times; 89 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition() 96 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition() 103 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition() 117 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition() 123 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition() 131 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition() 143 verify(cb, times(1)).invalidateDrawable(any()); in testReverseTransition() 149 verify(cb, times(1)).invalidateDrawable(any()); in testReverseTransition()
|
D | Drawable_ConstantStateTest.java | 23 import static org.mockito.Mockito.times; 50 verify(mock, times(1)).newDrawable(); in testNewDrawable() 54 verify(mock, times(1)).newDrawable(); in testNewDrawable() 58 verify(mock, times(1)).newDrawable(); in testNewDrawable()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | CheckBoxTest.java | 22 import static org.mockito.Mockito.times; 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()
|
D | SearchView_CursorTest.java | 24 import static org.mockito.Mockito.times; 188 verify(mockQueryTextListener, times(1)).onQueryTextChange("Bon"); in testSuggestionFiltering() 191 verify(mockQueryTextListener, times(1)).onQueryTextChange("Di"); in testSuggestionFiltering() 216 verify(mockQueryTextListener, times(1)).onQueryTextChange("Di"); in testSuggestionSelection() 236 verify(mockSuggestionListener, times(1)).onSuggestionClick(0); in testSuggestionSelection() 259 verify(mockQueryTextListener, times(1)).onQueryTextChange("Di"); in testSuggestionEnterKey() 265 verify(mockSuggestionListener, times(1)).onSuggestionClick(0); in testSuggestionEnterKey() 272 verify(mockQueryTextListener, times(1)).onQueryTextChange("Bo"); in testSuggestionEnterKey() 278 verify(mockSuggestionListener, times(2)).onSuggestionClick(0); in testSuggestionEnterKey()
|
D | RadioButtonTest.java | 22 import static org.mockito.Mockito.times; 124 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testAccessChecked() 129 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testAccessChecked() 134 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, false); in testAccessChecked() 152 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testToggleViaApi() 173 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testToggleViaEmulatedTap() 195 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testToggleViaPerformClick()
|
D | SearchViewTest.java | 26 import static org.mockito.Mockito.times; 158 verify(mockDenyCloseListener, times(1)).onClose(); in testDenyIconifyingInconifiableView() 180 verify(mockAllowCloseListener, times(1)).onClose(); in testAllowIconifyingInconifiableView() 219 verify(mockQueryTextListener, times(1)).onQueryTextChange("alpha"); in testAccessQuery() 226 verify(mockQueryTextListener, times(1)).onQueryTextChange("beta"); in testAccessQuery() 227 verify(mockQueryTextListener, times(1)).onQueryTextSubmit("beta"); in testAccessQuery() 233 verify(mockQueryTextListener, times(1)).onQueryTextChange("gamma"); in testAccessQuery() 234 verify(mockQueryTextListener, times(1)).onQueryTextSubmit("gamma"); in testAccessQuery() 300 verify(mockQueryTextListener, times(1)).onQueryTextChange("alpha"); in testEnterKey() 311 verify(mockQueryTextListener, times(1)).onQueryTextChange("beta"); in testEnterKey()
|
D | ExpandableListViewTest.java | 30 import static org.mockito.Mockito.times; 168 verify(mockOnItemClickListener, times(1)).onItemClick(eq(mExpandableListView), in testPerformItemClick() 195 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(0); in testExpandGroup() 200 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(0); in testExpandGroup() 205 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(1); in testExpandGroup() 210 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(1); in testExpandGroup() 234 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(0); in testExpandGroupSmooth() 240 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(0); in testExpandGroupSmooth() 246 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(1); in testExpandGroupSmooth() 252 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(1); in testExpandGroupSmooth() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManager_ThermalTest.java | 87 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback() 92 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback() 103 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback() 108 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback() 110 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback() 124 .times(0)).onThermalStatusChanged(status); in testThermalStatusCallback() 126 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback()
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_gyro_bias.py | 59 times = numpy.array([(e['time'] - gyro_events[0]['time'])*NSEC_TO_SEC 67 times = times[N // 2::N] 76 pylab.plot(times, xs, 'r', label='x') 77 pylab.plot(times, ys, 'g', label='y') 78 pylab.plot(times, zs, 'b', label='z')
|
/cts/tests/app/src/android/app/cts/ |
D | AlertDialog_BuilderTest.java | 177 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt() 180 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamInt() 198 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamCharSequence() 201 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamCharSequence() 219 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamCharSequence() 222 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNegativeButtonWithParamCharSequence() 240 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamInt() 243 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNegativeButtonWithParamInt() 261 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEUTRAL); in testSetNeutralButtonWithParamInt() 264 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNeutralButtonWithParamInt() [all …]
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | SceneTest.java | 25 import static org.mockito.Mockito.times; 58 verify(enterCheck, times(1)).run(); in testDynamicConstructor() 66 verify(exitCheck, times(1)).run(); in testDynamicConstructor() 117 verify(enterCheck, times(1)).run(); in constructorTest() 125 verify(exitCheck, times(1)).run(); in constructorTest()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | FlashlightTest.java | 94 times(2)).onTorchModeChanged(id, false); in testSetTorchModeOnOff() 96 times(mFlashCameraIdList.size() + 1)). in testSetTorchModeOnOff() 99 times(1)).onTorchModeChanged(id, true); in testSetTorchModeOnOff() 101 times(1)).onTorchModeChanged(anyString(), eq(true)); in testSetTorchModeOnOff() 126 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(mFlashCameraIdList.size())). in testSetTorchModeOnOff() 130 times(mFlashCameraIdList.size() * 2)). in testSetTorchModeOnOff() 166 times(NUM_REGISTERS * mFlashCameraIdList.size())). in testTorchCallback() 213 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(1)). in testCameraDeviceOpenAfterTorchOn() 215 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(1)). in testCameraDeviceOpenAfterTorchOn() 229 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(1)). in testCameraDeviceOpenAfterTorchOn()
|