/cts/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 …]
|
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/ |
D | MetadataReporter.java | 182 try (JsonWriter writer = new JsonWriter(new PrintWriter(metadataFile))) { in tryWriteToFile() argument 183 writer.beginObject(); in tryWriteToFile() 185 writer.name("fingerprint"); in tryWriteToFile() 186 writer.value(buildAttributes.get("cts:build_fingerprint")); in tryWriteToFile() 188 writer.name("product"); in tryWriteToFile() 189 writer.value(buildAttributes.get("cts:build_product")); in tryWriteToFile() 191 writer.name("build_id"); in tryWriteToFile() 192 writer.value(buildAttributes.get("cts:build_id")); in tryWriteToFile() 194 writer.name("suite_version"); in tryWriteToFile() 195 writer.value(compatibilityBuildHelper.getSuiteVersion()); in tryWriteToFile() [all …]
|
/cts/tests/tests/os/src/android/os/health/cts/ |
D | HealthStatsTest.java | 154 final HealthStatsWriter writer = new HealthStatsWriter(CONSTANTS); in testParcelEmpty() local 157 writer.flattenToParcel(parcel); in testParcelEmpty() 180 final HealthStatsWriter writer = new HealthStatsWriter(CONSTANTS); in testParcelling() local 183 writer.addTimer(TIMER_0, 1, 100); in testParcelling() 184 writer.addTimer(TIMER_1, Integer.MAX_VALUE, Long.MAX_VALUE); in testParcelling() 187 writer.addMeasurement(MEASUREMENT_0, 300); in testParcelling() 188 writer.addMeasurement(MEASUREMENT_1, Long.MAX_VALUE); in testParcelling() 193 writer.addStats(STATS_0, "a", writer2); in testParcelling() 196 writer.addTimers(TIMERS_0, "b", new TimerStat(200, 400)); in testParcelling() 199 writer.addMeasurements(MEASUREMENTS_0, "Z", 800); in testParcelling() [all …]
|
/cts/tests/camera/libctscamera2jni/ |
D | dng-validate-jni.cpp | 143 dng_image_writer writer; in dng_validate() local 145 writer.WriteTIFF(host, in dng_validate() 174 dng_image_writer writer; in dng_validate() local 176 writer.WriteTIFF (host, in dng_validate() 197 dng_image_writer writer; in dng_validate() local 200 writer, in dng_validate() 214 dng_image_writer writer; in dng_validate() local 216 writer.WriteTIFF (host, in dng_validate() 294 dng_image_writer writer; in dng_validate() local 295 writer.EncodeJPEGPreview (host, in dng_validate() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVRecordActivity.java | 357 JsonWriter writer = in writeVideoMetaInfo() local 365 writer.beginObject(); in writeVideoMetaInfo() 366 writer.name("fovW").value(fovW); in writeVideoMetaInfo() 367 writer.name("fovH").value(fovH); in writeVideoMetaInfo() 368 writer.name("width").value(width); in writeVideoMetaInfo() 369 writer.name("height").value(height); in writeVideoMetaInfo() 370 writer.name("frameRate").value(frameRate); in writeVideoMetaInfo() 371 writer.endObject(); in writeVideoMetaInfo() 373 writer.close(); in writeVideoMetaInfo() 741 OutputStreamWriter writer = mAccLogWriter; in end() local [all …]
|
D | RVCVXCheckAnalyzer.java | 136 JsonWriter writer = in writeJSONToStream() local 140 writer.beginObject(); in writeJSONToStream() 141 writer.setLenient(true); in writeJSONToStream() 143 writer.name("roll_rms_error").value(roll_rms_error); in writeJSONToStream() 144 writer.name("pitch_rms_error").value(pitch_rms_error); in writeJSONToStream() 145 writer.name("yaw_rms_error").value(yaw_rms_error); in writeJSONToStream() 146 writer.name("roll_max_error").value(roll_max_error); in writeJSONToStream() 147 writer.name("pitch_max_error").value(pitch_max_error); in writeJSONToStream() 148 writer.name("yaw_max_error").value(yaw_max_error); in writeJSONToStream() 149 writer.name("optimal_delta_t").value(optimal_delta_t); in writeJSONToStream() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ImageCaptureActivity.java | 67 FileWriter writer = new FileWriter(file); in writeToClipDataUri() local 68 writer.write(ImageCaptureUriExtraToClipDataTest.TEST_INPUT); in writeToClipDataUri() 69 writer.flush(); in writeToClipDataUri() 70 writer.close(); in writeToClipDataUri()
|
D | ReadableUriExtraToClipDataTest.java | 108 FileWriter writer = new FileWriter(file); in writeTestInputToFile() local 109 writer.write(TEST_INPUT); in writeTestInputToFile() 110 writer.flush(); in writeTestInputToFile() 111 writer.close(); in writeTestInputToFile()
|
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/ |
D | KeyValueBackupRestoreTest.java | 152 PrintWriter writer = new PrintWriter(file); in saveSharedPreferencesValues() local 153 writer.write(TEST_FILE_1_DATA); in saveSharedPreferencesValues() 154 writer.close(); in saveSharedPreferencesValues() 158 writer = new PrintWriter(file); in saveSharedPreferencesValues() 159 writer.write(TEST_FILE_2_DATA); in saveSharedPreferencesValues() 160 writer.close(); in saveSharedPreferencesValues()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MessageQueueTest.java | 240 ParcelFileDescriptor writer = pipe[1]) { in testRegisterFileDescriptorCallbackThrowsWhenCallbackIsNull() 265 ParcelFileDescriptor writer = pipe[1]) { in testUnregisterFileDescriptorCallbackDoesNothingWhenFdNotRegistered() 280 final FileOutputStream writer = new AutoCloseOutputStream(pipe[1])) { in testFileDescriptorCallbacks() 307 writer.write(mBuffer, 0, count); in testFileDescriptorCallbacks() 365 queue.addOnFileDescriptorEventListener(writer.getFD(), in testFileDescriptorCallbacks() 383 queue.removeOnFileDescriptorEventListener(writer.getFD()); in testFileDescriptorCallbacks() 411 final FileOutputStream writer = new AutoCloseOutputStream(pipe[1])) { in testPathologicalFileDescriptorReuseCallbacks1() 430 writer.close(); in testPathologicalFileDescriptorReuseCallbacks1() 493 final FileOutputStream writer = new AutoCloseOutputStream(pipe[1])) { in testPathologicalFileDescriptorReuseCallbacks2() 512 writer.close(); in testPathologicalFileDescriptorReuseCallbacks2() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | ImageWriterTest.java | 116 ImageWriter writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions() local 123 image = writer.dequeueInputImage(); in testAbandonedSurfaceExceptions() 128 writer.close(); in testAbandonedSurfaceExceptions() 135 writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions() 136 image = writer.dequeueInputImage(); in testAbandonedSurfaceExceptions() 142 writer.queueInputImage(image); in testAbandonedSurfaceExceptions() 147 writer.close(); in testAbandonedSurfaceExceptions()
|
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/ |
D | IntentReceiverActivity.java | 175 OutputStreamWriter writer = new OutputStreamWriter( in writeToUri() local 177 writer.write(text); in writeToUri() 178 writer.flush(); in writeToUri() 179 writer.close(); in writeToUri()
|
/cts/libs/vogar-expect/src/vogar/ |
D | Outcome.java | 99 StringWriter writer = new StringWriter(); in throwableToLines() local 100 PrintWriter out = new PrintWriter(writer); in throwableToLines() 102 return Arrays.asList(writer.toString().split("\\n")); in throwableToLines()
|
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/ |
D | SubPlanTest.java | 82 FileWriter writer = new FileWriter(planFile); in testParsing() local 97 writer.write(xml); in testParsing() 98 writer.flush(); in testParsing() 101 writer.close(); in testParsing()
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | MmsTest.java | 217 FileOutputStream writer = null; in writePdu() local 219 writer = new FileOutputStream(file); in writePdu() 220 writer.write(pdu); in writePdu() 225 if (writer != null) { in writePdu() 227 writer.close(); in writePdu()
|
/cts/common/util/tests/src/com/android/compatibility/common/util/ |
D | ResultHandlerTest.java | 219 FileWriter writer = null; in writeResultDir() local 224 writer = new FileWriter(resultFile); in writeResultDir() 252 writer.write(output); in writeResultDir() 253 writer.flush(); in writeResultDir() 255 if (writer != null) { in writeResultDir() 256 writer.close(); in writeResultDir()
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | ContentTest.java | 279 FileWriter writer = new FileWriter(file); in getUriWithTextInFile() local 280 writer.write(text); in getUriWithTextInFile() 281 writer.close(); in getUriWithTextInFile()
|
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/ |
D | CollectorUtil.java | 133 try (BufferedWriter writer = new BufferedWriter(new FileWriter(file))) { in writeFile() argument 134 writer.write(jsonString, 0, jsonString.length()); in writeFile()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | SensorStats.java | 152 try (BufferedWriter writer = new BufferedWriter(fileWriter)) { in logToFile() argument 155 writer.write(String.format("%s: %s\n", key, getValueString(value))); in logToFile()
|
D | TestSensorEventListener.java | 265 try (BufferedWriter writer = new BufferedWriter(fileWriter)) { in logCollectedEventsToFile() argument 266 writer.write(builder.toString()); in logCollectedEventsToFile()
|
/cts/tools/utils/cts/ |
D | tools.py | 103 def WriteDescription(self, writer): argument 106 doc.writexml(writer, addindent=' ', newl='\n', encoding=self.encoding)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/mtp/ |
D | MtpHostTestActivity.java | 213 final StringWriter writer = new StringWriter(); in handleMessage() 215 throwable.printStackTrace(new PrintWriter(writer)); in handleMessage() 216 mErrorText.setText(writer.toString()); in handleMessage()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 197 ImageWriter writer = ImageWriter.newInstance(inputSurface, maxImages); in makeImageWriter() local 198 writer.setOnImageReleasedListener(listener, handler); in makeImageWriter() 199 return writer; in makeImageWriter() 216 public static void closeImageWriter(ImageWriter writer) { in closeImageWriter() argument 217 if (writer != null) { in closeImageWriter() 218 writer.close(); in closeImageWriter() 373 public void onImageReleased(ImageWriter writer) { in onImageReleased() argument 374 if (writer != mWriter) { in onImageReleased() 384 public SimpleImageWriterListener(ImageWriter writer) { in SimpleImageWriterListener() argument 385 if (writer == null) { in SimpleImageWriterListener() [all …]
|
/cts/tests/tests/net/src/android/net/cts/ |
D | LocalSocketTest.java | 245 Callable<Result> writer = () -> { in testSetSoTimeout_writeTimeout() local 257 Result result = runInSeparateThread(allowedTime, writer); in testSetSoTimeout_writeTimeout()
|
/cts/tools/vm-tests-tf/lib/ |
D | junit.jar | META-INF/
META-INF/MANIFEST.MF
junit/
junit/awtui/
junit/ ... |