Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/job/controllers/
DStateController.java19 import static com.android.server.job.JobSchedulerService.DEBUG;
26 import com.android.server.job.JobSchedulerService;
27 import com.android.server.job.JobSchedulerService.Constants;
40 protected final JobSchedulerService mService;
46 StateController(JobSchedulerService service) { in StateController()
DStorageController.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
33 import com.android.server.job.JobSchedulerService;
44 private static final boolean DEBUG = JobSchedulerService.DEBUG
55 public StorageController(JobSchedulerService service) { in StorageController()
DBatteryController.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
36 import com.android.server.job.JobSchedulerService;
48 private static final boolean DEBUG = JobSchedulerService.DEBUG
59 public BatteryController(JobSchedulerService service) { in BatteryController()
DBackgroundJobsController.java30 import com.android.server.job.JobSchedulerService;
49 private static final boolean DEBUG = JobSchedulerService.DEBUG
59 public BackgroundJobsController(JobSchedulerService service) { in BackgroundJobsController()
DIdleController.java27 import com.android.server.job.JobSchedulerService;
43 public IdleController(JobSchedulerService service) { in IdleController()
DDeviceIdleJobsController.java39 import com.android.server.job.JobSchedulerService;
53 private static final boolean DEBUG = JobSchedulerService.DEBUG
119 public DeviceIdleJobsController(JobSchedulerService service) { in DeviceIdleJobsController()
DTimeController.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
43 import com.android.server.job.JobSchedulerService;
58 private static final boolean DEBUG = JobSchedulerService.DEBUG
78 public TimeController(JobSchedulerService service) { in TimeController()
DConnectivityController.java48 import com.android.server.job.JobSchedulerService;
49 import com.android.server.job.JobSchedulerService.Constants;
69 private static final boolean DEBUG = JobSchedulerService.DEBUG
96 public ConnectivityController(JobSchedulerService service) { in ConnectivityController()
DQuotaController.java23 import static com.android.server.job.JobSchedulerService.ACTIVE_INDEX;
24 import static com.android.server.job.JobSchedulerService.FREQUENT_INDEX;
25 import static com.android.server.job.JobSchedulerService.NEVER_INDEX;
26 import static com.android.server.job.JobSchedulerService.RARE_INDEX;
27 import static com.android.server.job.JobSchedulerService.WORKING_INDEX;
28 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
70 import com.android.server.job.JobSchedulerService;
109 private static final boolean DEBUG = JobSchedulerService.DEBUG
572 public QuotaController(JobSchedulerService service) { in QuotaController()
812 final int standbyBucket = JobSchedulerService.standbyBucketForPackage(packageName, in getRemainingExecutionTimeLocked()
[all …]
DContentObserverController.java34 import com.android.server.job.JobSchedulerService;
46 private static final boolean DEBUG = JobSchedulerService.DEBUG
69 public ContentObserverController(JobSchedulerService service) { in ContentObserverController()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DStateControllerTest.java41 import com.android.server.job.JobSchedulerService;
42 import com.android.server.job.JobSchedulerService.Constants;
74 private JobSchedulerService mJobSchedulerService;
77 TestStateController(JobSchedulerService service) { in TestStateController()
117 JobSchedulerService.sSystemClock = in setUp()
119 JobSchedulerService.sUptimeMillisClock = in setUp()
121 JobSchedulerService.sElapsedRealtimeClock = in setUp()
DQuotaControllerTest.java26 import static com.android.server.job.JobSchedulerService.ACTIVE_INDEX;
27 import static com.android.server.job.JobSchedulerService.FREQUENT_INDEX;
28 import static com.android.server.job.JobSchedulerService.NEVER_INDEX;
29 import static com.android.server.job.JobSchedulerService.RARE_INDEX;
30 import static com.android.server.job.JobSchedulerService.WORKING_INDEX;
74 import com.android.server.job.JobSchedulerService;
75 import com.android.server.job.JobSchedulerService.Constants;
122 private JobSchedulerService mJobSchedulerService;
169 JobSchedulerService.sSystemClock = in setUp()
172 JobSchedulerService.sUptimeMillisClock = getAdvancedClock( in setUp()
[all …]
DTimeControllerTest.java48 import com.android.server.job.JobSchedulerService;
49 import com.android.server.job.JobSchedulerService.Constants;
83 private JobSchedulerService mJobSchedulerService;
105 JobSchedulerService.sSystemClock = in setUp()
107 JobSchedulerService.sUptimeMillisClock = in setUp()
109 JobSchedulerService.sElapsedRealtimeClock = in setUp()
130 JobSchedulerService.sElapsedRealtimeClock = getAdvancedClock( in advanceElapsedClock()
131 JobSchedulerService.sElapsedRealtimeClock, incrementMs); in advanceElapsedClock()
180 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DelayInOrder()
207 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
[all …]
DConnectivityControllerTest.java60 import com.android.server.job.JobSchedulerService;
61 import com.android.server.job.JobSchedulerService.Constants;
87 private JobSchedulerService mService;
109 JobSchedulerService.sSystemClock = in setUp()
111 JobSchedulerService.sUptimeMillisClock = in setUp()
113 JobSchedulerService.sElapsedRealtimeClock = in setUp()
152 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testCongestion()
179 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testRelaxed()
DJobStatusTest.java49 import com.android.server.job.JobSchedulerService;
82 JobSchedulerService.sSystemClock = in setUp()
84 JobSchedulerService.sUptimeMillisClock = in setUp()
86 JobSchedulerService.sElapsedRealtimeClock = in setUp()
99 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testFraction()
/frameworks/base/services/core/java/com/android/server/job/
DJobConcurrencyManager.java38 import com.android.server.job.JobSchedulerService.Constants;
39 import com.android.server.job.JobSchedulerService.MaxJobCountsPerMemoryTrimLevel;
51 private static final String TAG = JobSchedulerService.TAG;
52 private static final boolean DEBUG = JobSchedulerService.DEBUG;
55 private final JobSchedulerService mService;
56 private final JobSchedulerService.Constants mConstants;
68 private static final int MAX_JOB_CONTEXTS_COUNT = JobSchedulerService.MAX_JOB_CONTEXTS_COUNT;
83 private JobSchedulerService.MaxJobCounts mMaxJobCounts;
106 JobConcurrencyManager(JobSchedulerService service) { in JobConcurrencyManager()
152 final long nowRealtime = JobSchedulerService.sElapsedRealtimeClock.millis(); in onInteractiveStateChanged()
[all …]
DJobServiceContext.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
70 private static final boolean DEBUG = JobSchedulerService.DEBUG;
71 private static final boolean DEBUG_STANDBY = JobSchedulerService.DEBUG_STANDBY;
174 JobServiceContext(JobSchedulerService service, IBatteryStats batteryStats, in JobServiceContext()
688 if (JobSchedulerService.DEBUG) { in handleCancelLocked()
DJobSchedulerShellCommand.java34 JobSchedulerService mInternal;
37 JobSchedulerShellCommand(JobSchedulerService service) { in JobSchedulerShellCommand()
DJobSchedulerService.java137 public class JobSchedulerService extends com.android.server.SystemService class
1303 public JobSchedulerService(Context context) { in JobSchedulerService() method in JobSchedulerService
2508 JobSchedulerService.this.cancelJobsForUid(uid, reason); in cancelJobsForUid()
2545 JobSchedulerService.this.reportAppUsage(packageName, userId); in reportAppUsage()
2740 return JobSchedulerService.this.scheduleAsPackage(job, null, uid, null, userId, in schedule()
2768 return JobSchedulerService.this.scheduleAsPackage(job, work, uid, null, userId, in enqueue()
2799 return JobSchedulerService.this.scheduleAsPackage(job, null, callerUid, in scheduleAsPackage()
2812 return new ParceledListSlice<>(JobSchedulerService.this.getPendingJobs(uid)); in getAllPendingJobs()
2824 return JobSchedulerService.this.getPendingJob(uid, jobId); in getPendingJob()
2835 JobSchedulerService.this.cancelJobsForUid(uid, in cancelAll()
[all …]
DJobStore.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
20 import static com.android.server.job.JobSchedulerService.sSystemClock;
86 private static final boolean DEBUG = JobSchedulerService.DEBUG;
115 static JobStore initAndGet(JobSchedulerService jobManagerService) { in initAndGet()
931 final int appBucket = JobSchedulerService.standbyBucketForPackage(sourcePackageName, in restoreJobFromXml()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DMaxJobCountsTest.java23 import com.android.server.job.JobSchedulerService.MaxJobCounts;
39 final MaxJobCounts counts = new JobSchedulerService.MaxJobCounts( in check()
DJobStoreTest.java85 JobSchedulerService.sSystemClock = in setUp()
87 JobSchedulerService.sUptimeMillisClock = in setUp()
89 JobSchedulerService.sElapsedRealtimeClock = in setUp()
/frameworks/base/services/core/java/com/android/server/job/controllers/idle/
DDeviceIdlenessTracker.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
30 import com.android.server.job.JobSchedulerService;
36 private static final boolean DEBUG = JobSchedulerService.DEBUG
DCarIdlenessTracker.java27 import com.android.server.job.JobSchedulerService;
33 private static final boolean DEBUG = JobSchedulerService.DEBUG
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java28 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
70 private JobSchedulerService mService;
78 private class TestJobSchedulerService extends JobSchedulerService {
132 JobSchedulerService.sSystemClock = Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
133 JobSchedulerService.sElapsedRealtimeClock = in setUp()
151 JobSchedulerService.sElapsedRealtimeClock = getAdvancedClock( in advanceElapsedClock()
152 JobSchedulerService.sElapsedRealtimeClock, incrementMs); in advanceElapsedClock()

12