/frameworks/base/tools/protologtool/src/com/android/protolog/tool/ |
D | ViewerConfigJsonBuilder.kt | 27 val writer = JsonWriter(stringWriter) in <lambda>() constant 28 writer.setIndent(" ") in <lambda>() 29 writer.beginObject() in <lambda>() 30 writer.name("version") in <lambda>() 31 writer.value(VERSION) in <lambda>() 32 writer.name("messages") in <lambda>() 33 writer.beginObject() in <lambda>() 35 writer.name(key.toString()) in <lambda>() 36 writer.beginObject() in <lambda>() 37 writer.name("message") in <lambda>() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationDebug.java | 64 public void printState(@NonNull IndentingPrintWriter writer, @Nullable String packageName, in printState() argument 81 boolean wasHeaderPrinted = printState(writer, pkgState, pkgSetting.getPkg(), in printState() 83 printState(writer, pkgState, pkgSetting.getPkg(), userId, reusedSet, in printState() 98 printState(writer, pkgState, pkg, reusedMap, false); in printState() 99 printState(writer, pkgState, pkg, userId, reusedSet, true); in printState() 106 public void printOwners(@NonNull IndentingPrintWriter writer, @NonNull String domain, in printOwners() argument 108 writer.println(domain + ":"); in printOwners() 109 writer.increaseIndent(); in printOwners() 112 writer.println("none"); in printOwners() 113 writer.decreaseIndent(); in printOwners() [all …]
|
/frameworks/base/tools/aapt2/format/ |
D | Archive_test.cpp | 132 std::unique_ptr<IArchiveWriter> writer = MakeDirectoryWriter(output_path); in TEST_F() local 136 ASSERT_TRUE(writer->StartEntry("test1", 0)); in TEST_F() 137 ASSERT_TRUE(writer->Write(static_cast<const void*>(data1.get()), kTestDataLength)); in TEST_F() 138 ASSERT_TRUE(writer->FinishEntry()); in TEST_F() 139 ASSERT_FALSE(writer->HadError()); in TEST_F() 141 ASSERT_TRUE(writer->StartEntry("test2", 0)); in TEST_F() 142 ASSERT_TRUE(writer->Write(static_cast<const void*>(data2.get()), kTestDataLength)); in TEST_F() 143 ASSERT_TRUE(writer->FinishEntry()); in TEST_F() 144 ASSERT_FALSE(writer->HadError()); in TEST_F() 146 writer.reset(); in TEST_F() [all …]
|
/frameworks/base/core/java/android/content/ |
D | CursorLoader.java | 239 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument 240 super.dump(prefix, fd, writer, args); in dump() 241 writer.print(prefix); writer.print("mUri="); writer.println(mUri); in dump() 242 writer.print(prefix); writer.print("mProjection="); in dump() 243 writer.println(Arrays.toString(mProjection)); in dump() 244 writer.print(prefix); writer.print("mSelection="); writer.println(mSelection); in dump() 245 writer.print(prefix); writer.print("mSelectionArgs="); in dump() 246 writer.println(Arrays.toString(mSelectionArgs)); in dump() 247 writer.print(prefix); writer.print("mSortOrder="); writer.println(mSortOrder); in dump() 248 writer.print(prefix); writer.print("mCursor="); writer.println(mCursor); in dump() [all …]
|
D | Loader.java | 552 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument 553 writer.print(prefix); writer.print("mId="); writer.print(mId); in dump() 554 writer.print(" mListener="); writer.println(mListener); in dump() 556 writer.print(prefix); writer.print("mStarted="); writer.print(mStarted); in dump() 557 writer.print(" mContentChanged="); writer.print(mContentChanged); in dump() 558 writer.print(" mProcessingChange="); writer.println(mProcessingChange); in dump() 561 writer.print(prefix); writer.print("mAbandoned="); writer.print(mAbandoned); in dump() 562 writer.print(" mReset="); writer.println(mReset); in dump()
|
D | AsyncTaskLoader.java | 368 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument 369 super.dump(prefix, fd, writer, args); in dump() 371 writer.print(prefix); writer.print("mTask="); writer.print(mTask); in dump() 372 writer.print(" waiting="); writer.println(mTask.waiting); in dump() 375 writer.print(prefix); writer.print("mCancellingTask="); writer.print(mCancellingTask); in dump() 376 writer.print(" waiting="); writer.println(mCancellingTask.waiting); in dump() 379 writer.print(prefix); writer.print("mUpdateThrottle="); in dump() 380 TimeUtils.formatDuration(mUpdateThrottle, writer); in dump() 381 writer.print(" mLastLoadCompleteTime="); in dump() 383 SystemClock.uptimeMillis(), writer); in dump() [all …]
|
/frameworks/base/core/java/android/app/ |
D | VoiceInteractor.java | 309 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument 310 writer.print(prefix); writer.print("mRequestInterface="); in dump() 311 writer.println(mRequestInterface.asBinder()); in dump() 312 writer.print(prefix); writer.print("mActivity="); writer.println(mActivity); in dump() 313 writer.print(prefix); writer.print("mName="); writer.println(mName); in dump() 381 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument 382 super.dump(prefix, fd, writer, args); in dump() 383 writer.print(prefix); writer.print("mPrompt="); writer.println(mPrompt); in dump() 385 writer.print(prefix); writer.print("mExtras="); writer.println(mExtras); in dump() 575 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument [all …]
|
D | LoaderManager.java | 196 public abstract void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args); in dump() argument 520 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument 521 writer.print(prefix); writer.print("mId="); writer.print(mId); in dump() 522 writer.print(" mArgs="); writer.println(mArgs); in dump() 523 writer.print(prefix); writer.print("mCallbacks="); writer.println(mCallbacks); in dump() 524 writer.print(prefix); writer.print("mLoader="); writer.println(mLoader); in dump() 526 mLoader.dump(prefix + " ", fd, writer, args); in dump() 529 writer.print(prefix); writer.print("mHaveData="); writer.print(mHaveData); in dump() 530 writer.print(" mDeliveredData="); writer.println(mDeliveredData); in dump() 531 writer.print(prefix); writer.print("mData="); writer.println(mData); in dump() [all …]
|
D | DialogFragment.java | 569 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument 570 super.dump(prefix, fd, writer, args); in dump() 571 writer.print(prefix); writer.println("DialogFragment:"); in dump() 572 writer.print(prefix); writer.print(" mStyle="); writer.print(mStyle); in dump() 573 writer.print(" mTheme=0x"); writer.println(Integer.toHexString(mTheme)); in dump() 574 writer.print(prefix); writer.print(" mCancelable="); writer.print(mCancelable); in dump() 575 writer.print(" mShowsDialog="); writer.print(mShowsDialog); in dump() 576 writer.print(" mBackStackId="); writer.println(mBackStackId); in dump() 577 writer.print(prefix); writer.print(" mDialog="); writer.println(mDialog); in dump() 578 writer.print(prefix); writer.print(" mViewDestroyed="); writer.print(mViewDestroyed); in dump() [all …]
|
D | Fragment.java | 2382 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { 2383 writer.print(prefix); writer.print("mFragmentId=#"); 2384 writer.print(Integer.toHexString(mFragmentId)); 2385 writer.print(" mContainerId=#"); 2386 writer.print(Integer.toHexString(mContainerId)); 2387 writer.print(" mTag="); writer.println(mTag); 2388 writer.print(prefix); writer.print("mState="); writer.print(mState); 2389 writer.print(" mIndex="); writer.print(mIndex); 2390 writer.print(" mWho="); writer.print(mWho); 2391 writer.print(" mBackStackNesting="); writer.println(mBackStackNesting); [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | BackupData_test.cpp | 76 BackupDataWriter* writer = new BackupDataWriter(fd); in TEST_F() local 78 EXPECT_EQ(NO_ERROR, writer->WriteEntityHeader(mKey1, sizeof(DATA1))) in TEST_F() 80 EXPECT_EQ(NO_ERROR, writer->WriteEntityData(DATA1, sizeof(DATA1))) in TEST_F() 112 delete writer; in TEST_F() 118 BackupDataWriter* writer = new BackupDataWriter(fd); in TEST_F() local 119 writer->WriteEntityHeader(mKey1, sizeof(DATA1)); in TEST_F() 120 writer->WriteEntityData(DATA1, sizeof(DATA1)); in TEST_F() 121 writer->WriteEntityHeader(mKey2, sizeof(DATA2)); in TEST_F() 122 writer->WriteEntityData(DATA2, sizeof(DATA2)); in TEST_F() 160 delete writer; in TEST_F() [all …]
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_DngCreator.cpp | 57 #define BAIL_IF_INVALID_RET_BOOL(expr, jnienv, tagId, writer) \ argument 60 "Invalid metadata for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \ 65 #define BAIL_IF_INVALID_RET_NULL_SP(expr, jnienv, tagId, writer) \ argument 68 "Invalid metadata for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \ 73 #define BAIL_IF_INVALID_R(expr, jnienv, tagId, writer) \ argument 76 "Invalid metadata for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \ 80 #define BAIL_IF_EMPTY_RET_NULL_SP(entry, jnienv, tagId, writer) \ argument 83 "Missing metadata fields for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \ 87 #define BAIL_IF_EMPTY_RET_BOOL(entry, jnienv, tagId, writer) \ argument 91 (writer)->getTagName(tagId), (tagId)); \ [all …]
|
/frameworks/av/media/libstagefright/tests/fuzzers/ |
D | WriterFuzzer.cpp | 36 sp<MediaWriter> writer = createWriter(fd, writerType, writerMeta, &fdp); in LLVMFuzzerTestOneInput() local 37 if (writer == nullptr) { in LLVMFuzzerTestOneInput() 44 writer->setMaxFileSize(fdp.ConsumeIntegralInRange<int64_t>(5 * 1024 * 1024, INT64_MAX)); in LLVMFuzzerTestOneInput() 46 writer->setMaxFileSize(fdp.ConsumeIntegral<int64_t>()); in LLVMFuzzerTestOneInput() 48 writer->setMaxFileDuration(fdp.ConsumeIntegral<int64_t>()); in LLVMFuzzerTestOneInput() 49 writer->setCaptureRate(fdp.ConsumeFloatingPoint<float>()); in LLVMFuzzerTestOneInput() 52 writer->addSource(source); in LLVMFuzzerTestOneInput() 53 writer->start(writerMeta.get()); in LLVMFuzzerTestOneInput() 54 writer->pause(); in LLVMFuzzerTestOneInput() 55 writer->stop(); in LLVMFuzzerTestOneInput()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/ |
D | MetricsFeatureProvider.java | 81 for (LogWriter writer : mLoggerWriters) { in visible() 82 writer.visible(context, source, category, latency); in visible() 93 for (LogWriter writer : mLoggerWriters) { in hidden() 94 writer.hidden(context, category, visibleTime); in hidden() 105 for (LogWriter writer : mLoggerWriters) { in clicked() 106 writer.clicked(category, key); in clicked() 118 for (LogWriter writer : mLoggerWriters) { in changed() 119 writer.changed(category, key, value); in changed() 130 for (LogWriter writer : mLoggerWriters) { in action() 131 writer.action(context, category, taggedData); in action() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/license/ |
D | LicenseHtmlGeneratorFromXml.java | 143 PrintWriter writer = null; in generateHtml() local 145 writer = new PrintWriter(outputFile); in generateHtml() 148 writer, noticeHeader); in generateHtml() 150 writer.flush(); in generateHtml() 151 writer.close(); in generateHtml() 156 if (writer != null) { in generateHtml() 157 writer.close(); in generateHtml() 296 Map<String, String> contentIdToFileContentMap, PrintWriter writer, in generateHtml() argument 323 writer.println(HTML_HEAD_STRING); in generateHtml() 326 writer.println(noticeHeader); in generateHtml() [all …]
|
/frameworks/base/core/java/android/util/ |
D | TeeWriter.java | 37 for (Writer writer : writers) { in TeeWriter() 38 Objects.requireNonNull(writer); in TeeWriter() 45 for (Writer writer : mWriters) { in write() 46 writer.write(cbuf, off, len); in write() 52 for (Writer writer : mWriters) { in flush() 53 writer.flush(); in flush() 59 for (Writer writer : mWriters) { in close() 60 writer.close(); in close()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | FrameType.java | 322 static FrameType tryMerge(FrameType writer, FrameType reader) { in tryMerge() argument 323 if (writer.mElementId == ELEMENT_DONTCARE) { in tryMerge() 326 return writer; in tryMerge() 327 } else if (writer.mElementId == ELEMENT_OBJECT && reader.mElementId == ELEMENT_OBJECT) { in tryMerge() 328 return tryMergeObjectTypes(writer, reader); in tryMerge() 329 } else if (writer.mDimensions > 0 && writer.mElementId == reader.mElementId) { in tryMerge() 330 return tryMergeBuffers(writer, reader); in tryMerge() 336 static FrameType tryMergeObjectTypes(FrameType writer, FrameType reader) { in tryMergeObjectTypes() argument 337 int dimensions = Math.max(writer.mDimensions, reader.mDimensions); in tryMergeObjectTypes() 338 Class<?> mergedClass = mergeClasses(writer.mClass, reader.mClass); in tryMergeObjectTypes() [all …]
|
/frameworks/minikin/tests/util/ |
D | BufferUtils.h | 27 BufferWriter writer(nullptr); in allocateBuffer() 28 t.writeTo(&writer); in allocateBuffer() 30 return std::vector<uint8_t>(writer.size(), 0xFFu); in allocateBuffer() 35 BufferWriter writer(nullptr); in allocateBuffer() 36 t.template writeTo<arg>(&writer); in allocateBuffer() 38 return std::vector<uint8_t>(writer.size(), 0xFFu); in allocateBuffer() 44 BufferWriter writer(buffer.data()); in writeToBuffer() 45 t.writeTo(&writer); in writeToBuffer()
|
/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientSensor.java | 129 public void dump(PrintWriter writer) { in dump() argument 130 writer.println(" " + mTag); in dump() 131 writer.println(" mLoggingEnabled=" + mLoggingEnabled); in dump() 132 writer.println(" mHandler=" + mHandler); in dump() 133 writer.println(" mSensorManager=" + mSensorManager); in dump() 134 writer.println(" mSensor=" + mSensor); in dump() 135 writer.println(" mEnabled=" + mEnabled); in dump() 136 writer.println(" mRate=" + mRate); in dump() 137 writer.println(" mEventsCount=" + mEventsCount); in dump() 138 writer.println(" mEventsHistory=" + mEventsHistory); in dump() [all …]
|
D | DisplayWhiteBalanceController.java | 429 public void dump(PrintWriter writer) { in dump() argument 430 writer.println("DisplayWhiteBalanceController"); in dump() 431 writer.println(" mLoggingEnabled=" + mLoggingEnabled); in dump() 432 writer.println(" mEnabled=" + mEnabled); in dump() 433 writer.println(" mStrongModeEnabled=" + mStrongModeEnabled); in dump() 434 writer.println(" mDisplayPowerControllerCallbacks=" + mDisplayPowerControllerCallbacks); in dump() 435 mBrightnessSensor.dump(writer); in dump() 436 mBrightnessFilter.dump(writer); in dump() 437 mColorTemperatureSensor.dump(writer); in dump() 438 mColorTemperatureFilter.dump(writer); in dump() [all …]
|
/frameworks/base/tools/aapt2/format/binary/ |
D | ResEntryWriter_test.cpp | 38 std::vector<int32_t> WriteAllEntries(const ResourceTableView& table, ResEntryWriter& writer) { in WriteAllEntries() argument 44 result.push_back(writer.Write(&flat_entry)); in WriteAllEntries() 61 SequentialResEntryWriter<false> writer(&out); in TEST_F() local 62 auto offsets = WriteAllEntries(table->GetPartitionedView(), writer); in TEST_F() 73 SequentialResEntryWriter<true> writer(&out); in TEST_F() local 74 auto offsets = WriteAllEntries(table->GetPartitionedView(), writer); in TEST_F() 102 SequentialResEntryWriter<false> writer(&out); in TEST_F() local 103 auto offsets = WriteAllEntries(table->GetPartitionedView(), writer); in TEST_F() 113 SequentialResEntryWriter<true> writer(&out); in TEST_F() local 114 auto offsets = WriteAllEntries(table->GetPartitionedView(), writer); in TEST_F() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | BufferTest.cpp | 25 void writeTo(BufferWriter* writer) const { in writeTo() 28 writer->write<uint8_t>(0xAB); in writeTo() 30 writer->write<uint16_t>(0xCDEF); in writeTo() 32 writer->write<uint8_t>(0x01); in writeTo() 35 writer->writeArray<uint32_t>(uint32Array, 2); in writeTo() 36 uint16_t* uint16Array = writer->reserve<uint16_t>(2 * sizeof(uint16_t)); in writeTo() 51 BufferWriter writer(buffer.data()); in TEST() local 52 testObject.writeTo(&writer); in TEST() 53 ASSERT_EQ(writer.size(), buffer.size()); in TEST() 81 BufferWriter writer(buffer.data()); in TEST() local [all …]
|
/frameworks/base/core/java/com/android/internal/util/dump/ |
D | DumpableContainerImpl.java | 100 private int dumpNumberDumpables(IndentingPrintWriter writer) { in dumpNumberDumpables() argument 103 writer.print("No dumpables"); in dumpNumberDumpables() 105 writer.print(size); writer.print(" dumpables"); in dumpNumberDumpables() 113 public void listDumpables(String prefix, PrintWriter writer) { in listDumpables() argument 114 IndentingPrintWriter ipw = new IndentingPrintWriter(writer, prefix, prefix); in listDumpables() 132 public void dumpAllDumpables(String prefix, PrintWriter writer, String[] args) { in dumpAllDumpables() argument 133 IndentingPrintWriter ipw = new IndentingPrintWriter(writer, prefix, prefix); in dumpAllDumpables() 149 private void indentAndDump(IndentingPrintWriter writer, Dumpable dumpable, String[] args) { in indentAndDump() argument 150 writer.increaseIndent(); in indentAndDump() 152 dumpable.dump(writer, args); in indentAndDump() [all …]
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/results/ |
D | GlobalResultsStore.java | 292 try (FileWriter writer = new FileWriter(path, true)) { in exportToCsv() argument 293 writer.write("Run ID, " + runId + "\n"); in exportToCsv() 294 writer.write("Test, Iteration, Score, Jank Penalty, Consistency Bonus, 95th, " + in exportToCsv() 309 writer.write(testName); in exportToCsv() 310 writer.write(","); in exportToCsv() 311 writer.write("" + i); in exportToCsv() 312 writer.write(","); in exportToCsv() 313 writer.write("" + score); in exportToCsv() 314 writer.write(","); in exportToCsv() 315 writer.write("" + result.getJankPenalty()); in exportToCsv() [all …]
|
/frameworks/base/core/java/android/view/ |
D | ScrollCaptureSearchResults.java | 251 void dump(IndentingPrintWriter writer) { in dump() argument 252 writer.println("results:"); in dump() 253 writer.increaseIndent(); in dump() 254 writer.println("complete: " + isComplete()); in dump() 255 writer.println("cancelled: " + mCancel.isCanceled()); in dump() 256 writer.println("targets:"); in dump() 257 writer.increaseIndent(); in dump() 259 writer.println("None"); in dump() 262 writer.println("[" + i + "]"); in dump() 263 writer.increaseIndent(); in dump() [all …]
|