Home
last modified time | relevance | path

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

12345

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java30 import static org.mockito.Mockito.times;
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.java27 import static org.mockito.Mockito.times;
59 verify(loginFilter, times(1)).onStart(); in testFilter()
60 verify(loginFilter, times(1)).onStop(); 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()
72 verify(loginFilter, times(1)).onStart(); in testFilter()
73 verify(loginFilter, times(1)).onStop(); in testFilter()
74 verify(loginFilter, times(3)).onInvalidCharacter(anyChar()); in testFilter()
79 verify(loginFilter, times(1)).onStart(); in testFilter()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/common/
DStateChangerRuleTest.java24 import static org.mockito.Mockito.times;
67 verify(mStatement, times(1)).evaluate(); in testSetAndRestoreOnSuccess()
68 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testSetAndRestoreOnSuccess()
69 verify(mStateManager, times(1)).set("newValue"); in testSetAndRestoreOnSuccess()
70 verify(mStateManager, times(1)).set("before"); in testSetAndRestoreOnSuccess()
82 verify(mStatement, times(1)).evaluate(); in testDontSetIfSameValueOnSuccess()
94 verify(mStatement, times(1)).evaluate(); in testSetButDontRestoreIfSameValueOnSuccess()
95 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testSetButDontRestoreIfSameValueOnSuccess()
96 verify(mStateManager, times(1)).set("newValue"); in testSetButDontRestoreIfSameValueOnSuccess()
108 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testDontSetButRestoreIfValueChangedOnSuccess()
[all …]
DStateKeeperRuleTest.java24 import static org.mockito.Mockito.times;
65 verify(mStatement, times(1)).evaluate(); in testRestoreOnSuccess()
66 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testRestoreOnSuccess()
67 verify(mStateManager, times(1)).set("before"); in testRestoreOnSuccess()
81 verify(mStateManager, times(2)).get(); // Needed because of verifyNoMoreInteractions() in testRestoreOnFailure()
82 verify(mStateManager, times(1)).set("before"); in testRestoreOnFailure()
93 verify(mStatement, times(1)).evaluate(); in testDoNotRestoreWhenNotChanged()
/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/apps/CameraITS/tests/scene0/
Dtest_gyro_bias.py51 times = numpy.array([(e["time"] - gyro_events[0]["time"])/1000000000.0
59 times = times[N/2::N]
64 pylab.plot(times, xs, 'r', label="x")
65 pylab.plot(times, ys, 'g', label="y")
66 pylab.plot(times, zs, 'b', label="z")
/cts/tests/tests/view/src/android/view/cts/
DChoreographerTest.java24 import static org.mockito.Mockito.times;
84 verify(addedCallback1, timeout(NOMINAL_VSYNC_PERIOD * 10).times(1)).run(); in testPostCallbackWithoutDelay()
85 verify(addedCallback2, timeout(NOMINAL_VSYNC_PERIOD * 10).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.java23 import static org.mockito.Mockito.times;
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()
DView_UsingViewsTest.java32 import static org.mockito.Mockito.times;
129 verify(okButtonListener, times(1)).onClick(mButtonOk); in testSetProperties()
143 verify(cancelButtonListener, times(1)).onClick(mButtonCancel); in testSetProperties()
297 verify(editListener, times(1)).onFocusChange(mEditText, true); in testSetFocus()
308 verify(okListener, times(1)).onFocusChange(mButtonOk, true); in testSetFocus()
310 verify(editListener, times(1)).onFocusChange(mEditText, false); in testSetFocus()
320 verify(cancelListener, times(1)).onFocusChange(mButtonCancel, true); in testSetFocus()
322 verify(okListener, times(1)).onFocusChange(mButtonOk, false); in testSetFocus()
331 verify(symbolListener, times(1)).onFocusChange(mSymbolTextView, true); in testSetFocus()
333 verify(cancelListener, times(1)).onFocusChange(mButtonCancel, false); in testSetFocus()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableWrapperTest.java32 import static org.mockito.Mockito.times;
103 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
107 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
123 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
127 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
143 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
147 verify(cb, 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 …]
DDrawable_ConstantStateTest.java23 import static org.mockito.Mockito.times;
49 verify(mock, times(1)).newDrawable(); in testNewDrawable()
53 verify(mock, times(1)).newDrawable(); in testNewDrawable()
57 verify(mock, times(1)).newDrawable(); in testNewDrawable()
DTransitionDrawableTest.java27 import static org.mockito.Mockito.times;
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()
DScaleDrawableTest.java35 import static org.mockito.Mockito.times;
95 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
99 verify(callback, times(1)).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()
137 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
141 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
161 verify(mockDrawable, times(1)).draw(any()); in testDraw()
166 verify(mockDrawable, times(1)).draw(any()); in testDraw()
194 verify(mockDrawable, times(1)).getPadding(any()); in testGetPadding()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DCheckBoxTest.java22 import static org.mockito.Mockito.times;
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()
DRadioButtonTest.java22 import static org.mockito.Mockito.times;
123 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testAccessChecked()
128 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testAccessChecked()
133 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, false); in testAccessChecked()
151 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testToggleViaApi()
172 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testToggleViaEmulatedTap()
194 verify(mockCheckedChangeListener, times(1)).onCheckedChanged(mRadioButton, true); in testToggleViaPerformClick()
DSearchViewTest.java25 import static org.mockito.Mockito.times;
152 verify(mockDenyCloseListener, times(1)).onClose(); in testDenyIconifyingInconifiableView()
174 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()
DExpandableListViewTest.java30 import static org.mockito.Mockito.times;
166 verify(mockOnItemClickListener, times(1)).onItemClick(eq(mExpandableListView), in testPerformItemClick()
193 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(0); in testExpandGroup()
198 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(0); in testExpandGroup()
203 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(1); in testExpandGroup()
208 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(1); in testExpandGroup()
232 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(0); in testExpandGroupSmooth()
238 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(0); in testExpandGroupSmooth()
244 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(1); in testExpandGroupSmooth()
250 verify(mockOnGroupExpandListener, times(1)).onGroupExpand(1); in testExpandGroupSmooth()
[all …]
DArrayAdapterTest.java24 import static org.mockito.Mockito.times;
108 verify(mockDataSetObserver, times(1)).onChanged(); in testDataChangeEvent()
111 verify(mockDataSetObserver, times(2)).onChanged(); in testDataChangeEvent()
116 verify(mockDataSetObserver, times(3)).onChanged(); in testDataChangeEvent()
120 verify(mockDataSetObserver, times(4)).onChanged(); in testDataChangeEvent()
133 verify(mockDataSetObserver, times(1)).onChanged(); in testDataChangeEvent()
136 verify(mockDataSetObserver, times(2)).onChanged(); in testDataChangeEvent()
139 verify(mockDataSetObserver, times(3)).onChanged(); in testDataChangeEvent()
253 verify(mockDataSetObserver, times(1)).onChanged(); in testInsert()
371 verify(mockDataSetObserver, times(1)).onChanged(); in testRemove()
[all …]
DBaseExpandableListAdapterTest.java24 import static org.mockito.Mockito.times;
92 verify(mockDataSetObserver, times(1)).onChanged(); in testNotifyDataSetChanged()
103 verify(mockDataSetObserver, times(1)).onInvalidated(); in testNotifyDataSetInvalidated()
128 verify(mockDataSetObserver, times(1)).onChanged(); in testDataSetObserver()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionSetTest.java24 import static org.mockito.Mockito.times;
60 verify(fadeListener, times(1)).onTransitionStart(any()); in testTransitionTogether()
61 verify(changeBoundsListener, times(1)).onTransitionStart(any()); in testTransitionTogether()
89 verify(fadeListener, times(1)).onTransitionStart(any()); in testTransitionSequentially()
92 verify(fadeListener, times(0)).onTransitionEnd(any()); in testTransitionSequentially()
93 verify(changeBoundsListener, times(0)).onTransitionStart(any()); in testTransitionSequentially()
100 verify(changeBoundsListener, times(1)).onTransitionStart(any()); in testTransitionSequentially()
DSceneTest.java23 import static org.mockito.Mockito.times;
55 verify(enterCheck, times(1)).run(); in testDynamicConstructor()
63 verify(exitCheck, times(1)).run(); in testDynamicConstructor()
107 verify(enterCheck, times(1)).run(); in constructorTest()
115 verify(exitCheck, times(1)).run(); in constructorTest()
/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java162 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt()
165 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamInt()
182 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamCharSequence()
185 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamCharSequence()
202 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamCharSequence()
205 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNegativeButtonWithParamCharSequence()
222 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamInt()
225 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNegativeButtonWithParamInt()
242 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEUTRAL); in testSetNeutralButtonWithParamInt()
245 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNeutralButtonWithParamInt()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DFlashlightTest.java86 times(2)).onTorchModeChanged(id, false); in testSetTorchModeOnOff()
88 times(mFlashCameraIdList.size() + 1)). in testSetTorchModeOnOff()
91 times(1)).onTorchModeChanged(id, true); in testSetTorchModeOnOff()
93 times(1)).onTorchModeChanged(anyString(), eq(true)); in testSetTorchModeOnOff()
118 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(mFlashCameraIdList.size())). in testSetTorchModeOnOff()
122 times(mFlashCameraIdList.size() * 2)). in testSetTorchModeOnOff()
157 times(NUM_REGISTERS * mFlashCameraIdList.size())). in testTorchCallback()
203 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(1)). in testCameraDeviceOpenAfterTorchOn()
205 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(1)). in testCameraDeviceOpenAfterTorchOn()
219 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(1)). in testCameraDeviceOpenAfterTorchOn()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsMouseUtil.java23 import static org.mockito.Mockito.times;
117 inOrder.verify(listener, times(1)).onHover(eq(view), in verifyEnterMoveExit()
124 inOrder.verify(listener, times(1)).onHover(eq(view), in verifyEnterMoveInternal()
126 inOrder.verify(listener, times(moveCount)).onHover(eq(view), in verifyEnterMoveInternal()
/cts/tests/openglperf2/src/android/opengl2/cts/primitive/
DGLPrimitiveActivity.java133 double[] times = new double[2]; in run() local
142 success = startBenchmark(workload, mNumFrames, times); in run()
148 mFpsValues[i] = mNumFrames * 1000.0f / (times[1] - times[0]); in run()

12345