Searched refs:StreamUtil (Results 1 – 18 of 18) sorted by relevance
63 StreamUtil.drainAndClose(new InputStreamReader(executeShellCommand(command))); in executeShellCommandSync()67 return StreamUtil.readInputStream(executeShellCommand(command)); in getShellCommandOutput()87 StreamUtil.drainAndClose(new InputStreamReader(backupNow(packageName))); in backupNowSync()91 return StreamUtil.readInputStream(backupNow(packageName)); in getBackupNowOutput()106 StreamUtil.drainAndClose(new InputStreamReader(restore(token, packageName))); in restoreSync()110 return StreamUtil.readInputStream(restore(token, packageName)); in getRestoreOutput()215 StreamUtil.drainAndClose(reader); in assertBackupIsSuccessful()255 StreamUtil.drainAndClose(reader); in assertRestoreIsSuccessful()321 StreamUtil.drainAndClose(reader); in getLineString()
63 StreamUtil.copyStreams(origStream, destStream); in writeToFile()
29 public class StreamUtil { class
107 StreamUtil.drainAndClose(logcat); in numberOfLogcatStringsFound()
123 StreamUtil.copyStreams(inputStream, out); in writeToStream()
20 import com.android.tradefed.util.StreamUtil;133 StreamUtil.close(stream); in createFileFromStr()
27 import com.android.tradefed.util.StreamUtil;74 StreamUtil.close(source); in testCollectDeviceInfo()
26 import com.android.tradefed.util.StreamUtil;83 String content = StreamUtil.getStringFromStream(config); in LoadVendorConfig()
20 import com.android.tradefed.util.StreamUtil;163 return StreamUtil.getStringFromStream(input); in getResourceAsString()
35 import com.android.tradefed.util.StreamUtil;113 JSONObject configJson = new JSONObject(StreamUtil.getStringFromStream(fi)); in createResult()
36 import com.android.tradefed.util.StreamUtil;147 apfeConfigInJson = StreamUtil.getStringFromStream(request.openStream()); in setUp()
43 import com.android.tradefed.util.StreamUtil;501 return StreamUtil.getStringFromStream(conn.getInputStream()); in doPost()
30 import com.android.tradefed.util.StreamUtil;255 String content = StreamUtil.getStringFromStream(hal_release); in creatHalRelaseMap()
46 import com.android.tradefed.util.StreamUtil;549 StreamUtil.close(fis); in saveLog()560 StreamUtil.close(zipResultStream); in saveLog()
36 import com.android.tradefed.util.StreamUtil;162 StreamUtil.close(subPlanInputStream); in getSubPlanByName()
61 import com.android.tradefed.util.StreamUtil;799 StreamUtil.close(fis); in saveLog()811 StreamUtil.close(zipResultStream); in saveLog()
40 import com.android.tradefed.util.StreamUtil;1387 StreamUtil.close(stdOut); in doRunTest()1388 StreamUtil.close(stdErr); in doRunTest()
64 import com.android.tradefed.util.StreamUtil;502 StreamUtil.close(stack); in run()