aboutsummaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
authorSammie Quon <sammiequon@google.com>2017-03-08 09:55:20 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-03-09 22:18:47 -0800
commit8a239050035017d648fffcc674eb4b1c50f8b6d6 (patch)
treef51f3d90d1701be9bce62d72f4e52b45abc73704 /dbus
parent7c84418f4f0479eabc607d8c4cb678269aee01c4 (diff)
downloadsystem_api-8a239050035017d648fffcc674eb4b1c50f8b6d6.tar.gz
Added constants for fingerprint scanner dbus api.
The names are based on the api described here http://dev.chromium.org/chromium-os/packages/biod BUG=672269 Change-Id: I182221767f123cffc036fcc01804e408adc65f74 Reviewed-on: https://chromium-review.googlesource.com/418325 Commit-Ready: Sammie Quon <sammiequon@chromium.org> Tested-by: Sammie Quon <sammiequon@chromium.org> Reviewed-by: Dan Erat <derat@chromium.org> Reviewed-by: Mengqi Guo <mqg@chromium.org>
Diffstat (limited to 'dbus')
-rw-r--r--dbus/service_constants.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/dbus/service_constants.h b/dbus/service_constants.h
index 755c28d..6e6082b 100644
--- a/dbus/service_constants.h
+++ b/dbus/service_constants.h
@@ -958,4 +958,53 @@ const char kCreateSecureMessageMethod[] = "CreateSecureMessage";
const char kUnwrapSecureMessageMethod[] = "UnwrapSecureMessage";
} // namespace easy_unlock
+namespace biod {
+const char kBiodServicePath[] = "/org/chromium/BiometricsDaemon";
+const char kBiodServiceName[] = "org.chromium.BiometricsDaemon";
+
+// Interfaces for objects exported by biod
+const char kBiometricsManagerInterface[] =
+ "org.chromium.BiometricsDaemon.BiometricsManager";
+const char kAuthSessionInterface[] =
+ "org.chromium.BiometricsDaemon.AuthSession";
+const char kEnrollSessionInterface[] =
+ "org.chromium.BiometricsDaemon.EnrollSession";
+const char kRecordInterface[] = "org.chromium.BiometricsDaemon.Record";
+
+// Methods
+const char kBiometricsManagerStartEnrollSessionMethod[] = "StartEnrollSession";
+const char kBiometricsManagerGetRecordsForUserMethod[] = "GetRecordsForUser";
+const char kBiometricsManagerDestroyAllRecordsMethod[] = "DestroyAllRecords";
+const char kBiometricsManagerStartAuthSessionMethod[] = "StartAuthSession";
+const char kAuthSessionEndMethod[] = "End";
+const char kEnrollSessionCancelMethod[] = "Cancel";
+const char kRecordRemoveMethod[] = "Remove";
+const char kRecordSetLabelMethod[] = "SetLabel";
+
+// Signals
+const char kBiometricsManagerEnrollScanDoneSignal[] = "EnrollScanDone";
+const char kBiometricsManagerAuthScanDoneSignal[] = "AuthScanDone";
+const char kBiometricsManagerScanFailedSignal[] = "ScanFailed";
+
+// Properties
+const char kBiometricsManagerBiometricTypeProperty[] = "Type";
+const char kRecordLabelProperty[] = "Label";
+
+// Values
+enum BiometricType {
+ BIOMETRIC_FINGERPRINT = 0,
+ BIOMETRIC_RETINA = 1,
+ BIOMETRIC_FACE = 2,
+ BIOMETRIC_VOICE = 3,
+};
+enum ScanResultType {
+ SCAN_RESULT_SUCCESS = 0,
+ SCAN_RESULT_PARTIAL = 1,
+ SCAN_RESULT_INSUFFICIENT = 2,
+ SCAN_RESULT_SENSOR_DIRTY = 3,
+ SCAN_RESULT_TOO_SLOW = 4,
+ SCAN_RESULT_TOO_FAST = 5,
+};
+} // namespace biod
+
#endif // SYSTEM_API_DBUS_SERVICE_CONSTANTS_H_