diff options
| author | 2024-01-31 16:59:29 +0900 | |
|---|---|---|
| committer | 2024-01-31 16:59:29 +0900 | |
| commit | a1c8484796f55452b5d28a26fc7e739d840ea4f8 (patch) | |
| tree | fb6b4e47bb320ac37c708808cd2974139843c6cf | |
| parent | ab3903daaa8d1a272f466f7f326fd7eb511aeee3 (diff) | |
profcollect: rename variable
BG_PROCESS_PERIOD is not clear for its purpose. BG_PROCESS_INTERVAL is a
better name. NFC.
Test: presubmit
Change-Id: Iea61ef48a93be17eaae16853e6dc6e91a9c083bc
| -rw-r--r-- | services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java b/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java index 582b712ec3fc..fb0fbe87dab3 100644 --- a/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +++ b/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java @@ -62,7 +62,7 @@ public final class ProfcollectForwardingService extends SystemService { private static final boolean DEBUG = Log.isLoggable(LOG_TAG, Log.DEBUG); private static final String INTENT_UPLOAD_PROFILES = "com.android.server.profcollect.UPLOAD_PROFILES"; - private static final long BG_PROCESS_PERIOD = TimeUnit.HOURS.toMillis(4); // every 4 hours. + private static final long BG_PROCESS_INTERVAL = TimeUnit.HOURS.toMillis(4); // every 4 hours. private IProfCollectd mIProfcollect; private static ProfcollectForwardingService sSelfService; @@ -226,7 +226,7 @@ public final class ProfcollectForwardingService extends SystemService { js.schedule(new JobInfo.Builder(JOB_IDLE_PROCESS, JOB_SERVICE_NAME) .setRequiresDeviceIdle(true) .setRequiresCharging(true) - .setPeriodic(BG_PROCESS_PERIOD) + .setPeriodic(BG_PROCESS_INTERVAL) .setPriority(JobInfo.PRIORITY_MIN) .build()); } |