/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputConnectionWrapperTest.java | 30 import static org.mockito.Mockito.times; 79 verify(inputConnection, times(1)).beginBatchEdit(); in testInputConnectionWrapper() 82 verify(inputConnection, times(1)).clearMetaKeyStates(KeyEvent.META_ALT_ON); in testInputConnectionWrapper() 87 verify(inputConnection, times(1)).commitCompletion(completionInfoCaptor.capture()); in testInputConnectionWrapper() 95 verify(inputConnection, times(1)).commitCorrection(correctionInfoCaptor.capture()); in testInputConnectionWrapper() 101 verify(inputConnection, times(1)).commitText(sameCharSequence("Text"), eq(1)); in testInputConnectionWrapper() 104 verify(inputConnection, times(1)).deleteSurroundingText(10, 100); in testInputConnectionWrapper() 107 verify(inputConnection, times(1)).deleteSurroundingTextInCodePoints(10, 100); in testInputConnectionWrapper() 110 verify(inputConnection, times(1)).endBatchEdit(); in testInputConnectionWrapper() 113 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/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/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 | 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()
|
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 | 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 …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | CheckBoxTest.java | 22 import static org.mockito.Mockito.times; 133 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testAccessChecked() 138 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testAccessChecked() 143 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, false); in testAccessChecked() 161 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testToggleViaApi() 166 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, false); in testToggleViaApi() 183 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testToggleViaEmulatedTap() 188 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, false); in testToggleViaEmulatedTap() 206 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, true); in testToggleViaPerformClick() 211 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mCheckBox, false); in testToggleViaPerformClick()
|
D | SearchViewTest.java | 26 import static org.mockito.Mockito.times; 171 verify(mockDenyCloseListener, times(1)).onClose(); in testDenyIconifyingInconifiableView() 193 verify(mockAllowCloseListener, times(1)).onClose(); in testAllowIconifyingInconifiableView() 232 verify(mockQueryTextListener, times(1)).onQueryTextChange("alpha"); in testAccessQuery() 239 verify(mockQueryTextListener, times(1)).onQueryTextChange("beta"); in testAccessQuery() 240 verify(mockQueryTextListener, times(1)).onQueryTextSubmit("beta"); in testAccessQuery() 246 verify(mockQueryTextListener, times(1)).onQueryTextChange("gamma"); in testAccessQuery() 247 verify(mockQueryTextListener, times(1)).onQueryTextSubmit("gamma"); in testAccessQuery() 313 verify(mockQueryTextListener, times(1)).onQueryTextChange("alpha"); in testEnterKey() 325 verify(mockQueryTextListener, times(1)).onQueryTextChange("beta"); in testEnterKey()
|
D | SearchView_CursorTest.java | 25 import static org.mockito.Mockito.times; 203 verify(mockQueryTextListener, times(1)).onQueryTextChange("Bon"); in testSuggestionFiltering() 206 verify(mockQueryTextListener, times(1)).onQueryTextChange("Di"); in testSuggestionFiltering() 240 verify(mockQueryTextListener, times(1)).onQueryTextChange("Di"); in testSuggestionSelection() 260 verify(mockSuggestionListener, times(1)).onSuggestionClick(0); in testSuggestionSelection() 289 verify(mockQueryTextListener, times(1)).onQueryTextChange("Di"); in testSuggestionEnterKey() 295 verify(mockSuggestionListener, times(1)).onSuggestionClick(0); in testSuggestionEnterKey() 302 verify(mockQueryTextListener, times(1)).onQueryTextChange("Bo"); in testSuggestionEnterKey() 308 verify(mockSuggestionListener, times(2)).onSuggestionClick(0); in testSuggestionEnterKey()
|
D | RadioButtonTest.java | 23 import static org.mockito.Mockito.times; 135 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testAccessChecked() 140 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testAccessChecked() 145 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, false); in testAccessChecked() 163 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testToggleViaApi() 207 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testToggleViaPerformClick()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | FlashlightTest.java | 156 times(1)).onTorchModeChanged(id, true); in testTurnOnTorchWithStrengthLevel() 159 times(1)).onTorchStrengthLevelChanged(id, maxLevel); in testTurnOnTorchWithStrengthLevel() 161 times(1)).onTorchStrengthLevelChanged(id, minLevel); in testTurnOnTorchWithStrengthLevel() 163 times(1)).onTorchStrengthLevelChanged(id, defaultLevel); in testTurnOnTorchWithStrengthLevel() 166 times(2)).onTorchModeChanged(id, false); in testTurnOnTorchWithStrengthLevel() 197 times(2)).onTorchModeChanged(id, false); in testSetTorchModeOnOff() 199 times(mFlashCameraIdList.size() + 1)). in testSetTorchModeOnOff() 202 times(1)).onTorchModeChanged(id, true); in testSetTorchModeOnOff() 204 times(1)).onTorchModeChanged(anyString(), eq(true)); in testSetTorchModeOnOff() 229 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(mFlashCameraIdList.size())). in testSetTorchModeOnOff() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | AlertDialog_BuilderTest.java | 25 import static org.mockito.Mockito.times; 151 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt() 154 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamInt() 170 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamCharSequence() 173 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamCharSequence() 189 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamCharSequence() 192 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNegativeButtonWithParamCharSequence() 208 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamInt() 211 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNegativeButtonWithParamInt() 227 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEUTRAL); in testSetNeutralButtonWithParamInt() [all …]
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_imu_drift.py | 44 def calc_effective_sampling_rate(times, sensor): argument 54 duration = times[-1] - times[0] 55 num_pts = len(times) 255 x_gyro, y_gyro, z_gyro, times = convert_events_to_arrays( 258 gyro_sampling_rate = calc_effective_sampling_rate(times, 'gyro') 260 plot_raw_gyro_data(x_gyro, y_gyro, z_gyro, times, self.log_path) 262 x_gyro, y_gyro, z_gyro, times, self.log_path) 288 test_duration = times[-1] - times[0]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | Flake.java | 33 public static void repeat(Runnable r, int times) { in repeat() argument 34 for (int i = 0; i < times; i++) { in repeat()
|
/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/translation/src/android/translation/cts/ |
D | UiTranslationManagerTest.java | 224 Mockito.verify(mockCallback, Mockito.times(1)) in testTranslationAfterStartActivityOnSameTask() 229 Mockito.verify(mockCallback, Mockito.times(1)).onPaused(any(String.class)); in testTranslationAfterStartActivityOnSameTask() 233 Mockito.verify(mockCallback, Mockito.times(1)) in testTranslationAfterStartActivityOnSameTask() 238 Mockito.verify(mockCallback, Mockito.times(1)).onFinished(any(String.class)); in testTranslationAfterStartActivityOnSameTask() 413 Mockito.verify(mockCallback, Mockito.times(1)).onShowTranslation( in testUiTranslation_CustomViewTranslationCallback() 420 Mockito.verify(mockCallback, Mockito.times(1)).onHideTranslation( in testUiTranslation_CustomViewTranslationCallback() 427 Mockito.verify(mockCallback, Mockito.times(2)).onShowTranslation( in testUiTranslation_CustomViewTranslationCallback() 442 Mockito.verify(mockCallback, Mockito.times(2)).onShowTranslation(any()); in testUiTranslation_CustomViewTranslationCallback() 443 Mockito.verify(mockCallback, Mockito.times(1)).onHideTranslation(any()); in testUiTranslation_CustomViewTranslationCallback() 472 Mockito.verify(mockCallback, Mockito.times(1)).onShowTranslation( in testUiTranslation_CustomViewTranslationCallback_DetachAndReattach() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManager_ThermalTest.java | 100 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback() 105 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback() 116 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback() 121 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback() 123 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback() 137 .times(0)).onThermalStatusChanged(status); in testThermalStatusCallback() 139 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | GestureDetectorTest.java | 23 import static org.mockito.Mockito.times; 123 verify(mListener, times(1)).onContextClick(mButtonPressPrimaryMotionEvent); in testOnSetContextClickListener() 129 verify(mListener, times(1)).onContextClick(mButtonPressPrimaryMotionEvent); in testOnContextClick() 132 verify(mListener, times(1)).onContextClick(mButtonPressSecondaryMotionEvent); in testOnContextClick() 138 verify(mListener, times(1)).onContextClick(mButtonPressPrimaryMotionEvent); in testOnGenericMotionEvent()
|
D | View_UsingViewsTest.java | 32 import static org.mockito.Mockito.times; 144 verify(okButtonListener, times(1)).onClick(mButtonOk); in testSetProperties() 158 verify(cancelButtonListener, times(1)).onClick(mButtonCancel); in testSetProperties() 312 verify(editListener, times(1)).onFocusChange(mEditText, true); in testSetFocus() 323 verify(okListener, times(1)).onFocusChange(mButtonOk, true); in testSetFocus() 325 verify(editListener, times(1)).onFocusChange(mEditText, false); in testSetFocus() 335 verify(cancelListener, times(1)).onFocusChange(mButtonCancel, true); in testSetFocus() 337 verify(okListener, times(1)).onFocusChange(mButtonOk, false); in testSetFocus() 346 verify(symbolListener, times(1)).onFocusChange(mSymbolTextView, true); in testSetFocus() 348 verify(cancelListener, times(1)).onFocusChange(mButtonCancel, false); in testSetFocus() [all …]
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | ChoreographerTest.java | 25 import static org.mockito.Mockito.times; 96 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 30).times(1)).run(); in testPostCallbackWithoutDelay() 97 verify(addedCallback2, timeout(NOMINAL_VSYNC_PERIOD * 30).times(1)).run(); in testPostCallbackWithoutDelay() 104 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 30).times(2)).run(); in testPostCallbackWithoutDelay() 105 verify(addedCallback2, times(1)).run(); in testPostCallbackWithoutDelay() 115 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 30).times(3)).run(); in testPostCallbackWithoutDelay() 126 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 30).times(4)).run(); in testPostCallbackWithoutDelay() 159 verify(addedCallback, timeout(DELAY_PERIOD * 3).times(1)).run(); in testPostCallbackWithDelay() 169 verify(addedCallback, timeout(DELAY_PERIOD * 3).times(2)).run(); in testPostCallbackWithDelay() 180 verify(addedCallback, timeout(DELAY_PERIOD * 3).times(3)).run(); in testPostCallbackWithDelay() [all …]
|
/cts/tests/tests/companion/common/src/android/companion/cts/common/ |
D | Repeat.kt | 42 annotation class Repeat(val times: Int = 10) in <lambda>() constant in android.companion.cts.common.Repeat 53 override fun evaluate() = repeat(repeat.times) { base.evaluate() } in <lambda>()
|