Home
last modified time | relevance | path

Searched refs:mWriter (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/media/
DMediaShellCommand.java55 private PrintWriter mWriter; field in MediaShellCommand
61 mWriter = getOutPrintWriter(); in onCommand()
104 mWriter.println("usage: media_session [subcommand] [options]"); in onHelp()
105 mWriter.println(" media_session dispatch KEY"); in onHelp()
106 mWriter.println(" media_session dispatch KEY"); in onHelp()
107 mWriter.println(" media_session list-sessions"); in onHelp()
108 mWriter.println(" media_session monitor <tag>"); in onHelp()
109 mWriter.println(" media_session volume [options]"); in onHelp()
110 mWriter.println(); in onHelp()
111 mWriter.println("media_session dispatch: dispatch a media key to the system."); in onHelp()
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DAssetJsonWriter.java32 private JsonWriter mWriter; field in AssetJsonWriter
36 mWriter = new JsonWriter(mStringWriter); in AssetJsonWriter()
38 mWriter.beginObject(); in AssetJsonWriter()
56 mWriter.name(key.toLowerCase(Locale.US)); in writeFieldLower()
57 mWriter.value(value.toLowerCase(Locale.US)); in writeFieldLower()
77 mWriter.name(key.toLowerCase(Locale.US)); in writeArrayUpper()
78 mWriter.beginArray(); in writeArrayUpper()
80 mWriter.value(value.toUpperCase(Locale.US)); in writeArrayUpper()
82 mWriter.endArray(); in writeArrayUpper()
96 mWriter.endObject(); in closeAndGetString()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DLineBreakBufferedWriterTest.java32 private RecordingWriter mWriter; field in LineBreakBufferedWriterTest
38 mWriter = new RecordingWriter(); in setUp()
42 final LineBreakBufferedWriter lw = new LineBreakBufferedWriter(mWriter, 1000); in testLessThanBufferSize()
53 final LineBreakBufferedWriter lw = new LineBreakBufferedWriter(mWriter, 20); in testMoreThanBufferSizeNoLineBreaks()
61 List<String> result = mWriter.getStrings(); in testMoreThanBufferSizeNoLineBreaks()
75 final LineBreakBufferedWriter lw = new LineBreakBufferedWriter(mWriter, 20); in testMoreThanBufferSizeNoLineBreaksSingleString()
82 List<String> result = mWriter.getStrings(); in testMoreThanBufferSizeNoLineBreaksSingleString()
96 final LineBreakBufferedWriter lw = new LineBreakBufferedWriter(mWriter, 20); in testMoreThanBufferSizeLineBreakBefore()
108 final LineBreakBufferedWriter lw = new LineBreakBufferedWriter(mWriter, 20); in testMoreThanBufferSizeLineBreakBeforeSingleString()
119 final LineBreakBufferedWriter lw = new LineBreakBufferedWriter(mWriter, 20); in testMoreThanBufferSizeLineBreakNew()
[all …]
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/
DRawBackupWriterTest.java41 private BackupWriter mWriter; field in RawBackupWriterTest
47 mWriter = new RawBackupWriter(mOutput); in setUp()
52 mWriter.writeBytes(TEST_BYTES); in writeBytes_writesToOutputStream()
62 assertThrows(UnsupportedOperationException.class, () -> mWriter.writeChunk(0, 0)); in writeChunk_throwsUnsupportedOperationException()
67 mWriter.writeBytes(TEST_BYTES); in getBytesWritten_returnsTotalSum()
68 mWriter.writeBytes(TEST_BYTES); in getBytesWritten_returnsTotalSum()
70 long bytesWritten = mWriter.getBytesWritten(); in getBytesWritten_returnsTotalSum()
78 mWriter = new RawBackupWriter(mOutput); in flush_flushesOutputStream()
80 mWriter.flush(); in flush_flushesOutputStream()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DComposerHal.cpp120 Composer::Composer(const std::string& serviceName) : mWriter(kWriterInitialSize) { in Composer()
201 mWriter.reset(); in resetCommands()
259 mWriter.selectDisplay(display); in acceptDisplayChanges()
260 mWriter.acceptDisplayChanges(); in acceptDisplayChanges()
495 mWriter.selectDisplay(display); in presentDisplay()
496 mWriter.presentDisplay(); in presentDisplay()
519 mWriter.selectDisplay(display); in setClientTarget()
526 mWriter.setClientTarget(slot, handle, acquireFence, dataspace, damage); in setClientTarget()
549 mWriter.selectDisplay(display); in setColorTransform()
550 mWriter.setColorTransform(matrix, hint); in setColorTransform()
[all …]
/frameworks/base/core/tests/utiltests/src/android/util/
DIndentingPrintWriterTest.java37 private PrintWriter mWriter; field in IndentingPrintWriterTest
42 mWriter = new PrintWriter(mStream); in setUp()
47 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " "); in testMultipleIndents()
70 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " "); in testAdjustIndentAfterNewline()
82 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, "", 10); in testWrapping()
95 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " ", 10); in testWrappingIndented()
110 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " ", 10); in testWrappingEmbeddedNewlines()
122 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " ", 10); in testWrappingSingleGiant()
134 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " ", 10); in testWrappingPrefixedGiant()
147 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " "); in testArrayValue()
/frameworks/ex/camera2/extensions/sample/src/java/androidx/camera/extensions/impl/
DHdrPreviewExtenderImpl.java42 ImageWriter mWriter; field in HdrPreviewExtenderImpl
108 if (mWriter != null) {
109 mWriter.close();
112 mWriter = ImageWriter.newInstance(mSurface, 2, mFormat);
125 mWriter.queueInputImage(image);
150 if (mWriter != null) { in onDeInit()
151 mWriter.close(); in onDeInit()
152 mWriter = null; in onDeInit()
/frameworks/base/core/java/android/os/health/
DHealthStatsParceler.java39 private HealthStatsWriter mWriter; field in HealthStatsParceler
55 mWriter = writer; in HealthStatsParceler()
68 if (mWriter != null) { in writeToParcel()
69 mWriter.flattenToParcel(out); in writeToParcel()
77 if (mWriter != null) { in getHealthStats()
79 mWriter.flattenToParcel(parcel); in getHealthStats()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/
DDiffScriptBackupWriter.java32 private final SingleStreamDiffScriptWriter mWriter; field in DiffScriptBackupWriter
48 mWriter = writer; in DiffScriptBackupWriter()
54 mWriter.writeByte(b); in writeBytes()
62 mWriter.writeChunk(start, length); in writeChunk()
73 mWriter.flush(); in flush()
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DCacheQuotaStrategyTest.java41 StringWriter mWriter; field in CacheQuotaStrategyTest
46 mWriter = new StringWriter(); in setUp()
48 mOut.setOutput(mWriter); in setUp()
56 assertThat(mWriter.toString()).isEqualTo( in testEmptyWrite()
69 assertThat(mWriter.toString()).isEqualTo( in testWriteOneQuota()
85 assertThat(mWriter.toString()).isEqualTo( in testWriteMultipleQuotas()
102 assertThat(mWriter.toString()).isEqualTo( in testNullUuidDoesntCauseCrash()
/frameworks/av/media/libstagefright/
DMediaMuxer.cpp53 mWriter = new MPEG4Writer(fd); in MediaMuxer()
55 mWriter = new WebmWriter(fd); in MediaMuxer()
57 mWriter = new OggWriter(fd); in MediaMuxer()
60 if (mWriter != NULL) { in MediaMuxer()
77 mWriter.clear(); in ~MediaMuxer()
101 status_t result = mWriter->addSource(newTrack); in addTrack()
108 result = mWriter->setCaptureRate(captureFps); in addTrack()
146 return static_cast<MPEG4Writer*>(mWriter.get())->setGeoData(latitude, longitude); in setLocation()
154 return mWriter->start(mFileMeta.get()); in start()
170 status_t err = mWriter->stop(); in stop()
/frameworks/av/media/libstagefright/tests/writer/
DWriterTest.cpp123 WriterTest() : mWriter(nullptr), mFileMeta(nullptr) {} in WriterTest()
130 if (mWriter) { in ~WriterTest()
131 mWriter.clear(); in ~WriterTest()
132 mWriter = nullptr; in ~WriterTest()
190 sp<MediaWriter> mWriter; member in WriterTest
234 mWriter = new OggWriter(fd); in createWriter()
238 mWriter = new AACWriter(fd); in createWriter()
242 mWriter = new AACWriter(fd); in createWriter()
246 mWriter = new WebmWriter(fd); in createWriter()
250 mWriter = new MPEG4Writer(fd); in createWriter()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DFastPrintWriter.java63 final private Writer mWriter; field in FastPrintWriter
130 mWriter = null; in FastPrintWriter()
199 mWriter = wr; in FastPrintWriter()
242 mWriter = null; in FastPrintWriter()
380 } else if (mWriter != null) { in flushLocked()
382 mWriter.write(mText, 0, mPos); in flushLocked()
383 mWriter.flush(); in flushLocked()
416 } else if (mWriter != null) {
417 mWriter.flush();
434 } else if (mWriter != null) {
[all …]
DFastXmlSerializer.java62 private Writer mWriter; field in FastXmlSerializer
277 mWriter.write(mText, 0, mPos); in flush()
278 mWriter.flush(); in flush()
355 mWriter = writer; in setOutput()
/frameworks/base/services/core/java/com/android/server/appop/
DHistoricalRegistry.java1813 private final @NonNull PrintWriter mWriter; field in HistoricalRegistry.StringDumpVisitor
1829 mWriter = writer; in StringDumpVisitor()
1839 mWriter.println(); in visitHistoricalOps()
1840 mWriter.print(mOpsPrefix); in visitHistoricalOps()
1841 mWriter.println("snapshot:"); in visitHistoricalOps()
1842 mWriter.print(mUidPrefix); in visitHistoricalOps()
1843 mWriter.print("begin = "); in visitHistoricalOps()
1845 mWriter.print(mDateFormatter.format(mDate)); in visitHistoricalOps()
1846 mWriter.print(" ("); in visitHistoricalOps()
1847 TimeUtils.formatDuration(ops.getBeginTimeMillis() - mNow, mWriter); in visitHistoricalOps() local
[all …]
/frameworks/av/media/libstagefright/writer_fuzzers/
Dwebm_writer_fuzzer.cpp33 mWriter = new WebmWriter(mFd); in createWriter()
34 if (!mWriter) { in createWriter()
Dmpeg4_writer_fuzzer.cpp33 mWriter = new MPEG4Writer(mFd); in createWriter()
34 if (!mWriter) { in createWriter()
Dogg_writer_fuzzer.cpp33 mWriter = new OggWriter(mFd); in createWriter()
34 if (!mWriter) { in createWriter()
Damr_writer_fuzzer.cpp33 mWriter = new AMRWriter(mFd); in createWriter()
34 if (!mWriter) { in createWriter()
/frameworks/av/media/libstagefright/writer_fuzzers/include/
DWriterFuzzerBase.h120 if (mWriter) { in ~WriterFuzzerBase()
121 mWriter.clear(); in ~WriterFuzzerBase()
122 mWriter = nullptr; in ~WriterFuzzerBase()
204 sp<MediaWriter> mWriter = nullptr; variable
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.cpp121 mWriter(NULL), in StagefrightRecorder()
442 if (mWriter == nullptr) { in setNextOutputFile()
450 return mWriter->setNextFd(fd); in setNextOutputFile()
597 ARTPWriter* rtpWriter = static_cast<ARTPWriter*>(mWriter.get()); in setParamVideoEncodingBitRate()
867 mWriter->updatePayloadType(mPayloadType); in setParamPayloadType()
887 mWriter->updateCVODegrees(mRTPCVODegrees); in setRTPCVODegrees()
905 mWriter->updateSocketNetwork(mRTPSockNetwork); in setSocketNetwork()
1230 if (mWriter == NULL) { in start()
1247 status = mWriter->start(meta.get()); in start()
1273 status = mWriter->start(meta.get()); in start()
[all …]
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_composer_client.cpp76 mWriter->setError(getCommandLoc(), err); in executeSetLayerInfo()
89 mWriter->setError(getCommandLoc(), err); in executeSetClientTargetMetadata()
102 mWriter->setError(getCommandLoc(), err); in executeSetLayerBufferMetadata()
/frameworks/av/cmds/stagefright/
Dstream.cpp148 sp<MPEG2TSWriter> mWriter; member
174 mWriter = new MPEG2TSWriter( in MyConvertingStreamSource()
193 CHECK_EQ(mWriter->addSource(track), (status_t)OK); in MyConvertingStreamSource()
196 CHECK_EQ(mWriter->start(), (status_t)OK); in MyConvertingStreamSource()
264 if (mWriter->reachedEOS()) { in onBufferAvailable()
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
DUiAutomatorTestRunner.java260 private final PrintStream mWriter; field in UiAutomatorTestRunner.WatcherResultPrinter
268 mWriter = new PrintStream(mStream); in WatcherResultPrinter()
269 mPrinter = new SimpleResultPrinter(mWriter, false); in WatcherResultPrinter()
355 mWriter.close(); in print()
361 mWriter.println(String.format("Test run aborted due to unexpected exception: %s", in printUnexpectedError()
363 t.printStackTrace(mWriter); in printUnexpectedError()
/frameworks/base/cmds/incidentd/src/
DReporter.cpp523 mWriter(batch), in Reporter()
570 mWriter.setMaxPersistedPrivacyPolicy(persistedPrivacyPolicy); in runReport()
582 mWriter.setPersistedFile(mPersistedFile); in runReport()
724 mWriter.startSection(sectionId); in execute_section()
725 status_t err = section->Execute(&mWriter); in execute_section()
726 mWriter.endSection(sectionMetadata); in execute_section()
730 mWriter.error(section, err, "Section failed. Stopping report."); in execute_section()
767 mWriter.setPersistedFile(nullptr); in cancel_and_remove_failed_requests()

12