/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 | 292 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument 294 spiedContext.sendOrderedBroadcast(intent, receiverPermission, resultReceiver, scheduler, in sendOrderedBroadcast() 300 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument 303 scheduler, in sendOrderedBroadcast() 309 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument 312 scheduler, in sendOrderedBroadcast() 347 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser() argument 351 scheduler, initialCode, initialData, initialExtras); in sendOrderedBroadcastAsUser() 357 Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { in sendOrderedBroadcastAsUser() argument 360 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; 85 explicit VsyncState(Scheduler& scheduler) : scheduler(scheduler) {} in VsyncState() 89 Scheduler& scheduler; member 94 const scheduler::RefreshRateConfigs& refreshRateConfig); 149 std::unique_ptr<scheduler::LayerHistory::LayerHandle> registerLayer(std::string const& name, 154 const std::unique_ptr<scheduler::LayerHistory::LayerHandle>& layerHandle, 158 const std::unique_ptr<scheduler::LayerHistory::LayerHandle>& layerHandle, bool visible); 259 std::array<int64_t, scheduler::ARRAY_SIZE> mTimeDifferences{}; 263 scheduler::LayerHistory mLayerHistory; 268 std::unique_ptr<scheduler::IdleTimer> mIdleTimer; [all …]
|
D | LayerInfo.h | 34 namespace scheduler { 59 refreshDuration = scheduler::calculate_mean(mElements); in getRefreshRateAvg() 89 const int64_t obsoleteEpsilon = systemTime() - scheduler::TIME_EPSILON_NS.count(); in isRelevant()
|
D | Scheduler.cpp | 61 const scheduler::RefreshRateConfigs& refreshRateConfig) in Scheduler() 90 std::make_unique<scheduler::IdleTimer>(std::chrono::milliseconds( in Scheduler() 97 mIdleTimer = std::make_unique<scheduler::IdleTimer>(std::chrono::milliseconds( in Scheduler() 108 std::make_unique<scheduler::IdleTimer>(std::chrono::milliseconds(mSetTouchTimerMs), in Scheduler() 264 scheduler.resyncToHardwareVsync(false, getVsyncPeriod()); in resync() 320 std::unique_ptr<scheduler::LayerHistory::LayerHandle> Scheduler::registerLayer( in registerLayer() 332 const std::unique_ptr<scheduler::LayerHistory::LayerHandle>& layerHandle, in addLayerPresentTimeAndHDR() 338 const std::unique_ptr<scheduler::LayerHistory::LayerHandle>& layerHandle, bool visible) { in setLayerVisibility()
|
D | PhaseOffsets.h | 25 namespace scheduler { 54 class PhaseOffsets : public scheduler::PhaseOffsets {
|
D | PhaseOffsets.cpp | 26 namespace scheduler { namespace 101 android::scheduler::RefreshRateConfigs::RefreshRateType refreshRateType) const { in getOffsetsForRefreshRate()
|
D | VSyncModulator.h | 79 void setSchedulerAndHandles(Scheduler* scheduler, in setSchedulerAndHandles() argument 82 mScheduler = scheduler; in setSchedulerAndHandles()
|
D | SchedulerUtils.cpp | 25 namespace scheduler { namespace
|
D | LayerHistory.cpp | 36 namespace scheduler { namespace 149 const int64_t obsoleteEpsilon = systemTime() - scheduler::OBSOLETE_TIME_EPSILON_NS.count(); in removeIrrelevantLayers()
|
/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 { 26 class FakePhaseOffsets : public android::scheduler::PhaseOffsets {
|
/frameworks/base/core/java/android/content/ |
D | ContextWrapper.java | 491 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 494 resultReceiver, scheduler, initialCode, in sendOrderedBroadcast() 503 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 506 options, resultReceiver, scheduler, initialCode, in sendOrderedBroadcast() 514 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 517 resultReceiver, scheduler, initialCode, in sendOrderedBroadcast() 548 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser() argument 551 scheduler, initialCode, initialData, initialExtras); in sendOrderedBroadcastAsUser() 558 Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { in sendOrderedBroadcastAsUser() argument 560 scheduler, initialCode, initialData, initialExtras); in sendOrderedBroadcastAsUser() [all …]
|
D | Context.java | 2193 @Nullable Handler scheduler, int initialCode, @Nullable String initialData, in sendOrderedBroadcast() argument 2242 @Nullable BroadcastReceiver resultReceiver, @Nullable Handler scheduler, in sendOrderedBroadcast() argument 2254 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 2363 @Nullable Handler scheduler, int initialCode, @Nullable String initialData, in sendOrderedBroadcastAsUser() argument 2376 @Nullable Handler scheduler, int initialCode, @Nullable String initialData, in sendOrderedBroadcastAsUser() argument 2389 BroadcastReceiver resultReceiver, @Nullable Handler scheduler, int initialCode, in sendOrderedBroadcastAsUser() argument 2467 @Nullable Handler scheduler, int initialCode, @Nullable String initialData, in sendStickyOrderedBroadcast() argument 2565 @Nullable Handler scheduler, int initialCode, @Nullable String initialData, in sendStickyOrderedBroadcastAsUser() argument 2715 @Nullable Handler scheduler); in registerReceiver() argument 2753 @Nullable Handler scheduler, @RegisterReceiverFlags int flags); in registerReceiver() argument [all …]
|
/frameworks/base/core/java/android/app/ |
D | ContextImpl.java | 117 String broadcastPermission, Handler scheduler) { in registerReceiver() argument 121 return super.registerReceiver(null, filter, broadcastPermission, scheduler); in registerReceiver() 130 IntentFilter filter, String broadcastPermission, Handler scheduler) { in registerReceiverAsUser() argument 134 return super.registerReceiverAsUser(null, user, filter, broadcastPermission, scheduler); in registerReceiverAsUser() 1159 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 1162 resultReceiver, scheduler, initialCode, initialData, initialExtras, null); in sendOrderedBroadcast() 1168 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 1171 resultReceiver, scheduler, initialCode, initialData, initialExtras, options); in sendOrderedBroadcast() 1177 Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument 1180 resultReceiver, scheduler, initialCode, initialData, initialExtras, null); 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 472 … BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, in sendStickyOrderedBroadcast() argument 496 Handler scheduler, int initialCode, String initialData, in sendStickyOrderedBroadcastAsUser() argument 519 String broadcastPermission, Handler scheduler) { in registerReceiver() argument 525 String broadcastPermission, Handler scheduler, int flags) { in registerReceiver() argument [all …]
|
/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 | 89 SamplingOffsetCallback(RegionSamplingThread& samplingThread, Scheduler& scheduler, in SamplingOffsetCallback() 92 mScheduler(scheduler), in SamplingOffsetCallback() 162 RegionSamplingThread::RegionSamplingThread(SurfaceFlinger& flinger, Scheduler& scheduler, in RegionSamplingThread() argument 165 mScheduler(scheduler), in RegionSamplingThread() 178 RegionSamplingThread::RegionSamplingThread(SurfaceFlinger& flinger, Scheduler& scheduler) in RegionSamplingThread() argument 179 : RegionSamplingThread(flinger, scheduler, in RegionSamplingThread()
|
D | RefreshRateOverlay.h | 22 using RefreshRateType = scheduler::RefreshRateConfigs::RefreshRateType;
|
/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 | 318 String broadcastPermission, Handler scheduler) { in registerReceiver() argument 319 return registerReceiverAsUser(receiver, null, filter, broadcastPermission, scheduler); in registerReceiver() 324 IntentFilter filter, String broadcastPermission, Handler scheduler) { in registerReceiverAsUser() argument 363 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument 375 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument 378 sendOrderedBroadcast(intent, receiverPermission, resultReceiver, scheduler, in sendOrderedBroadcast() 384 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument 386 sendOrderedBroadcast(intent, receiverPermission, resultReceiver, scheduler, in sendOrderedBroadcast() 409 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser() argument 423 Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { in sendOrderedBroadcastAsUser() argument [all …]
|
/frameworks/base/media/mca/effect/java/android/media/effect/ |
D | FilterGraphEffect.java | 58 Class scheduler) { in FilterGraphEffect() argument 63 mSchedulerClass = scheduler; in FilterGraphEffect()
|