/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaShellCommand.java | 54 private PrintWriter mWriter; field in MediaShellCommand 59 mWriter = getOutPrintWriter(); in onCommand() 101 mWriter.println("usage: media_session [subcommand] [options]"); in onHelp() 102 mWriter.println(" media_session dispatch KEY"); in onHelp() 103 mWriter.println(" media_session dispatch KEY"); in onHelp() 104 mWriter.println(" media_session list-sessions"); in onHelp() 105 mWriter.println(" media_session monitor <tag>"); in onHelp() 106 mWriter.println(" media_session volume [options]"); in onHelp() 107 mWriter.println(); in onHelp() 108 mWriter.println("media_session dispatch: dispatch a media key to the system."); in onHelp() [all …]
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | AssetJsonWriter.java | 32 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/ |
D | LineBreakBufferedWriterTest.java | 32 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/ |
D | RawBackupWriterTest.java | 41 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/ |
D | ComposerHal.cpp | 174 : mWriter(kWriterInitialSize), in Composer() 270 mWriter.reset(); in resetCommands() 329 mWriter.selectDisplay(display); in acceptDisplayChanges() 330 mWriter.acceptDisplayChanges(); in acceptDisplayChanges() 564 mWriter.selectDisplay(display); in presentDisplay() 565 mWriter.presentDisplay(); in presentDisplay() 588 mWriter.selectDisplay(display); in setClientTarget() 600 mWriter.setClientTargetMetadata(metadata); in setClientTarget() 609 mWriter.setClientTarget(slot, handle, acquireFence, dataspace, damage); in setClientTarget() 632 mWriter.selectDisplay(display); in setColorTransform() [all …]
|
/frameworks/av/media/libstagefright/tests/writer/ |
D | WriterTest.cpp | 92 WriterTest() : mWriter(nullptr), mFileMeta(nullptr), mCurrentTrack(nullptr) {} in WriterTest() 95 if (mWriter) { in ~WriterTest() 96 mWriter.clear(); in ~WriterTest() 97 mWriter = nullptr; in ~WriterTest() 153 sp<MediaWriter> mWriter; member in WriterTest 187 mWriter = new OggWriter(fd); in createWriter() 191 mWriter = new AACWriter(fd); in createWriter() 195 mWriter = new AACWriter(fd); in createWriter() 199 mWriter = new WebmWriter(fd); in createWriter() 203 mWriter = new MPEG4Writer(fd); in createWriter() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | IndentingPrintWriterTest.java | 30 private PrintWriter mWriter; field in IndentingPrintWriterTest 37 mWriter = new PrintWriter(mStream); in setUp() 41 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " "); in testMultipleIndents() 63 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " "); in testAdjustIndentAfterNewline() 74 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, "", 10); in testWrapping() 86 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " ", 10); in testWrappingIndented() 100 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " ", 10); in testWrappingEmbeddedNewlines() 111 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " ", 10); in testWrappingSingleGiant() 122 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " ", 10); in testWrappingPrefixedGiant()
|
/frameworks/base/core/java/android/os/health/ |
D | HealthStatsParceler.java | 38 private HealthStatsWriter mWriter; field in HealthStatsParceler 54 mWriter = writer; in HealthStatsParceler() 67 if (mWriter != null) { in writeToParcel() 68 mWriter.flattenToParcel(out); in writeToParcel() 76 if (mWriter != null) { in getHealthStats() 78 mWriter.flattenToParcel(parcel); in getHealthStats()
|
/frameworks/av/media/libstagefright/ |
D | MediaMuxer.cpp | 53 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() 98 status_t result = mWriter->addSource(newTrack); in addTrack() 105 result = mWriter->setCaptureRate(captureFps); in addTrack() 141 return static_cast<MPEG4Writer*>(mWriter.get())->setGeoData(latitude, longitude); in setLocation() 149 return mWriter->start(mFileMeta.get()); in start() 165 status_t err = mWriter->stop(); in stop()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/ |
D | DiffScriptBackupWriter.java | 32 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/ |
D | CacheQuotaStrategyTest.java | 39 StringWriter mWriter; field in CacheQuotaStrategyTest 44 mWriter = new StringWriter(); in setUp() 46 mOut.setOutput(mWriter); in setUp() 54 assertThat(mWriter.toString()).isEqualTo( in testEmptyWrite() 67 assertThat(mWriter.toString()).isEqualTo( in testWriteOneQuota() 83 assertThat(mWriter.toString()).isEqualTo( in testWriteMultipleQuotas() 100 assertThat(mWriter.toString()).isEqualTo( in testNullUuidDoesntCauseCrash()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FastPrintWriter.java | 63 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 …]
|
D | FastXmlSerializer.java | 62 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/ |
D | HistoricalRegistry.java | 1745 private final @NonNull PrintWriter mWriter; field in HistoricalRegistry.StringDumpVisitor 1761 mWriter = writer; in StringDumpVisitor() 1771 mWriter.println(); in visitHistoricalOps() 1772 mWriter.print(mOpsPrefix); in visitHistoricalOps() 1773 mWriter.println("snapshot:"); in visitHistoricalOps() 1774 mWriter.print(mUidPrefix); in visitHistoricalOps() 1775 mWriter.print("begin = "); in visitHistoricalOps() 1777 mWriter.print(mDateFormatter.format(mDate)); in visitHistoricalOps() 1778 mWriter.print(" ("); in visitHistoricalOps() 1779 TimeUtils.formatDuration(ops.getBeginTimeMillis() - mNow, mWriter); in visitHistoricalOps() local [all …]
|
/frameworks/native/services/vr/hardware_composer/impl/ |
D | vr_composer_client.cpp | 76 mWriter->setError(getCommandLoc(), err); in executeSetLayerInfo() 89 mWriter->setError(getCommandLoc(), err); in executeSetClientTargetMetadata() 102 mWriter->setError(getCommandLoc(), err); in executeSetLayerBufferMetadata()
|
/frameworks/av/media/libmediaplayerservice/ |
D | StagefrightRecorder.cpp | 115 mWriter(NULL), in StagefrightRecorder() 426 if (mWriter == nullptr) { in setNextOutputFile() 434 return mWriter->setNextFd(fd); in setNextOutputFile() 1021 if (mWriter == NULL) { in start() 1038 status = mWriter->start(meta.get()); in start() 1053 status = mWriter->start(meta.get()); in start() 1066 mWriter.clear(); in start() 1067 mWriter = NULL; in start() 1232 mWriter = new AACWriter(mOutputFd); in setupAACRecording() 1239 mWriter = new OggWriter(mOutputFd); in setupOggRecording() [all …]
|
D | StagefrightRecorder.h | 103 sp<MediaWriter> mWriter; member
|
/frameworks/av/cmds/stagefright/ |
D | stream.cpp | 148 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/ |
D | UiAutomatorTestRunner.java | 260 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/ |
D | Reporter.cpp | 523 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()
|
D | Reporter.h | 272 ReportWriter mWriter; variable
|
/frameworks/base/services/core/java/com/android/server/textclassifier/ |
D | IconsContentProvider.java | 53 private final PipeDataWriter<Pair<ResourceInfo, Integer>> mWriter = field in IconsContentProvider 76 return openPipeHelper(uri, MIME_TYPE, /* bundle= */ null, args, mWriter); in openFile()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | IpConfigStore.java | 48 protected final DelayedDiskWrite mWriter; field in IpConfigStore 66 mWriter = writer; in IpConfigStore() 183 mWriter.write(filePath, out -> { in writeIpAndProxyConfigurationsToFile() 193 mWriter.write(filePath, out -> { in writeIpConfigurations()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaMuxer.h | 122 sp<MediaWriter> mWriter; member
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestUtils.java | 357 private final ImageWriter mWriter; field in CameraTestUtils.SimpleImageWriterListener 360 if (writer != mWriter) { in onImageReleased() 374 mWriter = writer; in SimpleImageWriterListener()
|