/aosp14/frameworks/base/core/java/com/android/internal/usb/ |
H A D | DumpUtils.java | 112 dump.write("id", UsbInterfaceProto.ID, iface.getId()); in writeInterface() 115 dump.write("name", UsbInterfaceProto.NAME, iface.getName()); in writeInterface() 135 dump.write("type", UsbEndPointProto.TYPE, endpoint.getType()); in writeEndpoint() 136 dump.write("attributes", UsbEndPointProto.ATTRIBUTES, in writeEndpoint() 149 dump.write("id", UsbPortProto.ID, port.getId()); in writePort() 179 dump.write("supports_compliance_warnings", in writePort() 193 dump.write(idName, id, powerRole); in writePowerRole() 202 dump.write(idName, id, dataRole); in writeDataRole() 211 dump.write(idName, id, contaminantPresenceStatus); in writeContaminantPresenceStatus() 213 dump.write(idName, id, in writeContaminantPresenceStatus() [all …]
|
/aosp14/frameworks/base/libs/protoutil/tests/ |
H A D | ProtoOutputStream_test.cpp | 69 EXPECT_TRUE(proto.write(FIELD_TYPE_ENUM | PrimitiveProto::kValEnumFieldNumber, 2)); in TEST() 189 EXPECT_TRUE(proto.write(FIELD_TYPE_INT32 | ComplexProto::kIntsFieldNumber, 23)); in TEST() 190 EXPECT_TRUE(proto.write(FIELD_TYPE_INT32 | ComplexProto::kIntsFieldNumber, 101)); in TEST() 191 EXPECT_TRUE(proto.write(FIELD_TYPE_INT32 | ComplexProto::kIntsFieldNumber, -72)); in TEST() 228 EXPECT_TRUE(proto.write(FIELD_TYPE_INT32 | ComplexProto::kIntsFieldNumber, 23)); in TEST() 264 EXPECT_TRUE(proto.write(FIELD_TYPE_INT32 | ComplexProto::kIntsFieldNumber, 32)); in TEST() 265 EXPECT_TRUE(proto.write(FIELD_TYPE_INT32 | ComplexProto::kIntsFieldNumber, 15)); in TEST() 301 proto.write(FIELD_TYPE_INT32 | ComplexProto::Log::kIdFieldNumber, 14); in TEST() 330 proto.write(FIELD_TYPE_INT32 | ComplexProto::Log::kIdFieldNumber, 53); in TEST() 341 proto.write(FIELD_TYPE_INT32 | ComplexProto::Log::kIdFieldNumber, 53); in TEST() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/inputmethod/ |
H A D | InputConnectionProtoDumper.java | 68 proto.write(GetTextAfterCursor.LENGTH, length); in buildGetTextAfterCursorProto() 69 proto.write(GetTextAfterCursor.FLAGS, flags); in buildGetTextAfterCursorProto() 71 proto.write(GetTextAfterCursor.RESULT, "null result"); in buildGetTextAfterCursorProto() 96 proto.write(GetTextBeforeCursor.LENGTH, length); in buildGetTextBeforeCursorProto() 97 proto.write(GetTextBeforeCursor.FLAGS, flags); in buildGetTextBeforeCursorProto() 124 proto.write(GetSelectedText.FLAGS, flags); in buildGetSelectedTextProto() 126 proto.write(GetSelectedText.RESULT, "null result"); in buildGetSelectedTextProto() 157 proto.write(GetSurroundingText.FLAGS, flags); in buildGetSurroundingTextProto() 190 proto.write(GetCursorCapsMode.REQ_MODES, reqModes); in buildGetCursorCapsModeProto() 192 proto.write(GetCursorCapsMode.RESULT, result); in buildGetCursorCapsModeProto() [all …]
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
H A D | MediaPlayerStressTest.java | 74 output.write("File Name: " + filename); in writeTestOutput() 75 output.write(" Complete: " + CodecTest.onCompleteSuccess); in writeTestOutput() 76 output.write(" Error: " + CodecTest.mPlaybackError); in writeTestOutput() 82 output.write(" Failed To Complete With No Error: " + in writeTestOutput() 84 output.write("\n"); in writeTestOutput() 88 output.write("Total Result:\n"); in writeTestSummary() 89 output.write("Total Complete: " + mTotalComplete + "\n"); in writeTestSummary() 90 output.write("Total Error: " + mTotalPlaybackError + "\n"); in writeTestSummary() 91 output.write("Total Unknown Info: " + mTotalInfoUnknown + "\n"); in writeTestSummary() 96 output.write("Total Failed To Complete With No Error: " + in writeTestSummary() [all …]
|
H A D | MediaPlayerStreamingStressTest.java | 78 output.write("URL: " + filename); in writeTestOutput() 79 output.write(" Complete: " + CodecTest.onCompleteSuccess); in writeTestOutput() 80 output.write(" Error: " + CodecTest.mPlaybackError); in writeTestOutput() 81 output.write(" Unknown Info: " + CodecTest.mMediaInfoUnknownCount); in writeTestOutput() 86 output.write("\n"); in writeTestOutput() 90 output.write("Total Result:\n"); in writeTestSummary() 91 output.write("Total Complete: " + mTotalComplete + "\n"); in writeTestSummary() 92 output.write("Total Error: " + mTotalPlaybackError + "\n"); in writeTestSummary() 93 output.write("Total Unknown Info: " + mTotalInfoUnknown + "\n"); in writeTestSummary() 96 output.write("Total Not Seekable: " + mTotalNotSeekable + "\n"); in writeTestSummary() [all …]
|
/aosp14/system/core/rootdir/ |
H A D | init.usb.rc | 33 write /sys/class/android_usb/android0/enable 0 41 write /sys/class/android_usb/android0/enable 0 45 write /sys/class/android_usb/android0/enable 1 51 write /sys/class/android_usb/android0/enable 0 55 write /sys/class/android_usb/android0/enable 1 60 write /sys/class/android_usb/android0/enable 0 64 write /sys/class/android_usb/android0/enable 1 70 write /sys/class/android_usb/android0/enable 0 74 write /sys/class/android_usb/android0/enable 1 79 write /sys/class/android_usb/android0/enable 0 [all …]
|
H A D | init.usb.configfs.rc | 2 write /config/usb_gadget/g1/UDC "none" 5 write /config/usb_gadget/g1/bDeviceClass 0 6 write /config/usb_gadget/g1/bDeviceSubClass 0 7 write /config/usb_gadget/g1/bDeviceProtocol 0 23 write /config/usb_gadget/g1/UDC ${sys.usb.controller} 29 write /config/usb_gadget/g1/UDC ${sys.usb.controller} 39 write /config/usb_gadget/g1/UDC ${sys.usb.controller} 45 write /config/usb_gadget/g1/UDC ${sys.usb.controller} 55 write /config/usb_gadget/g1/UDC ${sys.usb.controller} 61 write /config/usb_gadget/g1/UDC ${sys.usb.controller} [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/print/ |
H A D | DumpUtils.java | 131 proto.write("name", PrinterInfoProto.NAME, info.getName()); in writePrinterInfo() 132 proto.write("status", PrinterInfoProto.STATUS, info.getStatus()); in writePrinterInfo() 156 proto.write("id", MediaSizeProto.ID, mediaSize.getId()); in writeMediaSize() 174 proto.write("id", ResolutionProto.ID, res.getId()); in writeResolution() 175 proto.write("label", ResolutionProto.LABEL, res.getLabel()); in writeResolution() 268 proto.write("start", PageRangeProto.START, range.getStart()); in writePageRange() 269 proto.write("end", PageRangeProto.END, range.getEnd()); in writePageRange() 290 proto.write("print_job_id", PrintJobInfoProto.PRINT_JOB_ID, in writePrintJobInfo() 296 proto.write("state", PrintJobInfoProto.STATE, state); in writePrintJobInfo() 308 proto.write("tag", PrintJobInfoProto.TAG, tag); in writePrintJobInfo() [all …]
|
/aosp14/frameworks/base/tools/aapt2/tools/ |
H A D | finalize_res.py | 112 finalFile.write(existing.strip("\n")) 113 finalFile.write("\n\n") 114 finalFile.write(staging.strip("\n")) 115 finalFile.write("\n") 120 stagingFile.write(stagingSplit[0]) 122 stagingFile.write("<resources>\n\n") 123 … stagingFile.write(" <!-- ===============================================================\n") 124 stagingFile.write(" Resources added in version NEXT of the platform\n\n") 128 stagingFile.write(" <eat-comment/>\n\n") 134 stagingFile.write(' <staging-public-group type="%s" first-id="%s">\n' [all …]
|
/aosp14/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | SmsHeader.java | 319 outStream.write(3); in toByteArray() 323 outStream.write(4); in toByteArray() 327 outStream.write(concatRef.msgCount); in toByteArray() 328 outStream.write(concatRef.seqNumber); in toByteArray() 334 outStream.write(2); in toByteArray() 339 outStream.write(4); in toByteArray() 348 outStream.write(1); in toByteArray() 353 outStream.write(1); in toByteArray() 358 outStream.write(2); in toByteArray() 363 outStream.write(miscElt.id); in toByteArray() [all …]
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | JsonWriter.java | 241 out.write(openBracket); in open() 260 out.write(closeBracket); in close() 315 out.write("null"); in nullValue() 401 out.write("\""); in string() 419 out.write('\\'); in string() 420 out.write(c); in string() 424 out.write("\\t"); in string() 458 out.write("\""); in string() 466 out.write("\n"); in newline() 468 out.write(indent); in newline() [all …]
|
H A D | IndentingPrintWriter.java | 181 write('\n'); in println() 185 public void write(int c) { in write() method in IndentingPrintWriter 187 write(mSingleChar, 0, 1); in write() 191 public void write(@NonNull String s, int off, int len) { in write() method in IndentingPrintWriter 194 write(buf, 0, len); in write() 198 public void write(@NonNull char[] buf, int offset, int count) { in write() method in IndentingPrintWriter 210 super.write(buf, lineStart, lineEnd - lineStart); in write() 220 super.write('\n'); in write() 226 super.write(buf, lineStart, lineEnd - lineStart); in write() 227 super.write('\n'); in write() [all …]
|
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | GraphExporter.java | 72 dotFile.write(" { "); in exportAsDot() 78 dotFile.write(" } | "); in exportAsDot() 82 dotFile.write(filter.getName()); in exportAsDot() 87 dotFile.write(" | { "); in exportAsDot() 93 dotFile.write(" } "); in exportAsDot() 96 dotFile.write("}\"];\n"); in exportAsDot() 98 dotFile.write("\n"); in exportAsDot() 110 dotFile.write(" " + in exportAsDot() 119 dotFile.write(" " + in exportAsDot() 137 dotFile.write(" " + in exportAsDot() [all …]
|
/aosp14/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbMidiPacketConverter.java | 117 mEncoderOutputStream.write(encodedPacket, 0, encodedPacket.length); in encodeMidiPackets() 249 outputStream.write(mStoredSystemExclusiveBytes, 0, 3); in encode() 274 outputStream.write(codeIndexNumber | mShiftedCableNumber); in encode() 277 outputStream.write(mEmptyBytes, 0, 3 - channelMessageSize); in encode() 292 outputStream.write((CODE_INDEX_NUMBER_SYSEX_END_SINGLE_BYTE in encode() 297 outputStream.write(mStoredSystemExclusiveBytes, 0, in encode() 313 outputStream.write(codeIndexNumber | mShiftedCableNumber); in encode() 331 outputStream.write(CODE_INDEX_NUMBER_SINGLE_BYTE | mShiftedCableNumber); in writeSingleByte() 332 outputStream.write(byteToWrite); in writeSingleByte() 333 outputStream.write(0); in writeSingleByte() [all …]
|
/aosp14/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
H A D | UsbEndpointDescriptor.java | 166 canvas.write("Control"); in report() 169 canvas.write("Iso"); in report() 172 canvas.write("Bulk"); in report() 175 canvas.write("Interrupt"); in report() 184 canvas.write("Aync: "); in report() 187 canvas.write("NONE"); in report() 190 canvas.write("ASYNC"); in report() 199 canvas.write("Useage: "); in report() 202 canvas.write("DATA"); in report() 205 canvas.write("FEEDBACK"); in report() [all …]
|
H A D | UsbMidiBlockParser.java | 85 dump.write("length", UsbGroupTerminalBlockProto.LENGTH, mLength); in dump() 86 dump.write("descriptor_type", UsbGroupTerminalBlockProto.DESCRIPTOR_TYPE, in dump() 88 dump.write("descriptor_subtype", UsbGroupTerminalBlockProto.DESCRIPTOR_SUBTYPE, in dump() 91 dump.write("group_terminal_block_type", in dump() 93 dump.write("group_terminal", UsbGroupTerminalBlockProto.GROUP_TERMINAL, in dump() 95 dump.write("num_group_terminals", UsbGroupTerminalBlockProto.NUM_GROUP_TERMINALS, in dump() 97 dump.write("block_item", UsbGroupTerminalBlockProto.BLOCK_ITEM, mBlockItem); in dump() 213 dump.write("length", UsbMidiBlockParserProto.LENGTH, mHeaderLength); in dump() 214 dump.write("descriptor_type", UsbMidiBlockParserProto.DESCRIPTOR_TYPE, in dump() 216 dump.write("descriptor_subtype", UsbMidiBlockParserProto.DESCRIPTOR_SUBTYPE, in dump() [all …]
|
H A D | Usb10ACMixerUnit.java | 89 canvas.write("Num Inputs: " + numInputs + " ["); in report() 91 canvas.write("" + ReportCanvas.getHexString(inputIDs[input])); in report() 93 canvas.write(" "); in report() 96 canvas.write("]"); in report() 104 canvas.write("Controls: " + controls.length + " ["); in report() 106 canvas.write("" + controls[ctrl]); in report() 108 canvas.write(" "); in report() 111 canvas.write("]"); in report()
|
/aosp14/frameworks/base/core/java/android/companion/virtual/audio/ |
H A D | AudioInjection.java | 121 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in write() method in AudioInjection 122 return write(audioData, offsetInBytes, sizeInBytes, WRITE_BLOCKING); in write() 126 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in write() method in AudioInjection 140 public int write(@NonNull ByteBuffer audioBuffer, int sizeInBytes, int writeMode) { in write() method in AudioInjection 144 sizeWrite = mAudioTrack.write(audioBuffer, sizeInBytes, writeMode); in write() 153 public int write(@NonNull ByteBuffer audioBuffer, int sizeInBytes, in write() method in AudioInjection 158 sizeWrite = mAudioTrack.write(audioBuffer, sizeInBytes, writeMode, timestamp); in write() 167 public int write(@NonNull float[] audioData, int offsetInFloats, int sizeInFloats, in write() method in AudioInjection 181 public int write(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) { in write() method in AudioInjection 182 return write(audioData, offsetInShorts, sizeInShorts, WRITE_BLOCKING); in write() [all …]
|
/aosp14/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/results/ |
H A D | GlobalResultsStore.java | 309 writer.write(testName); in exportToCsv() 310 writer.write(","); in exportToCsv() 311 writer.write("" + i); in exportToCsv() 312 writer.write(","); in exportToCsv() 314 writer.write(","); in exportToCsv() 316 writer.write(","); in exportToCsv() 318 writer.write(","); in exportToCsv() 321 writer.write(","); in exportToCsv() 324 writer.write("\n"); in exportToCsv() 327 writer.write("Score CV," + in exportToCsv() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | DiskStatsService.java | 83 fos.write(junk); in dump() 134 proto.write(DiskStatsServiceDumpProto.ENCRYPTION, in dump() 137 proto.write(DiskStatsServiceDumpProto.ENCRYPTION, in dump() 248 proto.write(DiskStatsCachedValuesProto.AGG_APPS_SIZE_KB, in reportCachedValuesProto() 254 proto.write(DiskStatsCachedValuesProto.PHOTOS_SIZE_KB, in reportCachedValuesProto() 256 proto.write(DiskStatsCachedValuesProto.VIDEOS_SIZE_KB, in reportCachedValuesProto() 258 proto.write(DiskStatsCachedValuesProto.AUDIO_SIZE_KB, in reportCachedValuesProto() 260 proto.write(DiskStatsCachedValuesProto.DOWNLOADS_SIZE_KB, in reportCachedValuesProto() 262 proto.write(DiskStatsCachedValuesProto.SYSTEM_SIZE_KB, in reportCachedValuesProto() 264 proto.write(DiskStatsCachedValuesProto.OTHER_SIZE_KB, in reportCachedValuesProto() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/ |
H A D | Vibration.java | 257 proto.write(VibrationProto.START_TIME, mStartTime); in dumpProto() 258 proto.write(VibrationProto.END_TIME, mEndTime); in dumpProto() 259 proto.write(VibrationProto.DURATION_MS, mDurationMs); in dumpProto() 260 proto.write(VibrationProto.STATUS, mStatus.ordinal()); in dumpProto() 264 proto.write(VibrationAttributesProto.USAGE, attrs.getUsage()); in dumpProto() 266 proto.write(VibrationAttributesProto.FLAGS, attrs.getFlags()); in dumpProto() 349 proto.write(StepSegmentProto.DURATION, segment.getDuration()); in dumpEffect() 350 proto.write(StepSegmentProto.AMPLITUDE, segment.getAmplitude()); in dumpEffect() 357 proto.write(RampSegmentProto.DURATION, segment.getDuration()); in dumpEffect() 378 proto.write(PrimitiveSegmentProto.SCALE, segment.getScale()); in dumpEffect() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationHistoryProtoHelper.java | 234 proto.write(Notification.Icon.IMAGE_DATA_LENGTH, in writeIcon() 236 proto.write(Notification.Icon.IMAGE_DATA_OFFSET, in writeIcon() 242 proto.write(Notification.Icon.IMAGE_RESOURCE_ID_PACKAGE, in writeIcon() 262 proto.write(Notification.PACKAGE_INDEX, packageIndex + 1); in writeNotification() 267 proto.write(Notification.PACKAGE, notification.getPackage()); in writeNotification() 279 proto.write(Notification.CHANNEL_ID_INDEX, channelIdIndex + 1); in writeNotification() 296 proto.write(Notification.UID, notification.getUid()); in writeNotification() 297 proto.write(Notification.USER_ID, notification.getUserId()); in writeNotification() 299 proto.write(Notification.TITLE, notification.getTitle()); in writeNotification() 300 proto.write(Notification.TEXT, notification.getText()); in writeNotification() [all …]
|
/aosp14/frameworks/base/core/java/android/service/notification/ |
H A D | ZenPolicy.java | 1121 proto.write(ZenPolicyProto.CALLS, getPriorityCategoryCalls()); in dumpDebug() 1124 proto.write(ZenPolicyProto.MEDIA, getPriorityCategoryMedia()); in dumpDebug() 1128 proto.write(ZenPolicyProto.LIGHTS, getVisualEffectLights()); in dumpDebug() 1129 proto.write(ZenPolicyProto.PEEK, getVisualEffectPeek()); in dumpDebug() 1131 proto.write(ZenPolicyProto.BADGE, getVisualEffectBadge()); in dumpDebug() 1132 proto.write(ZenPolicyProto.AMBIENT, getVisualEffectAmbient()); in dumpDebug() 1148 proto.write(DNDPolicyProto.CALLS, getPriorityCategoryCalls()); in toProto() 1155 proto.write(DNDPolicyProto.MEDIA, getPriorityCategoryMedia()); in toProto() 1159 proto.write(DNDPolicyProto.LIGHTS, getVisualEffectLights()); in toProto() 1160 proto.write(DNDPolicyProto.PEEK, getVisualEffectPeek()); in toProto() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/integrity/model/ |
H A D | ByteTrackedOutputStream.java | 39 public void write(int b) throws IOException { in write() method in ByteTrackedOutputStream 41 mOutputStream.write(b); in write() 49 public void write(byte[] bytes) throws IOException { in write() method in ByteTrackedOutputStream 50 write(bytes, 0, bytes.length); in write() 54 public void write(byte[] b, int off, int len) throws IOException { in write() method in ByteTrackedOutputStream 56 mOutputStream.write(b, off, len); in write()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | LocalSocketTest.java | 59 ls.getOutputStream().write(42); in testBasic() 72 ls.getOutputStream().write(42); in testBasic() 81 ls1.getOutputStream().write(new byte[]{0, 1, 2, 3, 4, 5}, 1, 5); in testBasic() 106 ls.getOutputStream().write(buffer, 1, 16); in testBasic() 113 ls.getOutputStream().write(buffer, -1, 15); in testBasic() 120 ls.getOutputStream().write(buffer, 0, -1); in testBasic() 141 ls.getOutputStream().write(42); in testBasic() 153 ls.getOutputStream().write(42); in testBasic() 171 ls1.getOutputStream().write(42); in testBasic()
|