Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b24b559c authored by Chandru S's avatar Chandru S Committed by Android (Google) Code Review
Browse files

Merge "Delete FACE_SCANNING_ANIM flag from sys-ui and config" into tm-qpr-dev

parents 513d000b 23fd1ada
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -28,11 +28,6 @@
    <!-- Will display the bouncer on one side of the display, and the current user icon and
         user switcher on the other side -->
    <bool name="config_enableBouncerUserSwitcher">false</bool>
    <!-- Whether to show the face scanning animation on devices with face auth supported.
         The face scanning animation renders in a SW layer in ScreenDecorations.
         Enabling this will also render the camera protection in the SW layer
         (instead of HW, if relevant)."=-->
    <bool name="config_enableFaceScanningAnimation">true</bool>
    <!-- Time to be considered a consecutive fingerprint failure in ms -->
    <integer name="fp_consecutive_failure_time_ms">3500</integer>
</resources>
+1 −5
Original line number Diff line number Diff line
@@ -34,8 +34,6 @@ import com.android.systemui.FaceScanningOverlay
import com.android.systemui.biometrics.AuthController
import com.android.systemui.dagger.SysUISingleton
import com.android.systemui.dagger.qualifiers.Main
import com.android.systemui.flags.FeatureFlags
import com.android.systemui.flags.Flags
import com.android.systemui.plugins.statusbar.StatusBarStateController
import java.util.concurrent.Executor
import javax.inject.Inject
@@ -47,15 +45,13 @@ class FaceScanningProviderFactory @Inject constructor(
    private val statusBarStateController: StatusBarStateController,
    private val keyguardUpdateMonitor: KeyguardUpdateMonitor,
    @Main private val mainExecutor: Executor,
    private val featureFlags: FeatureFlags
) : DecorProviderFactory() {
    private val display = context.display
    private val displayInfo = DisplayInfo()

    override val hasProviders: Boolean
        get() {
            if (!featureFlags.isEnabled(Flags.FACE_SCANNING_ANIM) ||
                    authController.faceSensorLocation == null) {
            if (authController.faceSensorLocation == null) {
                return false
            }

+0 −3
Original line number Diff line number Diff line
@@ -80,9 +80,6 @@ object Flags {
    @JvmField
    val BOUNCER_USER_SWITCHER = ResourceBooleanFlag(204, R.bool.config_enableBouncerUserSwitcher)

    // TODO(b/254512694): Tracking Bug
    val FACE_SCANNING_ANIM = ResourceBooleanFlag(205, R.bool.config_enableFaceScanningAnimation)

    // TODO(b/254512676): Tracking Bug
    @JvmField val LOCKSCREEN_CUSTOM_CLOCKS = UnreleasedFlag(207, teamfood = true)