Home
last modified time | relevance | path

Searched refs:toProto (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DIntCounterTest.java45 assertKeyCountsEqual(new Int32Count[0], counter.toProto()); in testEmpty()
70 assertKeyCountsEqual(expected, counter.toProto()); in testAddToCounter()
90 assertKeyCountsEqual(expected, counter.toProto()); in testAddToClampedCounter()
DIntHistogramTest.java94 HistogramBucketInt32[] actualProto = mHistogram.toProto(); in testAddToHistogram()
136 HistogramBucketInt32[] actualProto = mHistogram.toProto(); in testAddToHistogramWithGap()
186 HistogramBucketInt32[] actualProto = mHistogram.toProto(); in testAddNegativeToHistogram()
216 assertHistogramBucketsEqual(expectedProto, mHistogram.toProto()); in testEmptyHistogram()
239 assertHistogramBucketsEqual(expectedProto, mHistogram.toProto()); in testLength1Histogram()
DObjectCounterTest.java134 new ObjectCounter<TestKey>().toProto(TestKeyProto.class, CONVERTER)); in testEmpty()
153 TestKeyProto[] actual = counter.toProto(TestKeyProto.class, CONVERTER); in testAddToCounter()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DCallQualityMetrics.java251 private static TelephonyCallSession.Event.SignalStrength toProto(int ss) { in toProto() method in CallQualityMetrics
275 summary.worstSsWithGoodQuality = toProto(mWorstSsWithGoodDlQuality.second); in getCallQualitySummaryDl()
280 summary.bestSsWithGoodQuality = toProto(mBestSsWithGoodDlQuality.second); in getCallQualitySummaryDl()
285 summary.worstSsWithBadQuality = toProto(mWorstSsWithBadDlQuality.second); in getCallQualitySummaryDl()
290 summary.bestSsWithBadQuality = toProto(mBestSsWithBadDlQuality.second); in getCallQualitySummaryDl()
313 summary.worstSsWithGoodQuality = toProto(mWorstSsWithGoodUlQuality.second); in getCallQualitySummaryUl()
318 summary.bestSsWithGoodQuality = toProto(mBestSsWithGoodUlQuality.second); in getCallQualitySummaryUl()
323 summary.worstSsWithBadQuality = toProto(mWorstSsWithBadUlQuality.second); in getCallQualitySummaryUl()
328 summary.bestSsWithBadQuality = toProto(mBestSsWithBadUlQuality.second); in getCallQualitySummaryUl()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DIntCounter.java130 public <T> T[] toProto(Class<T> protoClass, ProtobufConverter<T> converter) { in toProto() method
144 public Int32Count[] toProto() { in toProto() method
145 return toProto(Int32Count.class, (key, count) -> { in toProto()
DIntHistogram.java236 public <T> T[] toProto(Class<T> protoClass, ProtobufConverter<T> converter) { in toProto() method
250 public HistogramBucketInt32[] toProto() { in toProto() method
251 return toProto(HistogramBucketInt32.class, (start, end, count) -> { in toProto()
DObjectCounter.java114 public <T> T[] toProto(Class<T> protoClass, ProtobufConverter<K, T> converter) { in toProto() method in ObjectCounter
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/include/timestatsproto/
DTimeStatsHelper.h52 SFTimeStatsLayerProto toProto() const;
68 SFTimeStatsGlobalProto toProto(std::optional<uint32_t> maxLayers) const;
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java72 public static List<IpConnectivityEvent> toProto(List<ConnectivityMetricsEvent> eventsIn) { in toProto() method in IpConnectivityEventBuilder
75 final IpConnectivityEvent out = toProto(in); in toProto()
84 public static IpConnectivityEvent toProto(ConnectivityMetricsEvent ev) { in toProto() method in IpConnectivityEventBuilder
93 public static IpConnectivityEvent toProto(ConnectStats in) { in toProto() method in IpConnectivityEventBuilder
107 public static IpConnectivityEvent toProto(DnsEvent in) { in toProto() method in IpConnectivityEventBuilder
119 public static IpConnectivityEvent toProto(WakeupStats in) { in toProto() method in IpConnectivityEventBuilder
140 public static IpConnectivityEvent toProto(DefaultNetworkEvent in) { in toProto() method in IpConnectivityEventBuilder
DNetdEventListenerService.java330 events.add(IpConnectivityEventBuilder.toProto(stats)); in flushStatistics()
337 events.add(IpConnectivityEventBuilder.toProto(ev)); in flushStatistics()
340 events.add(IpConnectivityEventBuilder.toProto(mWakeupStats.valueAt(i))); in flushStatistics()
371 pw.print(IpConnectivityEventBuilder.toProto(mNetworkMetrics.valueAt(i).connectMetrics)); in listAsProtos()
374 pw.print(IpConnectivityEventBuilder.toProto(mNetworkMetrics.valueAt(i).dnsMetrics)); in listAsProtos()
377 pw.print(IpConnectivityEventBuilder.toProto(mWakeupStats.valueAt(i))); in listAsProtos()
DDefaultNetworkMetrics.java86 pw.print(IpConnectivityEventBuilder.toProto(ev)); in listEventsAsProto()
92 out.add(IpConnectivityEventBuilder.toProto(ev)); in flushEvents()
DIpConnectivityMetrics.java196 final List<IpConnectivityEvent> protoEvents = IpConnectivityEventBuilder.toProto(events); in flushEncodedOutput()
246 for (IpConnectivityEvent ev : IpConnectivityEventBuilder.toProto(events)) { in cmdListAsProto()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DParseExceptionsTest.java69 serializedProto = DescriptorProto.getDescriptor().toProto().toByteArray(); in setup()
75 DescriptorProto.getDescriptor().toProto().writeDelimitedTo(bos); in setupDelimited()
226 assertEquals(DescriptorProto.getDescriptor().toProto(), in verifyExceptions()
DDescriptorsTest.java85 FieldDescriptorProto.Type protoType = type.toProto(); in testFieldTypeEnumMapping()
99 file.toProto().getName()); in testFileDescriptor()
161 assertEquals("TestAllTypes", messageType.toProto().getName()); in testDescriptor()
220 assertEquals("optional_int32", primitiveField.toProto().getName()); in testFieldDescriptor()
252 assertEquals("optional_int32_extension", extension.toProto().getName()); in testFieldDescriptor()
453 .toProto().getSerializedSize() > 65536); in testEnormousDescriptor()
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/
DTimeStatsHelper.cpp122 SFTimeStatsLayerProto TimeStatsHelper::TimeStatsLayer::toProto() const { in toProto() function in android::surfaceflinger::TimeStatsHelper::TimeStatsLayer
140 SFTimeStatsGlobalProto TimeStatsHelper::TimeStatsGlobal::toProto( in toProto() function in android::surfaceflinger::TimeStatsHelper::TimeStatsGlobal
164 layerProto->CopyFrom(ele->toProto()); in toProto()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DDescriptors.java78 public FileDescriptorProto toProto() { in toProto() method in Descriptors.FileDescriptor
514 .setPackage(packageName).addMessageType(message.toProto()).build(); in FileDescriptor()
598 public DescriptorProto toProto() { in toProto() method in Descriptors.Descriptor
907 public FieldDescriptorProto toProto() { in toProto() method in Descriptors.FieldDescriptor
1174 public FieldDescriptorProto.Type toProto() { in toProto() method in Descriptors.FieldDescriptor.Type
1298 proto.getOneofIndex() >= parent.toProto().getOneofDeclCount()) { in FieldDescriptor()
1540 public EnumDescriptorProto toProto() { in toProto() method in Descriptors.EnumDescriptor
1725 public EnumValueDescriptorProto toProto() { in toProto() method in Descriptors.EnumValueDescriptor
1826 public ServiceDescriptorProto toProto() { in toProto() method in Descriptors.ServiceDescriptor
1928 public MethodDescriptorProto toProto() { in toProto() method in Descriptors.MethodDescriptor
[all …]
DDynamicMessage.java80 int oneofDeclCount = type.toProto().getOneofDeclCount(); in getDefaultInstance()
340 this.oneofCases = new FieldDescriptor[type.toProto().getOneofDeclCount()];
/frameworks/base/tests/net/java/com/android/server/connectivity/
DIpConnectivityEventBuilderTest.java224 verifySerialization(want, IpConnectivityEventBuilder.toProto(ev)); in testDefaultNetworkEventSerialization()
507 IpConnectivityEvent got = IpConnectivityEventBuilder.toProto(stats); in testWakeupStatsSerialization()
548 IpConnectivityEventBuilder.toProto(Arrays.asList(input)); in verifySerialization()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DDescriptorsTest.java85 FieldDescriptorProto.Type protoType = type.toProto(); in testFieldTypeEnumMapping()
99 file.toProto().getName()); in testFileDescriptor()
160 assertEquals("TestAllTypes", messageType.toProto().getName()); in testDescriptor()
219 assertEquals("optional_int32", primitiveField.toProto().getName()); in testFieldDescriptor()
251 assertEquals("optional_int32_extension", extension.toProto().getName()); in testFieldDescriptor()
431 .toProto().getSerializedSize() > 65536); in testEnormousDescriptor()
/frameworks/opt/gamesdk/src/tuningfork/tools/validation/src/main/java/com/google/tuningfork/validation/
DDeveloperTuningforkParser.java76 logger.atInfo().log("Loaded Annotation message:\n" + annotationField.toProto()); in validate()
77 logger.atInfo().log("Loaded FidelityParams message:\n" + fidelityField.toProto()); in validate()
/frameworks/opt/gamesdk/src/tuningfork/tools/validation/src/test/java/com/google/tuningfork/validation/
DExternalProtoCompilerTest.java97 assertThat(stdoutDescriptor.toProto()).isEqualTo(outFileDescriptor.toProto()); in compareDescriptors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/
DDataCollector.java192 Session proto = currentSession.toProto(); in reportRejectedTouch()
212 byte[] b = Session.toByteArray(currentSession.toProto()); in queueSession()
DSensorLoggerSession.java102 public Session toProto() { in toProto() method in SensorLoggerSession
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiMetrics.java3272 linkProbeStats.successRssiCounts = mLinkProbeSuccessRssiCounts.toProto(); in consolidateProto()
3273 linkProbeStats.failureRssiCounts = mLinkProbeFailureRssiCounts.toProto(); in consolidateProto()
3274 linkProbeStats.successLinkSpeedCounts = mLinkProbeSuccessLinkSpeedCounts.toProto(); in consolidateProto()
3275 linkProbeStats.failureLinkSpeedCounts = mLinkProbeFailureLinkSpeedCounts.toProto(); in consolidateProto()
3277 mLinkProbeSuccessSecondsSinceLastTxSuccessHistogram.toProto(); in consolidateProto()
3279 mLinkProbeFailureSecondsSinceLastTxSuccessHistogram.toProto(); in consolidateProto()
3281 mLinkProbeSuccessElapsedTimeMsHistogram.toProto(); in consolidateProto()
3282 linkProbeStats.failureReasonCounts = mLinkProbeFailureReasonCounts.toProto( in consolidateProto()
3290 linkProbeStats.experimentProbeCounts = mLinkProbeExperimentProbeCounts.toProto( in consolidateProto()
3304 mWifiNetworkRequestApiMatchSizeHistogram.toProto(); in consolidateProto()
[all …]
DDppMetrics.java282 log.dppOperationTime = mHistogramDppOperationTime.toProto(); in consolidateProto()

12