Home
last modified time | relevance | path

Searched refs:dropEvent (Results 1 – 8 of 8) sorted by relevance

/packages/modules/StatsD/statsd/tests/metrics/
DKllMetricProducer_test.cpp332 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 …]
DNumericValueMetricProducer_test.cpp2208 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 …]
DGaugeMetricProducer_test.cpp931 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/
DDragEvents.java44 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/
DDragHostTest.java86 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/
DItemDragListenerTest.java167 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/
DGaugeMetricProducer.cpp301 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()
DValueMetricProducer.cpp388 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()