Home
last modified time | relevance | path

Searched refs:runTest (Results 1 – 25 of 50) sorted by relevance

12

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DAccountCheckHostSideTest.java106 private void runTest(String method) throws Exception { in runTest() method in AccountCheckHostSideTest
129 runTest("testCleanUpNonTestOwner"); in runCleanupNonTestOnlyOwner()
140 runTest("testRemoveAllAccounts"); in removeAllAccounts()
250 runTest("testAddIncompatibleA"); in testAccountCheck()
257 runTest("testAddIncompatibleB"); in testAccountCheck()
264 runTest("testAddIncompatibleC"); in testAccountCheck()
271 runTest("testAddCompatible"); in testAccountCheck()
278 runTest("testAddCompatible"); in testAccountCheck()
279 runTest("testAddCompatible"); in testAccountCheck()
287 runTest("testAddIncompatibleA"); in testAccountCheck()
[all …]
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/
DBatterySaverModeTest.java58 if (!runTest(BroadcastUtils.TestcaseType.BATTERYSAVER_MODE_OFF, false)) { in testAll()
62 runTest(BroadcastUtils.TestcaseType.BATTERYSAVER_MODE_ON, true); in testAll()
67 if (!runTest(BroadcastUtils.TestcaseType.BATTERYSAVER_MODE_ON, true)) { in testAll()
71 runTest(BroadcastUtils.TestcaseType.BATTERYSAVER_MODE_OFF, false); in testAll()
75 … private boolean runTest(BroadcastUtils.TestcaseType test, boolean expectedMode) throws Exception { in runTest() method in BatterySaverModeTest
DAirplaneModeTest.java70 if (!runTest(BroadcastUtils.TestcaseType.AIRPLANE_MODE_ON, AIRPLANE_MODE_IS_ON)) { in testAll()
74 runTest(BroadcastUtils.TestcaseType.AIRPLANE_MODE_OFF, AIRPLANE_MODE_IS_OFF); in testAll()
79 if (!runTest(BroadcastUtils.TestcaseType.AIRPLANE_MODE_OFF, AIRPLANE_MODE_IS_OFF)) { in testAll()
83 runTest(BroadcastUtils.TestcaseType.AIRPLANE_MODE_ON, AIRPLANE_MODE_IS_ON); in testAll()
88 private boolean runTest(BroadcastUtils.TestcaseType test, int expectedMode) throws Exception { in runTest() method in AirplaneModeTest
DZenModeTest.java74 if (!runTest(BroadcastUtils.TestcaseType.ZEN_MODE_ON, ZEN_MODE_IS_ALARMS)) { in testAll()
78 runTest(BroadcastUtils.TestcaseType.ZEN_MODE_OFF, ZEN_MODE_IS_OFF); in testAll()
83 if (!runTest(BroadcastUtils.TestcaseType.ZEN_MODE_OFF, ZEN_MODE_IS_OFF)) { in testAll()
87 runTest(BroadcastUtils.TestcaseType.ZEN_MODE_ON, ZEN_MODE_IS_ALARMS); in testAll()
91 private boolean runTest(BroadcastUtils.TestcaseType test, int expectedMode) throws Exception { in runTest() method in ZenModeTest
/cts/hostsidetests/incident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/
DSimpleDrawFrameTests.java42 void runTest(final int frameCount) throws Throwable { in runTest() method in SimpleDrawFrameTests
43 runTest(new int[frameCount]); in runTest()
46 void runTest(final int[] framesToDraw) throws Throwable { in runTest() method in SimpleDrawFrameTests
68 runTest(10); in testDrawTenFrames()
81 runTest(frames); in testDrawJankyFrames()
92 runTest(frames); in testDrawDaveyFrames()
/cts/hostsidetests/media/src/android/media/session/cts/
DMediaSessionManagerHostTest.java104 runTest("testGetActiveSessions_noMediaSessionFromMediaSessionTestHelper"); in testGetActiveSessions_primaryUser()
108 runTest("testGetActiveSessions_noMediaSessionFromMediaSessionTestHelper"); in testGetActiveSessions_primaryUser()
111 runTest("testGetActiveSessions_hasMediaSessionFromMediaSessionTestHelper"); in testGetActiveSessions_primaryUser()
224 runTest("testGetActiveSessions_noMediaSessionFromMediaSessionTestHelper"); in testGetActiveSessions_noSession2()
231 runTest("testGetActiveSessions_noMediaSessionFromMediaSessionTestHelper"); in testGetActiveSessions_noSession2()
241 runTest("testGetActiveSessions_noMediaSessionFromMediaSessionTestHelper"); in testGetActiveSessions_withSession2()
251 runTest("testGetActiveSessions_hasMediaSessionFromMediaSessionTestHelper"); in testGetActiveSessions_withSession2()
287 private void runTest(String testMethodName) throws DeviceNotAvailableException { in runTest() method in MediaSessionManagerHostTest
/cts/hostsidetests/testharness/src/android/testharness/cts/
DTestHarnessModeDeviceTest.java106 runTest("dirtyDevice"); in testHarnessModeRemovesInstalledAppsAndData()
111 Assert.assertTrue(runTest("testDeviceInTestHarnessMode")); in testHarnessModeRemovesInstalledAppsAndData()
112 Assert.assertTrue(runTest("ensureActivityNotObscuredByKeyboardSetUpScreen")); in testHarnessModeRemovesInstalledAppsAndData()
113 Assert.assertTrue(runTest("testDeviceIsClean")); in testHarnessModeRemovesInstalledAppsAndData()
116 private boolean runTest(String methodName) throws Exception { in runTest() method in TestHarnessModeDeviceTest
/cts/tests/tests/os/src/android/os/cts/
DLooperTest.java79 t.runTest(WAIT_TIME); in testMyLooper()
93 t.runTest(WAIT_TIME); in testIsCurrentThread()
116 t.runTest(WAIT_TIME); in testMyQueue()
128 t.runTest(WAIT_TIME); in testGetQueue()
145 t.runTest(WAIT_TIME); in testPrepare()
160 t.runTest(WAIT_TIME); in testPrepareMainLooper()
214 t.runTest(WAIT_TIME); in testSetMessageLogging()
/cts/tests/tests/jni/src/android/jni/cts/
DJniTestCase.java30 protected void runTest() throws Throwable { in runTest() method in JniTestCase
33 super.runTest(); in runTest()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLocationInWindowTests.java80 runTest(mLayoutParams); in testLocationInWindow_appWindow()
86 runTest(mLayoutParams); in testLocationInWindow_appWindow_fullscreen()
95 runTest(mLayoutParams); in testLocationInWindow_floatingWindow()
101 runTest(mLayoutParams); in testLocationInWindow_appWindow_displayCutoutNever()
107 runTest(mLayoutParams); in testLocationInWindow_appWindow_displayCutoutShortEdges()
110 private void runTest(LayoutParams lp) { in runTest() method in LocationInWindowTests
DLocationOnScreenTests.java92 runTest(mLayoutParams); in testLocationOnDisplay_appWindow()
98 runTest(mLayoutParams); in testLocationOnDisplay_appWindow_fullscreen()
107 runTest(mLayoutParams); in testLocationOnDisplay_floatingWindow()
113 runTest(mLayoutParams); in testLocationOnDisplay_appWindow_displayCutoutNever()
119 runTest(mLayoutParams); in testLocationOnDisplay_appWindow_displayCutoutShortEdges()
122 private void runTest(LayoutParams lp) { in runTest() method in LocationOnScreenTests
/cts/tests/tests/media/src/android/media/cts/
DDecodeAccuracyTest.java188 runTest(new GLSurfaceViewFactory(), new VideoFormat(fileName)); in testGLViewDecodeAccuracy()
194 runTest(new GLSurfaceViewFactory(), getLargerHeightVideoFormat(new VideoFormat(fileName))); in testGLViewLargerHeightDecodeAccuracy()
200 runTest(new GLSurfaceViewFactory(), getLargerWidthVideoFormat(new VideoFormat(fileName))); in testGLViewLargerWidthDecodeAccuracy()
206 runTest(new SurfaceViewFactory(), new VideoFormat(fileName)); in testSurfaceViewVideoDecodeAccuracy()
212 runTest(new SurfaceViewFactory(), getLargerHeightVideoFormat(new VideoFormat(fileName))); in testSurfaceViewLargerHeightDecodeAccuracy()
218 runTest(new SurfaceViewFactory(), getLargerWidthVideoFormat(new VideoFormat(fileName))); in testSurfaceViewLargerWidthDecodeAccuracy()
221 private void runTest(VideoViewFactory videoViewFactory, VideoFormat vf) { in runTest() method in DecodeAccuracyTest
DEncodeDecodeTest.java157 BufferToSurfaceWrapper.runTest(this); in testEncodeDecodeVideoFromBufferToSurfaceQCIF()
161 BufferToSurfaceWrapper.runTest(this); in testEncodeDecodeVideoFromBufferToSurfaceQVGA()
165 BufferToSurfaceWrapper.runTest(this); in testEncodeDecodeVideoFromBufferToSurface720p()
175 BufferToSurfaceWrapper.runTest(this); in testVP8EncodeDecodeVideoFromBufferToSurfaceQCIF()
179 BufferToSurfaceWrapper.runTest(this); in testVP8EncodeDecodeVideoFromBufferToSurfaceQVGA()
183 BufferToSurfaceWrapper.runTest(this); in testVP8EncodeDecodeVideoFromBufferToSurface720p()
207 public static void runTest(EncodeDecodeTest obj) throws Throwable { in runTest() method in EncodeDecodeTest.BufferToSurfaceWrapper
224 SurfaceToSurfaceWrapper.runTest(this, false, false); in testEncodeDecodeVideoFromSurfaceToSurfaceQCIF()
228 SurfaceToSurfaceWrapper.runTest(this, false, false); in testEncodeDecodeVideoFromSurfaceToSurfaceQVGA()
232 SurfaceToSurfaceWrapper.runTest(this, false, false); in testEncodeDecodeVideoFromSurfaceToSurface720p()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DTestCaseThatRunsIfTelephonyIsEnabled.java29 protected void runTest() throws Throwable { in runTest() method in TestCaseThatRunsIfTelephonyIsEnabled
31 super.runTest(); in runTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/
DSyncTestStep.java33 public abstract void runTest(); in runTest() method in SyncTestStep
37 runTest(); in onButtonClickRunTest()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPackageSetInstallerTest.kt86 runTest(removeWhitelistShouldSucceed = false, in notRestricted()
93 runTest(removeWhitelistShouldSucceed = true, in hardRestricted()
100 runTest(removeWhitelistShouldSucceed = null, in immutablySoftRestrictedGranted()
107 runTest(removeWhitelistShouldSucceed = null, in immutablySoftRestrictedRevoked()
113 private fun runTest( in runTest() method in android.appsecurity.cts.PackageSetInstallerTest
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/audio/
DTestStep.java73 public abstract void runTest(); in runTest() method in TestStep
77 runTest(); in onButtonClickRunTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsTestSuite.java62 public void runTest(Test test, TestResult testResult) { in runTest() method in SensorCtsTestSuite
63 mWrappedTestSuite.runTest(test, testResult); in runTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DSignificantMotionTestActivity.java91 return runTest( in testTrigger()
100 return runTest( in testNotTriggerAfterCancel()
112 return runTest( in testVibratorDoesNotTrigger()
125 return runTest( in testInHandDoesNotTrigger()
134 return runTest( in testSittingDoesNotTrigger()
239 private String runTest(
DStepSensorPermissionTestActivity.java101 runTest(false /* permissionGranted */); in testStepEvents()
111 runTest(true /* permissionGranted */); in testStepEvents()
117 private void runTest(boolean permissionGranted) throws InterruptedException { in runTest() method in StepSensorPermissionTestActivity
/cts/hostsidetests/jvmti/attaching/app/src/android/jvmti/
DJvmtiActivity.java46 runTest(); in onCreate()
81 public void runTest() throws Exception { in runTest() method in JvmtiActivity
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapDrawableTest.java96 runTest(preloadedDrawable); in verifyPreloadDensityInner()
114 runTest(scaledDrawable); in verifyPreloadDensityInner()
129 private void runTest(Drawable dr) { in runTest() method in BitmapDrawableTest
/cts/tests/leanbackjank/src/android/leanbackjank/cts/
DCtsDeviceLeanback.java55 protected void runTest() throws Throwable { in runTest() method in CtsDeviceLeanback
59 super.runTest(); in runTest()
/cts/tests/tests/content/HelloWorldApp/src_res_hardening/com/example/helloworld/
DTestActivity.java48 mExecutorService.execute(this::runTest); in onCreate()
51 private void runTest() { in runTest() method in TestActivity
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DTestCompanion.java102 runTest(); in run()
121 protected abstract void runTest() throws Throwable; in runTest() method in TestCompanion

12