/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/hostsidetests/appbinding/app/src/com/android/cts/appbinding/app/ |
D | MyService.java | 25 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument 29 writer.println("Crashing..."); in dump() 33 writer.print("Package=[" + getPackageName() + "]"); in dump() 34 writer.println(" Class=[" + this.getClass().getName() + "]"); in dump()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVRecordActivity.java | 396 JsonWriter writer = in writeVideoMetaInfo() local 404 writer.beginObject(); in writeVideoMetaInfo() 405 writer.name("fovW").value(fovW); in writeVideoMetaInfo() 406 writer.name("fovH").value(fovH); in writeVideoMetaInfo() 407 writer.name("width").value(width); in writeVideoMetaInfo() 408 writer.name("height").value(height); in writeVideoMetaInfo() 409 writer.name("frameRate").value(frameRate); in writeVideoMetaInfo() 410 writer.endObject(); in writeVideoMetaInfo() 412 writer.close(); in writeVideoMetaInfo() 806 OutputStreamWriter writer = mAccLogWriter; in end() local [all …]
|
D | RVCVXCheckAnalyzer.java | 137 JsonWriter writer = in writeJSONToStream() local 141 writer.beginObject(); in writeJSONToStream() 142 writer.setLenient(true); in writeJSONToStream() 144 writer.name("roll_rms_error").value(roll_rms_error); in writeJSONToStream() 145 writer.name("pitch_rms_error").value(pitch_rms_error); in writeJSONToStream() 146 writer.name("yaw_rms_error").value(yaw_rms_error); in writeJSONToStream() 147 writer.name("roll_max_error").value(roll_max_error); in writeJSONToStream() 148 writer.name("pitch_max_error").value(pitch_max_error); in writeJSONToStream() 149 writer.name("yaw_max_error").value(yaw_max_error); in writeJSONToStream() 150 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/tests/signature/api-check/src/java/android/signature/cts/api/ |
D | AbstractApiTest.java | 85 StringWriter writer = new StringWriter(); in runWithTestResultObserver() 86 writer.write(e.toString()); in runWithTestResultObserver() 87 writer.write("\n"); in runWithTestResultObserver() 88 e.printStackTrace(new PrintWriter(writer)); in runWithTestResultObserver() 90 writer.toString()); in runWithTestResultObserver()
|
/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 | 138 ImageWriter writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions() local 145 image = writer.dequeueInputImage(); in testAbandonedSurfaceExceptions() 150 writer.close(); in testAbandonedSurfaceExceptions() 157 writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions() 158 image = writer.dequeueInputImage(); in testAbandonedSurfaceExceptions() 164 writer.queueInputImage(image); in testAbandonedSurfaceExceptions() 169 writer.close(); in testAbandonedSurfaceExceptions()
|
D | MultiViewTest.java | 853 ImageWriter writer = null; in testTextureImageWriterReaderOperation() local 919 writer = ImageWriter.newInstance( in testTextureImageWriterReaderOperation() 923 ImageWriterQueuer writerInput = new ImageWriterQueuer(writer); in testTextureImageWriterReaderOperation() 976 if (writer != null) { in testTextureImageWriterReaderOperation() 977 writer.close(); in testTextureImageWriterReaderOperation() 1000 public ImageWriterQueuer(ImageWriter writer) { in ImageWriterQueuer() argument 1001 mWriter = writer; in ImageWriterQueuer()
|
D | RecordingTest.java | 2086 public ImageWriterQueuer(ImageWriter writer) { 2087 mWriter = writer;
|
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/ |
D | KeyValueBackupRestoreTest.java | 234 PrintWriter writer = new PrintWriter(file); in saveSharedPreferencesValues() local 235 writer.write(TEST_FILE_1_DATA); in saveSharedPreferencesValues() 236 writer.close(); in saveSharedPreferencesValues() 240 writer = new PrintWriter(file); in saveSharedPreferencesValues() 241 writer.write(TEST_FILE_2_DATA); in saveSharedPreferencesValues() 242 writer.close(); in saveSharedPreferencesValues()
|
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/ |
D | IntentReceiverActivity.java | 190 OutputStreamWriter writer = new OutputStreamWriter( in writeToUri() local 192 writer.write(text); in writeToUri() 193 writer.flush(); in writeToUri() 194 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/hostsidetests/edi/src/android/edi/cts/ |
D | DynamicPartitionsDeviceInfo.java | 69 try (FileWriter writer = new FileWriter(jsonFile)) { in collectDeviceInfo() argument 70 writer.write(output); in collectDeviceInfo()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | MmsTest.java | 223 FileOutputStream writer = null; in writePdu() local 225 writer = new FileOutputStream(file); in writePdu() 226 writer.write(pdu); in writePdu() 231 if (writer != null) { in writePdu() 233 writer.close(); in writePdu()
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | ContentTest.java | 280 FileWriter writer = new FileWriter(file); in getUriWithTextInFile() local 281 writer.write(text); in getUriWithTextInFile() 282 writer.close(); in getUriWithTextInFile()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | SensorStats.java | 160 try (BufferedWriter writer = new BufferedWriter(fileWriter)) { in logToFile() argument 163 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 | 225 final StringWriter writer = new StringWriter(); in handleMessage() 227 throwable.printStackTrace(new PrintWriter(writer)); in handleMessage() 228 mErrorText.setText(writer.toString()); in handleMessage()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 196 ImageWriter writer = ImageWriter.newInstance(inputSurface, maxImages); in makeImageWriter() local 197 writer.setOnImageReleasedListener(listener, handler); in makeImageWriter() 198 return writer; in makeImageWriter() 226 public static void closeImageWriter(ImageWriter writer) { in closeImageWriter() argument 227 if (writer != null) { in closeImageWriter() 228 writer.close(); in closeImageWriter() 383 public void onImageReleased(ImageWriter writer) { in onImageReleased() argument 384 if (writer != mWriter) { in onImageReleased() 394 public SimpleImageWriterListener(ImageWriter writer) { in SimpleImageWriterListener() argument 395 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/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
D | StagedInstallTest.java | 756 try (BufferedWriter writer = new BufferedWriter(new FileWriter(mTestStateFile))) { in storeSessionId() argument 757 writer.write("" + sessionId); in storeSessionId()
|