Home
last modified time | relevance | path

Searched refs:SystemUtil (Results 1 – 25 of 28) sorted by relevance

12

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DSystemUtilTest.java22 import com.android.tradefed.util.SystemUtil.EnvVariable;
50 SystemUtil.singleton = Mockito.mock(SystemUtil.class); in testGetExternalTestCasesDirs()
52 SystemUtil.singleton.getEnv( in testGetExternalTestCasesDirs()
55 Mockito.when(SystemUtil.singleton.getEnv(EnvVariable.ANDROID_HOST_OUT_TESTCASES.name())) in testGetExternalTestCasesDirs()
58 List<File> testCasesDirs = new ArrayList<File>(SystemUtil.getExternalTestCasesDirs()); in testGetExternalTestCasesDirs()
75 SystemUtil.singleton = Mockito.mock(SystemUtil.class); in testGetExternalTestCasesDirsNoDir()
76 Mockito.when(SystemUtil.singleton.getEnv(EnvVariable.ANDROID_TARGET_OUT_TESTCASES.name())) in testGetExternalTestCasesDirsNoDir()
78 Mockito.when(SystemUtil.singleton.getEnv(EnvVariable.ANDROID_HOST_OUT_TESTCASES.name())) in testGetExternalTestCasesDirsNoDir()
80 List<File> testCasesDirs = new ArrayList<File>(SystemUtil.getExternalTestCasesDirs()); in testGetExternalTestCasesDirsNoDir()
87 assertNotNull(SystemUtil.getRunningJavaBinaryPath()); in testGetRunningJavaBinaryPath()
DDeviceActionUtilTest.java79 SystemUtil.getRunningJavaBinaryPath()), in setUp()
96 SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(), in execute_installMainline()
115 SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(), in execute_installMainline()
131 SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(), in execute_reset()
150 SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(), in execute_reset()
/tools/tradefederation/core/src/com/android/tradefed/device/
DLogcatReceiver.java20 import com.android.tradefed.util.SystemUtil;
101 if (SystemUtil.isLocalMode() || device.getApiLevel() >= 24) { in getDefaultLogcatCmd()
DManagedTestDeviceFactory.java29 import com.android.tradefed.util.SystemUtil;
179 return SystemUtil.isRemoteEnvironment(); in isRemoteEnvironment()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSystemUtil.java38 public class SystemUtil { class
40 @VisibleForTesting static SystemUtil singleton = new SystemUtil();
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterCommandLauncherTest.java37 import com.android.tradefed.util.SystemUtil;
164 SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(), in testRun()
231 SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(), in testRun_withTFDeviceCount()
307 SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(), in testRun_withSetupScripts()
367 Mockito.eq(SystemUtil.getRunningJavaBinaryPath().getAbsolutePath()), in testRun_withUseSubprocessReporting()
482 SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(), in testRun_excludeFileInJavaClasspath()
/tools/tradefederation/core/src/com/android/tradefed/build/
DBootstrapBuildProvider.java34 import com.android.tradefed.util.SystemUtil;
120 if (!(device.getIDevice() instanceof StubDevice) && !SystemUtil.isLocalMode()) { in getBuild()
DLocalDeviceBuildProvider.java25 import com.android.tradefed.util.SystemUtil;
53 private File mBuildDir = SystemUtil.getProductOutputDir();
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxConfigUtil.java32 import com.android.tradefed.util.SystemUtil;
101 mCmdArgs.add(SystemUtil.getRunningJavaBinaryPath(skipJavaCheck).getAbsolutePath()); in dumpConfigForVersion()
DTradefedSandbox.java64 import com.android.tradefed.util.SystemUtil;
114 return SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(); in getJava()
/tools/tradefederation/core/src/com/android/tradefed/result/skipped/
DArtifactsAnalyzer.java33 import com.android.tradefed.util.SystemUtil;
68 if (SystemUtil.isLocalMode()) { in analyzeArtifacts()
/tools/tradefederation/core/src/com/android/tradefed/result/
DLogSaverResultForwarder.java28 import com.android.tradefed.util.SystemUtil;
119 if (SystemUtil.isRemoteEnvironment()) { in reportEndHostLog()
/tools/tradefederation/core/src/com/android/tradefed/service/
DTradefedFeatureServer.java31 import com.android.tradefed.util.SystemUtil;
93 if (SystemUtil.isLocalMode()) { in start()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandRunner.java34 import com.android.tradefed.util.SystemUtil;
206 if (SystemUtil.isLocalMode()) { in main()
/tools/tradefederation/core/test_framework/com/android/tradefed/util/
DDeviceActionUtil.java112 SystemUtil.getRunningJavaBinaryPath()); in create()
151 SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(), in execute()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DSubprocessTfLauncher.java53 import com.android.tradefed.util.SystemUtil;
536 return SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(); in getJava()
DTfTestLauncher.java31 import com.android.tradefed.util.SystemUtil.EnvVariable;
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationExecution.java92 import com.android.tradefed.util.SystemUtil;
93 import com.android.tradefed.util.SystemUtil.EnvVariable;
1579 String path = SystemUtil.ENV_VARIABLE_PATHS_IN_TESTS_DIR.get(var);
1654 if (SystemUtil.isLocalMode()) {
1695 return SystemUtil.getExternalTestCasesDir(envVar);
1706 if (SystemUtil.isLocalMode()) {
DRemoteInvocationExecution.java70 import com.android.tradefed.util.SystemUtil;
389 tfCmdBuilder.append(" " + SystemUtil.REMOTE_VM_VARIABLE + "=1"); in runRemote()
DTestInvocation.java111 import com.android.tradefed.util.SystemUtil;
386 if (exception == null && !SystemUtil.isLocalMode()) { in performInvocation()
452 if (SystemUtil.isLocalMode()) { in performInvocation()
805 if (SystemUtil.isLocalMode()) { in logDeviceBatteryLevel()
/tools/tradefederation/core/test_observatory/com/android/tradefed/observatory/
DTestDiscoveryInvoker.java38 import com.android.tradefed.util.SystemUtil;
102 return SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(); in getJava()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DTfTestLauncherTest.java42 import com.android.tradefed.util.SystemUtil.EnvVariable;
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DIsolatedHostTest.java50 import com.android.tradefed.util.SystemUtil;
340 cmdArgs.add(SystemUtil.getRunningJavaBinaryPath().getAbsolutePath()); in compileCommandArgs()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleDefinition.java94 import com.android.tradefed.util.SystemUtil;
1142 if (SystemUtil.isLocalMode()) { in checkEndModuleDevice()
1182 if (SystemUtil.isLocalMode()) { in recoverDevice()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationFactory.java33 import com.android.tradefed.util.SystemUtil;
219 return SystemUtil.getExternalTestCasesDirs(); in getExternalTestCasesDirs()

12