Searched refs:dropEvent (Results 1 – 8 of 8) sorted by relevance
/packages/modules/StatsD/statsd/tests/metrics/ |
D | KllMetricProducer_test.cpp | 332 auto dropEvent = report.kll_metrics().skipped(0).drop_event(0); in TEST() local 333 EXPECT_EQ(BucketDropReason::CONDITION_UNKNOWN, dropEvent.drop_reason()); in TEST() 334 EXPECT_EQ(NanoToMillis(dumpReportTimeNs), dropEvent.drop_time_millis()); in TEST() 370 auto dropEvent = report.kll_metrics().skipped(0).drop_event(0); in TEST() local 371 EXPECT_EQ(BucketDropReason::BUCKET_TOO_SMALL, dropEvent.drop_reason()); in TEST() 372 EXPECT_EQ(NanoToMillis(dumpReportTimeNs), dropEvent.drop_time_millis()); in TEST() 402 auto dropEvent = report.kll_metrics().skipped(0).drop_event(0); in TEST() local 403 EXPECT_EQ(BucketDropReason::NO_DATA, dropEvent.drop_reason()); in TEST() 404 EXPECT_EQ(NanoToMillis(dumpReportTimeNs), dropEvent.drop_time_millis()); in TEST() 438 auto dropEvent = report.kll_metrics().skipped(0).drop_event(0); in TEST() local [all …]
|
D | NumericValueMetricProducer_test.cpp | 2208 auto dropEvent = report.value_metrics().skipped(0).drop_event(0); in TEST() local 2209 EXPECT_EQ(BucketDropReason::PULL_FAILED, dropEvent.drop_reason()); in TEST() 2210 EXPECT_EQ(NanoToMillis(bucketStartTimeNs + 2), dropEvent.drop_time_millis()); in TEST() 2272 auto dropEvent = report.value_metrics().skipped(0).drop_event(0); in TEST() local 2273 EXPECT_EQ(BucketDropReason::DIMENSION_GUARDRAIL_REACHED, dropEvent.drop_reason()); in TEST() 2274 EXPECT_EQ(NanoToMillis(bucketStartTimeNs + 2), dropEvent.drop_time_millis()); in TEST() 2348 auto dropEvent = report.value_metrics().skipped(0).drop_event(0); in TEST() local 2349 EXPECT_EQ(BucketDropReason::PULL_FAILED, dropEvent.drop_reason()); in TEST() 2350 EXPECT_EQ(NanoToMillis(bucketStartTimeNs + 2), dropEvent.drop_time_millis()); in TEST() 2424 auto dropEvent = report.value_metrics().skipped(0).drop_event(0); in TEST() local [all …]
|
D | GaugeMetricProducer_test.cpp | 931 auto dropEvent = report.gauge_metrics().skipped(0).drop_event(0); in TEST() local 932 EXPECT_EQ(BucketDropReason::BUCKET_TOO_SMALL, dropEvent.drop_reason()); in TEST() 933 EXPECT_EQ(NanoToMillis(bucketStartTimeNs + 9000000), dropEvent.drop_time_millis()); in TEST()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | DragEvents.java | 44 final DragEvent dropEvent = createTestDragEvent(DragEvent.ACTION_DROP); in createTestDropEvent() local 45 Mockito.when(dropEvent.getClipData()).thenReturn(clipData); in createTestDropEvent() 47 return dropEvent; in createTestDropEvent()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | DragHostTest.java | 86 final DragEvent dropEvent = DragEvents.createTestDropEvent(data); in testHandleDrop_onValidView() local 91 assertTrue(dragHost.handleDropEvent(view, dropEvent)); in testHandleDrop_onValidView() 98 final DragEvent dropEvent = DragEvents.createTestDropEvent(data); in testHandleDrop_notOnValidView() local 101 assertFalse(dragHost.handleDropEvent(view, dropEvent)); in testHandleDrop_notOnValidView()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | ItemDragListenerTest.java | 167 final DragEvent dropEvent = DragEvents.createTestDropEvent(null); in testNoDropWithoutClipData() local 168 assertFalse(mListener.onDrag(mTestView, dropEvent)); in testNoDropWithoutClipData() 176 final DragEvent dropEvent = DragEvents.createTestDropEvent(data); in testDoDropWithClipData() local 177 mListener.onDrag(mTestView, dropEvent); in testDoDropWithClipData() 180 assertSame(dropEvent, mListener.mLastDropEvent); in testDoDropWithClipData()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | GaugeMetricProducer.cpp | 301 for (const auto& dropEvent : skippedBucket.dropEvents) { in onDumpReportLocked() local 304 protoOutput->write(FIELD_TYPE_INT32 | FIELD_ID_BUCKET_DROP_REASON, dropEvent.reason); in onDumpReportLocked() 305 …ut->write(FIELD_TYPE_INT64 | FIELD_ID_DROP_TIME, (long long) (NanoToMillis(dropEvent.dropTimeNs))); in onDumpReportLocked()
|
D | ValueMetricProducer.cpp | 388 for (const auto& dropEvent : skippedBucket.dropEvents) { in onDumpReportLocked() local 391 protoOutput->write(FIELD_TYPE_INT32 | FIELD_ID_BUCKET_DROP_REASON, dropEvent.reason); in onDumpReportLocked() 393 (long long)(NanoToMillis(dropEvent.dropTimeNs))); in onDumpReportLocked()
|