1 // Copyright 2017 The Chromium OS Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef SYSTEM_API_DBUS_BIOD_DBUS_CONSTANTS_H_ 6 #define SYSTEM_API_DBUS_BIOD_DBUS_CONSTANTS_H_ 7 8 namespace biod { 9 const char kBiodServicePath[] = "/org/chromium/BiometricsDaemon"; 10 const char kBiodServiceName[] = "org.chromium.BiometricsDaemon"; 11 12 // Interfaces for objects exported by biod 13 const char kBiometricsManagerInterface[] = 14 "org.chromium.BiometricsDaemon.BiometricsManager"; 15 const char kAuthSessionInterface[] = 16 "org.chromium.BiometricsDaemon.AuthSession"; 17 const char kEnrollSessionInterface[] = 18 "org.chromium.BiometricsDaemon.EnrollSession"; 19 const char kRecordInterface[] = "org.chromium.BiometricsDaemon.Record"; 20 21 // List of all BiometricsManagers 22 const char kCrosFpBiometricsManagerName[] = "CrosFpBiometricsManager"; 23 const char kFakeBiometricsManagerName[] = "FakeBiometricsManager"; 24 const char kFpcBiometricsManagerName[] = "FpcBiometricsManager"; 25 26 // Methods 27 const char kBiometricsManagerStartEnrollSessionMethod[] = "StartEnrollSession"; 28 const char kBiometricsManagerGetRecordsForUserMethod[] = "GetRecordsForUser"; 29 const char kBiometricsManagerDestroyAllRecordsMethod[] = "DestroyAllRecords"; 30 const char kBiometricsManagerStartAuthSessionMethod[] = "StartAuthSession"; 31 const char kAuthSessionEndMethod[] = "End"; 32 const char kEnrollSessionCancelMethod[] = "Cancel"; 33 const char kRecordRemoveMethod[] = "Remove"; 34 const char kRecordSetLabelMethod[] = "SetLabel"; 35 36 // Signals 37 const char kBiometricsManagerEnrollScanDoneSignal[] = "EnrollScanDone"; 38 const char kBiometricsManagerAuthScanDoneSignal[] = "AuthScanDone"; 39 const char kBiometricsManagerSessionFailedSignal[] = "SessionFailed"; 40 41 // Properties 42 const char kBiometricsManagerBiometricTypeProperty[] = "Type"; 43 const char kRecordLabelProperty[] = "Label"; 44 45 // Values 46 enum BiometricType { 47 BIOMETRIC_TYPE_UNKNOWN = 0, 48 BIOMETRIC_TYPE_FINGERPRINT = 1, 49 BIOMETRIC_TYPE_MAX, 50 }; 51 } // namespace biod 52 53 #endif // SYSTEM_API_DBUS_BIOD_DBUS_CONSTANTS_H_ 54