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

Commit a8ab4e31 authored by Chandru S's avatar Chandru S
Browse files

Convert FingerprintInteractiveToAuthProvider to Kotlin

This is required to expose this setting state as Flow<Boolean>

Bug: 305236201
Test: Everything builds
Flag: NA
Change-Id: I2852fbd9378e0d9fbfa012a17023c42d69e55ae4
parent eaebba0a
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -13,24 +13,21 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.android.systemui.biometrics

package com.android.systemui.biometrics;

import android.hardware.biometrics.common.AuthenticateReason;
import android.hardware.biometrics.common.AuthenticateReason

/** Provides the status of the interactive to auth feature. */
public interface FingerprintInteractiveToAuthProvider {
interface FingerprintInteractiveToAuthProvider {
    /**
     *
     * @param userId the user Id.
     * @return true if the InteractiveToAuthFeature is enabled, false if disabled.
     */
    boolean isEnabled(int userId);
    fun isEnabled(userId: Int): Boolean

    /**
     *
     * @param userId the user Id.
     * @return Vendor extension if needed for authentication.
     */
    AuthenticateReason.Vendor getVendorExtension(int userId);
    fun getVendorExtension(userId: Int): AuthenticateReason.Vendor?
}