/tools/tradefederation/core/test_framework/com/android/tradefed/util/statsd/ |
D | ConfigUtil.java | 61 File configFile = null; in pushStatsConfig() local 63 configFile = File.createTempFile("statsdconfig", ".config"); in pushStatsConfig() 64 Files.write(config.toByteArray(), configFile); in pushStatsConfig() local 65 String remotePath = String.format("/data/local/tmp/%s", configFile.getName()); in pushStatsConfig() 66 if (device.pushFile(configFile, remotePath)) { in pushStatsConfig() 73 FileUtil.deleteFile(configFile); in pushStatsConfig() 84 public static long pushBinaryStatsConfig(ITestDevice device, File configFile) in pushBinaryStatsConfig() argument 86 if (!configFile.exists()) { in pushBinaryStatsConfig() 89 "File not found for statsd config: %s", configFile.getAbsolutePath())); in pushBinaryStatsConfig() 91 String remotePath = String.format("/data/local/tmp/%s", configFile.getName()); in pushBinaryStatsConfig() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | RemoteInvocationExecution.java | 202 File configFile = createRemoteConfig(config, listener, mRemoteTradefedDir); in runTests() local 214 configFile); in runTests() 264 configFile, in runTests() 272 FileUtil.recursiveDelete(configFile); in runTests() 307 File configFile, in runRemote() argument 327 tfCmdBuilder.append(" ./tradefed.sh " + mRemoteTradefedDir + configFile.getName()); in runRemote() 356 currentInvocationListener, configFile, info, options, runUtil, config); in runRemote() 409 File configFile, in isStillRunning() argument 481 stillRunning = psRes.getStdout().contains(configFile.getName()); in isStillRunning() 632 File configFile = FileUtil.createTempFile(config.getName(), ".xml"); in createRemoteConfig() local [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/ |
D | ShardHelperTest.java | 214 File configFile = FileUtil.createTempFile("shard-helper-test", ".xml"); in createTmpConfig() local 216 FileUtil.writeToFile(content, configFile); in createTmpConfig() 217 return configFile; in createTmpConfig() 226 File configFile = createTmpConfig(Configuration.SYSTEM_STATUS_CHECKER_TYPE_NAME, checker); in testCloneStatusChecker() local 233 mConfig.setCommandLine(new String[] {configFile.getAbsolutePath()}); in testCloneStatusChecker() 262 FileUtil.deleteFile(configFile); in testCloneStatusChecker() 272 File configFile = in testCloneMetricCollector() local 280 mConfig.setCommandLine(new String[] {configFile.getAbsolutePath()}); in testCloneMetricCollector() 308 FileUtil.deleteFile(configFile); in testCloneMetricCollector()
|
D | StrictShardHelperTest.java | 104 File configFile = in testShardConfig_internal() local 115 mConfig.setCommandLine(new String[] {configFile.getAbsolutePath()}); in testShardConfig_internal() 134 FileUtil.deleteFile(configFile); in testShardConfig_internal() 475 File configFile = FileUtil.createTempFile("shard-helper-test", ".xml"); in createTmpConfig() local 477 FileUtil.writeToFile(content, configFile); in createTmpConfig() 478 return configFile; in createTmpConfig()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | AcloudConfigParser.java | 61 public static AcloudConfigParser parseConfig(File configFile) { in parseConfig() argument 62 if (configFile == null || !configFile.exists()) { in parseConfig() 63 CLog.e("Could not read acloud config file: %s.", configFile); in parseConfig() 68 String content = FileUtil.readStringFromFile(configFile); in parseConfig()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | BaseTargetPreparerTest.java | 57 File configFile = FileUtil.createTempFile("base-target-prep-config", ".xml"); in testDisabledByDefault() local 58 try (PrintWriter pw = new PrintWriter(configFile)) { in testDisabledByDefault() 60 String value = FileUtil.readStringFromFile(configFile); in testDisabledByDefault() 66 FileUtil.deleteFile(configFile); in testDisabledByDefault()
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterCommandScheduler.java | 663 final File configFile = in execManagedClusterCommand() local 671 CLog.i("executing cluster command: [%s] %s", commandTask.getTaskId(), configFile); in execManagedClusterCommand() 672 CLog.d("configFile: %s", FileUtil.readStringFromFile(configFile)); in execManagedClusterCommand() 676 execCommand(handler, new String[] {configFile.getAbsolutePath()}); in execManagedClusterCommand()
|
D | SubprocessReportingHelper.java | 124 File jar, Manifest manifest, Set<File> classFiles, String configName, File configFile) in createJar() argument 138 new BufferedInputStream(new FileInputStream(configFile))) { in createJar() 140 entry.setTime(configFile.lastModified()); in createJar()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ITestSuiteIntegrationTest.java | 205 for (File configFile : files) { in loadTests() 210 new String[] {configFile.getAbsolutePath()}); in loadTests() 211 testConfig.put(configFile.getName().replace(".config", ""), config); in loadTests()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | SuiteModuleLoader.java | 145 for (File configFile : listConfigFiles) { in loadConfigsFromSpecifiedPaths() 148 configFile.getName(), configFile.getAbsolutePath(), abis, suiteTag)); in loadConfigsFromSpecifiedPaths()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | HostStatsdMetricCollector.java | 107 long pushBinaryStatsConfig(ITestDevice device, File configFile) in pushBinaryStatsConfig() argument 109 return ConfigUtil.pushBinaryStatsConfig(device, configFile); in pushBinaryStatsConfig()
|
/tools/tradefederation/core/src/com/android/tradefed/sandbox/ |
D | TradefedSandbox.java | 181 try (InputStreamSource configFile = in run() argument 183 logger.testLog("sandbox-config", LogDataType.XML, configFile); in run()
|