Home
last modified time | relevance | path

Searched refs:metricsConfig (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/service/src/com/android/car/telemetry/
DMetricsConfigStore.java84 public int addMetricsConfig(@NonNull TelemetryProto.MetricsConfig metricsConfig) { in addMetricsConfig() argument
86 if (metricsConfig.getVersion() <= 0) { in addMetricsConfig()
89 if (mActiveConfigs.containsKey(metricsConfig.getName())) { in addMetricsConfig()
90 int currentVersion = mActiveConfigs.get(metricsConfig.getName()).getVersion(); in addMetricsConfig()
91 if (currentVersion > metricsConfig.getVersion()) { in addMetricsConfig()
93 } else if (currentVersion == metricsConfig.getVersion()) { in addMetricsConfig()
97 mActiveConfigs.put(metricsConfig.getName(), metricsConfig); in addMetricsConfig() local
99 IoUtils.writeProto(mConfigDirectory, metricsConfig.getName(), metricsConfig); in addMetricsConfig()
DCarTelemetryService.java354 TelemetryProto.MetricsConfig metricsConfig; in addMetricsConfigInternal() local
356 metricsConfig = TelemetryProto.MetricsConfig.parseFrom(config); in addMetricsConfigInternal()
361 if (metricsConfig.getName().length() == 0) { in addMetricsConfigInternal()
365 if (!metricsConfig.getName().equals(metricsConfigName)) { in addMetricsConfigInternal()
367 + " doesn't match name in MetricsConfig (" + metricsConfig.getName() + ")."); in addMetricsConfigInternal()
370 int status = mMetricsConfigStore.addMetricsConfig(metricsConfig); in addMetricsConfigInternal()
382 mDataBroker.addMetricsConfig(metricsConfigName, metricsConfig); in addMetricsConfigInternal()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DAbstractPublisher.java58 void onConfigFinished(@NonNull TelemetryProto.MetricsConfig metricsConfig); in onConfigFinished() argument
112 protected void onConfigFinished(@NonNull TelemetryProto.MetricsConfig metricsConfig) { in onConfigFinished() argument
113 mPublisherListener.onConfigFinished(metricsConfig); in onConfigFinished()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/
DFakePublisherListener.java46 public void onConfigFinished(@NonNull TelemetryProto.MetricsConfig metricsConfig) { in onConfigFinished() argument
47 mFinishedConfig = metricsConfig; in onConfigFinished()
DConnectivityPublisherTest.java549 TelemetryProto.MetricsConfig metricsConfig, TelemetryProto.Subscriber subscriber) { in FakeDataSubscriber() argument
550 super(/* dataBroker= */ null, metricsConfig, subscriber); in FakeDataSubscriber()
/packages/services/Car/service/src/com/android/car/telemetry/databroker/
DDataBrokerImpl.java186 public void onConfigFinished(@NonNull TelemetryProto.MetricsConfig metricsConfig) {
187 String configName = metricsConfig.getName();
301 @NonNull String metricsConfigName, @NonNull MetricsConfig metricsConfig) { in addMetricsConfig() argument
309 metricsConfig.getSubscribersList().size()); in addMetricsConfig()
310 for (TelemetryProto.Subscriber subscriber : metricsConfig.getSubscribersList()) { in addMetricsConfig()
320 metricsConfig, in addMetricsConfig()
DDataSubscriber.java45 @NonNull TelemetryProto.MetricsConfig metricsConfig, in DataSubscriber() argument
48 mMetricsConfig = metricsConfig; in DataSubscriber()
DDataBroker.java85 @NonNull String metricsConfigName, @NonNull TelemetryProto.MetricsConfig metricsConfig); in addMetricsConfig() argument
/packages/services/Car/car-lib/src/android/car/telemetry/
DCarTelemetryManager.java285 @NonNull byte[] metricsConfig, in addMetricsConfig() argument
288 if (metricsConfig.length > METRICS_CONFIG_MAX_SIZE_BYTES) { in addMetricsConfig()
292 mService.addMetricsConfig(metricsConfigName, metricsConfig, new ResultReceiver(null) { in addMetricsConfig()
DICarTelemetryService.aidl18 void addMetricsConfig(in String metricsConfigName, in byte[] metricsConfig, in addMetricsConfig() argument
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt1919 …method TIRAMISU_0 void addMetricsConfig(String metricsConfigName, byte[] metricsConfig, Executor e…