Home
last modified time | relevance | path

Searched refs:mScheduler (Results 1 – 25 of 25) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DSchedulerTest.cpp105 TestableScheduler* mScheduler = new TestableScheduler{mSelector, mFlinger, mSchedulerCallback}; member in android::scheduler::__anon810a6bab0111::SchedulerTest
124 mScheduler->setEventThread(Cycle::Render, std::move(eventThread)); in SchedulerTest()
126 mFlinger.resetScheduler(mScheduler); in SchedulerTest()
134 mScheduler->registerDisplay(kDisplayId1, in TEST_F()
146 mScheduler->registerDisplay(kDisplayId2, in TEST_F()
149 mScheduler->registerDisplay(kDisplayId3, in TEST_F()
153 EXPECT_FALSE(mScheduler->getVsyncSchedule(kDisplayId1)->getPendingHardwareVsyncState()); in TEST_F()
154 EXPECT_FALSE(mScheduler->getVsyncSchedule(kDisplayId2)->getPendingHardwareVsyncState()); in TEST_F()
155 EXPECT_FALSE(mScheduler->getVsyncSchedule(kDisplayId3)->getPendingHardwareVsyncState()); in TEST_F()
163 ASSERT_EQ(0u, mScheduler->getNumActiveLayers()); in TEST_F()
[all …]
DLayerInfoTest.cpp45 LayerInfoTest() { mFlinger.resetScheduler(mScheduler); } in LayerInfoTest()
68 TestableScheduler* mScheduler = new TestableScheduler(mSelector, mFlinger, mSchedulerCallback); member in android::scheduler::LayerInfoTest
205 layerInfo.getRefreshRateVote(*mScheduler->refreshRateSelector(), systemTime()); in TEST_F()
221 layerInfo.getRefreshRateVote(*mScheduler->refreshRateSelector(), systemTime()); in TEST_F()
239 layerInfo.getRefreshRateVote(*mScheduler->refreshRateSelector(), systemTime()); in TEST_F()
252 layerInfo.getRefreshRateVote(*mScheduler->refreshRateSelector(), systemTime()); in TEST_F()
266 layerInfo.getRefreshRateVote(*mScheduler->refreshRateSelector(), systemTime()); in TEST_F()
DTestableSurfaceFlinger.h181 scheduler::TestableScheduler* scheduler() { return mScheduler; } in scheduler()
251 mScheduler =
259 mScheduler = new scheduler::TestableScheduler(std::move(vsyncController),
265 mScheduler->initVsync(*mTokenManager, 0ms);
267 mScheduler->setEventThread(scheduler::Cycle::Render, std::move(appEventThread));
268 mScheduler->setEventThread(scheduler::Cycle::LastComposite, std::move(sfEventThread));
270 resetScheduler(mScheduler);
305 void resetScheduler(scheduler::Scheduler* scheduler) { mFlinger->mScheduler.reset(scheduler); } in resetScheduler()
307 scheduler::TestableScheduler& mutableScheduler() { return *mScheduler; } in mutableScheduler()
376 const auto displayIdOpt = mScheduler->pacesetterDisplayId();
[all …]
DLayerHistoryIntegrationTest.cpp57 mFlinger.resetScheduler(mScheduler); in LayerHistoryIntegrationTest()
74 LayerHistory& history() { return mScheduler->mutableLayerHistory(); } in history()
75 const LayerHistory& history() const { return mScheduler->mutableLayerHistory(); } in history()
81 auto summary = history().summarize(*mScheduler->refreshRateSelector(), now); in summarizeLayerHistory()
90 size_t layerCount() const { return mScheduler->layerHistorySize(); } in layerCount()
169 TestableScheduler* mScheduler = new TestableScheduler(mSelector, mFlinger, mSchedulerCallback); member in android::scheduler::LayerHistoryIntegrationTest
1006 mScheduler->onActiveDisplayAreaChanged(DISPLAY_WIDTH * DISPLAY_HEIGHT); in SmallAreaDetectionTest()
1007 mScheduler->updateSmallAreaDetection(mappings); in SmallAreaDetectionTest()
DLayerHistoryTest.cpp66 LayerHistoryTest() { mFlinger.resetScheduler(mScheduler); } in LayerHistoryTest()
68 LayerHistory& history() { return mScheduler->mutableLayerHistory(); } in history()
69 const LayerHistory& history() const { return mScheduler->mutableLayerHistory(); } in history()
75 auto summary = history().summarize(*mScheduler->refreshRateSelector(), now); in summarizeLayerHistory()
84 size_t layerCount() const { return mScheduler->layerHistorySize(); } in layerCount()
153 TestableScheduler* mScheduler = new TestableScheduler(mSelector, mFlinger, mSchedulerCallback); member in android::scheduler::LayerHistoryTest
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/
DBiometricSchedulerTest.java109 private BiometricScheduler<IFingerprint, ISession> mScheduler; field in BiometricSchedulerTest
153 mScheduler = new BiometricScheduler<>( in setUp()
189 mScheduler.scheduleClientMonitor(client1); in testClientDuplicateFinish_ignoredBySchedulerAndDoesNotCrash()
190 mScheduler.scheduleClientMonitor(client2); in testClientDuplicateFinish_ignoredBySchedulerAndDoesNotCrash()
208 mScheduler.mCurrentOperation = new BiometricSchedulerOperation( in testRemovesPendingOperations_whenNullHal_andNotBiometricPrompt()
211 mScheduler.scheduleClientMonitor(client1, callback1); in testRemovesPendingOperations_whenNullHal_andNotBiometricPrompt()
212 assertEquals(1, mScheduler.mPendingOperations.size()); in testRemovesPendingOperations_whenNullHal_andNotBiometricPrompt()
214 mScheduler.mCurrentOperation = null; in testRemovesPendingOperations_whenNullHal_andNotBiometricPrompt()
215 mScheduler.scheduleClientMonitor(client2, callback2); in testRemovesPendingOperations_whenNullHal_andNotBiometricPrompt()
226 assertTrue(mScheduler.mPendingOperations.isEmpty()); in testRemovesPendingOperations_whenNullHal_andNotBiometricPrompt()
[all …]
/frameworks/native/services/vibratorservice/test/
DVibratorCallbackSchedulerTest.cpp39 void SetUp() override { mScheduler = std::make_unique<vibrator::CallbackScheduler>(); } in SetUp()
43 std::unique_ptr<vibrator::CallbackScheduler> mScheduler = nullptr; member in VibratorCallbackSchedulerTest
73 mScheduler->schedule(createCallback(1), callbackDuration); in TEST_F()
84 mScheduler->schedule(createCallback(1), 50ms + 2 * TEST_TIMEOUT); in TEST_F()
85 mScheduler->schedule(createCallback(2), 50ms + TEST_TIMEOUT); in TEST_F()
86 mScheduler->schedule(createCallback(3), 50ms); in TEST_F()
95 mScheduler->schedule(createCallback(1), 100ms); in TEST_F()
96 mScheduler.reset(nullptr); in TEST_F()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DSyncRunner.java33 private Scheduler mScheduler = null; field in SyncRunner
56 mScheduler = (Scheduler)schedulerConstructor.newInstance(graph); in SyncRunner()
86 return mScheduler != null ? mScheduler.getGraph() : null; in getGraph()
98 mScheduler.reset(); in beginProcessing()
106 mScheduler.reset(); in close()
192 for (Filter filter : mScheduler.getGraph().getFilters()) { in determinePostRunState()
209 Filter filter = mScheduler.scheduleNextNode(); in performStep()
221 if (mScheduler == null) { in assertReadyToStep()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/aidl/
DSensorTest.java97 private BiometricScheduler<IFace, ISession> mScheduler; field in SensorTest
107 mScheduler = new BiometricScheduler<>( in setUp()
115 mHalCallback = new AidlResponseHandler(mContext, mScheduler, SENSOR_ID, USER_ID, in setUp()
128 mScheduler.scheduleClientMonitor(new FaceResetLockoutClient(mContext, in halSessionCallback_respondsToResetLockout()
151 mScheduler = sensor.getScheduler(); in onBinderDied_noErrorOnNullClient()
152 mScheduler.reset(); in onBinderDied_noErrorOnNullClient()
154 assertNull(mScheduler.getCurrentClient()); in onBinderDied_noErrorOnNullClient()
170 mScheduler = sensor.getScheduler(); in onBinderDied_cancelNonInterruptableClient()
174 mScheduler.scheduleClientMonitor(mClientMonitor); in onBinderDied_cancelNonInterruptableClient()
176 assertNotNull(mScheduler.getCurrentClient()); in onBinderDied_cancelNonInterruptableClient()
[all …]
DFaceProviderTest.java110 private BiometricScheduler<IFace, ISession> mScheduler; field in FaceProviderTest
243 mFaceProvider.mFaceSensors.get(0).setScheduler(mScheduler); in testAuthenticateCallbackHandler()
262 verify(mScheduler).scheduleClientMonitor(clientMonitorArgumentCaptor.capture(), in testAuthenticateCallbackHandler()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/aidl/
DSensorTest.java103 private BiometricScheduler<IFingerprint, ISession> mScheduler; field in SensorTest
114 mScheduler = new BiometricScheduler<>( in setUp()
122 mHalCallback = new AidlResponseHandler(mContext, mScheduler, SENSOR_ID, USER_ID, in setUp()
135 mScheduler.scheduleClientMonitor(new FingerprintResetLockoutClient(mContext, in halSessionCallback_respondsToResetLockout()
163 mScheduler = sensor.getScheduler(); in onBinderDied_cancelNonInterruptableClient()
167 mScheduler.scheduleClientMonitor(mClientMonitor); in onBinderDied_cancelNonInterruptableClient()
169 assertNotNull(mScheduler.getCurrentClient()); in onBinderDied_cancelNonInterruptableClient()
175 assertNull(mScheduler.getCurrentClient()); in onBinderDied_cancelNonInterruptableClient()
DFingerprintProviderTest.java115 private BiometricScheduler<IFingerprint, ISession> mScheduler; field in FingerprintProviderTest
248 mFingerprintProvider.mFingerprintSensors.get(0).setScheduler(mScheduler); in testScheduleAuthenticate()
267 verify(mScheduler).scheduleClientMonitor(clientMonitorArgumentCaptor.capture(), in testScheduleAuthenticate()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNetworkScanRequestTracker.java83 mScheduler.doStartScan((NetworkScanRequestInfo) msg.obj);
87 mScheduler.startScanDone((AsyncResult) msg.obj);
91 mScheduler.receiveResult((AsyncResult) msg.obj);
95 mScheduler.doStopScan(msg.arg1);
99 mScheduler.stopScanDone((AsyncResult) msg.obj);
103 mScheduler.doInterruptScan(msg.arg1);
107 mScheduler.interruptScanDone((AsyncResult) msg.obj);
114 mScheduler.deleteScanAndMayNotify(
125 private final NetworkScanRequestScheduler mScheduler = new NetworkScanRequestScheduler(); field in NetworkScanRequestTracker
664 synchronized (mScheduler) { in stopNetworkScan()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/
DAidlResponseHandler.java71 private final BiometricScheduler mScheduler; field in AidlResponseHandler
91 mScheduler = scheduler; in AidlResponseHandler()
163 BaseClientMonitor client = mScheduler.getCurrentClient(); in onEnrollmentProgress()
289 mScheduler.getHandler().post(() -> { in onLockoutChanged()
324 mScheduler.getHandler().post(() -> { in handleResponse()
325 final BaseClientMonitor client = mScheduler.getCurrentClient(); in handleResponse()
339 mScheduler.getHandler().post(mScheduler::onUserStopped); in onSessionClosed()
DSensor.java83 @NonNull private BiometricScheduler<IFace, ISession> mScheduler; field in Sensor
144 mContext, mScheduler, sensorId, newUserId, in getBiometricSchedulerForInit()
235 return mScheduler;
275 proto.write(SensorStateProto.SCHEDULER, mScheduler.dumpProtoState(clearSchedulerBuffer));
297 final BaseClientMonitor client = mScheduler.getCurrentClient();
312 mScheduler.recordCrashState();
313 mScheduler.reset();
354 mScheduler = scheduler;
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/
DAidlResponseHandler.java72 private final BiometricScheduler mScheduler; field in AidlResponseHandler
91 mScheduler = scheduler; in AidlResponseHandler()
154 BaseClientMonitor client = mScheduler.getCurrentClient(); in onEnrollmentProgress()
289 mScheduler.getHandler().post(() -> { in handleResponse()
290 final BaseClientMonitor client = mScheduler.getCurrentClient(); in handleResponse()
304 mScheduler.getHandler().post(mScheduler::onUserStopped); in onSessionClosed()
DSensor.java88 @NonNull private BiometricScheduler<IFingerprint, ISession> mScheduler; field in Sensor
155 mContext, mScheduler, sensorId, newUserId, in getBiometricSchedulerForInit()
260 return mScheduler;
303 proto.write(SensorStateProto.SCHEDULER, mScheduler.dumpProtoState(clearSchedulerBuffer));
325 final BaseClientMonitor client = mScheduler.getCurrentClient();
340 mScheduler.recordCrashState();
341 mScheduler.reset();
378 mScheduler = scheduler;
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp560 static_cast<void>(mScheduler->schedule([this]() FTL_FAKE_GUARD(kMainThreadContext) { in binderDied()
575 mScheduler->run(); in run()
760 static_cast<void>(mScheduler->schedule([=, this]() FTL_FAKE_GUARD(kMainThreadContext) { in bootFinished()
944 static_cast<void>(mScheduler->schedule([=, in init()
954 mScheduler in init()
971 static_cast<void>(mScheduler->schedule( in init()
1058 mScheduler->schedule(writeFn).get(); in initTransactionTraceWriter()
1184 const auto vsyncConfigSet = mScheduler->getVsyncConfiguration().getConfigsForRefreshRate( in getDynamicDisplayInfoInternal()
1300 const auto schedule = mScheduler->getVsyncSchedule(displayIdOpt); in getDisplayStats()
1329 mScheduler->setRenderRate(displayId, renderRate, true /* applyImmediately */); in setDesiredMode()
[all …]
DLayer.cpp211 args.flinger->mScheduler->getPacesetterVsyncPeriod().ns()); in Layer()
289 mFlinger->mScheduler->deregisterLayer(this); in removeFromCurrentState()
320 mFlinger->mScheduler->registerLayer(this); in addToCurrentState()
1166 mFlinger->mScheduler->setDefaultFrameRateCompatibility(sequence, compatibility); in setDefaultFrameRateCompatibility()
1435 const auto fps = mFlinger->mScheduler->getFrameRateOverride(getOwnerUid()); in createSurfaceFrameForTransaction()
1452 const auto fps = mFlinger->mScheduler->getFrameRateOverride(getOwnerUid()); in createSurfaceFrameForBuffer()
1478 const auto fps = mFlinger->mScheduler->getFrameRateOverride(getOwnerUid()); in setFrameTimelineVsyncForSkippedFrames()
1499 mFlinger->mScheduler in setFrameRateForLayerTreeLegacy()
1512 mFlinger->mScheduler in setFrameRateForLayerTree()
3240 if (mFlinger->mScheduler->supportSmallDirtyDetection(mOwnerAppId)) { in setBuffer()
[all …]
DSurfaceFlinger.h517 mScheduler in mainThreadDumperImpl()
1416 std::unique_ptr<scheduler::Scheduler> mScheduler; variable
1503 return mScheduler->getLayerFramerate(now, id); in getLayerFramerate()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphRunner.java300 mScheduler.prepare(currentFilters()); in onOpenGraph()
320 mScheduler.prepare(currentFilters()); in onStarve()
350 mScheduler.beginStep(); in onStep()
354 long priority = mScheduler.priorityForFilter(filter); in onStep()
602 private Scheduler mScheduler; field in GraphRunner
770 return mScheduler.getStrategy(); in getSchedulerStrategy()
987 mScheduler = new LruScheduler(); in createScheduler()
990 mScheduler = new LfuScheduler(); in createScheduler()
993 mScheduler = new OneShotScheduler(); in createScheduler()
/frameworks/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/
DBluetoothMidiCodecTest.java61 ScheduledExecutorService mScheduler; field in BluetoothMidiCodecTest.EncoderDecoderChecker
79 mScheduler = Executors.newSingleThreadScheduledExecutor(); in EncoderDecoderChecker()
95 mScheduler.scheduleAtFixedRate( in start()
111 mScheduler.shutdown(); in stop()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DFrameReleaseQueue.java48 private final ScheduledExecutorService mScheduler = Executors.newScheduledThreadPool(1); field in FrameReleaseQueue
120 mScheduler.schedule(mReleaseThread, sleepTime, TimeUnit.MILLISECONDS); in run()
167 mScheduler.execute(mReleaseThread); in pushFrame()
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java2083 private final ScheduledExecutorService mScheduler = Executors.newScheduledThreadPool(1); field in CameraManager.CameraManagerGlobal
3244 mScheduler.schedule(() -> { in scheduleCameraServiceReconnectionLocked()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt15822 Landroid/filterfw/core/SyncRunner;->mScheduler:Landroid/filterfw/core/Scheduler;
18708 Landroid/hardware/camera2/CameraManager$CameraManagerGlobal;->mScheduler:Ljava/util/concurrent/Sche…