/frameworks/base/cmds/statsd/tests/ |
D | LogEvent_test.cpp | 32 LogEvent event1(1, 2000); in TEST() local 46 event1.write(nodes); in TEST() 47 event1.write("hello"); in TEST() 48 event1.write((int32_t)10); in TEST() 49 event1.write((int64_t)20); in TEST() 50 event1.write((float)1.1); in TEST() 51 event1.init(); in TEST() 53 const auto& items = event1.getValues(); in TEST() 55 EXPECT_EQ(1, event1.GetTagId()); in TEST() 57 const FieldValue& item0 = event1.getValues()[0]; in TEST() [all …]
|
D | LogEntryMatcher_test.cpp | 615 LogEvent event1(TAG_ID, 0); in TEST() local 617 event1.write(10.1f); in TEST() 618 event1.init(); in TEST() 619 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event1)); in TEST()
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | EventMetricProducer_test.cpp | 46 LogEvent event1(1 /*tag id*/, bucketStartTimeNs + 1); in TEST() local 54 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST() 70 LogEvent event1(1, bucketStartTimeNs + 1); in TEST() local 78 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST() 103 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST() local 104 EXPECT_TRUE(event1.write("111")); in TEST() 105 event1.init(); in TEST() 122 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST()
|
D | CountMetricProducer_test.cpp | 64 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST() local 65 event1.init(); in TEST() 75 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST() 126 LogEvent event1(1, bucketStartTimeNs + 1); in TEST() local 127 event1.init(); in TEST() 137 countProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST() 175 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST() local 176 event1.write("111"); // uid in TEST() 177 event1.init(); in TEST() 197 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST() [all …]
|
D | DurationMetricProducer_test.cpp | 70 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST() local 71 event1.init(); in TEST() 80 durationProducer.onMatchedLogEvent(1 /* start index*/, event1); in TEST() 107 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST() local 108 event1.init(); in TEST() 125 durationProducer.onMatchedLogEvent(1 /* start index*/, event1); in TEST() 155 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST() local 156 event1.init(); in TEST() 172 durationProducer.onMatchedLogEvent(1 /* start index*/, event1); in TEST() 354 LogEvent event1(tagId, startTimeNs); in TEST() local [all …]
|
D | ValueMetricProducer_test.cpp | 675 shared_ptr<LogEvent> event1 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 10); in TEST() local 676 event1->write(1); in TEST() 677 event1->write(10); in TEST() 678 event1->init(); in TEST() 679 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, *event1); in TEST() 859 shared_ptr<LogEvent> event1 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 10); in TEST() local 860 event1->write(1); in TEST() 861 event1->write(10); in TEST() 862 event1->init(); in TEST() 867 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, *event1); in TEST() [all …]
|
D | GaugeMetricProducer_test.cpp | 219 shared_ptr<LogEvent> event1 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 10); in TEST() local 220 event1->write(1); in TEST() 221 event1->write(10); in TEST() 222 event1->init(); in TEST() 223 gaugeProducer.onMatchedLogEvent(1 /*log matcher index*/, *event1); in TEST() 598 std::shared_ptr<LogEvent> event1 = std::make_shared<LogEvent>(tagId, bucketStartTimeNs + 1); in TEST() local 599 event1->write("some value"); in TEST() 600 event1->write(13); in TEST() 601 event1->init(); in TEST() 603 gaugeProducer.onDataPulled({event1}, /** succeed */ true, bucketStartTimeNs); in TEST()
|
/frameworks/base/cmds/statsd/tests/shell/ |
D | ShellSubscriber_test.cpp | 139 std::shared_ptr<LogEvent> event1 = in TEST() local 141 event1->write(::android::view::DisplayStateEnum::DISPLAY_STATE_ON); in TEST() 142 event1->init(); in TEST() 143 pushedList.push_back(event1); in TEST()
|
/frameworks/ml/nn/runtime/test/ |
D | TestTrivialModel.cpp | 224 ANeuralNetworksEvent* event1; in TEST_F() local 227 0, &event1), in TEST_F() 237 ASSERT_EQ(ANeuralNetworksExecution_startComputeWithDependencies(execution2_handle, &event1, 1, in TEST_F() 248 ANeuralNetworksEvent_free(event1); in TEST_F()
|
D | TestValidation.cpp | 1832 ANeuralNetworksEvent* event1 = nullptr; in TEST_F() local 1834 &event1), in TEST_F() 1837 EXPECT_EQ(ANeuralNetworksEvent_getSyncFenceFd(event1, nullptr), in TEST_F() 1845 ANeuralNetworksExecution_startComputeWithDependencies(nullptr, &event1, 1, 0, &event2), in TEST_F() 1850 EXPECT_EQ(ANeuralNetworksExecution_startComputeWithDependencies(execution2, &event1, 1, 0, in TEST_F() 1853 ANeuralNetworksEvent* wait_for_list[] = {event1, nullptr}; in TEST_F() 1858 ANeuralNetworksEvent_free(event1); in TEST_F()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/ |
D | CarStatusBar.java | 1528 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, in onScroll() argument 1551 public boolean onFling(MotionEvent event1, MotionEvent event2, in onFling() argument 1581 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, in onScroll() argument 1588 mNotificationView.getHeight() - (event1.getRawY() - event2.getRawY()); in onScroll() 1617 public boolean onFling(MotionEvent event1, MotionEvent event2, in onFling() argument 1623 if (Math.abs(event1.getX() - event2.getX()) > SWIPE_MAX_OFF_PATH in onFling() 1657 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, 1679 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, 1687 mNotificationView.getHeight() - (int) (event1.getRawY() - event2.getRawY());
|