Dave Mankoff | aa8b7ae | 2019-09-04 18:03:21 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 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.systemui; |
| 18 | |
| 19 | import com.android.systemui.keyguard.KeyguardViewMediator; |
Fabian Kozynski | ff5e91f | 2019-09-24 15:38:08 -0400 | [diff] [blame] | 20 | import com.android.systemui.power.PowerUI; |
Dave Mankoff | 898e1bb | 2019-09-25 17:54:19 -0400 | [diff] [blame^] | 21 | import com.android.systemui.recents.Recents; |
| 22 | import com.android.systemui.recents.RecentsModule; |
Dave Mankoff | aa8b7ae | 2019-09-04 18:03:21 -0400 | [diff] [blame] | 23 | |
| 24 | import dagger.Binds; |
| 25 | import dagger.Module; |
| 26 | import dagger.multibindings.ClassKey; |
| 27 | import dagger.multibindings.IntoMap; |
| 28 | |
| 29 | /** |
Dave Mankoff | eb593ae | 2019-09-04 11:31:55 -0400 | [diff] [blame] | 30 | * SystemUI objects that are injectable should go here. |
Dave Mankoff | aa8b7ae | 2019-09-04 18:03:21 -0400 | [diff] [blame] | 31 | */ |
Dave Mankoff | 898e1bb | 2019-09-25 17:54:19 -0400 | [diff] [blame^] | 32 | @Module(includes = {RecentsModule.class}) |
Dave Mankoff | aa8b7ae | 2019-09-04 18:03:21 -0400 | [diff] [blame] | 33 | public abstract class SystemUIBinder { |
| 34 | /** Inject into KeyguardViewMediator. */ |
| 35 | @Binds |
| 36 | @IntoMap |
| 37 | @ClassKey(KeyguardViewMediator.class) |
| 38 | public abstract SystemUI bindKeyguardViewMediator(KeyguardViewMediator sysui); |
Fabian Kozynski | ff5e91f | 2019-09-24 15:38:08 -0400 | [diff] [blame] | 39 | |
| 40 | /** Inject into PowerUI. */ |
| 41 | @Binds |
| 42 | @IntoMap |
| 43 | @ClassKey(PowerUI.class) |
| 44 | public abstract SystemUI bindPowerUI(PowerUI sysui); |
Dave Mankoff | 898e1bb | 2019-09-25 17:54:19 -0400 | [diff] [blame^] | 45 | |
| 46 | /** Inject into StatusBar. */ |
| 47 | @Binds |
| 48 | @IntoMap |
| 49 | @ClassKey(Recents.class) |
| 50 | public abstract SystemUI bindRecents(Recents sysui); |
Dave Mankoff | aa8b7ae | 2019-09-04 18:03:21 -0400 | [diff] [blame] | 51 | } |