1 /*
2  * Copyright (C) 2024 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include <stdint.h>
18 
19 namespace android {
20 namespace hardware {
21 namespace google {
22 namespace pixel {
23 
24 namespace mm_metrics_reporter_test_golden_result {
25 /**
26  * Per hour data are snapshot data, mostly (except for PSI) are
27  * directly from corresponding sysnode values.  field mapping could be
28  * obtained in the atom (i.e. PixelMmMetricsPerHour) definition.
29  * the field name also suggests the related sysfs node and fields.
30  *
31  * Test values (i.e. data injection for sysfs nodes) are first
32  * generated by a script, and then manually modified and examined, to
33  * ensure each field has unique value (to catch erroneous writes to
34  * the wrong entries (wrong offsets).
35  */
36 const int64_t PixelMmMetricsPerHour_golden[]{
37         // clang-format off
38     2645,
39     2761,
40     2769,
41     2713,
42     2685,
43     2709,
44     3225,
45     3229,
46     2717,
47     7048,
48     9050,
49     8049,
50     11052,
51     10051,
52     220,
53     720,
54     470,
55     250,
56     750,
57     500,
58     280,
59     780,
60     530,
61     420,
62     920,
63     670,
64     450,
65     950,
66     700,
67     480,
68     980,
69     730,
70     320,
71     820,
72     570,
73     350,
74     850,
75     600,
76     380,
77     880,
78     630,
79     620,
80     1120,
81     870,
82     650,
83     1150,
84     900,
85     680,
86     1180,
87     930,
88     520,
89     1020,
90     770,
91     550,
92     1050,
93     800,
94     580,
95     1080,
96     830,
97     -1,
98     2785,
99     2677,
100     177,
101         // clang-format on
102 };
103 
104 /**
105  * Per day data are diff data from previous day read of related sysfs
106  * nodes..
107  *
108  * Test values (i.e. data injection for sysfs nodes) are first
109  * generated by a script, and then manually modified and examined, to
110  * ensure each field has unique value (to catch erroneous writes to
111  * the wrong entries (wrong offsets).
112  */
113 const int64_t PixelMmMetricsPerDay_golden[]{
114         // clang-format off
115     1297761,
116     1026845,
117     1029713,
118     1291325,
119     1041225,
120     1044113,
121     1047005,
122     1294541,
123     1032585,
124     1035461,
125     1038341,
126     1084965,
127     1087913,
128     1090865,
129     1093821,
130     1138641,
131     1412981,
132     1419713,
133     1416345,
134     181,
135     53,
136     1336713,
137     1339985,
138     1343261,
139     1346541,
140     1349825,
141     1396221,
142     1399565,
143     1402913,
144     1406265,
145     1409621,
146     1376241,
147     1379561,
148     1382885,
149     1386213,
150     1389545,
151     1356405,
152     1359701,
153     1363001,
154     1366305,
155     1369613,
156     1313921,
157     1317165,
158     1320413,
159     1323665,
160     1326921,
161     1330181,
162     937181,
163     939921,
164     1172081,
165     1169021,
166     1120605,
167     1123601,
168     1227845,
169     1253045,
170     1240413,
171     1153781,
172     1246721,
173     -1,
174     55250,
175     5201,
176     5405,
177     1126601,
178         // clang-format on
179 };
180 }  // namespace mm_metrics_reporter_test_golden_result
181 
182 }  // namespace pixel
183 }  // namespace google
184 }  // namespace hardware
185 }  // namespace android
186