diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-10-29 20:07:43 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-10-29 20:07:43 +0000 |
commit | 73d91b40d50af29b98d50b5805038effacf25f08 (patch) | |
tree | 36d6134a00acb24df822b6293061d473831f0441 | |
parent | 0bef7cb0c7584e48cf5984e27cce9f77edf306ee (diff) | |
parent | 55de81123f6f9fa3b46bf31e9dd60625ca91438b (diff) | |
download | StatsD-73d91b40d50af29b98d50b5805038effacf25f08.tar.gz |
Snap for 7867141 from 55de81123f6f9fa3b46bf31e9dd60625ca91438b to android12-tests-releaseandroid-vts-12.0_r2android-cts-12.0_r2
Change-Id: I4b25b9db5c4039eb494014ce77a2511462e6aa07
-rw-r--r-- | tests/src/android/cts/statsd/alert/AnomalyDetectionTests.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/src/android/cts/statsd/alert/AnomalyDetectionTests.java b/tests/src/android/cts/statsd/alert/AnomalyDetectionTests.java index f2df5306..69e626c2 100644 --- a/tests/src/android/cts/statsd/alert/AnomalyDetectionTests.java +++ b/tests/src/android/cts/statsd/alert/AnomalyDetectionTests.java @@ -36,7 +36,7 @@ import com.android.internal.os.StatsdConfigProto.ValueMetric; import com.android.os.AtomsProto.AnomalyDetected; import com.android.os.AtomsProto.AppBreadcrumbReported; import com.android.os.AtomsProto.Atom; -import com.android.os.AtomsProto.KernelWakelock; +import com.android.os.AtomsProto.CpuActiveTime; import com.android.os.StatsLog.EventMetricData; import com.android.tradefed.log.LogUtil.CLog; import java.util.List; @@ -370,9 +370,10 @@ public class AnomalyDetectionTests extends AtomTestCase { // Test that anomaly detection for pulled metrics work. public void testPulledAnomalyDetection() throws Exception { - final int ATOM_ID = Atom.KERNEL_WAKELOCK_FIELD_NUMBER; // A pulled atom - final int SLICE_BY_FIELD = KernelWakelock.NAME_FIELD_NUMBER; - final int VALUE_FIELD = KernelWakelock.VERSION_FIELD_NUMBER; // Something that will be > 0. + final int ATOM_ID = Atom.CPU_ACTIVE_TIME_FIELD_NUMBER; // A pulled atom + final int SLICE_BY_FIELD = CpuActiveTime.UID_FIELD_NUMBER; + final int VALUE_FIELD = + CpuActiveTime.TIME_MILLIS_FIELD_NUMBER; // Something that will be > 0. final int ATOM_MATCHER_ID = 300; StatsdConfig.Builder config = getBaseConfig(10, 20, 0 /* threshold: value > 0 */) |