Home
last modified time | relevance | path

Searched refs:reporter (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/tests/PlatformCompatFramework/src/com/android/internal/compat/
DChangeReporterTest.java35 ChangeReporter reporter = new ChangeReporter(ChangeReporter.SOURCE_UNKNOWN_SOURCE); in testStatsLogOnce() local
40 assertTrue(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogOnce()
41 reporter.reportChange(myUid, myChangeId, myState); in testStatsLogOnce()
44 assertFalse(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogOnce()
46 assertTrue(reporter.shouldWriteToStatsLog(otherUid, myChangeId, myState)); in testStatsLogOnce()
47 assertTrue(reporter.shouldWriteToStatsLog(myUid, otherChangeId, myState)); in testStatsLogOnce()
48 assertTrue(reporter.shouldWriteToStatsLog(myUid, myChangeId, otherState)); in testStatsLogOnce()
53 ChangeReporter reporter = new ChangeReporter(ChangeReporter.SOURCE_UNKNOWN_SOURCE); in testStatsLogAfterReset() local
58 assertTrue(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogAfterReset()
59 reporter.reportChange(myUid, myChangeId, myState); in testStatsLogAfterReset()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DFrameMetricsReporterTests.cpp40 auto reporter = std::make_shared<FrameMetricsReporter>(); in TEST() local
45 reporter->addObserver(observer.get()); in TEST()
51 reporter->reportFrameMetrics(stats, hasPresentTime, frameNumber, surfaceControlId); in TEST()
55 reporter->reportFrameMetrics(stats, hasPresentTime, frameNumber, surfaceControlId); in TEST()
59 reporter->reportFrameMetrics(stats, hasPresentTime, frameNumber, surfaceControlId); in TEST()
63 reporter->reportFrameMetrics(stats, hasPresentTime, frameNumber, surfaceControlId); in TEST()
72 auto reporter = std::make_shared<FrameMetricsReporter>(); in TEST() local
76 reporter->addObserver(observer.get()); in TEST()
80 reporter->reportFrameMetrics(stats, hasPresentTime, frameNumber, surfaceControlId); in TEST()
84 reporter->reportFrameMetrics(stats, hasPresentTime, frameNumber, surfaceControlId); in TEST()
[all …]
DJankTrackerTests.cpp35 std::unique_ptr<FrameMetricsReporter> reporter = std::make_unique<FrameMetricsReporter>(); in TEST() local
48 jankTracker.finishFrame(*info, reporter, frameNumber, surfaceId); in TEST()
58 jankTracker.finishFrame(*info, reporter, frameNumber, surfaceId); in TEST()
69 std::unique_ptr<FrameMetricsReporter> reporter = std::make_unique<FrameMetricsReporter>(); in TEST() local
82 jankTracker.finishFrame(*info, reporter, frameNumber, surfaceId); in TEST()
92 std::unique_ptr<FrameMetricsReporter> reporter = std::make_unique<FrameMetricsReporter>(); in TEST() local
105 jankTracker.finishFrame(*info, reporter, frameNumber, surfaceId); in TEST()
116 std::unique_ptr<FrameMetricsReporter> reporter = std::make_unique<FrameMetricsReporter>(); in TEST() local
130 jankTracker.finishFrame(*info, reporter, frameNumber, surfaceId); in TEST()
143 jankTracker.finishFrame(*info, reporter, frameNumber, surfaceId); in TEST()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DSurfaceControlRegistryTests.java122 TestReporter reporter = new TestReporter(); in testThresholds() local
123 registry.setReportingThresholds(4 /* max */, 2 /* reset */, reporter); in testThresholds()
130 reporter.assertMaxThresholdExceededCallCount(1); in testThresholds()
131 reporter.assertLastReportedSetEquals(sc1, sc2, sc3, sc4); in testThresholds()
136 reporter.assertMaxThresholdExceededCallCount(1); in testThresholds()
137 reporter.assertLastReportedSetEquals(sc1, sc2, sc3, sc4); in testThresholds()
148 reporter.assertMaxThresholdExceededCallCount(2); in testThresholds()
149 reporter.assertLastReportedSetEquals(sc5, sc6, sc7, sc8); in testThresholds()
/frameworks/base/cmds/am/src/com/android/commands/am/
DInstrument.java386 public InstrumentationWatcher(StatusReporter reporter) { in InstrumentationWatcher() argument
387 mReporter = reporter; in InstrumentationWatcher()
472 StatusReporter reporter = null; in run() local
478 reporter = new ProtoStatusReporter(); in run()
480 reporter = new TextStatusReporter(rawMode); in run()
486 if (reporter != null) { in run()
487 watcher = new InstrumentationWatcher(reporter); in run()
549 reporter.onError("INSTRUMENTATION_ABORTED: System has crashed.", false); in run()
555 if (reporter != null) { in run()
556 reporter.onError(ex.getMessage(), true); in run()
/frameworks/base/core/java/android/window/
DTransitionMetrics.java32 private TransitionMetrics(ITransitionMetricsReporter reporter) { in TransitionMetrics() argument
33 mTransitionMetricsReporter = reporter; in TransitionMetrics()
/frameworks/base/libs/hwui/tests/macrobench/
DTestSceneRunner.cpp190 benchmark::BenchmarkReporter* reporter) { in run() argument
193 doRun(info, opts, i, reporter ? &results : nullptr); in run()
195 if (reporter) { in run()
196 reporter->ReportRuns(results); in run()
208 reporter->ReportRuns(summary); in run()
Dmain.cpp52 benchmark::BenchmarkReporter* reporter);
/frameworks/base/core/java/android/view/
DSurfaceControlRegistry.java166 Reporter reporter) { in setReportingThresholds() argument
174 if (reporter == null) { in setReportingThresholds()
180 mReporter = reporter; in setReportingThresholds()
402 int resetReportingThreshold, Reporter reporter) {} in setReportingThresholds() argument
/frameworks/base/libs/hwui/
DJankTracker.cpp170 void JankTracker::finishFrame(FrameInfo& frame, std::unique_ptr<FrameMetricsReporter>& reporter, in finishFrame() argument
263 if (CC_UNLIKELY(reporter.get() != nullptr)) { in finishFrame()
264 reporter->reportFrameMetrics(frame.data(), false /* hasPresentTime */, frameNumber, in finishFrame()
DJankTracker.h60 void finishFrame(FrameInfo& frame, std::unique_ptr<FrameMetricsReporter>& reporter,
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java206 static void runBenchmarkInBackground(Runnable thunk, ResultListener reporter) { in runBenchmarkInBackground() argument
238 reporter.onResult(resultMean, resultStdev); in runBenchmarkInBackground()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowKeyValueBackupTask.java65 KeyValueBackupReporter reporter, in __constructor__() argument
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java227 KeyValueBackupReporter reporter = in start() local
238 reporter, in start()
315 KeyValueBackupReporter reporter, in KeyValueBackupTask() argument
329 mReporter = reporter; in KeyValueBackupTask()
/frameworks/base/cmds/incidentd/src/
DIncidentService.cpp195 sp<Reporter> reporter = new Reporter(mWorkDirectory, batch, mRegisteredSections); in take_report() local
202 reporter->runReport(&reportByteSize); in take_report()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp3218 for (const auto& [displayId, reporter] : mHdrLayerInfoListeners) { in onCompositionPresented()
3219 if (reporter && reporter->hasListeners()) { in onCompositionPresented()
3221 hdrInfoListeners.emplace_back(display->getCompositionDisplay(), reporter); in onCompositionPresented()