Loading packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/FingerprintPropertyInteractor.kt +4 −4 Original line number Original line Diff line number Diff line Loading @@ -98,11 +98,11 @@ constructor( ) { unscaledSensorLocation, scale -> ) { unscaledSensorLocation, scale -> val sensorLocation = val sensorLocation = SensorLocation( SensorLocation( unscaledSensorLocation.sensorLocationX, naturalCenterX = unscaledSensorLocation.sensorLocationX, unscaledSensorLocation.sensorLocationY, naturalCenterY = unscaledSensorLocation.sensorLocationY, unscaledSensorLocation.sensorRadius, naturalRadius = unscaledSensorLocation.sensorRadius, scale = scale ) ) sensorLocation.scale = scale sensorLocation sensorLocation } } Loading packages/SystemUI/src/com/android/systemui/biometrics/shared/model/SensorLocation.kt +8 −8 Original line number Original line Diff line number Diff line Loading @@ -16,18 +16,18 @@ package com.android.systemui.biometrics.shared.model package com.android.systemui.biometrics.shared.model /** Provides current sensor location information in the current screen resolution [scale]. */ /** * Provides current sensor location information in the current screen resolution [scale]. * * @property scale Scale to apply to the sensor location's natural parameters to support different * screen resolutions. */ data class SensorLocation( data class SensorLocation( private val naturalCenterX: Int, private val naturalCenterX: Int, private val naturalCenterY: Int, private val naturalCenterY: Int, private val naturalRadius: Int private val naturalRadius: Int, private val scale: Float = 1f ) { ) { /** * Scale to apply to the sensor location's natural parameters to support different screen * resolutions. */ var scale: Float = 1f val centerX: Float val centerX: Float get() { get() { return naturalCenterX * scale return naturalCenterX * scale Loading packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/DefaultDeviceEntrySection.kt +3 −2 Original line number Original line Diff line number Diff line Loading @@ -147,7 +147,8 @@ constructor( deviceEntryIconViewModel.get().udfpsLocation.value?.let { udfpsLocation -> deviceEntryIconViewModel.get().udfpsLocation.value?.let { udfpsLocation -> Log.d( Log.d( "DeviceEntrySection", "DeviceEntrySection", "udfpsLocation=$udfpsLocation" + "udfpsLocation=$udfpsLocation, " + "scaledLocation=(${udfpsLocation.centerX},${udfpsLocation.centerY}), " + "unusedAuthController=${authController.udfpsLocation}" "unusedAuthController=${authController.udfpsLocation}" ) ) centerIcon( centerIcon( Loading Loading
packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/FingerprintPropertyInteractor.kt +4 −4 Original line number Original line Diff line number Diff line Loading @@ -98,11 +98,11 @@ constructor( ) { unscaledSensorLocation, scale -> ) { unscaledSensorLocation, scale -> val sensorLocation = val sensorLocation = SensorLocation( SensorLocation( unscaledSensorLocation.sensorLocationX, naturalCenterX = unscaledSensorLocation.sensorLocationX, unscaledSensorLocation.sensorLocationY, naturalCenterY = unscaledSensorLocation.sensorLocationY, unscaledSensorLocation.sensorRadius, naturalRadius = unscaledSensorLocation.sensorRadius, scale = scale ) ) sensorLocation.scale = scale sensorLocation sensorLocation } } Loading
packages/SystemUI/src/com/android/systemui/biometrics/shared/model/SensorLocation.kt +8 −8 Original line number Original line Diff line number Diff line Loading @@ -16,18 +16,18 @@ package com.android.systemui.biometrics.shared.model package com.android.systemui.biometrics.shared.model /** Provides current sensor location information in the current screen resolution [scale]. */ /** * Provides current sensor location information in the current screen resolution [scale]. * * @property scale Scale to apply to the sensor location's natural parameters to support different * screen resolutions. */ data class SensorLocation( data class SensorLocation( private val naturalCenterX: Int, private val naturalCenterX: Int, private val naturalCenterY: Int, private val naturalCenterY: Int, private val naturalRadius: Int private val naturalRadius: Int, private val scale: Float = 1f ) { ) { /** * Scale to apply to the sensor location's natural parameters to support different screen * resolutions. */ var scale: Float = 1f val centerX: Float val centerX: Float get() { get() { return naturalCenterX * scale return naturalCenterX * scale Loading
packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/DefaultDeviceEntrySection.kt +3 −2 Original line number Original line Diff line number Diff line Loading @@ -147,7 +147,8 @@ constructor( deviceEntryIconViewModel.get().udfpsLocation.value?.let { udfpsLocation -> deviceEntryIconViewModel.get().udfpsLocation.value?.let { udfpsLocation -> Log.d( Log.d( "DeviceEntrySection", "DeviceEntrySection", "udfpsLocation=$udfpsLocation" + "udfpsLocation=$udfpsLocation, " + "scaledLocation=(${udfpsLocation.centerX},${udfpsLocation.centerY}), " + "unusedAuthController=${authController.udfpsLocation}" "unusedAuthController=${authController.udfpsLocation}" ) ) centerIcon( centerIcon( Loading