summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/constants/ScheduledJobIds.java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-11-23 00:47:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-11-23 00:47:24 +0000
commit6c773cbf112e5bef6074776d8cd91139d810f0ec (patch)
tree864af958509967249c92a2c0196a51ed66482574 /java/com/android/dialer/constants/ScheduledJobIds.java
parentecbcc5c8cce01c70480e73284a9e5e1115fc6649 (diff)
parent572a77ed339b5a511f9dc20680939dbb7bf5e085 (diff)
Merge changes I50da0d2d,Id00debe2,I2807510e,I3f7836d8,I2e31cd11, ...
* changes: Automated rollback of changelist 176587256 Check Contacts support for preferred SIM Add SpamJobType for all spam job IDs. Bubble v2 UI changes. Allow deleting a call log entry in the call log UI and the call details UI. Fix showing CallingAccountSelector in lock screen
Diffstat (limited to 'java/com/android/dialer/constants/ScheduledJobIds.java')
-rw-r--r--java/com/android/dialer/constants/ScheduledJobIds.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/java/com/android/dialer/constants/ScheduledJobIds.java b/java/com/android/dialer/constants/ScheduledJobIds.java
index 3fcbb0c2e..c0835b261 100644
--- a/java/com/android/dialer/constants/ScheduledJobIds.java
+++ b/java/com/android/dialer/constants/ScheduledJobIds.java
@@ -16,16 +16,27 @@
package com.android.dialer.constants;
+import android.support.annotation.IntDef;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
/**
* Registry of scheduled job ids used by the dialer UID.
*
* <p>Any dialer jobs which use the android JobScheduler should register their IDs here, to avoid
* the same ID accidentally being reused.
+ *
+ * <p>Do not change any existing IDs.
*/
public final class ScheduledJobIds {
public static final int SPAM_JOB_WIFI = 50;
public static final int SPAM_JOB_ANY_NETWORK = 51;
+ /** Spam job type including all spam job IDs. */
+ @Retention(RetentionPolicy.SOURCE)
+ @IntDef({SPAM_JOB_WIFI, SPAM_JOB_ANY_NETWORK})
+ public @interface SpamJobType {}
+
// This job refreshes dynamic launcher shortcuts.
public static final int SHORTCUT_PERIODIC_JOB = 100;