Update fingerprint SensorLocation interface for multi-display
Allows the implementation to specify location relative to multiple
displays (instead of just one), from which the sensor is accessible
from.
Fixes: 174868353
Test: make -j android.hardware.biometrics.fingerprint-update-api
Test: make -j android.hardware.biometrics.fingerprint-service.example
Change-Id: I0d1c1d2bdc0ea817656c14b3b79381db994fdd75
diff --git a/biometrics/fingerprint/aidl/default/Fingerprint.cpp b/biometrics/fingerprint/aidl/default/Fingerprint.cpp
index 6eb35d9..f27e278 100644
--- a/biometrics/fingerprint/aidl/default/Fingerprint.cpp
+++ b/biometrics/fingerprint/aidl/default/Fingerprint.cpp
@@ -43,13 +43,17 @@
kSensorStrength,
kMaxEnrollmentsPerUser,
hardwareInfos};
- SensorProps props = {commonProps,
- kSensorType,
- kSupportsNavigationGestures,
+ SensorLocation sensorLocation = {
+ 0 /* displayId */,
0 /* sensorLocationX */,
0 /* sensorLocationY */,
- 0 /* sensorRadius */,
- 0 /* displayId */};
+ 0 /* sensorRadius */
+ };
+ SensorProps props = {commonProps,
+ kSensorType,
+ {sensorLocation},
+ kSupportsNavigationGestures,
+ false /* supportsDetectInteraction */};
return_val->push_back(props);
return ndk::ScopedAStatus::ok();
}