• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 import android.support.annotation.IntDef;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 
23 /**
24  * Registry of scheduled job ids used by the dialer UID.
25  *
26  * <p>Any dialer jobs which use the android JobScheduler should register their IDs here, to avoid
27  * the same ID accidentally being reused.
28  *
29  * <p>Do not change any existing IDs.
30  */
31 public final class ScheduledJobIds {
32   public static final int SPAM_JOB_WIFI = 50;
33   public static final int SPAM_JOB_ANY_NETWORK = 51;
34 
35   /** Spam job type including all spam job IDs. */
36   @Retention(RetentionPolicy.SOURCE)
37   @IntDef({SPAM_JOB_WIFI, SPAM_JOB_ANY_NETWORK})
38   public @interface SpamJobType {}
39 
40   // This job refreshes dynamic launcher shortcuts.
41   public static final int SHORTCUT_PERIODIC_JOB = 100;
42 
43   public static final int VVM_TASK_SCHEDULER_JOB = 200;
44   public static final int VVM_STATUS_CHECK_JOB = 201;
45   public static final int VVM_DEVICE_PROVISIONED_JOB = 202;
46   public static final int VVM_TRANSCRIPTION_JOB = 203;
47   public static final int VVM_TRANSCRIPTION_BACKFILL_JOB = 204;
48   public static final int VVM_NOTIFICATION_JOB = 205;
49   public static final int VVM_TRANSCRIPTION_RATING_JOB = 206;
50 
51   public static final int VOIP_REGISTRATION = 300;
52 
53   public static final int CALL_LOG_CONFIG_POLLING_JOB = 400;
54 
55   // Job Ids from 10_000 to 10_100 should be reserved for proto upload jobs.
56   public static final int PROTO_UPLOAD_JOB_MIN_ID = 10_000;
57   public static final int PROTO_UPLOAD_JOB_MAX_ID = 10_100;
58 }
59