Home
last modified time | relevance | path

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

123456789

/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DViewerConfigBuilder.kt80 val writer = JsonWriter(stringWriter) in <lambda>() constant
81 writer.setIndent(" ") in <lambda>()
82 writer.beginObject() in <lambda>()
83 writer.name("version") in <lambda>()
84 writer.value(VERSION) in <lambda>()
85 writer.name("messages") in <lambda>()
86 writer.beginObject() in <lambda>()
88 writer.name(key.toString()) in <lambda>()
89 writer.beginObject() in <lambda>()
90 writer.name("message") in <lambda>()
[all …]
/frameworks/base/tools/aapt2/format/
DArchive_test.cpp91 std::unique_ptr<IArchiveWriter> writer = MakeDirectoryWriter(output_path); in TEST_F() local
95 ASSERT_TRUE(writer->StartEntry("test1", 0)); in TEST_F()
96 ASSERT_TRUE(writer->Write(static_cast<const void*>(data1.get()), kTestDataLength)); in TEST_F()
97 ASSERT_TRUE(writer->FinishEntry()); in TEST_F()
98 ASSERT_FALSE(writer->HadError()); in TEST_F()
100 ASSERT_TRUE(writer->StartEntry("test2", 0)); in TEST_F()
101 ASSERT_TRUE(writer->Write(static_cast<const void*>(data2.get()), kTestDataLength)); in TEST_F()
102 ASSERT_TRUE(writer->FinishEntry()); in TEST_F()
103 ASSERT_FALSE(writer->HadError()); in TEST_F()
105 writer.reset(); in TEST_F()
[all …]
/frameworks/base/core/java/android/content/
DCursorLoader.java238 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
239 super.dump(prefix, fd, writer, args); in dump()
240 writer.print(prefix); writer.print("mUri="); writer.println(mUri); in dump()
241 writer.print(prefix); writer.print("mProjection="); in dump()
242 writer.println(Arrays.toString(mProjection)); in dump()
243 writer.print(prefix); writer.print("mSelection="); writer.println(mSelection); in dump()
244 writer.print(prefix); writer.print("mSelectionArgs="); in dump()
245 writer.println(Arrays.toString(mSelectionArgs)); in dump()
246 writer.print(prefix); writer.print("mSortOrder="); writer.println(mSortOrder); in dump()
247 writer.print(prefix); writer.print("mCursor="); writer.println(mCursor); in dump()
[all …]
DLoader.java552 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()
DAsyncTaskLoader.java368 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/
DVoiceInteractor.java311 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
312 writer.print(prefix); writer.print("mRequestInterface="); in dump()
313 writer.println(mRequestInterface.asBinder()); in dump()
314 writer.print(prefix); writer.print("mActivity="); writer.println(mActivity); in dump()
315 writer.print(prefix); writer.print("mName="); writer.println(mName); in dump()
383 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
384 super.dump(prefix, fd, writer, args); in dump()
385 writer.print(prefix); writer.print("mPrompt="); writer.println(mPrompt); in dump()
387 writer.print(prefix); writer.print("mExtras="); writer.println(mExtras); in dump()
577 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
[all …]
DLoaderManager.java196 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 …]
DDialogFragment.java568 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
569 super.dump(prefix, fd, writer, args); in dump()
570 writer.print(prefix); writer.println("DialogFragment:"); in dump()
571 writer.print(prefix); writer.print(" mStyle="); writer.print(mStyle); in dump()
572 writer.print(" mTheme=0x"); writer.println(Integer.toHexString(mTheme)); in dump()
573 writer.print(prefix); writer.print(" mCancelable="); writer.print(mCancelable); in dump()
574 writer.print(" mShowsDialog="); writer.print(mShowsDialog); in dump()
575 writer.print(" mBackStackId="); writer.println(mBackStackId); in dump()
576 writer.print(prefix); writer.print(" mDialog="); writer.println(mDialog); in dump()
577 writer.print(prefix); writer.print(" mViewDestroyed="); writer.print(mViewDestroyed); in dump()
[all …]
DFragment.java2377 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) {
2378 writer.print(prefix); writer.print("mFragmentId=#");
2379 writer.print(Integer.toHexString(mFragmentId));
2380 writer.print(" mContainerId=#");
2381 writer.print(Integer.toHexString(mContainerId));
2382 writer.print(" mTag="); writer.println(mTag);
2383 writer.print(prefix); writer.print("mState="); writer.print(mState);
2384 writer.print(" mIndex="); writer.print(mIndex);
2385 writer.print(" mWho="); writer.print(mWho);
2386 writer.print(" mBackStackNesting="); writer.println(mBackStackNesting);
[all …]
DBackStackRecord.java248 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
249 dump(prefix, writer, true); in dump()
252 void dump(String prefix, PrintWriter writer, boolean full) { in dump() argument
254 writer.print(prefix); in dump()
255 writer.print("mName="); in dump()
256 writer.print(mName); in dump()
257 writer.print(" mIndex="); in dump()
258 writer.print(mIndex); in dump()
259 writer.print(" mCommitted="); in dump()
260 writer.println(mCommitted); in dump()
[all …]
/frameworks/base/libs/androidfw/tests/
DBackupData_test.cpp76 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/
Dandroid_hardware_camera2_DngCreator.cpp56 #define BAIL_IF_INVALID_RET_BOOL(expr, jnienv, tagId, writer) \ argument
59 "Invalid metadata for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \
64 #define BAIL_IF_INVALID_RET_NULL_SP(expr, jnienv, tagId, writer) \ argument
67 "Invalid metadata for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \
72 #define BAIL_IF_INVALID_R(expr, jnienv, tagId, writer) \ argument
75 "Invalid metadata for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \
79 #define BAIL_IF_EMPTY_RET_NULL_SP(entry, jnienv, tagId, writer) \ argument
82 "Missing metadata fields for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \
86 #define BAIL_IF_EXPR_RET_NULL_SP(expr, jnienv, tagId, writer) \ argument
89 "Invalid metadata for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \
[all …]
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionSession.java466 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
467 writer.print(prefix); writer.print("mInterface="); in dump()
468 writer.println(mInterface.asBinder()); in dump()
469 writer.print(prefix); writer.print("mCallingPackage="); writer.print(mCallingPackage); in dump()
470 writer.print(" mCallingUid="); UserHandle.formatUid(writer, mCallingUid); in dump()
471 writer.println(); in dump()
472 writer.print(prefix); writer.print("mCallback="); in dump()
473 writer.println(mCallback.asBinder()); in dump()
475 writer.print(prefix); writer.print("mExtras="); in dump()
476 writer.println(mExtras); in dump()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameType.java322 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/base/packages/SettingsLib/src/com/android/settingslib/license/
DLicenseHtmlGeneratorFromXml.java127 PrintWriter writer = null; in generateHtml() local
129 writer = new PrintWriter(outputFile); in generateHtml()
131 generateHtml(mFileNameToContentIdMap, mContentIdToFileContentMap, writer, in generateHtml()
134 writer.flush(); in generateHtml()
135 writer.close(); in generateHtml()
140 if (writer != null) { in generateHtml()
141 writer.close(); in generateHtml()
255 Map<String, String> contentIdToFileContentMap, PrintWriter writer, in generateHtml() argument
261 writer.println(HTML_HEAD_STRING); in generateHtml()
264 writer.println(noticeHeader); in generateHtml()
[all …]
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DAmbientSensor.java129 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 …]
DDisplayWhiteBalanceController.java321 public void dump(PrintWriter writer) { in dump() argument
322 writer.println("DisplayWhiteBalanceController"); in dump()
323 writer.println(" mLoggingEnabled=" + mLoggingEnabled); in dump()
324 writer.println(" mEnabled=" + mEnabled); in dump()
325 writer.println(" mCallbacks=" + mCallbacks); in dump()
326 mBrightnessSensor.dump(writer); in dump()
327 mBrightnessFilter.dump(writer); in dump()
328 mColorTemperatureSensor.dump(writer); in dump()
329 mColorTemperatureFilter.dump(writer); in dump()
330 mThrottler.dump(writer); in dump()
[all …]
DDisplayWhiteBalanceThrottler.java133 public void dump(PrintWriter writer) { in dump() argument
134 writer.println(" DisplayWhiteBalanceThrottler"); in dump()
135 writer.println(" mLoggingEnabled=" + mLoggingEnabled); in dump()
136 writer.println(" mIncreaseDebounce=" + mIncreaseDebounce); in dump()
137 writer.println(" mDecreaseDebounce=" + mDecreaseDebounce); in dump()
138 writer.println(" mLastTime=" + mLastTime); in dump()
139 writer.println(" mBaseThresholds=" + Arrays.toString(mBaseThresholds)); in dump()
140 writer.println(" mIncreaseThresholds=" + Arrays.toString(mIncreaseThresholds)); in dump()
141 writer.println(" mDecreaseThresholds=" + Arrays.toString(mDecreaseThresholds)); in dump()
142 writer.println(" mIncreaseThreshold=" + mIncreaseThreshold); in dump()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DMetricsFeatureProvider.java81 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()
102 for (LogWriter writer : mLoggerWriters) { in action()
103 writer.action(context, category, taggedData); in action()
111 for (LogWriter writer : mLoggerWriters) { in action()
112 writer.action(context, category, pkg); in action()
120 for (LogWriter writer : mLoggerWriters) { in action()
121 writer.action(attribution, action, pageId, key, value); in action()
[all …]
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/results/
DGlobalResultsStore.java292 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/tools/aapt2/io/
DUtil.cpp30 uint32_t compression_flags, IArchiveWriter* writer) { in CopyInputStreamToArchive() argument
36 if (!writer->WriteFile(out_path, compression_flags, in)) { in CopyInputStreamToArchive()
38 << " to archive: " << writer->GetError()); in CopyInputStreamToArchive()
45 uint32_t compression_flags, IArchiveWriter* writer) { in CopyFileToArchive() argument
52 return CopyInputStreamToArchive(context, data.get(), out_path, compression_flags, writer); in CopyFileToArchive()
56 const std::string& out_path, IArchiveWriter* writer) { in CopyFileToArchivePreserveCompression() argument
58 return CopyFileToArchive(context, file, out_path, compression_flags, writer); in CopyFileToArchivePreserveCompression()
63 IArchiveWriter* writer) { in CopyProtoToArchive() argument
69 if (writer->StartEntry(out_path, compression_flags)) { in CopyProtoToArchive()
73 ::google::protobuf::io::CopyingOutputStreamAdaptor adaptor(writer); in CopyProtoToArchive()
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dargument_encoder.h28 explicit ArgumentEncoder(MessageWriter* writer) : writer_{writer} {} in ArgumentEncoder() argument
46 explicit ArgumentEncoder(MessageWriter* writer) : writer_{writer} {} in ArgumentEncoder() argument
66 Return (*)(Args...), MessageWriter* writer) { in MakeArgumentEncoder() argument
67 return ArgumentEncoder<Return(Args...)>(writer); in MakeArgumentEncoder()
74 Return (Class::*)(Args...), MessageWriter* writer) { in MakeArgumentEncoder() argument
75 return ArgumentEncoder<Return(Args...)>(writer); in MakeArgumentEncoder()
82 Return (Class::*)(Args...) const, MessageWriter* writer) { in MakeArgumentEncoder() argument
83 return ArgumentEncoder<Return(Args...)>(writer); in MakeArgumentEncoder()
89 inline ArgumentEncoder<Signature> MakeArgumentEncoder(MessageWriter* writer) { in MakeArgumentEncoder() argument
90 return ArgumentEncoder<Signature>(writer); in MakeArgumentEncoder()
/frameworks/base/core/tests/coretests/src/android/os/
DPerformanceCollectorTest.java105 MockPerformanceResultsWriter writer = new MockPerformanceResultsWriter(); in testBeginSnapshot() local
106 mPerfCollector.setPerformanceResultsWriter(writer); in testBeginSnapshot()
109 assertEquals("testBeginSnapshot", writer.snapshotLabel); in testBeginSnapshot()
119 MockPerformanceResultsWriter writer = new MockPerformanceResultsWriter(); in testEndSnapshot() local
120 mPerfCollector.setPerformanceResultsWriter(writer); in testEndSnapshot()
124 Bundle snapshot2 = writer.snapshotResults; in testEndSnapshot()
132 MockPerformanceResultsWriter writer = new MockPerformanceResultsWriter(); in testStartTiming() local
133 mPerfCollector.setPerformanceResultsWriter(writer); in testStartTiming()
136 assertEquals("testStartTiming", writer.timingLabel); in testStartTiming()
172 MockPerformanceResultsWriter writer = new MockPerformanceResultsWriter(); in testAddMeasurementLong() local
[all …]
/frameworks/base/tools/aapt2/cmd/
DConvert.cpp50 IArchiveWriter* writer, uint32_t compression_flags) = 0;
51 virtual bool SerializeTable(ResourceTable* table, IArchiveWriter* writer) = 0;
52 virtual bool SerializeFile(FileReference* file, IArchiveWriter* writer) = 0;
71 IArchiveWriter* writer, uint32_t compression_flags) override { in SerializeXml() argument
80 return io::CopyInputStreamToArchive(context_, &input_stream, path, compression_flags, writer); in SerializeXml()
83 bool SerializeTable(ResourceTable* table, IArchiveWriter* writer) override { in SerializeTable() argument
92 ArchiveEntry::kAlign, writer); in SerializeTable()
95 bool SerializeFile(FileReference* file, IArchiveWriter* writer) override { in SerializeFile() argument
121 if (!SerializeXml(xml.get(), *file->path, false /*utf16*/, writer, in SerializeFile()
130 if (!io::CopyFileToArchivePreserveCompression(context_, file->file, *file->path, writer)) { in SerializeFile()
[all …]
/frameworks/base/services/core/java/com/android/server/trust/
DTrustArchive.java114 public void dump(PrintWriter writer, int limit, int userId, String linePrefix, in dump() argument
125 writer.print(linePrefix); in dump()
126 writer.printf("#%-2d %s %s: ", count, formatElapsed(ev.elapsedTimestamp), in dump()
129 writer.print("user="); writer.print(ev.userId); writer.print(", "); in dump()
132 writer.print("agent="); in dump()
134 writer.print(ev.agent.flattenToShortString()); in dump()
136 writer.print(getSimpleName(ev.agent)); in dump()
141 writer.printf(", message=\"%s\", duration=%s, flags=%s", in dump()
145 writer.printf(", managingTrust=" + ev.managingTrust); in dump()
149 writer.println(); in dump()

123456789