1 /* 2 * Copyright (C) 2017 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 package com.android.dialer.common.concurrent; 17 18 import javax.inject.Qualifier; 19 20 /** Annotations for dagger concurrency bindings. */ 21 public class Annotations { 22 23 /** Annotation for retrieving the UI thread. */ 24 @Qualifier 25 public @interface Ui {} 26 27 /** Annotation for retrieving the non-UI thread pool. */ 28 @Qualifier 29 public @interface NonUiParallel {} 30 31 /** Annotation for retrieving the non-UI serial executor. */ 32 @Qualifier 33 public @interface NonUiSerial {} 34 35 /** Annotation for retrieving the UI thread pool. */ 36 @Qualifier 37 public @interface UiParallel {} 38 39 /** Annotation for retrieving the UI serial executor. */ 40 @Qualifier 41 public @interface UiSerial {} 42 43 /** Annotation for retrieving the lightweight executor. */ 44 @Qualifier 45 public @interface LightweightExecutor {} 46 47 /** Annotation for retrieving the background executor. */ 48 @Qualifier 49 public @interface BackgroundExecutor {} 50 } 51