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

Commit e171a51b authored by Ilya Matyukhin's avatar Ilya Matyukhin Committed by Automerger Merge Worker
Browse files

Merge "IFingerprint: update comments" into sc-dev am: b09f62d6

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15159443

Change-Id: I38459e322fdbf1c1c8dec2a8be3c518842d6c3b0
parents 11145fa8 b09f62d6
Loading
Loading
Loading
Loading
+10 −10
Original line number Original line Diff line number Diff line
@@ -25,31 +25,31 @@ interface IFingerprint {
    /**
    /**
     * getSensorProps:
     * getSensorProps:
     *
     *
     * @return A list of properties for all sensors that an instance of the HAL supports.
     * @return A list of properties for all of the fingerprint sensors supported by the HAL.
     */
     */
    SensorProps[] getSensorProps();
    SensorProps[] getSensorProps();


    /**
    /**
     * createSession:
     * createSession:
     *
     *
     * Creates a instance of ISession which can be used by the framework to perform operations
     * Creates an instance of ISession that can be used by the framework to perform operations such
     * such as ISession#enroll, ISession#authenticate, etc. for the given sensorId and userId.
     * as ISession#enroll, ISession#authenticate, etc. for the given sensorId and userId.
     *
     *
     * Calling this method while there is an active session is considered an error. If the framework
     * Calling this method while there is an active session is considered an error. If the framework
     * wants to create a new session when it already has an active session, it must first cancel the
     * wants to create a new session when it already has an active session, it must first cancel the
     * current operation if it's cancellable, or wait until it completes. Then, the framework must
     * current operation if it's cancellable or wait until it completes. Then, the framework must
     * explicitly close the session with ISession#close. Once the framework receives
     * explicitly close the session with ISession#close. Once the framework receives
     * ISessionCallback#onSessionClosed, a new session can be created.
     * ISessionCallback#onSessionClosed, a new session can be created.
     *
     *
     * Implementations must store user-specific state or metadata in /data/vendor_de/<user>/fpdata
     * Implementations must store user-specific state or metadata in /data/vendor_de/<user>/fpdata
     * as specified by the SeLinux policy. This directory is created/removed by vold (see
     * as specified by the SELinux policy. The directory /data/vendor_de is managed by vold (see
     * vold_prepare_subdirs.cpp). Implementations may store additional user-specific data, such as
     * vold_prepare_subdirs.cpp). Implementations may store additional user-specific data, such as
     * embeddings or templates in StrongBox.
     * embeddings or templates, in StrongBox.
     *
     *
     * @param sensorId The sensor with which this session is being created.
     * @param sensorId The sensorId for which this session is being created.
     * @param userId The userId with which this session is being created.
     * @param userId The userId for which this session is being created.
     * @param cb Used to notify the framework.
     * @param cb A callback to notify the framework about the session's events.
     * @return A new session
     * @return A new session.
     */
     */
    ISession createSession(in int sensorId, in int userId, in ISessionCallback cb);
    ISession createSession(in int sensorId, in int userId, in ISessionCallback cb);
}
}