Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserLifecycleEventTest.java55 UserLifecycleEvent event1 = new UserLifecycleEvent(EVENT_TYPE, FROM_USER_ID, TO_USER_ID); in testEquals_true() local
58 assertThat(event1.equals(event2)).isTrue(); in testEquals_true()
63 UserLifecycleEvent event1 = new UserLifecycleEvent(EVENT_TYPE, FROM_USER_ID, TO_USER_ID); in testEquals_differentEventType_false() local
67 assertThat(event1.equals(event2)).isFalse(); in testEquals_differentEventType_false()
72 UserLifecycleEvent event1 = new UserLifecycleEvent(EVENT_TYPE, FROM_USER_ID, TO_USER_ID); in testEquals_differentFromUserId_false() local
76 assertThat(event1.equals(event2)).isFalse(); in testEquals_differentFromUserId_false()
81 UserLifecycleEvent event1 = new UserLifecycleEvent(EVENT_TYPE, FROM_USER_ID, TO_USER_ID); in testEquals_differentToUserId_false() local
85 assertThat(event1.equals(event2)).isFalse(); in testEquals_differentToUserId_false()
90 UserLifecycleEvent event1 = new UserLifecycleEvent(EVENT_TYPE, FROM_USER_ID, TO_USER_ID); in testEquals_null_false() local
92 assertThat(event1.equals(null)).isFalse(); in testEquals_null_false()
[all …]
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/events/
DEventTest.java41 Event event1 = new Event.Builder() in testBuilderAndEquals() local
51 assertEquals(event1.getType(), EVENT_TYPE); in testBuilderAndEquals()
52 assertArrayEquals(event1.getEventData(), eventData); in testBuilderAndEquals()
53 assertEquals(event1.getService(), service); in testBuilderAndEquals()
54 assertEquals(event1.getQueryId(), queryId); in testBuilderAndEquals()
55 assertEquals(event1.getTimeMillis(), timeMillis); in testBuilderAndEquals()
56 assertEquals(event1.getRowIndex(), rowIndex); in testBuilderAndEquals()
57 assertEquals(event1.getEventId(), eventId); in testBuilderAndEquals()
62 assertEquals(event1, event2); in testBuilderAndEquals()
63 assertEquals(event1.hashCode(), event2.hashCode()); in testBuilderAndEquals()
DEventsDaoTest.java362 Event event1 = new Event.Builder() in testReadAllEventIds() local
370 long eventId1 = mDao.insertEvent(event1); in testReadAllEventIds()
419 Event event1 = new Event.Builder() in testReadEventIdsForRequest() local
427 long eventId1 = mDao.insertEvent(event1); in testReadEventIdsForRequest()
478 Event event1 = new Event.Builder() in testReadJoinedEvents() local
486 long eventId1 = mDao.insertEvent(event1); in testReadJoinedEvents()
508 assertEquals(createExpectedJoinedEvent(event1, query1, eventId1, queryId1), result.get(0)); in testReadJoinedEvents()
DJoinedTableDaoTest.java197 Event event1 = new Event.Builder() in insertEventAndQueryData() local
205 mDao.insertEvent(event1); in insertEventAndQueryData()
/packages/modules/StatsD/statsd/tests/metrics/
DRestrictedEventMetricProducer_test.cpp63 std::unique_ptr<LogEvent> event1 = CreateRestrictedLogEvent(/*atomTag=*/123, /*timestampNs=*/1); in TEST_F() local
66 producer.onMatchedLogEvent(/*matcherIndex=*/1, *event1); in TEST_F()
79 3 + event1->getValues().size()); // col 0:2 are reserved for metadata. in TEST_F()
80 EXPECT_EQ(/*tagId=*/rows[0][0], to_string(event1->GetTagId())); in TEST_F()
81 EXPECT_EQ(/*elapsedTimestampNs=*/rows[0][1], to_string(event1->GetElapsedTimestampNs())); in TEST_F()
141 std::unique_ptr<LogEvent> event1 = CreateRestrictedLogEvent(/*atomTag=*/123, /*timestampNs=*/1); in TEST_F() local
145 producer.onMatchedLogEvent(/*matcherIndex=*/1, *event1); in TEST_F()
158 EXPECT_EQ(columnTypes.size(), 3 + event1->getValues().size()); in TEST_F()
159 EXPECT_EQ(/*elapsedTimestampNs=*/rows[0][1], to_string(event1->GetElapsedTimestampNs())); in TEST_F()
174 std::unique_ptr<LogEvent> event1 = CreateRestrictedLogEvent(/*timestampNs=*/1); in TEST_F() local
[all …]
DDurationMetricProducer_test.cpp97 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
98 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
110 durationProducer.onMatchedLogEvent(1 /* start index*/, event1); in TEST()
137 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
138 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
160 durationProducer.onMatchedLogEvent(1 /* start index*/, event1); in TEST()
196 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
197 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
217 durationProducer.onMatchedLogEvent(1 /* start index*/, event1); in TEST()
263 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_P() local
[all …]
DEventMetricProducer_test.cpp76 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_F() local
77 CreateNoValuesLogEvent(&event1, 1 /*tagId*/, bucketStartTimeNs + 1); in TEST_F()
88 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST_F()
114 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_F() local
115 CreateNoValuesLogEvent(&event1, 1 /*tagId*/, bucketStartTimeNs + 1); in TEST_F()
128 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST_F()
162 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_F() local
163 makeLogEvent(&event1, 1 /*tagId*/, bucketStartTimeNs + 1, "111"); in TEST_F()
185 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST_F()
208 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_F() local
[all …]
DCountMetricProducer_test.cpp105 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
106 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
110 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST()
172 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
173 makeLogEvent(&event1, bucketStartTimeNs + 1, /*atomId=*/1); in TEST()
174 countProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST()
216 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
217 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId, /*uid=*/"111"); in TEST()
241 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST()
285 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_P() local
[all …]
DKllMetricProducer_test.cpp182 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_P() local
183 CreateRepeatedValueLogEvent(&event1, atomId, bucketStartTimeNs + 10, 10); in TEST_P()
184 kllProducer->onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST_P()
231 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
232 CreateRepeatedValueLogEvent(&event1, atomId, bucketStartTimeNs + 10, 10); in TEST()
237 kllProducer->onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST()
261 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
262 CreateRepeatedValueLogEvent(&event1, atomId, bucketStartTimeNs + 10, 10); in TEST()
263 kllProducer->onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST()
348 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
[all …]
DNumericValueMetricProducer_test.cpp673 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_P() local
674 CreateRepeatedValueLogEvent(&event1, tagId, bucketStartTimeNs + 10, 10); in TEST_P()
675 valueProducer->onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST_P()
859 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
860 CreateRepeatedValueLogEvent(&event1, tagId, bucketStartTimeNs + 10, 10); in TEST()
865 valueProducer->onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST()
915 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
916 CreateRepeatedValueLogEvent(&event1, tagId, bucketStartTimeNs + 10, 10); in TEST()
917 valueProducer->onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST()
1001 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_stats_test_utils_test.cpp29 NetworkDnsEventReported event1; in TEST_F() local
67 DnsQueryEvent* dnsQueryEvent1 = event1.mutable_dns_query_events()->add_dns_query_event(); in TEST_F()
77 DnsQueryEvent* dnsQueryEvent2 = event1.mutable_dns_query_events()->add_dns_query_event(); in TEST_F()
87 event1.set_uid(1000); in TEST_F()
88 EXPECT_THAT(event1, NetworkDnsEventEq(fromNetworkDnsEventReportedStr(event2))); in TEST_F()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/window/
DOverlayPanelViewController.java610 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, in onScroll() argument
632 public boolean onFling(MotionEvent event1, MotionEvent event2, in onFling() argument
662 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, in onScroll() argument
667 float y = getYPositionOfPanelEndingEdge(event1, event2); in onScroll()
700 private float getYPositionOfPanelEndingEdge(MotionEvent event1, MotionEvent event2) { in getYPositionOfPanelEndingEdge() argument
701 float diff = mAnimateDirection * (event1.getRawY() - event2.getRawY()); in getYPositionOfPanelEndingEdge()
708 public boolean onFling(MotionEvent event1, MotionEvent event2, in onFling() argument
714 if (Math.abs(event1.getX() - event2.getX()) > SWIPE_MAX_OFF_PATH in onFling()
744 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX,
788 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, in onScroll() argument
[all …]
/packages/modules/StatsD/statsd/tests/e2e/
DRestrictedEventMetric_e2e_test.cpp314 std::unique_ptr<LogEvent> event1 = CreateRestrictedLogEvent(atomTag, originalEventElapsedTime); in TEST_F() local
315 processor->OnLogEvent(event1.get()); in TEST_F()
539 std::unique_ptr<LogEvent> event1 = CreateRestrictedLogEvent(atomTag, originalEventElapsedTime); in TEST_F() local
540 event1->setLogdWallClockTimestampNs(eightDaysAgo); in TEST_F()
543 processor->OnLogEvent(event1.get(), originalEventElapsedTime); in TEST_F()
784 std::unique_ptr<LogEvent> event1 = CreateRestrictedLogEvent(atomTag, originalEventElapsedTime); in TEST_F() local
785 event1->setLogdWallClockTimestampNs(eightDaysAgo); in TEST_F()
794 processor->OnLogEvent(event1.get(), originalEventElapsedTime); in TEST_F()
822 std::unique_ptr<LogEvent> event1 = CreateRestrictedLogEvent(atomTag, originalEventElapsedTime); in TEST_F() local
823 event1->setLogdWallClockTimestampNs(eightDaysAgo); in TEST_F()
[all …]
/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp258 std::unique_ptr<LogEvent> event1 = CreateAcquireWakelockEvent(timestampNs, attributionUids1, in TEST() local
260 mgr.onLogEvent(*event1); in TEST()
299 std::unique_ptr<LogEvent> event1 = in TEST() local
302 mgr.onLogEvent(*event1); in TEST()
466 std::unique_ptr<LogEvent> event1 = CreateUidProcessStateChangedEvent( in TEST() local
496 mgr.onLogEvent(*event1); in TEST()
557 std::shared_ptr<LogEvent> event1 = in TEST() local
562 mgr.onLogEvent(*event1); in TEST()
573 std::unique_ptr<LogEvent> event1 = CreateBatteryStateChangedEvent( in TEST() local
575 mgr.onLogEvent(*event1); in TEST()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDiagnosticManagerTest.java765 CarDiagnosticEvent event1 = listener1.waitForEvent(time); in testMultipleListeners() local
766 assertThat(event1).isNotNull(); in testMultipleListeners()
770 assertTrue(event1.equals(event1)); in testMultipleListeners()
772 assertTrue(event1.equals(event2)); in testMultipleListeners()
773 assertTrue(event2.equals(event1)); in testMultipleListeners()
775 assertTrue(event1.hashCode() == event1.hashCode()); in testMultipleListeners()
776 assertTrue(event1.hashCode() == event2.hashCode()); in testMultipleListeners()
780 event1.getSystemIntegerSensor(IntegerSensorIndex.RUNTIME_SINCE_ENGINE_START) in testMultipleListeners()
799 assertTrue(event1.isEarlierThan(event2)); in testMultipleListeners()
800 assertFalse(event1.equals(event2)); in testMultipleListeners()
[all …]
DCarStorageMonitoringTest.java629 IoStats event1 = listener1.reset(); in testEventDelivery() local
632 assertEquals(event1, event2); in testEventDelivery()
633 event1.getStats().forEach(stats -> assertTrue(stats.representsSameMetrics(record))); in testEventDelivery()
/packages/modules/StatsD/statsd/tests/
DLogEntryMatcher_test.cpp409 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
410 makeIntLogEvent(&event1, TAG_ID, 0, 1111); in TEST()
411 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event1).matched); in TEST()
448 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
449 makeRepeatedIntLogEvent(&event1, TAG_ID, intArray); in TEST()
453 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event1).matched); in TEST()
457 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event1).matched); in TEST()
461 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event1).matched); in TEST()
499 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
500 makeStringLogEvent(&event1, TAG_ID, 0, "some value"); in TEST()
[all …]
/packages/modules/StatsD/statsd/tests/condition/
DSimpleConditionTracker_test.cpp412 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_P() local
413 makeWakeLockEvent(&event1, uids, "wl1", /*acquire=*/1); in TEST_P()
424 conditionTracker.evaluateCondition(event1, matcherState, allPredicates, conditionCache, in TEST_P()
517 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST() local
518 makeWakeLockEvent(&event1, uids1, uid1_wl1, /*acquire=*/1); in TEST()
529 conditionTracker.evaluateCondition(event1, matcherState, allPredicates, conditionCache, in TEST()
609 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_P() local
610 makeWakeLockEvent(&event1, uids1, "wl1", /*acquire=*/1); in TEST_P()
621 conditionTracker.evaluateCondition(event1, matcherState, allPredicates, conditionCache, in TEST_P()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/observations/
DStringHistogramEncoderTest.java102 EventRecordAndSystemProfile event1 = in multipleEventsDisjointStrings() local
156 assertThat(encoder.encode(ImmutableList.of(event1, event2, event3))) in multipleEventsDisjointStrings()
174 EventRecordAndSystemProfile event1 = in multipleEventsSameStrings() local
226 assertThat(encoder.encode(ImmutableList.of(event1, event2, event3))) in multipleEventsSameStrings()
DIntegerEncoderTest.java46 EventRecordAndSystemProfile event1 = in encodesEventsIntoOneObservation() local
70 assertThat(encoder.encode(ImmutableList.of(event1, event2))) in encodesEventsIntoOneObservation()
/packages/modules/NeuralNetworks/runtime/test/
DTestTrivialModel.cpp256 ANeuralNetworksEvent* event1; in TEST_F() local
259 0, &event1), in TEST_F()
269 ASSERT_EQ(ANeuralNetworksExecution_startComputeWithDependencies(execution2_handle, &event1, 1, in TEST_F()
280 ANeuralNetworksEvent_free(event1); in TEST_F()
DTestValidation.cpp2377 ANeuralNetworksEvent* event1 = nullptr; in TEST_F() local
2379 &event1), in TEST_F()
2382 EXPECT_EQ(ANeuralNetworksEvent_getSyncFenceFd(event1, nullptr), in TEST_F()
2388 int getSyncFdResult = ANeuralNetworksEvent_getSyncFenceFd(event1, &syncFd); in TEST_F()
2402 ANeuralNetworksExecution_startComputeWithDependencies(nullptr, &event1, 1, 0, &event2), in TEST_F()
2407 EXPECT_EQ(ANeuralNetworksExecution_startComputeWithDependencies(execution2, &event1, 1, 0, in TEST_F()
2410 ANeuralNetworksEvent* wait_for_list[] = {event1, nullptr}; in TEST_F()
2415 ANeuralNetworksEvent_free(event1); in TEST_F()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ip/
DConntrackMonitorTest.java229 final ConntrackEvent event1 = makeTestConntrackEvent(IPCTNL_MSG_CT_NEW, 1234 /* status */, in testConntrackEventEquals() local
233 assertEquals(event1, event2); in testConntrackEventEquals()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/homescreen/audio/media/
DMediaCardController.java180 public boolean onFling(MotionEvent event1, MotionEvent event2, in MediaCardController()
182 if (Math.abs(event1.getX() - event2.getX()) > SWIPE_MAX_OFF_PATH in MediaCardController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DDataProcessManagerTest.java186 final UsageEvents.Event event1 = in start_loadExpectedAppUsageData() local
191 events.add(event1); in start_loadExpectedAppUsageData()

12