1 package com.android.systemui.keyguard.ui.viewmodel 2 3 import android.graphics.Rect 4 import com.android.systemui.biometrics.UdfpsKeyguardView 5 import com.android.systemui.dagger.SysUISingleton 6 import com.android.systemui.keyguard.ui.binder.UdfpsKeyguardViewBinder 7 import javax.inject.Inject 8 import kotlinx.coroutines.ExperimentalCoroutinesApi 9 10 @ExperimentalCoroutinesApi 11 @SysUISingleton 12 class UdfpsKeyguardViewModels 13 @Inject 14 constructor( 15 private val viewModel: UdfpsKeyguardViewModel, 16 private val internalViewModel: UdfpsKeyguardInternalViewModel, 17 private val aodViewModel: UdfpsAodViewModel, 18 private val lockscreenFingerprintViewModel: FingerprintViewModel, 19 private val lockscreenBackgroundViewModel: BackgroundViewModel, 20 ) { 21 22 fun setSensorBounds(sensorBounds: Rect) { 23 viewModel.sensorBounds = sensorBounds 24 } 25 26 fun bindViews(view: UdfpsKeyguardView) { 27 UdfpsKeyguardViewBinder.bind( 28 view, 29 viewModel, 30 internalViewModel, 31 aodViewModel, 32 lockscreenFingerprintViewModel, 33 lockscreenBackgroundViewModel 34 ) 35 } 36 } 37