Home
last modified time | relevance | path

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

12

/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/app/src/android/app/cts/
DAlertDialog_BuilderTest.java161 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt()
164 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamInt()
181 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamCharSequence()
184 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamCharSequence()
201 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamCharSequence()
204 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNegativeButtonWithParamCharSequence()
221 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamInt()
224 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNegativeButtonWithParamInt()
241 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEUTRAL); in testSetNeutralButtonWithParamInt()
244 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNeutralButtonWithParamInt()
[all …]
DAlertDialog_BuilderCursorTest.java180 verify(mOnClickListener, times(1)).onClick(mDialog, 0); in testSetCursor()
201 verify(mOnClickListener, times(1)).onClick(mDialog, 0); in testSetSingleChoiceItemsWithParamCursor()
226 verify(mockMultiChoiceClickListener, times(1)).onClick(mDialog, 0, true); in testSetMultiChoiceItemsWithParamCursor()
238 verify(mockMultiChoiceClickListener, times(1)).onClick(mDialog, 1, true); in testSetMultiChoiceItemsWithParamCursor()
/cts/tests/camera/src/android/hardware/camera2/cts/
DFlashlightTest.java82 times(2)).onTorchModeChanged(id, false); in testSetTorchModeOnOff()
84 times(mFlashCameraIdList.size() + 1)). in testSetTorchModeOnOff()
87 times(1)).onTorchModeChanged(id, true); in testSetTorchModeOnOff()
89 times(1)).onTorchModeChanged(anyString(), eq(true)); in testSetTorchModeOnOff()
114 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(mFlashCameraIdList.size())). in testSetTorchModeOnOff()
118 times(mFlashCameraIdList.size() * 2)). in testSetTorchModeOnOff()
143 times(NUM_REGISTERS * mFlashCameraIdList.size())). in testTorchCallback()
189 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(1)). in testCameraDeviceOpenAfterTorchOn()
191 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(1)). in testCameraDeviceOpenAfterTorchOn()
205 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(1)). in testCameraDeviceOpenAfterTorchOn()
DSurfaceViewPreviewTest.java259 timeout(PREPARE_TIMEOUT_MS).times(1)). in preparePerformanceTestByCamera()
628 timeout(PREPARE_TIMEOUT_MS).times(1)). in surfaceSetTestByCamera()
633 timeout(PREPARE_TIMEOUT_MS).times(1)). in surfaceSetTestByCamera()
DCameraDeviceTest.java764 verify(mSessionMockListener, timeout(PREPARE_TIMEOUT_MS).times(1)) in prepareTestByCamera()
771 verify(mSessionMockListener, timeout(PREPARE_TIMEOUT_MS).times(2)) in prepareTestByCamera()
792 verify(mSessionMockListener, timeout(PREPARE_TIMEOUT_MS).times(1)) in prepareTestByCamera()
866 verify(mSessionMockListener, timeout(PREPARE_TIMEOUT_MS).times(1)) in prepareTestByCamera()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupMenuTest.java139 verify(mBuilder.mOnDismissListener, times(1)).onDismiss(mPopupMenu); in testDismissalViaAPI()
167 verify(mBuilder.mOnDismissListener, times(1)).onDismiss(mPopupMenu); in testNestedDismissalViaAPI()
226 verify(mBuilder.mOnDismissListener, times(1)).onDismiss(mPopupMenu); in testDismissalViaTouch()
240 verify(mBuilder.mOnMenuItemClickListener, times(1)).onMenuItemClick( in testSimpleMenuItemClickViaAPI()
244 verify(mBuilder.mOnDismissListener, times(1)).onDismiss(mPopupMenu); in testSimpleMenuItemClickViaAPI()
263 verify(mBuilder.mOnMenuItemClickListener, times(1)).onMenuItemClick( in testSubMenuClickViaAPI()
271 verify(mBuilder.mOnMenuItemClickListener, times(1)).onMenuItemClick( in testSubMenuClickViaAPI()
277 verify(mBuilder.mOnDismissListener, times(1)).onDismiss(mPopupMenu); in testSubMenuClickViaAPI()
DListPopupWindowTest.java306 verify(mPopupWindowBuilder.mOnDismissListener, times(1)).onDismiss(); in testSetOnDismissListener()
310 verify(mPopupWindowBuilder.mOnDismissListener, times(2)).onDismiss(); in testSetOnDismissListener()
421 verify(mPopupWindowBuilder.mOnDismissListener, times(1)).onDismiss(); in verifyDismissalViaTouch()
426 verify(mockContainerClickListener, times(setupAsModal ? 0 : 1)).onClick(mainContainer); in verifyDismissalViaTouch()
444 verify(mPopupWindowBuilder.mOnItemClickListener, times(1)).onItemClick( in testItemClicks()
448 verify(mPopupWindowBuilder.mOnDismissListener, times(1)).onDismiss(); in testItemClicks()
454 verify(mPopupWindowBuilder.mOnItemClickListener, times(1)).onItemClick( in testItemClicks()
458 verify(mPopupWindowBuilder.mOnDismissListener, times(2)).onDismiss(); in testItemClicks()
526 verify(mPopupWindowBuilder.mOnItemSelectedListener, times(1)).onItemSelected( in testAccessSelection()
541 verify(mPopupWindowBuilder.mOnItemSelectedListener, times(1)).onItemSelected( in testAccessSelection()
[all …]
DToolbarTest.java164 verify(menuItemClickListener, times(1)).onMenuItemClick( in testMenuContent()
168 verify(menuItemClickListener, times(1)).onMenuItemClick( in testMenuContent()
213 verify(menuItemClickListener, times(1)).onMenuItemClick( in testMenuOverflowSubmenu()
381 verify(mockListener, times(1)).onClick(any(View.class)); in testNavigationOnClickListener()
DPopupWindowTest.java50 import static org.mockito.Mockito.times;
719 verify(onDismissListener, times(1)).onDismiss(); in testSetOnDismissListener()
723 verify(onDismissListener, times(2)).onDismiss(); in testSetOnDismissListener()
728 verify(onDismissListener, times(2)).onDismiss(); in testSetOnDismissListener()
792 verify(enterListener, times(1)).onTransitionStart(any(Transition.class)); in testEnterExitTransition()
798 verify(enterListener, times(1)).onTransitionStart(any(Transition.class)); in testEnterExitTransition()
799 verify(exitListener, times(1)).onTransitionStart(any(Transition.class)); in testEnterExitTransition()
800 verify(dismissListener, times(1)).onDismiss(); in testEnterExitTransition()
1033 verify(onTouchListener, times(1)).onTouch(any(View.class), any(MotionEvent.class)); in testSetTouchInterceptor()
1039 verify(onTouchListener, times(2)).onTouch(any(View.class), any(MotionEvent.class)); in testSetTouchInterceptor()
[all …]
DImageViewTest.java434 verify(imageView, times(1)).drawableStateChanged(); in testDrawableStateChanged()
481 verify(mockImageView, times(1)).onSizeChanged(95, 190, 0, 0); in testSetFrame()
486 verify(mockImageView, times(1)).onSizeChanged(anyInt(), anyInt(), anyInt(), anyInt()); in testSetFrame()
525 verify(drawable, times(1)).setTintList(any(ColorStateList.class)); in testImageTintDrawableUpdates()
530 verify(drawable, times(2)).setTintList(any(ColorStateList.class)); in testImageTintDrawableUpdates()
DTabHostTest.java340 verify(mockTabChangeListener, times(1)).onTabChanged(TAG_TAB2); in testSetOnTabChangedListener()
344 verify(mockTabChangeListener, times(1)).onTabChanged(TabHostCtsActivity.INITIAL_TAB_TAG); in testSetOnTabChangedListener()
/cts/tests/openglperf2/src/android/opengl2/cts/primitive/
DGLPrimitiveActivity.java132 double[] times = new double[2]; in run() local
141 success = startBenchmark(workload, mNumFrames, times); in run()
147 mFpsValues[i] = mNumFrames * 1000.0f / (times[1] - times[0]); in run()
/cts/tests/filesystem/src/android/filesystem/cts/
DSequentialRWTest.java61 double[] times = FileUtil.measureIO(numberOfFiles, rdAmount, wrAmount, new MeasureRun() { in testSingleSequentialWrite() local
68 double[] mbps = Stat.calcRatePerSecArray((double)BUFFER_SIZE / 1024 / 1024, times); in testSingleSequentialWrite()
107 double[] times = MeasureTime.measure(NUMBER_READ, new MeasureRun() { in testSingleSequentialRead() local
120 double[] mbps = Stat.calcRatePerSecArray((double)fileSize / 1024 / 1024, times); in testSingleSequentialRead()
DFileUtil.java291 double[] times = FileUtil.measureIO(runsInOneGo, rdAmount, wrAmount, new MeasureRun() { in doRandomReadTest() local
306 times); in doRandomReadTest()
343 double[] times = FileUtil.measureIO(runsInOneGo, rdAmount, wrAmount, new MeasureRun() { in doRandomWriteTest() local
358 times); in doRandomWriteTest()
391 double[] times = MeasureTime.measure(numberRepeatInOneRun, new MeasureRun() { in doSequentialUpdateTest() local
400 times); in doSequentialUpdateTest()
/cts/tests/openglperf2/jni/primitive/
DGLPrimitive.cpp69 double times[] = {start, end}; in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_startBenchmark() local
70 env->SetDoubleArrayRegion(frameTimes, 0, 2, times); in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_startBenchmark()
/cts/hostsidetests/sustainedperf/dhrystone/
Ddhry_1.c48 extern int times ();
117 times (&time_info); in main()
178 times (&time_info); in main()
/cts/tests/tests/os/jni/seccomp-tests/
Dlocal-modifications-strict-args-fd88d16.diff11 +#include <sys/times.h>
40 + clock_t clock = times(&timebuf);
51 + /* times() should never return. */
Dlocal-modifications-android-2.diff20 #include <sys/times.h>
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DCameraEvictionTest.java178 verify(mockAvailCb, times(1)).onCameraAvailable(chosenCamera); in testBasicCamera2ActivityEviction()
185 verify(spyStateCb, timeout(OPEN_TIMEOUT).times(1)).onOpened(any(CameraDevice.class)); in testBasicCamera2ActivityEviction()
224 verify(spyStateCb, times(1)).onDisconnected(any(CameraDevice.class)); in testBasicCamera2ActivityEviction()
227 verify(spyStateCb, times(1)).onOpened(any(CameraDevice.class)); in testBasicCamera2ActivityEviction()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DRippleDrawableTest.java110 verify(cb, times(1)).invalidateDrawable(dr); in testSetColor()
/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_sensor_fusion.py148 times = cam_times + shift*MSEC_TO_NSEC
149 gyro_rots = get_gyro_rotations(gyro_events, times)
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java28 import static org.mockito.Mockito.times;
1058 inOrder.verify(appHostViewListener, times(2)).onUpdateAppWidget( in testPartiallyUpdateAppWidgetViaWidgetId()
1166 firstInOrder.verify(firstAppHostViewListener, times(2)).onUpdateAppWidget( in testPartiallyUpdateAppWidgetViaWidgetIds()
1171 secondInOrder.verify(secondAppHostViewListener, times(2)).onUpdateAppWidget( in testPartiallyUpdateAppWidgetViaWidgetIds()
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
DCtsTestTest.java285 EasyMock.expect(mMockPackageDef.getTests()).andReturn(TEST_IDENTIFIER_LIST).times(2); in setCreateAndRunTestExpectations()

12