Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 1183) sorted by relevance

12345678910>>...48

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dencoder.py372 def EncodeVarint(write, value): argument
376 write(six.int2byte(0x80|bits))
379 return write(six.int2byte(bits))
388 def EncodeSignedVarint(write, value): argument
394 write(six.int2byte(0x80|bits))
397 return write(six.int2byte(bits))
440 def EncodePackedField(write, value): argument
441 write(tag_bytes)
445 local_EncodeVarint(write, size)
447 encode_value(write, element)
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DWap230WspContentTypeTest.java258 out.write(0x00); in testDecodeReturnsFalse_WhenOnlyAZeroBytePresent()
267 out.write(testType.getBytes("US-ASCII")); in testConstrainedMediaExtensionMedia()
268 out.write(WSP_STRING_TERMINATOR); in testConstrainedMediaExtensionMedia()
282 out.write(testType.length() + 1); in testGeneralFormShortLengthExtensionMedia()
283 out.write(testType.getBytes("US-ASCII")); in testGeneralFormShortLengthExtensionMedia()
284 out.write(WSP_STRING_TERMINATOR); in testGeneralFormShortLengthExtensionMedia()
298 out.write(0x01); in testGeneralFormShortLengthWellKnownShortInteger()
299 out.write(SHORT_MIME_TYPE_ROLLOVER_CERTIFICATE | WSP_SHORT_INTEGER_MASK); in testGeneralFormShortLengthWellKnownShortInteger()
314 out.write(0x01); in testGeneralFormShortLengthWellKnownShortIntegerWithUnknownValue()
315 out.write(SHORT_MIME_TYPE_UNASSIGNED | WSP_SHORT_INTEGER_MASK); in testGeneralFormShortLengthWellKnownShortIntegerWithUnknownValue()
[all …]
/frameworks/base/core/java/com/android/internal/usb/
DDumpUtils.java54 dump.write("manufacturer", UsbAccessoryProto.MANUFACTURER, accessory.getManufacturer()); in writeAccessory()
55 dump.write("model", UsbAccessoryProto.MODEL, accessory.getModel()); in writeAccessory()
58 dump.write("version", UsbAccessoryProto.VERSION, accessory.getVersion()); in writeAccessory()
60 dump.write("serial", UsbAccessoryProto.SERIAL, accessory.getSerial()); in writeAccessory()
69 dump.write("name", UsbDeviceProto.NAME, device.getDeviceName()); in writeDevice()
70 dump.write("vendor_id", UsbDeviceProto.VENDOR_ID, device.getVendorId()); in writeDevice()
71 dump.write("product_id", UsbDeviceProto.PRODUCT_ID, device.getProductId()); in writeDevice()
72 dump.write("class", UsbDeviceProto.CLASS, device.getDeviceClass()); in writeDevice()
73 dump.write("subclass", UsbDeviceProto.SUBCLASS, device.getDeviceSubclass()); in writeDevice()
74 dump.write("protocol", UsbDeviceProto.PROTOCOL, device.getDeviceProtocol()); in writeDevice()
[all …]
/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp54 EXPECT_TRUE(proto.write(FIELD_TYPE_INT32 | PrimitiveProto::kValInt32FieldNumber, 123)); in TEST()
55 EXPECT_TRUE(proto.write(FIELD_TYPE_INT64 | PrimitiveProto::kValInt64FieldNumber, -1LL)); in TEST()
56 EXPECT_TRUE(proto.write(FIELD_TYPE_FLOAT | PrimitiveProto::kValFloatFieldNumber, -23.5f)); in TEST()
57 EXPECT_TRUE(proto.write(FIELD_TYPE_DOUBLE | PrimitiveProto::kValDoubleFieldNumber, 324.5)); in TEST()
58 EXPECT_TRUE(proto.write(FIELD_TYPE_UINT32 | PrimitiveProto::kValUint32FieldNumber, 3424)); in TEST()
59 EXPECT_TRUE(proto.write(FIELD_TYPE_UINT64 | PrimitiveProto::kValUint64FieldNumber, 57LL)); in TEST()
60 EXPECT_TRUE(proto.write(FIELD_TYPE_FIXED32 | PrimitiveProto::kValFixed32FieldNumber, -20)); in TEST()
61 EXPECT_TRUE(proto.write(FIELD_TYPE_FIXED64 | PrimitiveProto::kValFixed64FieldNumber, -37LL)); in TEST()
62 EXPECT_TRUE(proto.write(FIELD_TYPE_BOOL | PrimitiveProto::kValBoolFieldNumber, true)); in TEST()
63 EXPECT_TRUE(proto.write(FIELD_TYPE_STRING | PrimitiveProto::kValStringFieldNumber, s)); in TEST()
[all …]
/frameworks/base/cmds/statsd/tests/external/
Dpuller_util_test.cpp64 event->write(isolatedUid); in TEST()
65 event->write(hostNonAdditiveData); in TEST()
66 event->write(isolatedAdditiveData); in TEST()
72 event->write(hostUid); in TEST()
73 event->write(hostNonAdditiveData); in TEST()
74 event->write(hostAdditiveData); in TEST()
96 event->write(isolatedUid); in TEST()
97 event->write(isolatedNonAdditiveData); in TEST()
98 event->write(isolatedAdditiveData); in TEST()
104 event->write(hostUid); in TEST()
[all …]
DGpuStatsPuller_test.cpp96 EXPECT_TRUE(event->write(DRIVER_PACKAGE_NAME)); in TEST_F()
97 EXPECT_TRUE(event->write(DRIVER_VERSION_NAME)); in TEST_F()
98 EXPECT_TRUE(event->write(DRIVER_VERSION_CODE)); in TEST_F()
99 EXPECT_TRUE(event->write(DRIVER_BUILD_TIME)); in TEST_F()
100 EXPECT_TRUE(event->write(GL_LOADING_COUNT)); in TEST_F()
101 EXPECT_TRUE(event->write(GL_LOADING_FAILURE_COUNT)); in TEST_F()
102 EXPECT_TRUE(event->write(VK_LOADING_COUNT)); in TEST_F()
103 EXPECT_TRUE(event->write(VK_LOADING_FAILURE_COUNT)); in TEST_F()
104 EXPECT_TRUE(event->write(VULKAN_VERSION)); in TEST_F()
105 EXPECT_TRUE(event->write(CPU_VULKAN_VERSION)); in TEST_F()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaSmsCbTest.java89 bos.write(8, SUBPARAM_MESSAGE_IDENTIFIER); in createBearerDataStream()
90 bos.write(8, 3); // length: 3 bytes in createBearerDataStream()
91 bos.write(4, BearerData.MESSAGE_TYPE_DELIVER); in createBearerDataStream()
92 bos.write(8, ((messageId >>> 8) & 0xff)); in createBearerDataStream()
93 bos.write(8, (messageId & 0xff)); in createBearerDataStream()
94 bos.write(1, 0); // no User Data Header in createBearerDataStream()
95 bos.write(3, 0); // reserved in createBearerDataStream()
98 bos.write(8, SUBPARAM_PRIORITY_INDICATOR); in createBearerDataStream()
99 bos.write(8, 1); // length: 1 byte in createBearerDataStream()
100 bos.write(2, (priority & 0x03)); in createBearerDataStream()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DMediaPlayerStressTest.java74 output.write("File Name: " + filename); in writeTestOutput()
75 output.write(" Complete: " + CodecTest.onCompleteSuccess); in writeTestOutput()
76 output.write(" Error: " + CodecTest.mPlaybackError); in writeTestOutput()
77 output.write(" Unknown Info: " + CodecTest.mMediaInfoUnknownCount); in writeTestOutput()
78 output.write(" Track Lagging: " + CodecTest.mMediaInfoVideoTrackLaggingCount); in writeTestOutput()
79 output.write(" Bad Interleaving: " + CodecTest.mMediaInfoBadInterleavingCount); in writeTestOutput()
80 output.write(" Not Seekable: " + CodecTest.mMediaInfoNotSeekableCount); in writeTestOutput()
81 output.write(" Info Meta data update: " + CodecTest.mMediaInfoMetdataUpdateCount); in writeTestOutput()
82 output.write(" Failed To Complete With No Error: " + in writeTestOutput()
84 output.write("\n"); in writeTestOutput()
[all …]
DMediaPlayerStreamingStressTest.java78 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()
82 output.write(" Track Lagging: " + CodecTest.mMediaInfoVideoTrackLaggingCount); in writeTestOutput()
83 output.write(" Bad Interleaving: " + CodecTest.mMediaInfoBadInterleavingCount); in writeTestOutput()
84 output.write(" Not Seekable: " + CodecTest.mMediaInfoNotSeekableCount); in writeTestOutput()
85 output.write(" Info Meta data update: " + CodecTest.mMediaInfoMetdataUpdateCount); in writeTestOutput()
86 output.write("\n"); in writeTestOutput()
90 output.write("Total Result:\n"); in writeTestSummary()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsHeader.java229 outStream.write(ELT_ID_CONCATENATED_8_BIT_REFERENCE); in toByteArray()
230 outStream.write(3); in toByteArray()
231 outStream.write(concatRef.refNumber); in toByteArray()
233 outStream.write(ELT_ID_CONCATENATED_16_BIT_REFERENCE); in toByteArray()
234 outStream.write(4); in toByteArray()
235 outStream.write(concatRef.refNumber >>> 8); in toByteArray()
236 outStream.write(concatRef.refNumber & 0x00FF); in toByteArray()
238 outStream.write(concatRef.msgCount); in toByteArray()
239 outStream.write(concatRef.seqNumber); in toByteArray()
244 outStream.write(ELT_ID_APPLICATION_PORT_ADDRESSING_8_BIT); in toByteArray()
[all …]
/frameworks/base/cmds/statsd/src/external/
DGpuStatsPuller.cpp60 if (!event->write(info.driverPackageName)) return false; in pullGpuStatsGlobalInfo()
61 if (!event->write(info.driverVersionName)) return false; in pullGpuStatsGlobalInfo()
62 if (!event->write((int64_t)info.driverVersionCode)) return false; in pullGpuStatsGlobalInfo()
63 if (!event->write(info.driverBuildTime)) return false; in pullGpuStatsGlobalInfo()
64 if (!event->write((int64_t)info.glLoadingCount)) return false; in pullGpuStatsGlobalInfo()
65 if (!event->write((int64_t)info.glLoadingFailureCount)) return false; in pullGpuStatsGlobalInfo()
66 if (!event->write((int64_t)info.vkLoadingCount)) return false; in pullGpuStatsGlobalInfo()
67 if (!event->write((int64_t)info.vkLoadingFailureCount)) return false; in pullGpuStatsGlobalInfo()
68 if (!event->write(info.vulkanVersion)) return false; in pullGpuStatsGlobalInfo()
69 if (!event->write(info.cpuVulkanVersion)) return false; in pullGpuStatsGlobalInfo()
[all …]
/frameworks/base/core/java/com/android/internal/print/
DDumpUtils.java61 proto.write("local_id", PrinterIdProto.LOCAL_ID, printerId.getLocalId()); in writePrinterId()
93 proto.write("color_modes", PrinterCapabilitiesProto.COLOR_MODES, in writePrinterCapabilities()
97 proto.write("color_modes", PrinterCapabilitiesProto.COLOR_MODES, in writePrinterCapabilities()
102 proto.write("duplex_modes", PrinterCapabilitiesProto.DUPLEX_MODES, in writePrinterCapabilities()
106 proto.write("duplex_modes", PrinterCapabilitiesProto.DUPLEX_MODES, in writePrinterCapabilities()
110 proto.write("duplex_modes", PrinterCapabilitiesProto.DUPLEX_MODES, in writePrinterCapabilities()
131 proto.write("name", PrinterInfoProto.NAME, info.getName()); in writePrinterInfo()
132 proto.write("status", PrinterInfoProto.STATUS, info.getStatus()); in writePrinterInfo()
133 proto.write("description", PrinterInfoProto.DESCRIPTION, info.getDescription()); in writePrinterInfo()
156 proto.write("id", MediaSizeProto.ID, mediaSize.getId()); in writeMediaSize()
[all …]
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
DSequencePusher.java80 StatsLog.write(StatsLog.BATTERY_LEVEL_CHANGED, 50 + i /* battery_level */); in next()
86 StatsLog.write(StatsLog.BLE_SCAN_RESULT_RECEIVED, i /* uid */, in next()
92 StatsLog.write(StatsLog.CHARGING_STATE_CHANGED, in next()
99 StatsLog.write(StatsLog.GPS_SCAN_STATE_CHANGED, i /* uid */, in next()
105 StatsLog.write(StatsLog.CHARGING_STATE_CHANGED, in next()
112 StatsLog.write(StatsLog.GPS_SCAN_STATE_CHANGED, i /* uid */, in next()
117 StatsLog.write(StatsLog.SCREEN_STATE_CHANGED, in next()
122 StatsLog.write(StatsLog.AUDIO_STATE_CHANGED, i /* uid */, in next()
127 StatsLog.write(StatsLog.SCREEN_STATE_CHANGED, in next()
132 StatsLog.write(StatsLog.AUDIO_STATE_CHANGED, i /* uid */, in next()
[all …]
/frameworks/base/cmds/statsd/src/
Dstats_log_util.cpp109 protoOutput->write(FIELD_TYPE_INT32 | DIMENSIONS_VALUE_FIELD, fieldNum); in writeDimensionToProtoHelper()
112 protoOutput->write(FIELD_TYPE_INT32 | DIMENSIONS_VALUE_VALUE_INT, in writeDimensionToProtoHelper()
116 protoOutput->write(FIELD_TYPE_INT64 | DIMENSIONS_VALUE_VALUE_LONG, in writeDimensionToProtoHelper()
120 protoOutput->write(FIELD_TYPE_FLOAT | DIMENSIONS_VALUE_VALUE_FLOAT, in writeDimensionToProtoHelper()
125 protoOutput->write(FIELD_TYPE_STRING | DIMENSIONS_VALUE_VALUE_STR, in writeDimensionToProtoHelper()
129 protoOutput->write( in writeDimensionToProtoHelper()
145 protoOutput->write(FIELD_TYPE_INT32 | DIMENSIONS_VALUE_FIELD, fieldNum); in writeDimensionToProtoHelper()
179 protoOutput->write(FIELD_TYPE_INT32 | DIMENSIONS_VALUE_VALUE_INT, in writeDimensionLeafToProtoHelper()
183 protoOutput->write(FIELD_TYPE_INT64 | DIMENSIONS_VALUE_VALUE_LONG, in writeDimensionLeafToProtoHelper()
187 protoOutput->write(FIELD_TYPE_FLOAT | DIMENSIONS_VALUE_VALUE_FLOAT, in writeDimensionLeafToProtoHelper()
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DDistortionMapperComp.py32 f.write('// Generated by DistortionMapperComp.py\n');
33 f.write('// for use by DistortionMapperTest.cpp\n\n');
35 f.write('namespace openCvData {\n')
36 f.write('std::array<int32_t, %d> rawCoords = {\n' % (rawCoords.shape[0] * rawCoords.shape[1]))
38 f.write(' %d, %d,\n' % (rawCoords[i][0], rawCoords[i][1]))
39 f.write('};\n')
41 f.write('std::array<int32_t, %d> expCoords = {\n' % (expCoords.shape[0] * expCoords.shape[2]))
43 f.write(' %d, %d,\n' % (expCoords[i][0][0], expCoords[i][0][1]))
44 f.write('};\n')
45 f.write('} // namespace openCvData\n')
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DOsuProviderInfoTestUtil.java68 out.write(payload); in getTestData()
86 out.write(payload); in getTestDataWithInvalidLength()
106 out.write(friendlyNamesData); in getTestPayload()
112 out.write((byte) TEST_METHOD_LIST.size()); in getTestPayload()
114 out.write((byte) method.intValue()); in getTestPayload()
119 out.write(IconInfoTestUtil.TEST_ICON_INFO_RAW_BYTES); in getTestPayload()
127 out.write(serviceDescriptionsData); in getTestPayload()
136 out.write((byte) data.length); in getI18NameListData()
137 out.write(data); in getI18NameListData()
151 out.write(value.getLanguage().getBytes(StandardCharsets.US_ASCII)); in getI18NameData()
[all …]
DANQPParserTest.java54 stream.write(new byte[VenueNameElement.VENUE_INFO_LENGTH]); in getVenueNamePayload()
55 stream.write(getI18NameListPayload(language, text)); in getVenueNamePayload()
70 stream.write((byte) nameBytes.length); in getDomainNamePayload()
71 stream.write(nameBytes); in getDomainNamePayload()
88 stream.write((byte) oisLength[i]); in getRoamingConsortiumPayload()
91 stream.write((byte) ((ois[i].longValue() >> l * Byte.SIZE) & 0xFF)); in getRoamingConsortiumPayload()
107 stream.write((byte) (realmDataList.length & 0xFF)); in getNAIRealmPayload()
108 stream.write((byte) ((realmDataList.length >> 8) & 0xFF)); in getNAIRealmPayload()
110 stream.write(realmData); in getNAIRealmPayload()
125 stream.write((byte) ThreeGPPNetworkElement.GUD_VERSION_1); in getThreeGPPNetworkPayload()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/
DRSUnitTests.py183 gen_file.write(
220 gen_file.write(
224 gen_file.write(' $(call all-java-files-under,{})\\\n'.format(src_dir))
226 gen_file.write(
231 gen_file.write(
235 gen_file.write(' $(my_rs_unit_tests_path)/{}\\\n'.format(rs_file))
243 gen_file.write(
323 out_file.write(
331 out_file.write(line)
339 out_file.write(
[all …]
/frameworks/base/core/java/android/util/
DJsonWriter.java241 out.write(openBracket); in open()
260 out.write(closeBracket); in close()
315 out.write("null"); in nullValue()
326 out.write(value ? "true" : "false"); in value()
353 out.write(Long.toString(value)); in value()
401 out.write("\""); in string()
419 out.write('\\'); in string()
420 out.write(c); in string()
424 out.write("\\t"); in string()
428 out.write("\\b"); in string()
[all …]
/frameworks/base/obex/javax/obex/
DObexHelper.java386 out.write((byte)HeaderSet.CONNECTION_ID); in createHeader()
387 out.write(headImpl.mConnectionID); in createHeader()
393 out.write((byte)HeaderSet.COUNT); in createHeader()
395 out.write(value); in createHeader()
404 out.write((byte)HeaderSet.NAME); in createHeader()
409 out.write(lengthArray); in createHeader()
410 out.write(value); in createHeader()
415 out.write((byte) HeaderSet.NAME); in createHeader()
418 out.write(lengthArray); in createHeader()
424 out.write((byte)HeaderSet.TYPE); in createHeader()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphExporter.java58 dotFile.write("digraph graphname {\n"); in exportAsDot()
59 dotFile.write(" node [shape=record];\n"); in exportAsDot()
67 dotFile.write(getDotName(" " + filter.getName()) + " [label=\"{"); in exportAsDot()
72 dotFile.write(" { "); in exportAsDot()
75 dotFile.write("<" + getDotName(p) + "_IN>" + p); in exportAsDot()
76 if(++counter != inputPorts.size()) dotFile.write(" | "); in exportAsDot()
78 dotFile.write(" } | "); in exportAsDot()
82 dotFile.write(filter.getName()); in exportAsDot()
87 dotFile.write(" | { "); in exportAsDot()
90 dotFile.write("<" + getDotName(p) + "_OUT>" + p); in exportAsDot()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbEndpointDescriptor.java149 canvas.write("Attributes: " + ReportCanvas.getHexString(attributes) + " "); in report()
152 canvas.write("Control"); in report()
155 canvas.write("Iso"); in report()
158 canvas.write("Bulk"); in report()
161 canvas.write("Interrupt"); in report()
170 canvas.write("Aync: "); in report()
173 canvas.write("NONE"); in report()
176 canvas.write("ASYNC"); in report()
179 canvas.write("ADAPTIVE ASYNC"); in report()
185 canvas.write("Useage: "); in report()
[all …]
/frameworks/av/media/libstagefright/foundation/
DAudioPresentationInfo.cpp31 serializedOutput->write(reinterpret_cast<char*>(&numPresentations), sizeof(numPresentations)); in serializeAudioPresentations()
34 serializedOutput->write( in serializeAudioPresentations()
37 serializedOutput->write( in serializeAudioPresentations()
40 serializedOutput->write( in serializeAudioPresentations()
45 serializedOutput->write( in serializeAudioPresentations()
50 serializedOutput->write( in serializeAudioPresentations()
53 serializedOutput->write(label.first.c_str(), labelKeySize); in serializeAudioPresentations()
56 serializedOutput->write( in serializeAudioPresentations()
59 serializedOutput->write(label.second.c_str(), labelValSize); in serializeAudioPresentations()
63 serializedOutput->write( in serializeAudioPresentations()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DIndentingPrintWriter.java108 write('\n'); in println()
112 public void write(int c) { in write() method in IndentingPrintWriter
114 write(mSingleChar, 0, 1); in write()
118 public void write(String s, int off, int len) { in write() method in IndentingPrintWriter
121 write(buf, 0, len); in write()
125 public void write(char[] buf, int offset, int count) { in write() method in IndentingPrintWriter
137 super.write(buf, lineStart, lineEnd - lineStart); in write()
147 super.write('\n'); in write()
153 super.write(buf, lineStart, lineEnd - lineStart); in write()
154 super.write('\n'); in write()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DResponseData.java45 buf.write(0x81); in writeLength()
47 buf.write(length); in writeLength()
64 buf.write(tag); // tag in format()
65 buf.write(1); // length in format()
66 buf.write(mId); // identifier of item chosen in format()
107 buf.write(tag); // tag in format()
159 buf.write(0x08); // UCS2 in format()
161 buf.write(0x00); // 7 bit packed in format()
163 buf.write(0x04); // 8 bit unpacked in format()
167 buf.write(b); in format()
[all …]

12345678910>>...48