Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/Tracing/
DTransactionProtoParser.h47 perfetto::protos::TransactionState toProto(const TransactionState&);
48 perfetto::protos::TransactionState toProto(
50 perfetto::protos::LayerCreationArgs toProto(const LayerCreationArgs& args);
51 perfetto::protos::LayerState toProto(const ResolvedComposerState&);
52 static perfetto::protos::DisplayInfo toProto(const frontend::DisplayInfo&, uint32_t layerStack);
63 perfetto::protos::DisplayState toProto(const DisplayState&);
DTransactionTracing.cpp171 new perfetto::protos::TransactionState(mProtoParser.toProto(transaction)); in addQueuedTransaction()
247 entryProto.mutable_added_layers()->Add(std::move(mProtoParser.toProto(args))); in addEntry()
279 std::move(mProtoParser.toProto(displayInfo, layerStack.id))); in addEntry()
423 entryProto.mutable_added_layers()->Add(mProtoParser.toProto(state.args)); in createStartingStateProtoLocked()
426 perfetto::protos::TransactionState transactionProto = mProtoParser.toProto(mStartingStates); in createStartingStateProtoLocked()
439 entryProto.mutable_displays()->Add(mProtoParser.toProto(displayInfo, layerStack.id)); in createStartingStateProtoLocked()
DTransactionProtoParser.cpp54 perfetto::protos::TransactionState TransactionProtoParser::toProto(const TransactionState& t) { in toProto() function in android::surfaceflinger::TransactionProtoParser
65 proto.mutable_layer_changes()->Add(std::move(toProto(layerState))); in toProto()
70 proto.mutable_display_changes()->Add(std::move(toProto(displayState))); in toProto()
82 perfetto::protos::TransactionState TransactionProtoParser::toProto( in toProto() function in android::surfaceflinger::TransactionProtoParser
87 perfetto::protos::LayerState layerProto = toProto(state); in toProto()
94 perfetto::protos::LayerState TransactionProtoParser::toProto( in toProto() function in android::surfaceflinger::TransactionProtoParser
266 perfetto::protos::DisplayState TransactionProtoParser::toProto(const DisplayState& display) { in toProto() function in android::surfaceflinger::TransactionProtoParser
291 perfetto::protos::LayerCreationArgs TransactionProtoParser::toProto(const LayerCreationArgs& args) { in toProto() function in android::surfaceflinger::TransactionProtoParser
568 perfetto::protos::DisplayInfo TransactionProtoParser::toProto( in toProto() function in android::surfaceflinger::TransactionProtoParser
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java351 assertProtoMatches(policy, policy.toProto()); in testZenPolicyMessagesInvalid()
363 assertProtoMatches(policy, policy.toProto()); in testZenPolicyCallsInvalid()
373 assertProtoMatches(policy, policy.toProto()); in testEmptyZenPolicy()
394 assertProtoMatches(policy, policy.toProto()); in testAllowReminders()
401 assertProtoMatches(policy, policy.toProto()); in testAllowReminders()
413 assertProtoMatches(policy, policy.toProto()); in testAllowEvents()
420 assertProtoMatches(policy, policy.toProto()); in testAllowEvents()
433 assertProtoMatches(policy, policy.toProto()); in testAllowMessages()
441 assertProtoMatches(policy, policy.toProto()); in testAllowMessages()
449 assertProtoMatches(policy, policy.toProto()); in testAllowMessages()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DCallQualityMetrics.java241 private static TelephonyCallSession.Event.SignalStrength toProto(int ss) { in toProto() method in CallQualityMetrics
267 summary.worstSsWithGoodQuality = toProto(mWorstSsWithGoodDlQuality.second); in getCallQualitySummaryDl()
272 summary.bestSsWithGoodQuality = toProto(mBestSsWithGoodDlQuality.second); in getCallQualitySummaryDl()
277 summary.worstSsWithBadQuality = toProto(mWorstSsWithBadDlQuality.second); in getCallQualitySummaryDl()
282 summary.bestSsWithBadQuality = toProto(mBestSsWithBadDlQuality.second); in getCallQualitySummaryDl()
307 summary.worstSsWithGoodQuality = toProto(mWorstSsWithGoodUlQuality.second); in getCallQualitySummaryUl()
312 summary.bestSsWithGoodQuality = toProto(mBestSsWithGoodUlQuality.second); in getCallQualitySummaryUl()
317 summary.worstSsWithBadQuality = toProto(mWorstSsWithBadUlQuality.second); in getCallQualitySummaryUl()
322 summary.bestSsWithBadQuality = toProto(mBestSsWithBadUlQuality.second); in getCallQualitySummaryUl()
DVoiceCallRatTracker.java66 public VoiceCallRatUsage[] toProto() { in toProto() method in VoiceCallRatTracker
DPersistAtomsStorage.java285 mAtoms.voiceCallRatUsage = mVoiceCallRatTracker.toProto(); in addVoiceCallRatUsage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTileStateToProtoTest.kt35 val proto = state.toProto() in platformTile_INACTIVE()
56 val proto = state.toProto() in componentTile_UNAVAILABLE()
84 val proto = state.toProto() in adapterState_ACTIVE()
111 val proto = state.toProto() in adapterState_INACTIVE()
132 val proto = state.toProto() in noSpec_returnsNull()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java71 public static List<IpConnectivityEvent> toProto(List<ConnectivityMetricsEvent> eventsIn) { in toProto() method in IpConnectivityEventBuilder
74 final IpConnectivityEvent out = toProto(in); in toProto()
83 public static IpConnectivityEvent toProto(ConnectivityMetricsEvent ev) { in toProto() method in IpConnectivityEventBuilder
92 public static IpConnectivityEvent toProto(ConnectStats in) { in toProto() method in IpConnectivityEventBuilder
106 public static IpConnectivityEvent toProto(DnsEvent in) { in toProto() method in IpConnectivityEventBuilder
118 public static IpConnectivityEvent toProto(WakeupStats in) { in toProto() method in IpConnectivityEventBuilder
139 public static IpConnectivityEvent toProto(DefaultNetworkEvent in) { in toProto() method in IpConnectivityEventBuilder
DNetdEventListenerService.java384 events.add(IpConnectivityEventBuilder.toProto(stats)); in flushStatistics()
391 events.add(IpConnectivityEventBuilder.toProto(ev)); in flushStatistics()
394 events.add(IpConnectivityEventBuilder.toProto(mWakeupStats.valueAt(i))); in flushStatistics()
429 list.add(IpConnectivityEventBuilder.toProto(mNetworkMetrics.valueAt(i).connectMetrics)); in listAsProtos()
432 list.add(IpConnectivityEventBuilder.toProto(mNetworkMetrics.valueAt(i).dnsMetrics)); in listAsProtos()
435 list.add(IpConnectivityEventBuilder.toProto(mWakeupStats.valueAt(i))); in listAsProtos()
DDefaultNetworkMetrics.java92 list.add(IpConnectivityEventBuilder.toProto(ev)); in listEventsAsProto()
99 out.add(IpConnectivityEventBuilder.toProto(ev)); in flushEvents()
DIpConnectivityMetrics.java203 final List<IpConnectivityEvent> protoEvents = IpConnectivityEventBuilder.toProto(events); in flushEncodedOutput()
249 final List<IpConnectivityEvent> events = IpConnectivityEventBuilder.toProto(getEvents()); in listEventsAsProtos()
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/include/timestatsproto/
DTimeStatsHelper.h103 SFTimeStatsLayerProto toProto() const;
189 SFTimeStatsGlobalProto toProto(std::optional<uint32_t> maxLayers) const;
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/
DTimeStatsHelper.cpp195 SFTimeStatsLayerProto TimeStatsHelper::TimeStatsLayer::toProto() const { in toProto() function in android::surfaceflinger::TimeStatsHelper::TimeStatsLayer
213 SFTimeStatsGlobalProto TimeStatsHelper::TimeStatsGlobal::toProto( in toProto() function in android::surfaceflinger::TimeStatsHelper::TimeStatsGlobal
247 layerProto->CopyFrom(ele->toProto()); in toProto()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DTileStateToProto.kt27 fun QSTile.State.toProto(): QsTileState? { in QSTile() method
DQSTileHost.java624 .map(TileStateToProtoKt::toProto) in dumpProto()
/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionProtoParserTest.cpp88 perfetto::protos::TransactionState proto = parser.toProto(t1); in TEST()
124 *displayInfoProto = TransactionProtoParser::toProto(d1, layerStack); in TEST()
/frameworks/native/services/surfaceflinger/FrameTimeline/
DFrameTimeline.cpp206 FrameTimelineEvent::PresentType toProto(FramePresentMetadata presentMetadata) { in toProto() function
219 FrameTimelineEvent::PredictionType toProto(PredictionState predictionState) { in toProto() function
283 FrameTimelineEvent::JankSeverityType toProto(JankSeverityType jankSeverityType) { in toProto() function
774 actualSurfaceFrameStartEvent->set_present_type(toProto(mFramePresentMetadata)); in traceActuals()
780 actualSurfaceFrameStartEvent->set_prediction_type(toProto(mPredictionState)); in traceActuals()
782 actualSurfaceFrameStartEvent->set_jank_severity_type(toProto(mJankSeverityType)); in traceActuals()
1205 actualDisplayFrameStartEvent->set_prediction_type(toProto(PredictionState::Valid)); in addSkippedFrame()
1208 actualDisplayFrameStartEvent->set_jank_severity_type(toProto(JankSeverityType::None)); in addSkippedFrame()
1244 actualDisplayFrameStartEvent->set_present_type(toProto(mFramePresentMetadata)); in traceActuals()
1249 actualDisplayFrameStartEvent->set_prediction_type(toProto(mPredictionState)); in traceActuals()
[all …]
/frameworks/libs/systemui/viewcapturelib/src/com/android/app/viewcapture/
DViewCapture.java455 mNodesBg[index].toProto(idProvider, classList, nodeBuilder);
568 public ViewPropertyRef toProto(ViewIdProvider idProvider, ArrayList<Class> classList,
598 result = result.toProto(idProvider, classList, childViewNode);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractor.kt45 import com.android.systemui.qs.toProto in <lambda>()
344 currentTiles.value.map { it.tile.state }.mapNotNull { it?.toProto() }.toTypedArray() in dumpProto()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractorImplTest.kt51 import com.android.systemui.qs.toProto
603 assertThat(MessageNano.messageNanoEquals(proto.tiles[0], stateA.toProto())).isTrue() in protoDump()
604 assertThat(MessageNano.messageNanoEquals(proto.tiles[1], stateCustom.toProto())) in protoDump()
/frameworks/base/core/java/android/service/notification/
DZenPolicy.java1524 public byte[] toProto() { in toProto() method in ZenPolicy
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java2955 boolean toProto = false; in dumpUnmonitored()
2997 toProto = true; in dumpUnmonitored()
3160 if (toProto) { in dumpUnmonitored()
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.cpp1109 SFTimeStatsGlobalProto timeStatsProto = mTimeStats.toProto(maxLayers); in dump()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java2361 /* optional DNDPolicyProto policy = 7 */ config.getZenPolicy().toProto(), in pullRules()
2400 policyProto = rule.zenPolicy.toProto(); in ruleToProtoLocked()

12