Searched refs:writer (Results 1 – 8 of 8) sorted by relevance
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | MultipartForm.java | 131 PrintWriter writer = new PrintWriter(new OutputStreamWriter(byteOutput)); in getContentBody() local 132 writer.println(); in getContentBody() 135 writeFormField(writer, formValue.getKey(), formValue.getValue()); in getContentBody() 139 writeFormFileHeader(writer, mName, mFileName); in getContentBody() 140 writer.flush(); // Must flush here before writing to the byte stream! in getContentBody() 142 writer.println(); in getContentBody() 144 writer.append("--").append(FORM_DATA_BOUNDARY).println("--"); in getContentBody() 145 writer.flush(); in getContentBody() 146 writer.close(); in getContentBody() 150 private void writeFormField(PrintWriter writer, String name, String value) { in writeFormField() argument [all …]
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | PinnerHelper.java | 117 FileWriter writer = new FileWriter(new File(mTestOutputFile), true); in getMetrics() local 118 storeToFile(mTestOutputFile, pinnerOutput, writer); in getMetrics() 119 writer.close(); in getMetrics() 145 private void storeToFile(String fileName, String pinnerOutput, FileWriter writer) in storeToFile() argument 148 writer.write("Pinned files details."); in storeToFile() 149 writer.write(pinnerOutput); in storeToFile() 150 writer.write('\n'); in storeToFile()
|
D | ShowmapSnapshotHelper.java | 142 FileWriter writer = new FileWriter(new File(mTestOutputFile), true); in getMetrics() local 154 storeToFile(mTestOutputFile, processName, pid, showmapOutput, writer); in getMetrics() 177 writer.close(); in getMetrics() 316 FileWriter writer) throws RuntimeException { in storeToFile() argument 318 writer.write(String.format(">>> %s (%d) <<<\n", processName, pid)); in storeToFile() 319 writer.write(showmapOutput); in storeToFile() 320 writer.write('\n'); in storeToFile()
|
D | FreeMemHelper.java | 235 BufferedWriter writer = new BufferedWriter(new FileWriter(dropCacheScriptPath)); in executeDropCachesImpl() local 236 writer.write(str); in executeDropCachesImpl() 237 writer.close(); in executeDropCachesImpl()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | DropCachesRule.java | 65 BufferedWriter writer = new BufferedWriter(new FileWriter(mDropCacheScriptPath)); in executeDropCachesImpl() local 66 writer.write(str); in executeDropCachesImpl() 67 writer.close(); in executeDropCachesImpl()
|
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/ |
D | BinderCollectionHelperTest.java | 117 BufferedWriter writer = new BufferedWriter(new FileWriter(temp)); in getBufferedReader() local 118 writer.write(fakeTrace); in getBufferedReader() 119 writer.close(); in getBufferedReader()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | ScheduledRunCollectionListener.java | 102 try (BufferedWriter writer = new BufferedWriter(new FileWriter(mDestFile, true))) { in write() argument 104 writer.append(TIME_SERIES_HEADER); in write() 105 writer.append("\n"); in write() 110 writer.append( in write() 112 writer.append("\n"); in write()
|
/platform_testing/libraries/junitxml/src/com/android/junitxml/ |
D | XmlRunListener.java | 142 Writer writer = null; in endTestSuite() local 144 writer = new BufferedWriter(new OutputStreamWriter(mOutputStream, "UTF8")); in endTestSuite() 149 javax.xml.transform.Result output = new StreamResult(writer); in endTestSuite() 157 if (writer != null) { in endTestSuite() 159 writer.flush(); in endTestSuite() 164 writer.close(); in endTestSuite()
|