/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/apps/CameraITS/tests/scene0/ |
D | test_gyro_bias.py | 51 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/ |
D | AlertDialog_BuilderTest.java | 161 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 …]
|
D | AlertDialog_BuilderCursorTest.java | 180 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/ |
D | FlashlightTest.java | 82 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()
|
D | SurfaceViewPreviewTest.java | 259 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()
|
D | CameraDeviceTest.java | 764 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/ |
D | PopupMenuTest.java | 139 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()
|
D | ListPopupWindowTest.java | 306 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 …]
|
D | ToolbarTest.java | 164 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()
|
D | PopupWindowTest.java | 50 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 …]
|
D | ImageViewTest.java | 434 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()
|
D | TabHostTest.java | 340 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/ |
D | GLPrimitiveActivity.java | 132 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/ |
D | SequentialRWTest.java | 61 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()
|
D | FileUtil.java | 291 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/ |
D | GLPrimitive.cpp | 69 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/ |
D | dhry_1.c | 48 extern int times (); 117 times (&time_info); in main() 178 times (&time_info); in main()
|
/cts/tests/tests/os/jni/seccomp-tests/ |
D | local-modifications-strict-args-fd88d16.diff | 11 +#include <sys/times.h> 40 + clock_t clock = times(&timebuf); 51 + /* times() should never return. */
|
D | local-modifications-android-2.diff | 20 #include <sys/times.h>
|
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/ |
D | CameraEvictionTest.java | 178 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/ |
D | RippleDrawableTest.java | 110 verify(cb, times(1)).invalidateDrawable(dr); in testSetColor()
|
/cts/apps/CameraITS/tests/sensor_fusion/ |
D | test_sensor_fusion.py | 148 times = cam_times + shift*MSEC_TO_NSEC 149 gyro_rots = get_gyro_rotations(gyro_events, times)
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 28 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/ |
D | CtsTestTest.java | 285 EasyMock.expect(mMockPackageDef.getTests()).andReturn(TEST_IDENTIFIER_LIST).times(2); in setCreateAndRunTestExpectations()
|