/frameworks/ex/common/tests/src/com/android/common/ |
D | OperationSchedulerTest.java | 46 TimeTravelScheduler scheduler = new TimeTravelScheduler(); in testScheduler() local 48 assertEquals(Long.MAX_VALUE, scheduler.getNextTimeMillis(options)); in testScheduler() 49 assertEquals(0, scheduler.getLastSuccessTimeMillis()); in testScheduler() 50 assertEquals(0, scheduler.getLastAttemptTimeMillis()); in testScheduler() 52 long beforeTrigger = scheduler.timeMillis; in testScheduler() 53 scheduler.setTriggerTimeMillis(beforeTrigger + 1000000); in testScheduler() 54 assertEquals(beforeTrigger + 1000000, scheduler.getNextTimeMillis(options)); in testScheduler() 57 scheduler.setMoratoriumTimeMillis(beforeTrigger + 500000); in testScheduler() 58 assertEquals(beforeTrigger + 1000000, scheduler.getNextTimeMillis(options)); in testScheduler() 59 scheduler.setMoratoriumTimeMillis(beforeTrigger + 1500000); in testScheduler() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 294 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument 296 spiedContext.sendOrderedBroadcast(intent, receiverPermission, resultReceiver, scheduler, in sendOrderedBroadcast() 302 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument 305 scheduler, in sendOrderedBroadcast() 311 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument 314 scheduler, in sendOrderedBroadcast() 349 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser() argument 353 scheduler, initialCode, initialData, initialExtras); in sendOrderedBroadcastAsUser() 359 Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { in sendOrderedBroadcastAsUser() argument 362 scheduler, initialCode, initialData, initialExtras); in sendOrderedBroadcastAsUser() [all …]
|
D | MockSystemServices.java | 191 BroadcastReceiver receiver, IntentFilter filter, Handler scheduler) { in registerReceiver() argument 192 mBroadcastReceivers.add(new BroadcastReceiverRegistration(receiver, filter, scheduler)); in registerReceiver() 473 public final Handler scheduler; field in MockSystemServices.BroadcastReceiverRegistration 479 Handler scheduler) { in BroadcastReceiverRegistration() argument 482 this.scheduler = scheduler; in BroadcastReceiverRegistration() 495 if (scheduler != null) { in sendBroadcastIfApplicable() 496 scheduler.post(() -> { in sendBroadcastIfApplicable()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | Scheduler.h | 51 using RefreshRateType = scheduler::RefreshRateConfigs::RefreshRateType; 83 const scheduler::RefreshRateConfigs& refreshRateConfig); 142 std::unique_ptr<scheduler::LayerHistory::LayerHandle> registerLayer(std::string const& name, 147 const std::unique_ptr<scheduler::LayerHistory::LayerHandle>& layerHandle, 151 const std::unique_ptr<scheduler::LayerHistory::LayerHandle>& layerHandle, bool visible); 261 std::array<int64_t, scheduler::ARRAY_SIZE> mTimeDifferences{}; 265 scheduler::LayerHistory mLayerHistory; 270 std::unique_ptr<scheduler::IdleTimer> mIdleTimer; 277 std::unique_ptr<scheduler::IdleTimer> mTouchTimer; 281 std::unique_ptr<scheduler::IdleTimer> mDisplayPowerTimer; [all …]
|
D | LayerInfo.h | 34 namespace scheduler { 61 return scheduler::calculate_mean(mElements); in getRefreshRateAvg() 101 systemTime() - scheduler::OBSOLETE_TIME_EPSILON_NS.count(); in isRelevant() 112 if (mElements.size() < scheduler::LOW_ACTIVITY_BUFFERS + 1) { in isLowActivityLayer() 117 systemTime() - scheduler::LOW_ACTIVITY_EPSILON_NS.count(); in isLowActivityLayer() 121 if (mElements.at(mElements.size() - (scheduler::LOW_ACTIVITY_BUFFERS + 1)) < in isLowActivityLayer()
|
D | VSyncModulator.h | 47 scheduler::RefreshRateConfigs::RefreshRateType fpsMode; 72 void setSchedulerAndHandles(Scheduler* scheduler, in setSchedulerAndHandles() argument 75 mScheduler = scheduler; in setSchedulerAndHandles()
|
D | Scheduler.cpp | 61 const scheduler::RefreshRateConfigs& refreshRateConfig) in Scheduler() 91 std::make_unique<scheduler::IdleTimer>(std::chrono::milliseconds( in Scheduler() 98 mIdleTimer = std::make_unique<scheduler::IdleTimer>(std::chrono::milliseconds( in Scheduler() 109 std::make_unique<scheduler::IdleTimer>(std::chrono::milliseconds(mSetTouchTimerMs), in Scheduler() 117 std::make_unique<scheduler::IdleTimer>(std::chrono::milliseconds( in Scheduler() 327 std::unique_ptr<scheduler::LayerHistory::LayerHandle> Scheduler::registerLayer( in registerLayer() 346 const std::unique_ptr<scheduler::LayerHistory::LayerHandle>& layerHandle, in addLayerPresentTimeAndHDR() 352 const std::unique_ptr<scheduler::LayerHistory::LayerHandle>& layerHandle, bool visible) { in setLayerVisibility()
|
D | PhaseOffsets.h | 26 namespace scheduler { 55 class PhaseOffsets : public scheduler::PhaseOffsets {
|
D | PhaseOffsets.cpp | 26 namespace scheduler { namespace 108 android::scheduler::RefreshRateConfigs::RefreshRateType refreshRateType) const { in getOffsetsForRefreshRate()
|
D | SchedulerUtils.cpp | 25 namespace scheduler { namespace
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | IdleTimerTest.cpp | 29 namespace scheduler { namespace 59 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, [] {}, [] {}); in TEST_F() 63 mIdleTimer = std::make_unique<scheduler::IdleTimer>(30ms, mResetTimerCallback.getInvocable(), in TEST_F() 83 mIdleTimer = std::make_unique<scheduler::IdleTimer>(20ms, mResetTimerCallback.getInvocable(), in TEST_F() 108 mIdleTimer = std::make_unique<scheduler::IdleTimer>(20ms, mResetTimerCallback.getInvocable(), in TEST_F() 139 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F() 151 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F() 171 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F() 180 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F() 194 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F()
|
D | FakePhaseOffsets.h | 24 namespace scheduler { 28 class FakePhaseOffsets : public android::scheduler::PhaseOffsets {
|
D | SchedulerTest.cpp | 37 std::unique_ptr<scheduler::RefreshRateConfigs> mRefreshRateConfigs; 45 MockScheduler(const scheduler::RefreshRateConfigs& refreshRateConfigs, in MockScheduler() 76 std::vector<scheduler::RefreshRateConfigs::InputConfig> configs{{/*hwcId=*/0, 16666667}}; in SchedulerTest() 78 std::make_unique<scheduler::RefreshRateConfigs>(/*refreshRateSwitching=*/false, configs, in SchedulerTest()
|
/frameworks/base/core/java/android/content/ |
D | ContextWrapper.java | 494 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 497 resultReceiver, scheduler, initialCode, in sendOrderedBroadcast() 507 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 510 options, resultReceiver, scheduler, initialCode, in sendOrderedBroadcast() 518 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 521 resultReceiver, scheduler, initialCode, in sendOrderedBroadcast() 552 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser() argument 555 scheduler, initialCode, initialData, initialExtras); in sendOrderedBroadcastAsUser() 562 Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { in sendOrderedBroadcastAsUser() argument 564 scheduler, initialCode, initialData, initialExtras); in sendOrderedBroadcastAsUser() [all …]
|
D | Context.java | 2203 @Nullable Handler scheduler, int initialCode, @Nullable String initialData, in sendOrderedBroadcast() argument 2252 @Nullable BroadcastReceiver resultReceiver, @Nullable Handler scheduler, in sendOrderedBroadcast() argument 2264 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 2373 @Nullable Handler scheduler, int initialCode, @Nullable String initialData, in sendOrderedBroadcastAsUser() argument 2386 @Nullable Handler scheduler, int initialCode, @Nullable String initialData, in sendOrderedBroadcastAsUser() argument 2399 BroadcastReceiver resultReceiver, @Nullable Handler scheduler, int initialCode, in sendOrderedBroadcastAsUser() argument 2435 @Nullable Handler scheduler, int initialCode, @Nullable String initialData, in sendOrderedBroadcast() argument 2477 @Nullable BroadcastReceiver resultReceiver, @Nullable Handler scheduler, in sendOrderedBroadcast() argument 2558 @Nullable Handler scheduler, int initialCode, @Nullable String initialData, in sendStickyOrderedBroadcast() argument 2656 @Nullable Handler scheduler, int initialCode, @Nullable String initialData, in sendStickyOrderedBroadcastAsUser() argument [all …]
|
/frameworks/base/core/java/android/app/ |
D | ContextImpl.java | 118 String broadcastPermission, Handler scheduler) { in registerReceiver() argument 122 return super.registerReceiver(null, filter, broadcastPermission, scheduler); in registerReceiver() 131 String broadcastPermission, Handler scheduler) { in registerReceiverForAllUsers() argument 133 receiver, UserHandle.ALL, filter, broadcastPermission, scheduler); in registerReceiverForAllUsers() 138 IntentFilter filter, String broadcastPermission, Handler scheduler) { in registerReceiverAsUser() argument 142 return super.registerReceiverAsUser(null, user, filter, broadcastPermission, scheduler); in registerReceiverAsUser() 1176 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 1179 resultReceiver, scheduler, initialCode, initialData, initialExtras, null); in sendOrderedBroadcast() 1185 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 1188 resultReceiver, scheduler, initialCode, initialData, initialExtras, options); in sendOrderedBroadcast() [all …]
|
/frameworks/base/test-mock/src/android/test/mock/ |
D | MockContext.java | 394 … BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 403 …Bundle options, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initi… in sendOrderedBroadcast() argument 411 … BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 444 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser() argument 453 Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { in sendOrderedBroadcastAsUser() argument 461 Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { in sendOrderedBroadcastAsUser() argument 467 String receiverAppOp, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcast() argument 475 String receiverAppOp, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcast() argument 487 … BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, in sendStickyOrderedBroadcast() argument 511 Handler scheduler, int initialCode, String initialData, in sendStickyOrderedBroadcastAsUser() argument [all …]
|
/frameworks/base/core/java/android/telephony/ |
D | CellBroadcastIntents.java | 84 @Nullable BroadcastReceiver resultReceiver, @Nullable Handler scheduler, in sendSmsCbReceivedBroadcast() argument 94 receiverPermission, receiverAppOp, resultReceiver, scheduler, initialCode, in sendSmsCbReceivedBroadcast() 98 receiverAppOp, resultReceiver, scheduler, initialCode, null, null); in sendSmsCbReceivedBroadcast()
|
/frameworks/native/services/surfaceflinger/ |
D | RegionSamplingThread.h | 64 explicit RegionSamplingThread(SurfaceFlinger& flinger, Scheduler& scheduler, 66 explicit RegionSamplingThread(SurfaceFlinger& flinger, Scheduler& scheduler); 110 scheduler::IdleTimer mIdleTimer;
|
D | SurfaceFlingerFactory.h | 56 namespace scheduler { 73 virtual std::unique_ptr<scheduler::PhaseOffsets> createPhaseOffsets() = 0; 76 const scheduler::RefreshRateConfigs& refreshRateConfig) = 0;
|
D | SurfaceFlingerFactory.cpp | 72 std::unique_ptr<scheduler::PhaseOffsets> createPhaseOffsets() override { in createSurfaceFlinger() 73 return std::make_unique<scheduler::impl::PhaseOffsets>(); in createSurfaceFlinger() 78 const scheduler::RefreshRateConfigs& refreshRateConfig) override { in createSurfaceFlinger()
|
D | RegionSamplingThread.cpp | 92 SamplingOffsetCallback(RegionSamplingThread& samplingThread, Scheduler& scheduler, in SamplingOffsetCallback() 95 mScheduler(scheduler), in SamplingOffsetCallback() 165 RegionSamplingThread::RegionSamplingThread(SurfaceFlinger& flinger, Scheduler& scheduler, in RegionSamplingThread() argument 168 mScheduler(scheduler), in RegionSamplingThread() 181 RegionSamplingThread::RegionSamplingThread(SurfaceFlinger& flinger, Scheduler& scheduler) in RegionSamplingThread() argument 182 : RegionSamplingThread(flinger, scheduler, in RegionSamplingThread()
|
/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
D | ReportWatchlistJobService.java | 64 final JobScheduler scheduler = in schedule() local 66 scheduler.schedule(new JobInfo.Builder(REPORT_WATCHLIST_RECORDS_JOB_ID, in schedule()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ContextFixture.java | 331 String broadcastPermission, Handler scheduler) { in registerReceiver() argument 374 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument 386 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument 389 sendOrderedBroadcast(intent, receiverPermission, resultReceiver, scheduler, in sendOrderedBroadcast() 395 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument 397 sendOrderedBroadcast(intent, receiverPermission, resultReceiver, scheduler, in sendOrderedBroadcast() 425 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser() argument 439 Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { in sendOrderedBroadcastAsUser() argument 452 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcastAsUser() argument 466 String receiverAppOp, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcast() argument
|
/frameworks/base/media/mca/effect/java/android/media/effect/ |
D | FilterGraphEffect.java | 58 Class scheduler) { in FilterGraphEffect() argument 63 mSchedulerClass = scheduler; in FilterGraphEffect()
|