1 /* 2 * Copyright (C) 2016 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.dialer.constants; 18 19 /** 20 * Registry of scheduled job ids used by the dialer UID. 21 * 22 * <p>Any dialer jobs which use the android JobScheduler should register their IDs here, to avoid 23 * the same ID accidentally being reused. 24 */ 25 public final class ScheduledJobIds { 26 public static final int SPAM_JOB_WIFI = 50; 27 public static final int SPAM_JOB_ANY_NETWORK = 51; 28 29 // This job refreshes dynamic launcher shortcuts. 30 public static final int SHORTCUT_PERIODIC_JOB = 100; 31 32 public static final int VVM_TASK_SCHEDULER_JOB = 200; 33 public static final int VVM_STATUS_CHECK_JOB = 201; 34 public static final int VVM_DEVICE_PROVISIONED_JOB = 202; 35 36 public static final int VOIP_REGISTRATION = 300; 37 38 // Job Ids from 10_000 to 10_100 should be reserved for proto upload jobs. 39 public static final int PROTO_UPLOAD_JOB_MIN_ID = 10_000; 40 public static final int PROTO_UPLOAD_JOB_MAX_ID = 10_100; 41 } 42