Home
last modified time | relevance | path

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

12345678910>>...20

/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java1035 IndentingPrintWriter writer) { in runSetAudioMirror() argument
1044 writer.printf("Could not register audio mirror status callback for zones %s %s\n", in runSetAudioMirror()
1063 writer.printf("Did not receive mirror status callback for zones %s %s\n", in runSetAudioMirror()
1068 writer.printf("Received mirror status callback for zones %s %s\n", zoneId1String, in runSetAudioMirror()
1070 writer.increaseIndent(); in runSetAudioMirror()
1072 writer.printf("Received zone[%d] %d\n", c , mMirrorStatusCallback.mZoneIds[c]); in runSetAudioMirror()
1074 writer.printf("Received status %d\n", mMirrorStatusCallback.mStatus); in runSetAudioMirror()
1075 writer.decreaseIndent(); in runSetAudioMirror()
1078 private void runUnsetAudioMirror(String[] args, IndentingPrintWriter writer) { in runUnsetAudioMirror() argument
1087 writer.println("Invalid option at index " + i + ": " + arg); in runUnsetAudioMirror()
[all …]
DICarImpl.java731 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
734 writer.println("Permission Denial: can't dump CarService from from pid=" in dump()
740 try (IndentingPrintWriter pw = new IndentingPrintWriter(writer)) { in dump()
746 private void dumpIndenting(FileDescriptor fd, IndentingPrintWriter writer, String[] args) { in dumpIndenting() argument
748 dumpAll(writer); in dumpIndenting()
753 dumpAll(writer); in dumpIndenting()
756 dumpListOfServices(writer); in dumpIndenting()
759 dumpVersions(writer); in dumpIndenting()
765 writer.println("Must pass services to dump when using --services"); in dumpIndenting()
772 writer.println("Cannot dump multiple services to proto"); in dumpIndenting()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/
DPhFlags.java3278 public void dump(@NonNull PrintWriter writer, @Nullable String[] args) { in dump() argument
3279 writer.println("\t" + FlagsConstants.KEY_PAS_UX_ENABLED + " = " + getPasUxEnabled()); in dump()
3280 writer.println( in dump()
3285 writer.println("\t" + FlagsConstants.KEY_DEBUG_UX + " = " + getDebugUx()); in dump()
3286 writer.println( in dump()
3291 writer.println("\t" + FlagsConstants.KEY_U18_UX_ENABLED + " = " + getU18UxEnabled()); in dump()
3292 writer.println( in dump()
3297 writer.println( in dump()
3302 writer.println( in dump()
3307 writer.println( in dump()
[all …]
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/table/packed/
DPackedTableReaderWriterTest.java104 PackedTableWriter writer = PackedTableWriter.create( in entryGetValue_int() local
108 writer.addEntry(1, maxRepresentableValue); in entryGetValue_int()
109 writer.close(); in entryGetValue_int()
123 PackedTableWriter writer = PackedTableWriter.create( in entryGetValue_long() local
128 writer.addEntry(maxKey, maxRepresentableValue); in entryGetValue_long()
133 writer.addEntry(minKey, minRepresentableValue); in entryGetValue_long()
134 writer.close(); in entryGetValue_long()
153 PackedTableWriter writer = PackedTableWriter.create(baos, 5, 9, signedValue, null); in valueSizeMax_unsigned() local
155 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, maxUnsignedInt + 1)); in valueSizeMax_unsigned()
156 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, minUnsignedInt - 1)); in valueSizeMax_unsigned()
[all …]
DIntValuePackedTableTest.java48 PackedTableWriter writer = PackedTableWriter.create(baos, 5, 4, signedValue, null); in valueSizeTooBig() local
49 writer.close(); in valueSizeTooBig()
65 try (PackedTableWriter writer = PackedTableWriter.create(baos, 5, 9, signedValue, null)) { in valueSizeMax_unsigned() argument
67 () -> writer.addEntry(1, maxUnsignedInt + 1)); in valueSizeMax_unsigned()
69 () -> writer.addEntry(1, minUnsignedInt - 1)); in valueSizeMax_unsigned()
70 writer.addEntry(1, maxUnsignedInt); in valueSizeMax_unsigned()
71 writer.addEntry(2, minUnsignedInt); in valueSizeMax_unsigned()
88 try (PackedTableWriter writer = PackedTableWriter.create(baos, 5, 8, signedValue, null)) { in valueSizeMax_signed() argument
90 () -> writer.addEntry(1, maxSignedInt + 1)); in valueSizeMax_signed()
92 () -> writer.addEntry(1, minSignedInt - 1)); in valueSizeMax_signed()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DActiveGestureErrorDetector.java74 @NonNull PrintWriter writer, in analyseAndDump() argument
76 writer.println(prefix + "Error messages for gesture ID: " + eventLog.logId); in analyseAndDump()
78 writer.println(prefix in analyseAndDump()
102 writer); in analyseAndDump()
110 writer); in analyseAndDump()
118 writer); in analyseAndDump()
126 writer); in analyseAndDump()
135 writer); in analyseAndDump()
146 writer); in analyseAndDump()
153 writer); in analyseAndDump()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/display/
DVirtualDisplayFragment.java157 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
161 runCmd(writer, args); in dump()
165 writer.printf("%sMaximized: %b\n", prefix, mMaximized); in dump()
166 dumpView(prefix, writer, mMaximizeButton, "Maximize screen button"); in dump()
168 writer.printf("%sCurrent number of displays: %d\n", prefix, mCurrentNumberOfDisplays); in dump()
170 writer.printf("%sDisplay resolution: %d x %d\n", prefix, mDisplayWidth, mDisplayHeight); in dump()
175 writer.printf("%sDisplay #%d:\n", prefix, (index + 1)); in dump()
176 display.dump(prefix2, writer, args); in dump()
286 private void runCmd(PrintWriter writer, String[] args) { in runCmd() argument
288 writer.println("missing command\n"); in runCmd()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/bugreport/
DLogUtils.java57 static void dumpAppOptimizationModeEventHist(Context context, PrintWriter writer) { in dumpAppOptimizationModeEventHist() argument
58 writer.println("\n\tApp Optimization Mode Event History:"); in dumpAppOptimizationModeEventHist()
61 dumpListItems(writer, events, event -> event); in dumpAppOptimizationModeEventHist()
64 static void dumpBatteryUsageDatabaseHist(Context context, PrintWriter writer) { in dumpBatteryUsageDatabaseHist() argument
66 writer.println("\nBattery PeriodicJob History:"); in dumpBatteryUsageDatabaseHist()
67 BatteryUsageLogUtils.printHistoricalLog(context, writer); in dumpBatteryUsageDatabaseHist()
68 writer.flush(); in dumpBatteryUsageDatabaseHist()
71 DatabaseUtils.dump(context, writer); in dumpBatteryUsageDatabaseHist()
72 writer.flush(); in dumpBatteryUsageDatabaseHist()
79 writer.println("\n\tBattery DatabaseHistory:"); in dumpBatteryUsageDatabaseHist()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DDeviceConfigWrapper.kt141 fun dump(prefix: String, writer: PrintWriter) { in dump()
142 writer.println("$prefix DeviceConfigWrapper:") in dump()
143 writer.println("$prefix\tcustomLpnhThresholds=$customLpnhThresholds") in dump()
144 writer.println("$prefix\tcustomLphThresholds=$customLphThresholds") in dump()
145 writer.println("$prefix\toverrideLpnhLphThresholds=$overrideLpnhLphThresholds") in dump()
146 writer.println("$prefix\tlpnhSlopPercentage=$lpnhSlopPercentage") in dump()
147 writer.println("$prefix\tanimateLpnh=$animateLpnh") in dump()
148 writer.println("$prefix\tshrinkNavHandleOnPress=$shrinkNavHandleOnPress") in dump()
149 writer.println("$prefix\tlpnhTimeoutMs=$lpnhTimeoutMs") in dump()
150 writer.println("$prefix\tenableLongPressNavHandle=$enableLongPressNavHandle") in dump()
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/util/
DMdnsUtils.java199 public static void writeMdnsPacket(@NonNull MdnsPacketWriter writer, @NonNull MdnsPacket packet) in writeMdnsPacket() argument
201 writer.writeUInt16(packet.transactionId); // Transaction ID (advertisement: 0) in writeMdnsPacket()
202 writer.writeUInt16(packet.flags); // Response, authoritative (rfc6762 18.4) in writeMdnsPacket()
203 writer.writeUInt16(packet.questions.size()); // questions count in writeMdnsPacket()
204 writer.writeUInt16(packet.answers.size()); // answers count in writeMdnsPacket()
205 writer.writeUInt16(packet.authorityRecords.size()); // authority entries count in writeMdnsPacket()
206 writer.writeUInt16(packet.additionalRecords.size()); // additional records count in writeMdnsPacket()
210 record.writeHeaderFields(writer); in writeMdnsPacket()
213 record.write(writer, 0L); in writeMdnsPacket()
216 record.write(writer, 0L); in writeMdnsPacket()
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DCaptureDataSerializer.java48 public void write(Writer writer) throws IOException; in write() argument
58 StringWriter writer = new StringWriter(); in toString() local
59 dumpMetadata(title, metadata, writer); in toString()
60 return writer.toString(); in toString()
70 FileWriter writer = new FileWriter(file, true); in toFile() local
72 dumpMetadata(title, (CaptureRequest) metadata, writer); in toFile()
74 dumpMetadata(title, (CaptureResult) metadata, writer); in toFile()
76 writer.close(); in toFile()
80 writer.close(); in toFile()
91 Writer writer) { in dumpMetadata() argument
[all …]
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/utils/
DImsMediaBitWriterTest.cpp35 ImsMediaBitWriter writer; in TEST_F() local
37 EXPECT_EQ(writer.Write(0, 24), false); in TEST_F()
38 writer.SetBuffer(dstBuffer, sizeof(dstBuffer)); in TEST_F()
39 EXPECT_EQ(writer.Write(0, 32), false); in TEST_F()
43 EXPECT_EQ(writer.Write(testBuffer[i], 8), true); in TEST_F()
46 EXPECT_EQ(writer.Write(0, 8), false); in TEST_F()
55 ImsMediaBitWriter writer; in TEST_F() local
56 writer.SetBuffer(dstBuffer, sizeof(dstBuffer)); in TEST_F()
60 EXPECT_EQ(writer.WriteByteBuffer(testBuffer + i, 8), true); in TEST_F()
71 ImsMediaBitWriter writer; in TEST_F() local
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/logging/
DFileLogTest.java55 StringWriter writer = new StringWriter(); in testPrintLog() local
56 assertTrue(FileLog.flushAll(new PrintWriter(writer))); in testPrintLog()
57 assertTrue(writer.toString().contains("hoolalala")); in testPrintLog()
60 writer = new StringWriter(); in testPrintLog()
61 assertTrue(FileLog.flushAll(new PrintWriter(writer))); in testPrintLog()
62 assertTrue(writer.toString().contains("abracadabra")); in testPrintLog()
64 assertTrue(writer.toString().contains("cat! cat!")); in testPrintLog()
67 assertTrue(writer.toString().contains("hoolalala")); in testPrintLog()
76 StringWriter writer = new StringWriter(); in testOldFileTruncated() local
77 assertTrue(FileLog.flushAll(new PrintWriter(writer))); in testOldFileTruncated()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java2061 public void dump(Context context, String prefix, PrintWriter writer) {
2062 writer.println(prefix + "DeviceProfile:");
2063 writer.println(prefix + "\t1 dp = " + mMetrics.density + " px");
2065 writer.println(prefix + "\tisTablet:" + isTablet);
2066 writer.println(prefix + "\tisPhone:" + isPhone);
2067 writer.println(prefix + "\ttransposeLayoutWithOrientation:"
2069 writer.println(prefix + "\tisGestureMode:" + isGestureMode);
2071 writer.println(prefix + "\tisLandscape:" + isLandscape);
2072 writer.println(prefix + "\tisMultiWindowMode:" + isMultiWindowMode);
2073 writer.println(prefix + "\tisTwoPanels:" + isTwoPanels);
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audiorecorder/
DAudioRecorderTestFragment.java72 boolean runCommand(IndentingPrintWriter writer) {
74 writer.println("Started recording");
81 boolean runCommand(IndentingPrintWriter writer) {
83 writer.println("Stopped recording");
90 boolean runCommand(IndentingPrintWriter writer) {
92 writer.println("Started playback");
99 boolean runCommand(IndentingPrintWriter writer) {
101 writer.println("Stopped Playback");
108 boolean runCommand(IndentingPrintWriter writer) {
109 dumpHelp(writer);
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioMirrorRequestHandler.java291 void dump(IndentingPrintWriter writer) { in dump() argument
292 writer.printf("Is audio mirroring enabled? %s\n", isMirrorAudioEnabled() ? "Yes" : "No"); in dump()
296 writer.increaseIndent(); in dump()
299 writer.println("Mirroring device info:"); in dump()
300 dumpMirrorDeviceInfosLocked(writer); in dump()
301 writer.printf("Registered callback count: %d\n", registeredCount); in dump()
302 dumpMirroringConfigurationsLocked(writer); in dump()
303 dumpZonesToIdMappingLocked(writer); in dump()
304 dumpMirrorDeviceMappingLocked(writer); in dump()
306 writer.decreaseIndent(); in dump()
[all …]
DCarVolumeGroupMuting.java131 public void dump(IndentingPrintWriter writer) { in dump() argument
132 writer.println(TAG); in dump()
133 writer.increaseIndent(); in dump()
135 writer.printf("Is muting restricted? %b\n", mIsMutingRestricted); in dump()
137 dumpCarMutingInfo(writer, mLastMutingInformation.get(index)); in dump()
140 writer.decreaseIndent(); in dump()
144 private void dumpCarMutingInfo(IndentingPrintWriter writer, MutingInfo info) { in dumpCarMutingInfo() argument
145 writer.printf("Zone ID: %d\n", info.zoneId); in dumpCarMutingInfo()
147 writer.println("Muted Devices:"); in dumpCarMutingInfo()
148 writer.increaseIndent(); in dumpCarMutingInfo()
[all …]
/packages/services/Car/service/src/com/android/car/watchdog/
DOveruseConfigurationCache.java79 public void dump(IndentingPrintWriter writer) { in dump() argument
80 writer.println("*" + getClass().getSimpleName() + "*"); in dump()
81 writer.increaseIndent(); in dump()
83 writer.println("mSafeToKillSystemPackages: " + mSafeToKillSystemPackages); in dump()
84 writer.println("mSafeToKillVendorPackages: " + mSafeToKillVendorPackages); in dump()
85 writer.println("mVendorPackagePrefixes: " + mVendorPackagePrefixes); in dump()
86 writer.println("mPackagesByAppCategoryType: "); in dump()
87 writer.increaseIndent(); in dump()
89 writer.print("App category: " in dump()
91 writer.println(", Packages: " + mPackagesByAppCategoryType.valueAt(i)); in dump()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DLicenseHtmlGeneratorFromXml.java121 PrintWriter writer = null; in generateHtml() local
123 writer = new PrintWriter(outputFile); in generateHtml()
125 generateHtml(mFileNameToContentIdMap, mContentIdToFileContentMap, writer); in generateHtml()
127 writer.flush(); in generateHtml()
128 writer.close(); in generateHtml()
133 if (writer != null) { in generateHtml()
134 writer.close(); in generateHtml()
237 Map<String, String> contentIdToFileContentMap, PrintWriter writer) { in generateHtml() argument
242 writer.println(HTML_HEAD_STRING); in generateHtml()
262 writer.format("<li><a href=\"#id%d\">%s</a></li>\n", id, fileName); in generateHtml()
[all …]
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/shell/
DShellCommandActivity.java132 private @Status int waitAndGetResult(PrintWriter writer) { in waitAndGetResult() argument
135 formatAndPrintResult(STATUS_FINISHED, mOutSw.toString(), mErrSw.toString(), writer); in waitAndGetResult()
144 formatAndPrintResult(STATUS_RUNNING, mOutSw.toString(), mErrSw.toString(), writer); in waitAndGetResult()
147 writer.println("Thread interrupted, failed to complete shell command"); in waitAndGetResult()
157 PrintWriter writer, in dump() argument
161 getShellCommandResult(args, writer); in dump()
165 super.dump(prefix, fd, writer, args); in dump()
168 private void getShellCommandResult(String[] args, PrintWriter writer) { in getShellCommandResult() argument
180 @Status int status = waitAndGetResult(writer); in getShellCommandResult()
185 writer.printf( in getShellCommandResult()
[all …]
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java349 public void writeJson(@NonNull JsonWriter writer) throws IOException { in writeJson() argument
350 Objects.requireNonNull(writer, "writer must not be null"); in writeJson()
352 writer.setLenient(true); in writeJson()
354 writer.beginObject(); in writeJson()
356 writer.name(JSON_NAME_PHYSICAL_PORT).nullValue(); in writeJson()
358 writer.name(JSON_NAME_PHYSICAL_PORT).value((int) mPhysicalPort); in writeJson()
361 writer.name(JSON_NAME_OCCUPANT_ZONE_ID).nullValue(); in writeJson()
363 writer.name(JSON_NAME_OCCUPANT_ZONE_ID).value(mOccupantZoneId); in writeJson()
366 writer.name(JSON_NAME_DISPLAY_TYPE).nullValue(); in writeJson()
368 writer.name(JSON_NAME_DISPLAY_TYPE).value(mDisplayType); in writeJson()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/media/
DMultidisplayMediaFragment.java173 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
177 runCmd(writer, args); in dump()
181 writer.printf("%SmUserContext: %s\n", prefix, mUserContexts); in dump()
182 writer.printf("%smMediaBrowsers: %s\n", prefix, mMediaBrowsers); in dump()
183 writer.printf("%smMediaControllers: %s\n", prefix, mMediaControllers); in dump()
185 writer.printf("%smUserSpinner selectedItem: %s\n", prefix, mUserSpinner.getSelectedItem()); in dump()
186 writer.printf("%smSelectedUserId: %s\n", prefix, mSelectedUserId); in dump()
187 writer.printf("%smVideoSpinner selectedItem: %s\n", in dump()
189 writer.printf("%smStartButton, enabled:%s\n", prefix, mStartButton.isEnabled()); in dump()
190 writer.printf("%smNowPlaying text: %s\n", prefix, mNowPlaying.getText()); in dump()
[all …]
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/
DUserInstanceManager.java157 void dump(PrintWriter writer, String[] args) { in dump() argument
158 writer.println("UserInstanceManager"); in dump()
160 writer.printf("%smAdServicesBaseDir: %s\n", prefix, mAdServicesBaseDir); in dump()
161 dumpPerUserManagers(writer, prefix); in dump()
162 mTopicsDao.dump(writer, prefix, args); in dump()
165 private void dumpPerUserManagers(PrintWriter writer, String prefix) { in dumpPerUserManagers() argument
200 writer.printf("%sno per-user data yet\n", prefix); in dumpPerUserManagers()
202 writer.printf("%s%d users:\n", prefix, numberUsers); in dumpPerUserManagers()
205 perUserDumpHelpers.valueAt(i).dump(writer, prefix2, perUserDumpHelpers.keyAt(i)); in dumpPerUserManagers()
246 public void dump(PrintWriter writer, String prefix, Integer userId) { in dump() argument
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/biometrics/
DBiometricPromptTestFragment.java139 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
143 runCmd(writer, args); in dump()
200 private void runCmd(PrintWriter writer, String[] args) { in runCmd() argument
202 writer.println("missing command\n"); in runCmd()
208 cmdShowHelp(writer); in runCmd()
221 cmdShowHelp(writer); in runCmd()
222 writer.printf("Invalid cmd: %s\n", Arrays.toString(args)); in runCmd()
227 private void cmdShowHelp(PrintWriter writer) { in cmdShowHelp() argument
228 writer.println("Available commands:\n"); in cmdShowHelp()
229 showCommandHelp(writer, "Shows this help message.", CMD_HELP); in cmdShowHelp()
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsRecord.java224 public final void writeHeaderFields(MdnsPacketWriter writer) throws IOException { in writeHeaderFields() argument
225 writer.writeLabels(name); in writeHeaderFields()
226 writer.writeUInt16(type); in writeHeaderFields()
227 writer.writeUInt16(cls); in writeHeaderFields()
237 public final void write(MdnsPacketWriter writer, long now) throws IOException { in write() argument
238 writeHeaderFields(writer); in write()
240 writer.writeUInt32(MILLISECONDS.toSeconds(getRemainingTTL(now))); in write()
242 int dataLengthPos = writer.getWritePosition(); in write()
243 writer.writeUInt16(0); // data length in write()
244 int dataPos = writer.getWritePosition(); in write()
[all …]

12345678910>>...20