Home
last modified time | relevance | path

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

1234

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DBackgroundScanSchedulerTest.java86 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in noRequest() local
88 assertEquals(30000, schedule.base_period_ms); in noRequest()
89 assertBuckets(schedule, 0); in noRequest()
100 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequest() local
102 assertEquals(30000, schedule.base_period_ms); in singleRequest()
103 assertBuckets(schedule, 1); in singleRequest()
105 assertSettingsSatisfied(schedule, request, false, true); in singleRequest()
117 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequestWithoutPredefinedBucket() local
119 assertEquals("base_period_ms", 10000, schedule.base_period_ms); in singleRequestWithoutPredefinedBucket()
120 assertBuckets(schedule, 1); in singleRequestWithoutPredefinedBucket()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DPrioritySchedulingTest.java71 mJobScheduler.schedule(job1); in testLowerPriorityJobPreempted()
72 mJobScheduler.schedule(job2); in testLowerPriorityJobPreempted()
73 mJobScheduler.schedule(job3); in testLowerPriorityJobPreempted()
74 mJobScheduler.schedule(job4); in testLowerPriorityJobPreempted()
109 mJobScheduler.schedule(job1); in testHigherPriorityJobNotPreempted()
110 mJobScheduler.schedule(job2); in testHigherPriorityJobNotPreempted()
111 mJobScheduler.schedule(job3); in testHigherPriorityJobNotPreempted()
112 mJobScheduler.schedule(job4); in testHigherPriorityJobNotPreempted()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DKeyValueBackupJobTest.java68 KeyValueBackupJob.schedule(mUserOneId, mContext, mConstants); in testIsScheduled_afterScheduling_returnsTrue()
69 KeyValueBackupJob.schedule(mUserTwoId, mContext, mConstants); in testIsScheduled_afterScheduling_returnsTrue()
77 KeyValueBackupJob.schedule(mUserOneId, mContext, mConstants); in testIsScheduled_afterCancelling_returnsFalse()
78 KeyValueBackupJob.schedule(mUserTwoId, mContext, mConstants); in testIsScheduled_afterCancelling_returnsFalse()
88 KeyValueBackupJob.schedule(mUserOneId, mContext, mConstants); in testIsScheduled_afterScheduling_returnsTrueOnlyForScheduledUser()
96 KeyValueBackupJob.schedule(mUserOneId, mContext, mConstants); in testIsScheduled_afterCancelling_returnsFalseOnlyForCancelledUser()
97 KeyValueBackupJob.schedule(mUserTwoId, mContext, mConstants); in testIsScheduled_afterCancelling_returnsFalseOnlyForCancelledUser()
DFullBackupJobTest.java70 FullBackupJob.schedule(mUserOneId, mContext, 0, mConstants); in testSchedule_afterScheduling_jobExists()
71 FullBackupJob.schedule(mUserTwoId, mContext, 0, mConstants); in testSchedule_afterScheduling_jobExists()
79 FullBackupJob.schedule(mUserOneId, mContext, 0, mConstants); in testCancel_afterCancelling_jobDoesntExist()
80 FullBackupJob.schedule(mUserTwoId, mContext, 0, mConstants); in testCancel_afterCancelling_jobDoesntExist()
90 FullBackupJob.schedule(mUserOneId, mContext, 0, mConstants); in testSchedule_onlySchedulesForRequestedUser()
98 FullBackupJob.schedule(mUserOneId, mContext, 0, mConstants); in testCancel_onlyCancelsForRequestedUser()
99 FullBackupJob.schedule(mUserTwoId, mContext, 0, mConstants); in testCancel_onlyCancelsForRequestedUser()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java437 WifiNative.ScanSettings schedule = new WifiNative.ScanSettings(); in createSchedule() local
438 schedule.num_buckets = bucketList.size(); in createSchedule()
439 schedule.buckets = new WifiNative.BucketSettings[bucketList.size()]; in createSchedule()
441 schedule.max_ap_per_scan = 0; in createSchedule()
442 schedule.report_threshold_num_scans = getMaxBatch(); in createSchedule()
447 schedule.buckets[bucketId] = in createSchedule()
451 if (settings.numBssidsPerScan > schedule.max_ap_per_scan) { in createSchedule()
452 schedule.max_ap_per_scan = settings.numBssidsPerScan; in createSchedule()
456 && settings.maxScansToCache < schedule.report_threshold_num_scans) { in createSchedule()
457 schedule.report_threshold_num_scans = settings.maxScansToCache; in createSchedule()
[all …]
DWifiScanningServiceImpl.java1370 WifiNative.ScanSettings schedule = mBackgroundScheduler.getSchedule(); in updateSchedule() local
1372 if (ScanScheduleUtil.scheduleEquals(mPreviousSchedule, schedule)) { in updateSchedule()
1377 mPreviousSchedule = schedule; in updateSchedule()
1379 if (schedule.num_buckets == 0) { in updateSchedule()
1385 + "base period=" + schedule.base_period_ms in updateSchedule()
1386 + ", max ap per scan=" + schedule.max_ap_per_scan in updateSchedule()
1387 + ", batched scans=" + schedule.report_threshold_num_scans); in updateSchedule()
1388 for (int b = 0; b < schedule.num_buckets; b++) { in updateSchedule()
1389 WifiNative.BucketSettings bucket = schedule.buckets[b]; in updateSchedule()
1395 if (mScannerImpl.startBatchedScan(schedule, this)) { in updateSchedule()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueBackupJob.java66 public static void schedule(int userId, Context ctx, BackupManagerConstants constants) { in schedule() method in KeyValueBackupJob
67 schedule(userId, ctx, 0, constants); in schedule()
70 public static void schedule(int userId, Context ctx, long delay, in schedule() method in KeyValueBackupJob
107 js.schedule(builder.build()); in schedule()
DFullBackupJob.java45 public static void schedule(int userId, Context ctx, long minDelay, in schedule() method in FullBackupJob
62 js.schedule(builder.build()); in schedule()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DCollectorThread.java70 schedule(); in handleMessage()
74 public void schedule() { in schedule() method in CollectorThread.WatchdogHandler
162 mWatchdog.schedule(); in markInteractionStart()
/frameworks/base/services/core/java/com/android/server/
DPruneInstantAppsJobService.java38 public static void schedule(Context context) { in schedule() method in PruneInstantAppsJobService
46 jobScheduler.schedule(pruneJob); in schedule()
DZramWriteback.java129 js.schedule(new JobInfo.Builder(WRITEBACK_IDLE_JOB_ID, sZramWriteback) in schedNextWriteback()
178 js.schedule(new JobInfo.Builder(MARK_IDLE_JOB_ID, sZramWriteback) in scheduleZramWriteback()
186 js.schedule(new JobInfo.Builder(WRITEBACK_IDLE_JOB_ID, sZramWriteback) in scheduleZramWriteback()
DPreloadsFileCacheExpirationJobService.java50 public static void schedule(Context context) { in schedule() method in PreloadsFileCacheExpirationJobService
71 jobScheduler.schedule(expirationJob); in schedule()
/frameworks/base/services/core/java/com/android/server/camera/
DCameraStatsJobService.java63 public static void schedule(Context context) { in schedule() method in CameraStatsJobService
70 js.schedule(new JobInfo.Builder(CAMERA_REPORTING_JOB_ID, sCameraStatsJobServiceName) in schedule()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DReportWatchlistJobService.java62 public static void schedule(Context context) { in schedule() method in ReportWatchlistJobService
66 scheduler.schedule(new JobInfo.Builder(REPORT_WATCHLIST_RECORDS_JOB_ID, in schedule()
/frameworks/base/services/core/java/com/android/server/timezone/
DTimeZoneUpdateIdler.java68 public static void schedule(Context context, long minimumDelayMillis) { in schedule() method in TimeZoneUpdateIdler
86 jobScheduler.schedule(jobInfoBuilder.build()); in schedule()
/frameworks/base/core/java/android/app/
DJobSchedulerImpl.java41 public int schedule(JobInfo job) { in schedule() method in JobSchedulerImpl
43 return mBinder.schedule(job); in schedule()
/frameworks/base/core/java/android/service/notification/
DScheduleCalendar.java53 public void setSchedule(ScheduleInfo schedule) { in setSchedule() argument
54 if (Objects.equals(mSchedule, schedule)) return; in setSchedule()
55 mSchedule = schedule; in setSchedule()
/frameworks/base/services/core/java/com/android/server/pm/
DDynamicCodeLoggingService.java75 public static void schedule(Context context) { in schedule() method in DynamicCodeLoggingService
80 js.schedule(new JobInfo.Builder(IDLE_LOGGING_JOB_ID, serviceName) in schedule()
85 js.schedule(new JobInfo.Builder(AUDIT_WATCHING_JOB_ID, serviceName) in schedule()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DWakeupMessageTest.java108 mMessage.schedule(when); in scheduleAndVerifyAlarm()
179 dut.schedule(when); in scheduleRunnable()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowKeyValueBackupJob.java37 protected static void schedule(int userId, Context ctx, long delay, in schedule() method in ShadowKeyValueBackupJob
/frameworks/base/core/java/android/app/job/
DIJobScheduler.aidl29 int schedule(in JobInfo job); in schedule() method
/frameworks/base/services/core/java/com/android/server/storage/
DDiskStatsLoggingService.java98 public static void schedule(Context context) { in schedule() method in DiskStatsLoggingService
101 js.schedule(new JobInfo.Builder(JOB_DISKSTATS_LOGGING, sDiskStatsLoggingService) in schedule()
/frameworks/ex/framesequence/src/android/support/rastermill/
DFrameSequenceDrawable.java211 boolean schedule = false;
218 schedule = true;
223 if (schedule) {
/frameworks/base/tools/aapt/
DWorkQueue.h70 status_t schedule(WorkUnit* workUnit, size_t backlog = 2);
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozePauser.java44 mPauseTimeout.schedule(mPolicy.proxScreenOffDelayMs, in transitionTo()

1234