Home
last modified time | relevance | path

Searched refs:event1 (Results 1 – 19 of 19) sorted by relevance

/packages/modules/StatsD/statsd/tests/metrics/
DDurationMetricProducer_test.cpp96 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
97 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
108 durationProducer.onMatchedLogEvent(1 /* start index*/, event1); in TEST()
135 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
136 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
156 durationProducer.onMatchedLogEvent(1 /* start index*/, event1); in TEST()
186 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
187 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
206 durationProducer.onMatchedLogEvent(1 /* start index*/, event1); in TEST()
250 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_P() local
[all …]
DCountMetricProducer_test.cpp102 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
103 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
107 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST()
166 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
167 makeLogEvent(&event1, bucketStartTimeNs + 1, /*atomId=*/1); in TEST()
168 countProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST()
209 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
210 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId, /*uid=*/"111"); in TEST()
233 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST()
276 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_P() local
[all …]
DEventMetricProducer_test.cpp62 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
63 CreateNoValuesLogEvent(&event1, 1 /*tagId*/, bucketStartTimeNs + 1); in TEST()
73 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST()
98 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
99 CreateNoValuesLogEvent(&event1, 1 /*tagId*/, bucketStartTimeNs + 1); in TEST()
111 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST()
144 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
145 makeLogEvent(&event1, 1 /*tagId*/, bucketStartTimeNs + 1, "111"); in TEST()
166 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST()
DValueMetricProducer_test.cpp697 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_P() local
698 CreateRepeatedValueLogEvent(&event1, tagId, bucketStartTimeNs + 10, 10); in TEST_P()
699 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST_P()
887 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
888 CreateRepeatedValueLogEvent(&event1, tagId, bucketStartTimeNs + 10, 10); in TEST()
893 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST()
929 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
930 CreateRepeatedValueLogEvent(&event1, tagId, bucketStartTimeNs + 10, 10); in TEST()
931 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST()
999 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
[all …]
DGaugeMetricProducer_test.cpp228 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_P() local
229 CreateTwoValueLogEvent(&event1, tagId, bucketStartTimeNs + 10, 1, 10); in TEST_P()
230 gaugeProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST_P()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/window/
DOverlayPanelViewController.java546 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, in onScroll() argument
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()
678 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX,
/packages/modules/DnsResolver/tests/
Dresolv_stats_test_utils_test.cpp25 NetworkDnsEventReported event1; in TEST() local
62 DnsQueryEvent* dnsQueryEvent1 = event1.mutable_dns_query_events()->add_dns_query_event(); in TEST()
72 DnsQueryEvent* dnsQueryEvent2 = event1.mutable_dns_query_events()->add_dns_query_event(); in TEST()
82 EXPECT_THAT(event1, NetworkDnsEventEq(fromNetworkDnsEventReportedStr(event2))); in TEST()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDiagnosticManagerTest.java595 CarDiagnosticEvent event1 = listener1.getLastEvent(); in testMultipleListeners() local
598 assertTrue(event1.equals(event1)); in testMultipleListeners()
600 assertTrue(event1.equals(event2)); in testMultipleListeners()
601 assertTrue(event2.equals(event1)); in testMultipleListeners()
603 assertTrue(event1.hashCode() == event1.hashCode()); in testMultipleListeners()
604 assertTrue(event1.hashCode() == event2.hashCode()); in testMultipleListeners()
608 event1.getSystemIntegerSensor(IntegerSensorIndex.RUNTIME_SINCE_ENGINE_START) in testMultipleListeners()
628 assertTrue(event1.isEarlierThan(event2)); in testMultipleListeners()
629 assertFalse(event1.equals(event2)); in testMultipleListeners()
630 assertFalse(event2.equals(event1)); in testMultipleListeners()
DCarStorageMonitoringTest.java632 IoStats event1 = listener1.reset(); in testEventDelivery() local
635 assertEquals(event1, event2); in testEventDelivery()
636 event1.getStats().forEach(stats -> assertTrue(stats.representsSameMetrics(record))); in testEventDelivery()
/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp256 std::unique_ptr<LogEvent> event1 = CreateAcquireWakelockEvent(timestampNs, attributionUids1, in TEST() local
258 mgr.onLogEvent(*event1); in TEST()
297 std::unique_ptr<LogEvent> event1 = in TEST() local
300 mgr.onLogEvent(*event1); in TEST()
464 std::shared_ptr<LogEvent> event1 = in TEST() local
469 mgr.onLogEvent(*event1); in TEST()
486 std::unique_ptr<LogEvent> event1 = CreateUidProcessStateChangedEvent( in TEST() local
516 mgr.onLogEvent(*event1); in TEST()
/packages/modules/StatsD/statsd/tests/condition/
DSimpleConditionTracker_test.cpp403 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
404 makeWakeLockEvent(&event1, /*atomId=*/1, /*timestamp=*/0, uids, "wl1", /*acquire=*/1); in TEST()
415 conditionTracker.evaluateCondition(event1, matcherState, allPredicates, conditionCache, in TEST()
530 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
531 makeWakeLockEvent(&event1, /*atomId=*/1, /*timestamp=*/0, uids1, uid1_wl1, /*acquire=*/1); in TEST()
542 conditionTracker.evaluateCondition(event1, matcherState, allPredicates, conditionCache, in TEST()
622 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
623 makeWakeLockEvent(&event1, /*atomId=*/1, /*timestamp=*/0, uids1, "wl1", /*acquire=*/1); in TEST()
634 conditionTracker.evaluateCondition(event1, matcherState, allPredicates, conditionCache, in TEST()
/packages/modules/NeuralNetworks/runtime/test/
DTestTrivialModel.cpp244 ANeuralNetworksEvent* event1; in TEST_F() local
247 0, &event1), in TEST_F()
257 ASSERT_EQ(ANeuralNetworksExecution_startComputeWithDependencies(execution2_handle, &event1, 1, in TEST_F()
268 ANeuralNetworksEvent_free(event1); in TEST_F()
DTestValidation.cpp2315 ANeuralNetworksEvent* event1 = nullptr; in TEST_F() local
2317 &event1), in TEST_F()
2320 EXPECT_EQ(ANeuralNetworksEvent_getSyncFenceFd(event1, nullptr), in TEST_F()
2326 int getSyncFdResult = ANeuralNetworksEvent_getSyncFenceFd(event1, &syncFd); in TEST_F()
2340 ANeuralNetworksExecution_startComputeWithDependencies(nullptr, &event1, 1, 0, &event2), in TEST_F()
2345 EXPECT_EQ(ANeuralNetworksExecution_startComputeWithDependencies(execution2, &event1, 1, 0, in TEST_F()
2348 ANeuralNetworksEvent* wait_for_list[] = {event1, nullptr}; in TEST_F()
2353 ANeuralNetworksEvent_free(event1); in TEST_F()
/packages/modules/StatsD/statsd/tests/
DLogEntryMatcher_test.cpp377 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
378 makeIntLogEvent(&event1, TAG_ID, 0, 1111); in TEST()
379 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event1)); in TEST()
666 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
667 makeFloatLogEvent(&event1, TAG_ID, 0, 10.1f); in TEST()
669 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event1)); in TEST()
DStatsLogProcessor_test.cpp1627 std::unique_ptr<LogEvent> event1 = CreateAcquireWakelockEvent( in TEST() local
1629 processor->OnLogEvent(event1.get()); in TEST()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DConntrackMonitorTest.java227 final ConntrackEvent event1 = makeTestConntrackEvent(IPCTNL_MSG_CT_NEW, 1234 /* status */, in testConntrackEventEquals() local
231 assertEquals(event1, event2); in testConntrackEventEquals()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/notification/
DNotificationPanelViewController.java609 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, in onScroll() argument
616 float diff = mAnimateDirection * (event1.getRawY() - event2.getRawY()); in onScroll()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp1682 EventMetric event1 = createEventMetric("EVENT1", matcher1Id, predicate2Id); in TEST_F() local
1683 int64_t event1Id = event1.id(); in TEST_F()
1684 *config.add_event_metric() = event1; in TEST_F()
1778 *newConfig.add_event_metric() = event1; in TEST_F()
2936 EventMetric event1 = createEventMetric("EVENT1", matcher1Id, nullopt); in TEST_F() local
2937 int64_t event1Id = event1.id(); in TEST_F()
2938 *config.add_event_metric() = event1; in TEST_F()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java1927 EventInfo event1 = new EventInfo("search orange", in testInstanceSearchQuery() local
1932 event1.mDescription = "this is description1"; in testInstanceSearchQuery()
1948 EventInfo[] events = { event1, event2, event3 }; in testInstanceSearchQuery()