Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 25 of 46) sorted by relevance

12

/cts/tests/camera/src/android/hardware/camera2/cts/
DImageWriterTest.java158 ImageWriter writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions() local
165 image = writer.dequeueInputImage(); in testAbandonedSurfaceExceptions()
170 writer.close(); in testAbandonedSurfaceExceptions()
177 writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions()
178 image = writer.dequeueInputImage(); in testAbandonedSurfaceExceptions()
184 writer.queueInputImage(image); in testAbandonedSurfaceExceptions()
189 writer.close(); in testAbandonedSurfaceExceptions()
200 ImageWriter writer = ImageWriter.newInstance(reader.getSurface(), 1 /*maxImages*/); in testWriterReaderBlobFormats() local
201 writer.close(); in testWriterReaderBlobFormats()
220 ImageWriter writer = ImageWriter.newInstance(surface, MAX_NUM_IMAGES, format); in testWriterFormatOverride() local
[all …]
/cts/hostsidetests/appbinding/app/src/com/android/cts/appbinding/app/
DMyService.java25 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/tests/tests/os/src/android/os/health/cts/
DHealthStatsTest.java157 final HealthStatsWriter writer = new HealthStatsWriter(CONSTANTS); in testParcelEmpty() local
160 writer.flattenToParcel(parcel); in testParcelEmpty()
183 final HealthStatsWriter writer = new HealthStatsWriter(CONSTANTS); in testParcelling() local
186 writer.addTimer(TIMER_0, 1, 100); in testParcelling()
187 writer.addTimer(TIMER_1, Integer.MAX_VALUE, Long.MAX_VALUE); in testParcelling()
190 writer.addMeasurement(MEASUREMENT_0, 300); in testParcelling()
191 writer.addMeasurement(MEASUREMENT_1, Long.MAX_VALUE); in testParcelling()
196 writer.addStats(STATS_0, "a", writer2); in testParcelling()
199 writer.addTimers(TIMERS_0, "b", new TimerStat(200, 400)); in testParcelling()
202 writer.addMeasurements(MEASUREMENTS_0, "Z", 800); in testParcelling()
[all …]
/cts/hostsidetests/multiuser/dpc/src/com/android/cts/multiuser/dpc/
DDpcService.java38 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
44 writer.println("pong"); in dump()
49 new DpcShellCommand(this, writer, cmdArgs).run(); in dump()
53 super.dump(fd, writer, args); in dump()
DDpcShellCommand.java36 DpcShellCommand(Context context, PrintWriter writer, String[] args) { in DpcShellCommand() argument
41 mWriter = writer; in DpcShellCommand()
/cts/tests/camera/libctscamera2jni/
Ddng-validate-jni.cpp143 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/
DRVCVRecordActivity.java395 JsonWriter writer = in writeVideoMetaInfo() local
403 writer.beginObject(); in writeVideoMetaInfo()
404 writer.name("fovW").value(fovW); in writeVideoMetaInfo()
405 writer.name("fovH").value(fovH); in writeVideoMetaInfo()
406 writer.name("width").value(width); in writeVideoMetaInfo()
407 writer.name("height").value(height); in writeVideoMetaInfo()
408 writer.name("frameRate").value(frameRate); in writeVideoMetaInfo()
409 writer.endObject(); in writeVideoMetaInfo()
411 writer.close(); in writeVideoMetaInfo()
820 OutputStreamWriter writer = mAccLogWriter; in end() local
[all …]
DRVCVXCheckAnalyzer.java140 JsonWriter writer = in writeJSONToStream() local
144 writer.beginObject(); in writeJSONToStream()
145 writer.setLenient(true); in writeJSONToStream()
147 writer.name("roll_rms_error").value(roll_rms_error); in writeJSONToStream()
148 writer.name("pitch_rms_error").value(pitch_rms_error); in writeJSONToStream()
149 writer.name("yaw_rms_error").value(yaw_rms_error); in writeJSONToStream()
150 writer.name("roll_max_error").value(roll_max_error); in writeJSONToStream()
151 writer.name("pitch_max_error").value(pitch_max_error); in writeJSONToStream()
152 writer.name("yaw_max_error").value(yaw_max_error); in writeJSONToStream()
153 writer.name("optimal_delta_t").value(optimal_delta_t); in writeJSONToStream()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DImageCaptureActivity.java67 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()
DReadableUriExtraToClipDataTest.java108 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/tests/content/HelloWorldApp/src5/com/example/helloworld/
DMainActivity.java38 try (OutputStreamWriter writer = new OutputStreamWriter( in onCreate() argument
40 writer.write("Testing"); in onCreate()
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/
DKeyValueBackupRestoreTest.java244 PrintWriter writer = new PrintWriter(file); in saveSharedPreferencesValues() local
245 writer.write(TEST_FILE_1_DATA); in saveSharedPreferencesValues()
246 writer.close(); in saveSharedPreferencesValues()
250 writer = new PrintWriter(file); in saveSharedPreferencesValues()
251 writer.write(TEST_FILE_2_DATA); in saveSharedPreferencesValues()
252 writer.close(); in saveSharedPreferencesValues()
/cts/hostsidetests/install/app/src/android/cts/install/
DSessionRule.java63 try (BufferedWriter writer = new BufferedWriter(new FileWriter(mTestStateFile))) { in recordSessionId() argument
64 writer.write(String.valueOf(sessionId)); in recordSessionId()
/cts/tests/tests/os/src/android/os/cts/
DMessageQueueTest.java302 ParcelFileDescriptor writer = pipe[1]) { in testRegisterFileDescriptorCallbackThrowsWhenCallbackIsNull()
331 ParcelFileDescriptor writer = pipe[1]) { in testUnregisterFileDescriptorCallbackDoesNothingWhenFdNotRegistered()
348 final FileOutputStream writer = new AutoCloseOutputStream(pipe[1])) { in testFileDescriptorCallbacks()
375 writer.write(mBuffer, 0, count); in testFileDescriptorCallbacks()
433 queue.addOnFileDescriptorEventListener(writer.getFD(), in testFileDescriptorCallbacks()
451 queue.removeOnFileDescriptorEventListener(writer.getFD()); in testFileDescriptorCallbacks()
481 final FileOutputStream writer = new AutoCloseOutputStream(pipe[1])) { in testPathologicalFileDescriptorReuseCallbacks1()
500 writer.close(); in testPathologicalFileDescriptorReuseCallbacks1()
565 final FileOutputStream writer = new AutoCloseOutputStream(pipe[1])) { in testPathologicalFileDescriptorReuseCallbacks2()
584 writer.close(); in testPathologicalFileDescriptorReuseCallbacks2()
[all …]
/cts/apps/CameraITS/utils/
Dcapture_read_noise_utils.py54 writer = csv.writer(f)
69 writer.writerow(headers)
79 writer.writerow(row)
81 writer.writerow([]) # divider line
85 writer.writerow(coeff_headers)
89 writer.writerow([color_channels_names[i], offset_a[i], offset_b[i]])
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java190 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/expect/
DOutcome.java99 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/tests/app/src/android/app/cts/
DActivityDumpTest.java164 try (StringWriter sw = new StringWriter(); PrintWriter writer = new PrintWriter(sw)) { in dumpInternal()
166 activity.dumpInternal(prefix, /* fd= */ null, writer, args); in dumpInternal()
198 public void dump(PrintWriter writer, String[] args) { in dump() argument
199 writer.println(content); in dump()
/cts/hostsidetests/edi/src/android/edi/cts/
DDynamicPartitionsDeviceInfo.java81 try (FileWriter writer = new FileWriter(jsonFile)) { in collectDeviceInfo() argument
82 writer.write(output); in collectDeviceInfo()
/cts/hostsidetests/mediapc/videoencodingquality/src/
DCtsVideoEncodingQualityHostTest.java418 try (FileWriter writer = new FileWriter(outHostPath.getPath() + "/" + "all_vmafs.txt")) { in testEncoding() argument
456 writer.write(vmafLine + "\n"); in testEncoding()
457 writer.write("Y4M file = " + refFileName + "\n"); in testEncoding()
458 writer.write("MP4 file = " + refFileName + "\n"); in testEncoding()
462 writer.write("Filesize = " + fileSize + "\n"); in testEncoding()
463 writer.write("FPS = " + fps + "\n"); in testEncoding()
464 writer.write("FRAME_COUNT = " + frameCount + "\n"); in testEncoding()
465 writer.write("CLIP_DURATION = " + clipDuration + "\n"); in testEncoding()
469 writer.write("Bitrate kbps = " + bitrate_kbps + "\n"); in testEncoding()
/cts/hostsidetests/car/app/src/android/car/cts/app/
DPowerPolicyTestActivity.java77 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
78 writer.printf("%s\n", mResultBuf); in dump()
/cts/tests/tests/util/src/android/util/cts/
DDumpableTest.java42 public void dump(PrintWriter writer, String[] args) { in dump() argument
/cts/hostsidetests/packagemanager/deletekeepdata/app/src/com/android/tests/deletekeepdata/app/
DDeleteKeepDataDeviceTest.java53 try (OutputStreamWriter writer = new OutputStreamWriter( in testWriteData() argument
56 writer.write(TEST_FILE_CONTENT); in testWriteData()
/cts/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/
DMockSpellChecker.kt47 override fun dump(fd: FileDescriptor?, writer: PrintWriter?, args: Array<out String>?) { in dump()
48 writer?.println("MockSpellChecker") in dump()
/cts/tests/vibrator/src/android/os/cts/
DVibrationEffectXmlSerializationTest.java115 StringWriter writer = new StringWriter(); in testSerializeValidVibrationEffect() local
116 VibrationXmlSerializer.serialize(effect, writer); in testSerializeValidVibrationEffect()
117 assertSameXml(expectedXml, writer.toString()); in testSerializeValidVibrationEffect()
125 StringWriter writer = new StringWriter(); in testParseSerializeRoundTrip() local
127 VibrationXmlSerializer.serialize(effect, writer); in testParseSerializeRoundTrip()
129 StringReader reader = new StringReader(writer.toString()); in testParseSerializeRoundTrip()

12