Home | History | Annotate | Download | only in e2e

Lines Matching refs:service

35 void SendConfig(StatsService& service, const StatsdConfig& config) {
40 service.addConfiguration(kConfigKey, configAsVec, String16(kAndroid.c_str()));
112 StatsService service(nullptr);
113 SendConfig(service, MakeConfig());
117 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 1).get());
118 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 2).get());
120 ConfigMetricsReport report = GetReports(service.mProcessor, start + 3);
126 StatsService service(nullptr);
127 SendConfig(service, MakeConfig());
132 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 1).get());
135 service.mUidMap->updateApp(start + 2, String16(kApp1.c_str()), 1, 2);
137 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 3).get());
139 ConfigMetricsReport report = GetReports(service.mProcessor, start + 4);
144 StatsService service(nullptr);
145 SendConfig(service, MakeConfig());
148 service.mUidMap->updateMap(start, {1}, {1}, {String16(kApp1.c_str())});
151 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 1).get());
152 service.mUidMap->updateApp(start + 2, String16(kApp1.c_str()), 1, 2);
154 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 3).get());
156 ConfigMetricsReport report = GetReports(service.mProcessor, start + 4);
167 StatsService service(nullptr);
168 SendConfig(service, MakeConfig());
171 service.mUidMap->updateMap(start, {1}, {1}, {String16(kApp1.c_str())});
174 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 1).get());
175 service.mUidMap->removeApp(start + 2, String16(kApp1.c_str()), 1);
177 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 3).get());
179 ConfigMetricsReport report = GetReports(service.mProcessor, start + 4);
190 StatsService service(nullptr);
192 service.mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1);
193 SendConfig(service, MakeValueMetricConfig(0));
197 service.mProcessor->informPullAlarmFired(5 * 60 * NS_PER_SEC + start);
198 service.mUidMap->updateApp(5 * 60 * NS_PER_SEC + start + 2, String16(kApp1.c_str()), 1, 2);
201 GetReports(service.mProcessor, 5 * 60 * NS_PER_SEC + start + 100, true);
207 StatsService service(nullptr);
209 service.mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1);
210 SendConfig(service, MakeValueMetricConfig(60 * NS_PER_SEC /* One minute */));
215 service.mProcessor->informPullAlarmFired(5 * 60 * NS_PER_SEC + start);
216 service.mUidMap->updateApp(endSkipped, String16(kApp1.c_str()), 1, 2);
219 GetReports(service.mProcessor, 5 * 60 * NS_PER_SEC + start + 100 * NS_PER_SEC, true);
230 StatsService service(nullptr);
232 service.mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1);
233 SendConfig(service, MakeGaugeMetricConfig(0));
237 service.mProcessor->informPullAlarmFired(5 * 60 * NS_PER_SEC + start);
238 service.mUidMap->updateApp(5 * 60 * NS_PER_SEC + start + 2, String16(kApp1.c_str()), 1, 2);
241 GetReports(service.mProcessor, 5 * 60 * NS_PER_SEC + start + 100, true);
247 StatsService service(nullptr);
249 service.mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1);
250 SendConfig(service, MakeGaugeMetricConfig(60 * NS_PER_SEC /* One minute */));
255 service.mProcessor->informPullAlarmFired(5 * 60 * NS_PER_SEC + start);
256 service.mUidMap->updateApp(endSkipped, String16(kApp1.c_str()), 1, 2);
259 GetReports(service.mProcessor, 5 * 60 * NS_PER_SEC + start + 100 * NS_PER_SEC, true);