1 /* 2 * Copyright (C) 2023 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.car.qc; 18 19 import com.android.car.qc.provider.BaseLocalQCProvider; 20 import com.android.systemui.car.statusicon.ui.DistantDisplayStatusIconController; 21 import com.android.systemui.car.statusicon.ui.DistantDisplayStatusIconPanelController; 22 import com.android.systemui.car.systembar.element.CarSystemBarElementController; 23 24 import dagger.Binds; 25 import dagger.Module; 26 import dagger.multibindings.ClassKey; 27 import dagger.multibindings.IntoMap; 28 29 /** 30 * Dagger injection module for {@link SystemUIQCViewController} in CarDistantDisplaySystemUI. 31 */ 32 @Module(includes = {QuickControlsModule.class}) 33 public abstract class DistantDisplayQuickControlsModule { 34 /** Injects DisplaySwitcher. */ 35 @Binds 36 @IntoMap 37 @ClassKey(DisplaySwitcher.class) bindDisplaySwitcher( DisplaySwitcher displaySwitcher)38 public abstract BaseLocalQCProvider bindDisplaySwitcher( 39 DisplaySwitcher displaySwitcher); 40 41 /** Injects DistantDisplayStatusIconController. */ 42 @Binds 43 @IntoMap 44 @ClassKey(DistantDisplayStatusIconController.class) bindDistantDisplayStatusIconController( DistantDisplayStatusIconController.Factory distantDisplayStatusIconController)45 public abstract CarSystemBarElementController.Factory bindDistantDisplayStatusIconController( 46 DistantDisplayStatusIconController.Factory distantDisplayStatusIconController); 47 48 /** Injects DistantDisplayStatusIconPanelController. */ 49 @Binds 50 @IntoMap 51 @ClassKey(DistantDisplayStatusIconPanelController.class) bindDistantDisplayPanelController( DistantDisplayStatusIconPanelController.Factory distantDisplaySPanelController)52 public abstract CarSystemBarElementController.Factory bindDistantDisplayPanelController( 53 DistantDisplayStatusIconPanelController.Factory distantDisplaySPanelController); 54 } 55