xref: /aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/UdfpsKeyguardViewModels.kt
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 

闽ICP备2022004144号-1闽公网安备35021102001383号

OpenHarmony source code served by {OpenGrok Contact:jevonbin@qq.com