Home
last modified time | relevance | path

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

/frameworks/base/core/tests/PlatformCompatFramework/src/com/android/internal/compat/
DChangeReporterTest.java27 ChangeReporter reporter = new ChangeReporter(ChangeReporter.SOURCE_UNKNOWN_SOURCE); in testStatsLogOnce() local
32 assertTrue(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogOnce()
33 reporter.reportChange(myUid, myChangeId, myState); in testStatsLogOnce()
36 assertFalse(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogOnce()
38 assertTrue(reporter.shouldWriteToStatsLog(otherUid, myChangeId, myState)); in testStatsLogOnce()
39 assertTrue(reporter.shouldWriteToStatsLog(myUid, otherChangeId, myState)); in testStatsLogOnce()
40 assertTrue(reporter.shouldWriteToStatsLog(myUid, myChangeId, otherState)); in testStatsLogOnce()
45 ChangeReporter reporter = new ChangeReporter(ChangeReporter.SOURCE_UNKNOWN_SOURCE); in testStatsLogAfterReset() local
50 assertTrue(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogAfterReset()
51 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/services/core/java/com/android/server/pm/dex/
DSystemServerDexLoadReporter.java73 SystemServerDexLoadReporter reporter = new SystemServerDexLoadReporter(pm); in configureSystemServerDexReporter() local
74 BaseDexClassLoader.setReporter(reporter); in configureSystemServerDexReporter()
75 ClassLoader currrentClassLoader = reporter.getClass().getClassLoader(); in configureSystemServerDexReporter()
/frameworks/base/core/java/android/window/
DTransitionMetrics.java32 private TransitionMetrics(ITransitionMetricsReporter reporter) { in TransitionMetrics() argument
33 mTransitionMetricsReporter = reporter; in TransitionMetrics()
/frameworks/base/cmds/am/src/com/android/commands/am/
DInstrument.java381 public InstrumentationWatcher(StatusReporter reporter) { in InstrumentationWatcher() argument
382 mReporter = reporter; in InstrumentationWatcher()
466 StatusReporter reporter = null; in run() local
472 reporter = new ProtoStatusReporter(); in run()
474 reporter = new TextStatusReporter(rawMode); in run()
480 if (reporter != null) { in run()
481 watcher = new InstrumentationWatcher(reporter); in run()
540 reporter.onError("INSTRUMENTATION_ABORTED: System has crashed.", false); in run()
546 if (reporter != null) { in run()
547 reporter.onError(ex.getMessage(), true); in run()
/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.cpp50 benchmark::BenchmarkReporter* reporter);
/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.java226 KeyValueBackupReporter reporter = in start() local
236 reporter, in start()
313 KeyValueBackupReporter reporter, in KeyValueBackupTask() argument
327 mReporter = reporter; in KeyValueBackupTask()
/frameworks/base/cmds/incidentd/src/
DIncidentService.cpp193 sp<Reporter> reporter = new Reporter(mWorkDirectory, batch, mRegisteredSections); in take_report() local
200 reporter->runReport(&reportByteSize); in take_report()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp2496 for (const auto& [displayId, reporter] : mHdrLayerInfoListeners) { in postComposition()
2497 if (reporter && reporter->hasListeners()) { in postComposition()
2499 hdrInfoListeners.emplace_back(display->getCompositionDisplay(), reporter); in postComposition()