Home
last modified time | relevance | path

Searched refs:processor (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/base/cmds/statsd/tests/e2e/
DValueMetric_pull_e2e_test.cpp72 auto processor = CreateStatsLogProcessor( in TEST() local
74 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
75 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
76 processor->mPullerManager->ForceClearPullerCache(); in TEST()
78 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
84 EXPECT_EQ((size_t)1, processor->mPullerManager->mReceivers.size()); in TEST()
86 processor->mPullerManager->mReceivers.begin()->second.front().intervalNs); in TEST()
88 processor->mPullerManager->mReceivers.begin()->second.front().nextPullTimeNs; in TEST()
93 processor->OnLogEvent(screenOffEvent.get()); in TEST()
97 processor->OnLogEvent(screenOnEvent.get()); in TEST()
[all …]
DAnomaly_duration_sum_e2e_test.cpp104 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST() local
105 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
106 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
107 EXPECT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST()
110 processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers[0]; in TEST()
116 processor->OnLogEvent(screen_on_event.get()); in TEST()
117 processor->OnLogEvent(screen_off_event.get()); in TEST()
121 processor->OnLogEvent(acquire_event.get()); in TEST()
128 processor->OnLogEvent(release_event.get()); in TEST()
134 processor->OnLogEvent(acquire_event.get()); in TEST()
[all …]
DAnomaly_count_e2e_test.cpp68 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST() local
69 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
70 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
71 EXPECT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST()
74 processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers[0]; in TEST()
97 processor->OnLogEvent(event.get()); in TEST()
101 processor->OnLogEvent(event.get()); in TEST()
105 processor->OnLogEvent(event.get()); in TEST()
109 processor->OnLogEvent(event.get()); in TEST()
113 processor->OnLogEvent(event.get()); in TEST()
[all …]
DGaugeMetric_e2e_pull_test.cpp72 auto processor = CreateStatsLogProcessor( in TEST() local
74 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
75 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
76 processor->mPullerManager->ForceClearPullerCache(); in TEST()
78 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
84 EXPECT_EQ((size_t)1, processor->mPullerManager->mReceivers.size()); in TEST()
86 processor->mPullerManager->mReceivers.begin()->second.front().intervalNs); in TEST()
88 processor->mPullerManager->mReceivers.begin()->second.front().nextPullTimeNs; in TEST()
93 processor->OnLogEvent(screenOffEvent.get()); in TEST()
96 processor->informPullAlarmFired(nextPullTimeNs + 1); in TEST()
[all …]
DWakelockDuration_e2e_test.cpp78 void FeedEvents(StatsdConfig config, sp<StatsLogProcessor> processor) { in FeedEvents() argument
112 processor->OnLogEvent(event.get()); in FeedEvents()
124 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST() local
125 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
126 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
127 FeedEvents(config, processor); in TEST()
130 processor->onDumpReport(cfgKey, bucketStartTimeNs + 2 * bucketSizeNs - 1, false, true, in TEST()
161 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST() local
162 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
163 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
[all …]
DAlarm_e2e_test.cpp54 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST() local
55 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
56 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
57 EXPECT_EQ(2u, processor->mMetricsManagers.begin()->second->mAllPeriodicAlarmTrackers.size()); in TEST()
59 auto alarmTracker1 = processor->mMetricsManagers.begin()->second->mAllPeriodicAlarmTrackers[0]; in TEST()
60 auto alarmTracker2 = processor->mMetricsManagers.begin()->second->mAllPeriodicAlarmTrackers[1]; in TEST()
69 auto alarmSet = processor->getPeriodicAlarmMonitor()->popSoonerThan( in TEST()
72 processor->onPeriodicAlarmFired(alarmFiredTimestampSec0 * NS_PER_SEC, alarmSet); in TEST()
78 alarmSet = processor->getPeriodicAlarmMonitor()->popSoonerThan( in TEST()
81 processor->onPeriodicAlarmFired(alarmFiredTimestampSec1 * NS_PER_SEC, alarmSet); in TEST()
DDurationMetric_e2e_test.cpp58 auto processor = CreateStatsLogProcessor(baseTimeNs, configAddedTimeNs, config, cfgKey); in TEST() local
60 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
61 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
73 processor->OnLogEvent(event.get()); in TEST()
78 processor->OnLogEvent(event.get()); in TEST()
83 processor->OnLogEvent(event.get()); in TEST()
86 processor->OnLogEvent(event.get()); in TEST()
90 processor->onDumpReport(cfgKey, configAddedTimeNs + bucketSizeNs + 1 * NS_PER_SEC, false, true, in TEST()
141 auto processor = CreateStatsLogProcessor(baseTimeNs, configAddedTimeNs, config, cfgKey); in TEST() local
143 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
[all …]
DConfigTtl_e2e_test.cpp71 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST() local
72 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
73 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
88 processor->OnLogEvent(event.get()); in TEST()
91 processor->OnLogEvent(event.get()); in TEST()
95 processor->OnLogEvent(event.get()); in TEST()
98 processor->mMetricsManagers.begin()->second->getTtlEndNs()); in TEST()
DMetricActivation_e2e_test.cpp255 StatsLogProcessor processor(m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, in TEST() local
267 processor.OnConfigUpdated(bucketStartTimeNs, cfgKey, config); in TEST()
269 EXPECT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
270 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
293 processor.OnLogEvent(event.get()); in TEST()
300 processor.OnLogEvent(event.get()); in TEST()
315 processor.OnLogEvent(event.get()); in TEST()
320 processor.OnLogEvent(event.get()); in TEST()
333 processor.OnLogEvent(event.get()); in TEST()
347 processor.OnLogEvent(event.get()); in TEST()
[all …]
DAttribution_e2e_test.cpp65 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST() local
66 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
67 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
70 processor->getUidMap()->updateMap( in TEST()
145 processor->OnLogEvent(event.get()); in TEST()
149 processor->onDumpReport(cfgKey, bucketStartTimeNs + 4 * bucketSizeNs + 1, false, true, in TEST()
213 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST() local
214 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
215 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
218 processor->getUidMap()->updateMap( in TEST()
[all …]
DMetricConditionLink_e2e_test.cpp109 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST() local
110 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
111 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
198 processor->OnLogEvent(event.get()); in TEST()
202 processor->onDumpReport(cfgKey, bucketStartTimeNs + 2 * bucketSizeNs - 1, false, true, in TEST()
230 auto processor = CreateStatsLogProcessor( in TEST() local
232 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
233 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
316 processor->OnLogEvent(event.get()); in TEST()
321 processor->onDumpReport(cfgKey, bucketStartTimeNs + 2 * bucketSizeNs + 1, false, true, in TEST()
DDimensionInCondition_e2e_combination_OR_cond_test.cpp78 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST() local
79 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
80 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
128 processor->OnLogEvent(event.get()); in TEST()
133 processor->onDumpReport(cfgKey, bucketStartTimeNs + 2 * bucketSizeNs + 1, false, true, in TEST()
290 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST() local
291 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
292 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
344 processor->OnLogEvent(event.get()); in TEST()
349 processor->onDumpReport(cfgKey, bucketStartTimeNs + 2 * bucketSizeNs + 1, false, true, in TEST()
[all …]
DDimensionInCondition_e2e_simple_cond_test.cpp82 auto processor = CreateStatsLogProcessor( in TEST() local
84 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
85 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
140 processor->OnLogEvent(event.get()); in TEST()
145 processor->onDumpReport(cfgKey, bucketStartTimeNs + 2 * bucketSizeNs + 1, false, in TEST()
368 auto processor = CreateStatsLogProcessor( in TEST() local
370 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
371 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
435 processor->OnLogEvent(event.get()); in TEST()
440 processor->onDumpReport(cfgKey, bucketStartTimeNs + 2 * bucketSizeNs + 1, false, in TEST()
[all …]
/frameworks/base/tools/aapt2/java/
DAnnotationProcessor_test.cpp37 AnnotationProcessor processor; in TEST() local
38 processor.AppendComment(comment); in TEST()
43 processor.Print(&printer); in TEST()
50 AnnotationProcessor processor; in TEST() local
51 processor.AppendComment("@SystemApi This is a system API"); in TEST()
56 processor.Print(&printer); in TEST()
65 AnnotationProcessor processor; in TEST() local
66 processor.AppendComment("@TestApi This is a test API"); in TEST()
71 processor.Print(&printer); in TEST()
DJavaClassGenerator.cpp100 static void AddAttributeFormatDoc(AnnotationProcessor* processor, Attribute* attr) { in AddAttributeFormatDoc() argument
103 processor->AppendComment( in AddAttributeFormatDoc()
112 processor->AppendComment( in AddAttributeFormatDoc()
118 processor->AppendComment( in AddAttributeFormatDoc()
123 processor->AppendComment( in AddAttributeFormatDoc()
129 processor->AppendComment( in AddAttributeFormatDoc()
137 processor->AppendComment( in AddAttributeFormatDoc()
142 processor->AppendComment( in AddAttributeFormatDoc()
152 processor->AppendComment( in AddAttributeFormatDoc()
164 processor->AppendComment( in AddAttributeFormatDoc()
[all …]
/frameworks/base/tools/processors/view_inspector/
DAndroid.bp2 name: "view-inspector-annotation-processor",
4 processor_class: "android.processor.view.inspector.PlatformInspectableProcessor",
18 name: "view-inspector-annotation-processor-test",
26 "view-inspector-annotation-processor"
/frameworks/base/cmds/statsd/tests/
DStatsLogProcessor_test.cpp265 sp<StatsLogProcessor> processor = CreateStatsLogProcessor(1, 1, config, cfgKey); in TEST() local
269 processor->OnLogEvent(event.get()); in TEST()
275processor->onDumpReport(cfgKey, 3, true, false /* Do NOT erase data. */, ADB_DUMP, FAST, &bytes); in TEST()
282 processor->onDumpReport(cfgKey, 4, true, true /* DO erase data. */, ADB_DUMP, FAST, &bytes); in TEST()
289 processor->onDumpReport(cfgKey, 5, true, true /* DO erase data. */, ADB_DUMP, FAST, &bytes); in TEST()
395 StatsLogProcessor processor(m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, in TEST() local
407 processor.OnConfigUpdated(1, cfgKey1, config1); in TEST()
408 processor.OnConfigUpdated(2, cfgKey2, config2); in TEST()
409 processor.OnConfigUpdated(3, cfgKey3, config3); in TEST()
411 EXPECT_EQ(3, processor.mMetricsManagers.size()); in TEST()
[all …]
/frameworks/base/tools/processors/view_inspector/test/java/android/processor/view/inspector/
DInspectionCompanionGeneratorTest.java17 package android.processor.view.inspector;
24 import android.processor.view.inspector.InspectableClassModel.Accessor;
25 import android.processor.view.inspector.InspectableClassModel.IntEnumEntry;
26 import android.processor.view.inspector.InspectableClassModel.IntFlagEntry;
27 import android.processor.view.inspector.InspectableClassModel.Property;
/frameworks/base/packages/SettingsLib/search/
DAndroid.mk25 LOCAL_MODULE = SettingsLib-annotation-processor
31 LOCAL_SRC_FILES := $(call all-java-files-under, processor-src)
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DCsvParser.java57 public static void parse(InputStream input, LineProcessor processor) in parse() argument
100 processor.onLine(lineNumber, fields); in parse()
168 processor.onLine(lineNumber, fields); in parse()
/frameworks/base/tools/processors/unsupportedappusage/
DAndroid.bp3 name: "unsupportedappusage-annotation-processor",
4 processor_class: "android.processor.unsupportedappusage.UnsupportedAppUsageProcessor",
/frameworks/base/tools/processors/view_inspector/test/resources/android/processor/view/inspector/InspectionCompanionGeneratorTest/
DNestedClass.java.txt11 * Generated by {@link android.processor.view.inspector.InspectionCompanionGenerator}
12 * on behalf of {@link android.processor.view.inspector.InspectionCompanionGeneratorTest}.
DNoAttributeId.java.txt11 * Generated by {@link android.processor.view.inspector.InspectionCompanionGenerator}
12 * on behalf of {@link android.processor.view.inspector.InspectionCompanionGeneratorTest}.
DFieldProperty.java.txt12 * Generated by {@link android.processor.view.inspector.InspectionCompanionGenerator}
13 * on behalf of {@link android.processor.view.inspector.InspectionCompanionGeneratorTest}.
DSuppliedAttributeId.java.txt11 * Generated by {@link android.processor.view.inspector.InspectionCompanionGenerator}
12 * on behalf of {@link android.processor.view.inspector.InspectionCompanionGeneratorTest}.

123