Home
last modified time | relevance | path

Searched refs:event2 (Results 1 – 20 of 20) sorted by relevance

/packages/modules/StatsD/statsd/tests/metrics/
DDurationMetricProducer_test.cpp98 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
99 makeLogEvent(&event2, bucketStartTimeNs + bucketSizeNs + 2, tagId); in TEST()
109 durationProducer.onMatchedLogEvent(2 /* stop index*/, event2); in TEST()
137 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
138 makeLogEvent(&event2, bucketStartTimeNs + 2, tagId); in TEST()
157 durationProducer.onMatchedLogEvent(2 /* stop index*/, event2); in TEST()
188 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
189 makeLogEvent(&event2, bucketStartTimeNs + 2, tagId); in TEST()
207 durationProducer.onMatchedLogEvent(2 /* stop index*/, event2); in TEST()
276 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST_P() local
[all …]
DCountMetricProducer_test.cpp104 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
105 makeLogEvent(&event2, bucketStartTimeNs + 2, tagId); in TEST()
108 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event2); in TEST()
175 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
176 makeLogEvent(&event2, bucketStartTimeNs + 10, /*atomId=*/1); in TEST()
177 countProducer.onMatchedLogEvent(1 /*matcher index*/, event2); in TEST()
212 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
213 makeLogEvent(&event2, bucketStartTimeNs + 10, tagId, /*uid=*/"222"); in TEST()
237 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event2); in TEST()
304 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST_P() local
[all …]
DEventMetricProducer_test.cpp65 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
66 CreateNoValuesLogEvent(&event2, 1 /*tagId*/, bucketStartTimeNs + 2); in TEST()
74 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event2); in TEST()
101 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
102 CreateNoValuesLogEvent(&event2, 1 /*tagId*/, bucketStartTimeNs + 10); in TEST()
115 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event2); in TEST()
150 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
151 makeLogEvent(&event2, 1 /*tagId*/, bucketStartTimeNs + 10, "222"); in TEST()
167 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event2); in TEST()
DGaugeMetricProducer_test.cpp253 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST_P() local
254 CreateTwoValueLogEvent(&event2, tagId, bucketStartTimeNs + 59 * NS_PER_SEC, 1, 10); in TEST_P()
255 gaugeProducer.onMatchedLogEvent(1 /*log matcher index*/, event2); in TEST_P()
590 std::shared_ptr<LogEvent> event2 = in TEST() local
594 allData.push_back(event2); in TEST()
602 std::ceil(1.0 * event2->GetElapsedTimestampNs() / NS_PER_SEC) + refPeriodSec); in TEST()
614 std::ceil(1.0 * event2->GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
DValueMetricProducer_test.cpp718 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST_P() local
719 CreateRepeatedValueLogEvent(&event2, tagId, bucketStartTimeNs + 59 * NS_PER_SEC, 20); in TEST_P()
720 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, event2); in TEST_P()
890 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
891 CreateRepeatedValueLogEvent(&event2, tagId, bucketStartTimeNs + 20, 20); in TEST()
903 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, event2); in TEST()
937 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
938 CreateRepeatedValueLogEvent(&event2, tagId, bucketStartTimeNs + 20, 20); in TEST()
939 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, event2); in TEST()
1002 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/window/
DOverlayPanelViewController.java546 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, in onScroll() argument
555 setViewClipBounds((int) event2.getRawY()); in onScroll()
559 calculatePercentageFromEndingEdge(event2.getRawY()); in onScroll()
567 public boolean onFling(MotionEvent event1, MotionEvent event2, in onFling() argument
597 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, in onScroll() argument
602 float y = getYPositionOfPanelEndingEdge(event1, event2); in onScroll()
634 private float getYPositionOfPanelEndingEdge(MotionEvent event1, MotionEvent event2) { in getYPositionOfPanelEndingEdge() argument
635 float diff = mAnimateDirection * (event1.getRawY() - event2.getRawY()); in getYPositionOfPanelEndingEdge()
642 public boolean onFling(MotionEvent event1, MotionEvent event2, in onFling() argument
648 if (Math.abs(event1.getX() - event2.getX()) > SWIPE_MAX_OFF_PATH in onFling()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDiagnosticManagerTest.java596 CarDiagnosticEvent event2 = listener2.getLastEvent(); in testMultipleListeners() local
599 assertTrue(event2.equals(event2)); in testMultipleListeners()
600 assertTrue(event1.equals(event2)); in testMultipleListeners()
601 assertTrue(event2.equals(event1)); in testMultipleListeners()
604 assertTrue(event1.hashCode() == event2.hashCode()); in testMultipleListeners()
612 event2.getSystemIntegerSensor(IntegerSensorIndex.RUNTIME_SINCE_ENGINE_START) in testMultipleListeners()
626 event2 = listener2.getLastEvent(); in testMultipleListeners()
628 assertTrue(event1.isEarlierThan(event2)); in testMultipleListeners()
629 assertFalse(event1.equals(event2)); in testMultipleListeners()
630 assertFalse(event2.equals(event1)); in testMultipleListeners()
[all …]
DCarStorageMonitoringTest.java633 IoStats event2 = listener2.reset(); in testEventDelivery() local
635 assertEquals(event1, event2); in testEventDelivery()
/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp264 std::unique_ptr<LogEvent> event2 = CreateAcquireWakelockEvent( in TEST() local
266 mgr.onLogEvent(*event2); in TEST()
309 std::unique_ptr<LogEvent> event2 = in TEST() local
312 mgr.onLogEvent(*event2); in TEST()
466 std::shared_ptr<LogEvent> event2 = buildOverlayEventBadStateType(1001 /* uid */, "package2"); in TEST() local
471 mgr.onLogEvent(*event2); in TEST()
489 std::unique_ptr<LogEvent> event2 = CreateUidProcessStateChangedEvent( in TEST() local
517 mgr.onLogEvent(*event2); in TEST()
/packages/modules/StatsD/statsd/tests/condition/
DSimpleConditionTracker_test.cpp440 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
441 makeWakeLockEvent(&event2, /*atomId=*/1, /*timestamp=*/0, uids, "wl2", /*acquire=*/1); in TEST()
447 conditionTracker.evaluateCondition(event2, matcherState, allPredicates, conditionCache, in TEST()
556 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
557 makeWakeLockEvent(&event2, /*atomId=*/1, /*timestamp=*/0, uids2, uid2_wl1, /*acquire=*/1); in TEST()
564 conditionTracker.evaluateCondition(event2, matcherState, allPredicates, conditionCache, in TEST()
661 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
662 makeWakeLockEvent(&event2, /*atomId=*/1, /*timestamp=*/0, uids2, "wl2", /*acquire=*/1); in TEST()
670 conditionTracker.evaluateCondition(event2, matcherState, allPredicates, conditionCache, in TEST()
/packages/modules/DnsResolver/tests/
Dresolv_stats_test_utils_test.cpp29 constexpr char event2[] = R"Event( in TEST() local
82 EXPECT_THAT(event1, NetworkDnsEventEq(fromNetworkDnsEventReportedStr(event2))); in TEST()
/packages/modules/NeuralNetworks/runtime/test/
DTestTrivialModel.cpp255 ANeuralNetworksEvent* event2; in TEST_F() local
258 0, &event2), in TEST_F()
261 ASSERT_EQ(ANeuralNetworksEvent_wait(event2), ANEURALNETWORKS_NO_ERROR); in TEST_F()
269 ANeuralNetworksEvent_free(event2); in TEST_F()
DTestValidation.cpp2337 ANeuralNetworksEvent* event2 = nullptr; in TEST_F() local
2340 ANeuralNetworksExecution_startComputeWithDependencies(nullptr, &event1, 1, 0, &event2), in TEST_F()
2343 &event2), in TEST_F()
2350 &event2), in TEST_F()
/packages/modules/StatsD/statsd/tests/
DLogEntryMatcher_test.cpp382 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
383 makeIntWithBoolAnnotationLogEvent(&event2, TAG_ID_2, 1111, ANNOTATION_ID_IS_UID, true); in TEST()
387 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event2)); in TEST()
391 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event2)); in TEST()
671 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST() local
672 makeFloatLogEvent(&event2, TAG_ID, 0, 9.9f); in TEST()
673 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event2)); in TEST()
DStatsLogProcessor_test.cpp1631 std::unique_ptr<LogEvent> event2 = CreateFinishScheduledJobEvent( in TEST() local
1633 processor->OnLogEvent(event2.get()); in TEST()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/notification/
DNotificationPanelViewController.java609 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, in onScroll() argument
611 calculatePercentageFromEndingEdge(event2.getRawY()); in onScroll()
616 float diff = mAnimateDirection * (event1.getRawY() - event2.getRawY()); in onScroll()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DConntrackMonitorTest.java229 final ConntrackEvent event2 = makeTestConntrackEvent(IPCTNL_MSG_CT_NEW, 1234 /* status */, in testConntrackEventEquals() local
231 assertEquals(event1, event2); in testConntrackEventEquals()
/packages/modules/StatsD/statsd/tests/e2e/
DConfigUpdate_e2e_ab_test.cpp268 unique_ptr<LogEvent> event2 = CreateBatteryStateChangedEvent( in TEST_P() local
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp1687 EventMetric event2 = createEventMetric("EVENT2", matcher2Id, nullopt); in TEST_F() local
1688 int64_t event2Id = event2.id(); in TEST_F()
1689 *config.add_event_metric() = event2; in TEST_F()
1720 event2.set_condition(predicate1Id); in TEST_F()
1782 *newConfig.add_event_metric() = event2; in TEST_F()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java1934 EventInfo event2 = new EventInfo("search purple", in testInstanceSearchQuery() local
1939 event2.mDescription = "lasers, out of nowhere"; in testInstanceSearchQuery()
1948 EventInfo[] events = { event1, event2, event3 }; in testInstanceSearchQuery()