{ "methods": { "authenticate(android.hardware.fingerprint.FingerprintManager.CryptoObject,android.os.CancellationSignal,int,android.hardware.fingerprint.FingerprintManager.AuthenticationCallback,android.os.Handler)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "crypto", "cancel", "flags", "callback", "handler" ], "returnType": "void", "exceptions": [], "minSdk": 23, "name": "authenticate(android.hardware.fingerprint.FingerprintManager.CryptoObject,android.os.CancellationSignal,int,android.hardware.fingerprint.FingerprintManager.AuthenticationCallback,android.os.Handler)", "documentation": "Success or failure can be simulated with a subsequent call to {@link #authenticationSucceeds()}\nor {@link #authenticationFails()}.\n" }, "authenticationFails()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "void", "exceptions": [], "name": "authenticationFails()", "documentation": "Simulates a failed fingerprint authentication. An authentication request must have been\nissued with {@link FingerprintManager#authenticate(CryptoObject, CancellationSignal, int, AuthenticationCallback, Handler)} and not cancelled.\n" }, "authenticationSucceeds()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "void", "exceptions": [], "name": "authenticationSucceeds()", "documentation": "Simulates a successful fingerprint authentication. An authentication request must have been\nissued with {@link FingerprintManager#authenticate(CryptoObject, CancellationSignal, int, AuthenticationCallback, Handler)} and not cancelled.\n" }, "getEnrolledFingerprints()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "java.util.List\u003candroid.hardware.fingerprint.Fingerprint\u003e", "exceptions": [], "minSdk": 23, "name": "getEnrolledFingerprints()", "documentation": "@return lists of current fingerprint items, the list be set via {@link #setDefaultFingerprints}\n" }, "getFingerprintId(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "index" ], "returnType": "int", "exceptions": [], "name": "getFingerprintId(int)", "documentation": "@return Returns the finger ID for the given index.\n" }, "hasEnrolledFingerprints()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "boolean", "exceptions": [], "minSdk": 23, "name": "hasEnrolledFingerprints()", "documentation": "Returns {@code false} by default, or the value specified via\n{@link #setHasEnrolledFingerprints(boolean)}.\n" }, "isHardwareDetected()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "boolean", "exceptions": [], "minSdk": 23, "name": "isHardwareDetected()", "documentation": "@return `false` by default, or the value specified via {@link #setIsHardwareDetected(boolean)}\n" }, "setDefaultFingerprints(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "num" ], "returnType": "void", "exceptions": [], "name": "setDefaultFingerprints(int)", "documentation": "Enrolls the given number of fingerprints, which will be returned in {@link\n#getEnrolledFingerprints}.\n\n@param num the quantity of fingerprint item.\n" }, "setEnrolledFingerprints(android.hardware.fingerprint.Fingerprint...)": { "isImplementation": false, "modifiers": [ "private" ], "params": [ "fingerprints" ], "returnType": "void", "exceptions": [], "name": "setEnrolledFingerprints(android.hardware.fingerprint.Fingerprint...)" }, "setHasEnrolledFingerprints(boolean)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "hasEnrolledFingerprints" ], "returnType": "void", "exceptions": [], "name": "setHasEnrolledFingerprints(boolean)", "documentation": "Sets the return value of {@link FingerprintManager#hasEnrolledFingerprints()}.\n\n@deprecated use {@link #setDefaultFingerprints} instead.\n" }, "setIsHardwareDetected(boolean)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "isHardwareDetected" ], "returnType": "void", "exceptions": [], "name": "setIsHardwareDetected(boolean)", "documentation": "Sets the return value of {@link FingerprintManager#isHardwareDetected()}.\n" } }, "imports": [ "android.os.Build.VERSION_CODES.M", "android.os.Build.VERSION_CODES.N_MR1", "android.os.Build.VERSION_CODES.P", "android.hardware.fingerprint.Fingerprint", "android.hardware.fingerprint.FingerprintManager", "android.hardware.fingerprint.FingerprintManager.AuthenticationCallback", "android.hardware.fingerprint.FingerprintManager.AuthenticationResult", "android.hardware.fingerprint.FingerprintManager.CryptoObject", "android.os.CancellationSignal", "android.os.Handler", "android.util.Log", "java.util.ArrayList", "java.util.Arrays", "java.util.Collections", "java.util.List", "java.util.stream.IntStream", "org.robolectric.RuntimeEnvironment", "org.robolectric.annotation.HiddenApi", "org.robolectric.annotation.Implementation", "org.robolectric.annotation.Implements", "org.robolectric.util.ReflectionHelpers", "org.robolectric.util.ReflectionHelpers.ClassParameter" ], "name": "org.robolectric.shadows.ShadowFingerprintManager", "documentation": "Provides testing APIs for {@link FingerprintManager} " }