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()281 StreamUtil.drainAndClose(reader); in getCurrentTokenOrFail()345 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()
57 StreamUtil.copyStreamToWriter(resourceStream, writer); in saveResourceFile()
20 import com.android.tradefed.util.StreamUtil;163 return StreamUtil.getStringFromStream(input); in getResourceAsString()
33 import com.android.tradefed.util.StreamUtil;113 JSONObject configJson = new JSONObject(StreamUtil.getStringFromStream(fi)); in createResult()
36 import com.android.tradefed.util.StreamUtil;149 apfeConfigInJson = StreamUtil.getStringFromStream(request.openStream()); in setUp()
42 import com.android.tradefed.util.StreamUtil;490 return StreamUtil.getStringFromStream(conn.getInputStream()); in doPost()
43 import com.android.tradefed.util.StreamUtil;482 StreamUtil.close(fis); in saveLog()493 StreamUtil.close(zipResultStream); in saveLog()
31 import com.android.tradefed.util.StreamUtil;275 String content = StreamUtil.getStringFromStream(hal_release); in creatHalRelaseMap()
36 import com.android.tradefed.util.StreamUtil;162 StreamUtil.close(subPlanInputStream); in getSubPlanByName()
60 import com.android.tradefed.util.StreamUtil;758 StreamUtil.close(fis); in saveLog()770 StreamUtil.close(zipResultStream); in saveLog()
64 import com.android.tradefed.util.StreamUtil;500 StreamUtil.close(stack); in run()