From ba8e932d1f0f83fbedd06cee5075f9ed4e48c2cb Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Tue, 14 Feb 2017 14:45:04 -0800 Subject: [PATCH] implemented enumerate method in fingerprintservice fixes bug 35358801 Test: ran enumeration in template with 1) more fingerprints in fingerprintd 2) more fingerprints in framework 3) no fingerprints in fingerprintd, but fingerprints in framework 4) no fingerprints in framework, but fingerprints in fingerprintd Change-Id: Id150f0225d597939cf1af6bac218fe0fdeeca93d --- include/hardware/fingerprint.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/hardware/fingerprint.h b/include/hardware/fingerprint.h index 408fabd8..6e08d6c3 100644 --- a/include/hardware/fingerprint.h +++ b/include/hardware/fingerprint.h @@ -215,7 +215,8 @@ typedef struct fingerprint_device { * fingerprint_msg.data.enumerated.finger indicating a template id * fingerprint_msg.data.enumerated.remaining_templates indicating how many more * enumeration messages to expect. - * + * Note: If there are no fingerprints, then this should return 0 and the first fingerprint + * enumerated should have fingerid=0 and remaining=0 * Function return: 0 if enumerate request is accepted * or a negative number in case of error, generally from the errno.h set. */