Update field for ACTION_ANOMALY_TRIGGERED
Use new field FIELD_ANOMALY_TYPE Bug: 75976625 Test: RunSettingsRoboTests Change-Id: Ifb67c687d25e1e35afaadb05f2e9883e8dcf8049
This commit is contained in:
@@ -172,7 +172,7 @@ public class AnomalyDetectionJobService extends JobService {
|
|||||||
metricsFeatureProvider.action(context,
|
metricsFeatureProvider.action(context,
|
||||||
MetricsProto.MetricsEvent.ACTION_ANOMALY_TRIGGERED,
|
MetricsProto.MetricsEvent.ACTION_ANOMALY_TRIGGERED,
|
||||||
packageName,
|
packageName,
|
||||||
Pair.create(MetricsProto.MetricsEvent.FIELD_CONTEXT,
|
Pair.create(MetricsProto.MetricsEvent.FIELD_ANOMALY_TYPE,
|
||||||
anomalyInfo.anomalyType));
|
anomalyInfo.anomalyType));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -169,7 +169,7 @@ public class AnomalyDetectionJobServiceTest {
|
|||||||
verify(mFeatureFactory.metricsFeatureProvider).action(mContext,
|
verify(mFeatureFactory.metricsFeatureProvider).action(mContext,
|
||||||
MetricsProto.MetricsEvent.ACTION_ANOMALY_TRIGGERED,
|
MetricsProto.MetricsEvent.ACTION_ANOMALY_TRIGGERED,
|
||||||
SYSTEM_PACKAGE,
|
SYSTEM_PACKAGE,
|
||||||
Pair.create(MetricsProto.MetricsEvent.FIELD_CONTEXT, ANOMALY_TYPE));
|
Pair.create(MetricsProto.MetricsEvent.FIELD_ANOMALY_TYPE, ANOMALY_TYPE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -194,6 +194,6 @@ public class AnomalyDetectionJobServiceTest {
|
|||||||
verify(mFeatureFactory.metricsFeatureProvider).action(mContext,
|
verify(mFeatureFactory.metricsFeatureProvider).action(mContext,
|
||||||
MetricsProto.MetricsEvent.ACTION_ANOMALY_TRIGGERED,
|
MetricsProto.MetricsEvent.ACTION_ANOMALY_TRIGGERED,
|
||||||
SYSTEM_PACKAGE,
|
SYSTEM_PACKAGE,
|
||||||
Pair.create(MetricsProto.MetricsEvent.FIELD_CONTEXT, ANOMALY_TYPE));
|
Pair.create(MetricsProto.MetricsEvent.FIELD_ANOMALY_TYPE, ANOMALY_TYPE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user