Home
last modified time | relevance | path

Searched refs:IRunUtil (Results 1 – 25 of 80) sorted by relevance

1234

/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DSdkBuildInfoTest.java20 import com.android.tradefed.util.IRunUtil;
33 private IRunUtil mMockRunUtil;
38 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
44 IRunUtil getRunUtil() { in setUp()
/tools/tradefederation/core/src/com/android/tradefed/util/
DIRunUtil.java29 public interface IRunUtil { interface
204 public CommandStatus runTimed(long timeout, IRunUtil.IRunnableResult runnable, in runTimed()
217 IRunUtil.IRunnableResult runnable); in runTimedRetry()
229 final long maxTime, final IRunUtil.IRunnableResult runnable); in runFixedTimedRetry()
246 final long maxPollInterval, final long maxTime, final IRunUtil.IRunnableResult in runEscalatingTimedRetry()
DRunUtil.java43 public class RunUtil implements IRunUtil {
52 private static IRunUtil sDefaultInstance = null;
81 public static IRunUtil getDefault() { in getDefault()
151 IRunUtil.IRunnableResult osRunnable = in runTimedCmd()
163 IRunUtil.IRunnableResult createRunnableResult( in createRunnableResult()
237 IRunUtil.IRunnableResult osRunnable = new RunnableResult(result, input, in runTimedCmdWithInput()
250 IRunUtil.IRunnableResult osRunnable = new RunnableResult(result, null, in runTimedCmdSilently()
318 public CommandStatus runTimed(long timeout, IRunUtil.IRunnableResult runnable, in runTimed()
369 IRunUtil.IRunnableResult runnable) { in runTimedRetry()
385 final long maxTime, final IRunUtil.IRunnableResult runnable) { in runFixedTimedRetry()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DPythonUnitTestRunnerTest.java28 import com.android.tradefed.util.IRunUtil;
164 private IRunUtil getMockRunUtil(UnitTestResult testResult) { in getMockRunUtil()
166 IRunUtil mockRunUtil = EasyMock.createMock(IRunUtil.class); in getMockRunUtil()
209 IRunUtil mockRunUtil = getMockRunUtil(UnitTestResult.PASS); in testRunPass()
219 IRunUtil mockRunUtil = getMockRunUtil(UnitTestResult.FAIL); in testRunFail()
229 IRunUtil mockRunUtil = getMockRunUtil(UnitTestResult.EXECUTION_FAIL); in testRunExecutionFail()
243 IRunUtil mockRunUtil = getMockRunUtil(UnitTestResult.TIMEOUT); in testRunTimeout()
DDeviceBatteryLevelCheckerTest.java23 import com.android.tradefed.util.IRunUtil;
47 IRunUtil getRunUtil() { in setUp()
48 return EasyMock.createNiceMock(IRunUtil.class); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRunUtilTest.java21 import com.android.tradefed.util.IRunUtil.EnvPriority;
22 import com.android.tradefed.util.IRunUtil.IRunnableResult;
100 IRunUtil.IRunnableResult mockRunnable = EasyMock.createStrictMock( in testRunTimed()
101 IRunUtil.IRunnableResult.class); in testRunTimed()
112 IRunUtil.IRunnableResult mockRunnable = EasyMock.createStrictMock( in testRunTimed_failed()
113 IRunUtil.IRunnableResult.class); in testRunTimed_failed()
124 IRunUtil.IRunnableResult mockRunnable = EasyMock.createStrictMock( in testRunTimed_exception()
125 IRunUtil.IRunnableResult.class); in testRunTimed_exception()
214 public CommandStatus runTimed(long timeout, IRunUtil.IRunnableResult runnable, in testRunEscalatingTimedRetry_timeout()
225 IRunUtil.IRunnableResult mockRunnable = EasyMock.createStrictMock( in testRunEscalatingTimedRetry_timeout()
[all …]
DRunUtilFuncTest.java19 import com.android.tradefed.util.IRunUtil.IRunnableResult;
38 private abstract class MyRunnable implements IRunUtil.IRunnableResult {
73 IRunUtil.IRunnableResult mockRunnable = new IRunUtil.IRunnableResult() { in testRunTimedRetry()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DPythonUnitTestRunner.java29 import com.android.tradefed.util.IRunUtil;
70 private IRunUtil mRunUtil;
76 protected IRunUtil getRunUtil() { in getRunUtil()
89 IRunUtil runUtil = getRunUtil(); in run()
115 IRunUtil runUtil = RunUtil.getDefault(); in getPythonBinary()
189 void doRunTest(ITestInvocationListener listener, IRunUtil runUtil, String pyModule) { in doRunTest()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxConfigUtil.java25 import com.android.tradefed.util.IRunUtil;
26 import com.android.tradefed.util.IRunUtil.EnvPriority;
55 String classpath, IRunUtil runUtil, String[] args, DumpCmd dump, File globalConfig) in dumpConfigForVersion()
107 File rootDir, IRunUtil runUtil, String[] args, DumpCmd dump, File globalConfig) in dumpConfigForVersion()
DISandbox.java24 import com.android.tradefed.util.IRunUtil;
93 String[] args, IKeyStoreClient keyStoreClient, IRunUtil runUtil, File globalConfig); in createThinLauncherConfig()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DReconnectingRecoveryTest.java19 import com.android.tradefed.util.IRunUtil;
33 private IRunUtil mMockRunUtil;
39 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
42 protected IRunUtil getRunUtil() { in setUp()
DAndroidDebugBridgeWrapperTest.java22 import com.android.tradefed.util.IRunUtil;
35 private IRunUtil mMockRunUtil;
39 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
43 IRunUtil getRunUtil() { in setUp()
DManagedTestDeviceFactoryTest.java20 import com.android.tradefed.util.IRunUtil;
36 IRunUtil mMockRunUtil;
44 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
138 protected IRunUtil getRunUtil() { in testCheckFramework_emptyReturns()
DRemoteAndroidDeviceTest.java21 import com.android.tradefed.util.IRunUtil;
35 private IRunUtil mMockRunUtil;
49 protected IRunUtil getRunUtil() { in getRunUtil()
65 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/device/
DFastbootHelper.java22 import com.android.tradefed.util.IRunUtil;
37 private IRunUtil mRunUtil;
45 public FastbootHelper(final IRunUtil runUtil, final String fastbootPath) { in FastbootHelper()
DReconnectingRecovery.java20 import com.android.tradefed.util.IRunUtil;
96 IRunUtil getRunUtil() { in getRunUtil()
DIDeviceManager.java21 import com.android.tradefed.util.IRunUtil;
102 void launchEmulator(ITestDevice device, long bootTimeout, IRunUtil runUtil, in launchEmulator()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DRunHostCommandTargetPreparerTest.java23 import com.android.tradefed.util.IRunUtil;
48 private IRunUtil mRunUtil;
53 mRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
58 protected IRunUtil getRunUtil() { in setUp()
DPythonVirtualenvPreparerTest.java31 import com.android.tradefed.util.IRunUtil;
39 private IRunUtil mMockRunUtil;
44 mMockRunUtil = createNiceMock(IRunUtil.class); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DSandboxConfigUtilTest.java28 import com.android.tradefed.util.IRunUtil;
43 private IRunUtil mMockRunUtil;
48 mMockRunUtil = Mockito.mock(IRunUtil.class); in setUp()
DTradefedSandboxTest.java35 import com.android.tradefed.util.IRunUtil;
36 import com.android.tradefed.util.IRunUtil.EnvPriority;
58 private IRunUtil mMockRunUtil;
62 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
66 IRunUtil createRunUtil() { in setUp()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DTimeWaster.java24 import com.android.tradefed.util.IRunUtil;
61 IRunUtil getRunUtil() { in getRunUtil()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DSandboxConfigurationFactoryTest.java31 import com.android.tradefed.util.IRunUtil;
32 import com.android.tradefed.util.IRunUtil.EnvPriority;
53 private IRunUtil mMockRunUtil;
60 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java29 import com.android.tradefed.util.IRunUtil;
43 private IRunUtil mMockRunUtil;
50 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
57 IRunUtil getRunUtil() { in setUp()
/tools/tradefederation/core/src/com/android/tradefed/util/hostmetric/
DAbstractHostMonitor.java21 import com.android.tradefed.util.IRunUtil;
105 IRunUtil getRunUtil() { in getRunUtil()

1234