Home
last modified time | relevance | path

Searched refs:times (Results 1 – 25 of 120) sorted by relevance

12345

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java30 import static org.mockito.Mockito.times;
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.java27 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/tests/src/com/android/compatibility/common/util/
DStateChangerRuleTest.java24 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 …]
DStateKeeperRuleTest.java24 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()
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DStateChangerRuleTest.java24 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 …]
DStateKeeperRuleTest.java24 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()
DRetryRuleTest.java24 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/
DReferenceRenderer.cpp48 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/
DChoreographerTest.java24 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 …]
DView_UsingViewsTest.java32 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 …]
DGestureDetectorTest.java23 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()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableWrapperTest.java32 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 …]
DScaleDrawableTest.java35 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 …]
DTransitionDrawableTest.java27 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()
DDrawable_ConstantStateTest.java23 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/content/src/android/content/om/cts/
DOverlayManagerTest.java22 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/widget/src/android/widget/cts/
DCheckBoxTest.java22 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()
DRadioButtonTest.java22 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()
DExpandableListViewTest.java30 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 …]
DSearchViewTest.java25 import static org.mockito.Mockito.times;
151 verify(mockDenyCloseListener, times(1)).onClose(); in testDenyIconifyingInconifiableView()
173 verify(mockAllowCloseListener, times(1)).onClose(); in testAllowIconifyingInconifiableView()
212 verify(mockQueryTextListener, times(1)).onQueryTextChange("alpha"); in testAccessQuery()
219 verify(mockQueryTextListener, times(1)).onQueryTextChange("beta"); in testAccessQuery()
220 verify(mockQueryTextListener, times(1)).onQueryTextSubmit("beta"); in testAccessQuery()
226 verify(mockQueryTextListener, times(1)).onQueryTextChange("gamma"); in testAccessQuery()
227 verify(mockQueryTextListener, times(1)).onQueryTextSubmit("gamma"); in testAccessQuery()
DArrayAdapterTest.java24 import static org.mockito.Mockito.times;
109 verify(mockDataSetObserver, times(1)).onChanged(); in testDataChangeEvent()
112 verify(mockDataSetObserver, times(2)).onChanged(); in testDataChangeEvent()
117 verify(mockDataSetObserver, times(3)).onChanged(); in testDataChangeEvent()
121 verify(mockDataSetObserver, times(4)).onChanged(); in testDataChangeEvent()
134 verify(mockDataSetObserver, times(1)).onChanged(); in testDataChangeEvent()
137 verify(mockDataSetObserver, times(2)).onChanged(); in testDataChangeEvent()
140 verify(mockDataSetObserver, times(3)).onChanged(); in testDataChangeEvent()
254 verify(mockDataSetObserver, times(1)).onChanged(); in testInsert()
372 verify(mockDataSetObserver, times(1)).onChanged(); in testRemove()
[all …]
/cts/apps/CameraITS/tests/scene0/
Dtest_gyro_bias.py49 times = numpy.array([(e['time'] - gyro_events[0]['time'])/1000000000.0
57 times = times[N/2::N]
62 pylab.plot(times, xs, 'r', label='x')
63 pylab.plot(times, ys, 'g', label='y')
64 pylab.plot(times, zs, 'b', label='z')
/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java184 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt()
187 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamInt()
206 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamCharSequence()
209 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamCharSequence()
228 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamCharSequence()
231 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNegativeButtonWithParamCharSequence()
250 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamInt()
253 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNegativeButtonWithParamInt()
272 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEUTRAL); in testSetNeutralButtonWithParamInt()
275 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNeutralButtonWithParamInt()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DPowerManager_ThermalTest.java85 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback()
90 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback()
103 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback()
105 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback()
119 .times(0)).onThermalStatusChanged(status); in testThermalStatusCallback()
121 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback()
/cts/tests/camera/src/android/hardware/camera2/cts/
DFlashlightTest.java84 times(2)).onTorchModeChanged(id, false); in testSetTorchModeOnOff()
86 times(mFlashCameraIdList.size() + 1)). in testSetTorchModeOnOff()
89 times(1)).onTorchModeChanged(id, true); in testSetTorchModeOnOff()
91 times(1)).onTorchModeChanged(anyString(), eq(true)); in testSetTorchModeOnOff()
116 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(mFlashCameraIdList.size())). in testSetTorchModeOnOff()
120 times(mFlashCameraIdList.size() * 2)). in testSetTorchModeOnOff()
155 times(NUM_REGISTERS * mFlashCameraIdList.size())). in testTorchCallback()
201 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(1)). in testCameraDeviceOpenAfterTorchOn()
203 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(1)). in testCameraDeviceOpenAfterTorchOn()
217 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(1)). in testCameraDeviceOpenAfterTorchOn()

12345