1 // Copyright (c) 2012 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_SERVICE_CONSTANTS_H_ 6 #define SYSTEM_API_DBUS_SERVICE_CONSTANTS_H_ 7 8 #include <stdint.h> // for uint32_t 9 10 // We use relative includes here to make this compatible with both the 11 // Chromium OS and Chromium environment. 12 #include "apmanager/dbus-constants.h" 13 #include "authpolicy/dbus-constants.h" 14 #include "biod/dbus-constants.h" 15 #include "cros-disks/dbus-constants.h" 16 #include "cryptohome/dbus-constants.h" 17 #include "debugd/dbus-constants.h" 18 #include "login_manager/dbus-constants.h" 19 #include "lorgnette/dbus-constants.h" 20 #include "permission_broker/dbus-constants.h" 21 #include "power_manager/dbus-constants.h" 22 #include "shill/dbus-constants.h" 23 #include "update_engine/dbus-constants.h" 24 25 namespace dbus { 26 const char kDBusInterface[] = "org.freedesktop.DBus"; 27 const char kDBusServiceName[] = "org.freedesktop.DBus"; 28 const char kDBusServicePath[] = "/org/freedesktop/DBus"; 29 30 // Object Manager interface 31 const char kDBusObjectManagerInterface[] = "org.freedesktop.DBus.ObjectManager"; 32 // Methods 33 const char kDBusObjectManagerGetManagedObjects[] = "GetManagedObjects"; 34 // Signals 35 const char kDBusObjectManagerInterfacesAddedSignal[] = "InterfacesAdded"; 36 const char kDBusObjectManagerInterfacesRemovedSignal[] = "InterfacesRemoved"; 37 38 // Properties interface 39 const char kDBusPropertiesInterface[] = "org.freedesktop.DBus.Properties"; 40 // Methods 41 const char kDBusPropertiesGet[] = "Get"; 42 const char kDBusPropertiesSet[] = "Set"; 43 const char kDBusPropertiesGetAll[] = "GetAll"; 44 // Signals 45 const char kDBusPropertiesChangedSignal[] = "PropertiesChanged"; 46 } // namespace dbus 47 48 namespace imageburn { 49 const char kImageBurnServiceName[] = "org.chromium.ImageBurner"; 50 const char kImageBurnServicePath[] = "/org/chromium/ImageBurner"; 51 const char kImageBurnServiceInterface[] = "org.chromium.ImageBurnerInterface"; 52 // Methods 53 const char kBurnImage[] = "BurnImage"; 54 // Signals 55 const char kSignalBurnFinishedName[] = "burn_finished"; 56 const char kSignalBurnUpdateName[] = "burn_progress_update"; 57 } // namespace imageburn 58 59 namespace imageloader { 60 const char kImageLoaderServiceInterface[] = "org.chromium.ImageLoaderInterface"; 61 const char kImageLoaderServiceName[] = "org.chromium.ImageLoader"; 62 const char kImageLoaderServicePath[] = "/org/chromium/ImageLoader"; 63 // Methods 64 const char kRegisterComponent[] = "RegisterComponent"; 65 const char kLoadComponent[] = "LoadComponent"; 66 const char kGetComponentVersion[] = "GetComponentVersion"; 67 // Constants 68 const char kBadResult[] = ""; 69 } // namespace imageloader 70 71 namespace speech_synthesis { 72 const char kSpeechSynthesizerInterface[] = 73 "org.chromium.SpeechSynthesizerInterface"; 74 const char kSpeechSynthesizerServicePath[] = "/org/chromium/SpeechSynthesizer"; 75 const char kSpeechSynthesizerServiceName[] = "org.chromium.SpeechSynthesizer"; 76 // Methods 77 const char kSpeak[] = "Speak"; 78 const char kStop[] = "Stop"; 79 const char kIsSpeaking[] = "IsSpeaking"; 80 const char kShutdown[] = "Shutdown"; 81 } // namespace speech_synthesis 82 83 namespace chromium { 84 const char kChromiumInterface[] = "org.chromium.Chromium"; 85 // Text-to-speech service signals. 86 const char kTTSReadySignal[] = "TTSReady"; 87 const char kTTSFailedSignal[] = "TTSFailed"; 88 } // namespace chromium 89 90 namespace chromeos { 91 const char kLibCrosServiceName[] = "org.chromium.LibCrosService"; 92 const char kLibCrosServicePath[] = "/org/chromium/LibCrosService"; 93 const char kLibCrosServiceInterface[] = "org.chromium.LibCrosServiceInterface"; 94 // Methods 95 // TODO(teravest): Remove this once CheckLiveness is removed from 96 // LibCrosService. 97 const char kCheckLiveness[] = "CheckLiveness"; 98 const char kGetKioskAppRequiredPlatforVersion[] = 99 "GetKioskAppRequiredPlatformVersion"; 100 const char kLockScreen[] = "LockScreen"; 101 const char kSetDisplayPower[] = "SetDisplayPower"; 102 const char kSetDisplaySoftwareDimming[] = "SetDisplaySoftwareDimming"; 103 const char kTakeDisplayOwnership[] = "TakeDisplayOwnership"; 104 const char kReleaseDisplayOwnership[] = "ReleaseDisplayOwnership"; 105 // Values 106 enum DisplayPowerState { 107 DISPLAY_POWER_ALL_ON = 0, 108 DISPLAY_POWER_ALL_OFF = 1, 109 DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON = 2, 110 DISPLAY_POWER_INTERNAL_ON_EXTERNAL_OFF = 3, 111 }; 112 113 const char kNetworkProxyServiceName[] = "org.chromium.NetworkProxyService"; 114 const char kNetworkProxyServicePath[] = "/org/chromium/NetworkProxyService"; 115 const char kNetworkProxyServiceInterface[] = 116 "org.chromium.NetworkProxyServiceInterface"; 117 const char kNetworkProxyServiceResolveProxyMethod[] = "ResolveProxy"; 118 119 const char kLivenessServiceName[] = "org.chromium.LivenessService"; 120 const char kLivenessServicePath[] = "/org/chromium/LivenessService"; 121 const char kLivenessServiceInterface[] = 122 "org.chromium.LivenessServiceInterface"; 123 const char kLivenessServiceCheckLivenessMethod[] = "CheckLiveness"; 124 125 const char kKioskAppServiceName[] = "org.chromium.KioskAppService"; 126 const char kKioskAppServicePath[] = "/org/chromium/KioskAppService"; 127 const char kKioskAppServiceInterface[] = 128 "org.chromium.KioskAppServiceInterface"; 129 // Methods 130 const char kKioskAppServiceGetRequiredPlatformVersionMethod[] = 131 "GetRequiredPlatformVersion"; 132 133 } // namespace chromeos 134 135 namespace cromo { 136 // cromo D-Bus service identifiers 137 const char kCromoServiceName[] = "org.chromium.ModemManager"; 138 const char kCromoServicePath[] = "/org/chromium/ModemManager"; 139 140 // cromo D-Bus interfaces 141 const char kModemInterface[] = "org.freedesktop.ModemManager.Modem"; 142 const char kModemSimpleInterface[] = 143 "org.freedesktop.ModemManager.Modem.Simple"; 144 const char kModemCdmaInterface[] = "org.freedesktop.ModemManager.Modem.Cdma"; 145 const char kModemGsmInterface[] = "org.freedesktop.ModemManager.Modem.Gsm"; 146 const char kModemGsmCardInterface[] = 147 "org.freedesktop.ModemManager.Modem.Gsm.Card"; 148 const char kModemGsmNetworkInterface[] = 149 "org.freedesktop.ModemManager.Modem.Gsm.Network"; 150 const char kModemGobiInterface[] = "org.chromium.ModemManager.Modem.Gobi"; 151 } // namespace cromo 152 153 namespace media_perception { 154 155 const char kMediaPerceptionServiceName[] = "org.chromium.MediaPerception"; 156 const char kMediaPerceptionServicePath[] = "/org/chromium/MediaPerception"; 157 const char kMediaPerceptionInterface[] = "org.chromium.MediaPerception"; 158 159 const char kStateFunction[] = "State"; 160 const char kGetDiagnosticsFunction[] = "GetDiagnostics"; 161 const char kDetectionSignal[] = "MediaPerceptionDetection"; 162 163 } // namespace media_perception 164 165 namespace modemmanager { 166 // ModemManager D-Bus service identifiers 167 const char kModemManagerSMSInterface[] = 168 "org.freedesktop.ModemManager.Modem.Gsm.SMS"; 169 170 // ModemManager function names. 171 const char kSMSGetFunction[] = "Get"; 172 const char kSMSDeleteFunction[] = "Delete"; 173 const char kSMSListFunction[] = "List"; 174 175 // ModemManager monitored signals 176 const char kSMSReceivedSignal[] = "SmsReceived"; 177 178 // ModemManager1 interfaces and signals 179 // The canonical source for these constants is: 180 // /usr/include/ModemManager/ModemManager-names.h 181 const char kModemManager1ServiceName[] = "org.freedesktop.ModemManager1"; 182 const char kModemManager1ServicePath[] = "/org/freedesktop/ModemManager1"; 183 const char kModemManager1MessagingInterface[] = 184 "org.freedesktop.ModemManager1.Modem.Messaging"; 185 const char kModemManager1SmsInterface[] = 186 "org.freedesktop.ModemManager1.Sms"; 187 const char kSMSAddedSignal[] = "Added"; 188 } // namespace modemmanager 189 190 namespace wimax_manager { 191 // WiMaxManager D-Bus service identifiers 192 const char kWiMaxManagerServiceName[] = "org.chromium.WiMaxManager"; 193 const char kWiMaxManagerServicePath[] = "/org/chromium/WiMaxManager"; 194 const char kWiMaxManagerServiceError[] = "org.chromium.WiMaxManager.Error"; 195 const char kWiMaxManagerInterface[] = "org.chromium.WiMaxManager"; 196 const char kWiMaxManagerDeviceInterface[] = "org.chromium.WiMaxManager.Device"; 197 const char kWiMaxManagerNetworkInterface[] = 198 "org.chromium.WiMaxManager.Network"; 199 const char kDeviceObjectPathPrefix[] = "/org/chromium/WiMaxManager/Device/"; 200 const char kNetworkObjectPathPrefix[] = "/org/chromium/WiMaxManager/Network/"; 201 const char kDevicesProperty[] = "Devices"; 202 const char kNetworksProperty[] = "Networks"; 203 const char kEAPAnonymousIdentity[] = "EAPAnonymousIdentity"; 204 const char kEAPUserIdentity[] = "EAPUserIdentity"; 205 const char kEAPUserPassword[] = "EAPUserPassword"; 206 207 enum DeviceStatus { 208 kDeviceStatusUninitialized, 209 kDeviceStatusDisabled, 210 kDeviceStatusReady, 211 kDeviceStatusScanning, 212 kDeviceStatusConnecting, 213 kDeviceStatusConnected 214 }; 215 } // namespace wimax_manager 216 217 namespace bluetooth_plugin { 218 // Service identifiers for the plugin interface added to the /org/bluez object. 219 const char kBluetoothPluginServiceName[] = "org.bluez"; 220 const char kBluetoothPluginInterface[] = "org.chromium.Bluetooth"; 221 222 // Bluetooth plugin properties. 223 const char kSupportsLEServices[] = "SupportsLEServices"; 224 const char kSupportsConnInfo[] = "SupportsConnInfo"; 225 } // namespace bluetooth_plugin 226 227 namespace bluetooth_plugin_device { 228 // Service identifiers for the plugin interface added to Bluetooth Device 229 // objects. 230 const char kBluetoothPluginServiceName[] = "org.bluez"; 231 const char kBluetoothPluginInterface[] = "org.chromium.BluetoothDevice"; 232 233 // Bluetooth Device plugin methods. 234 const char kGetConnInfo[] = "GetConnInfo"; 235 const char kSetLEConnectionParameters[] = "SetLEConnectionParameters"; 236 // Valid connection parameters that can be passed to the 237 // SetLEConnectionParameters API as dictionary keys. 238 const char kLEConnectionParameterMinimumConnectionInterval[] = 239 "MinimumConnectionInterval"; 240 const char kLEConnectionParameterMaximumConnectionInterval[] = 241 "MaximumConnectionInterval"; 242 } // namespace bluetooth_plugin_device 243 244 namespace bluetooth_adapter { 245 // Bluetooth Adapter service identifiers. 246 const char kBluetoothAdapterServiceName[] = "org.bluez"; 247 const char kBluetoothAdapterInterface[] = "org.bluez.Adapter1"; 248 249 // Bluetooth Adapter methods. 250 const char kStartDiscovery[] = "StartDiscovery"; 251 const char kSetDiscoveryFilter[] = "SetDiscoveryFilter"; 252 const char kStopDiscovery[] = "StopDiscovery"; 253 const char kRemoveDevice[] = "RemoveDevice"; 254 const char kCreateServiceRecord[] = "CreateServiceRecord"; 255 const char kRemoveServiceRecord[] = "RemoveServiceRecord"; 256 257 // Bluetooth Adapter properties. 258 const char kAddressProperty[] = "Address"; 259 const char kNameProperty[] = "Name"; 260 const char kAliasProperty[] = "Alias"; 261 const char kClassProperty[] = "Class"; 262 const char kPoweredProperty[] = "Powered"; 263 const char kDiscoverableProperty[] = "Discoverable"; 264 const char kPairableProperty[] = "Pairable"; 265 const char kPairableTimeoutProperty[] = "PairableTimeout"; 266 const char kDiscoverableTimeoutProperty[] = "DiscoverableTimeout"; 267 const char kDiscoveringProperty[] = "Discovering"; 268 const char kUUIDsProperty[] = "UUIDs"; 269 const char kModaliasProperty[] = "Modalias"; 270 271 // Bluetooth Adapter errors. 272 const char kErrorNotReady[] = "org.bluez.Error.NotReady"; 273 const char kErrorFailed[] = "org.bluez.Error.Failed"; 274 const char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; 275 const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 276 const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; 277 const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; 278 279 // Bluetooth Adapter parameters supplied to SetDiscoveryFilter request. 280 const char kDiscoveryFilterParameterUUIDs[] = "UUIDs"; 281 const char kDiscoveryFilterParameterRSSI[] = "RSSI"; 282 const char kDiscoveryFilterParameterPathloss[] = "Pathloss"; 283 const char kDiscoveryFilterParameterTransport[] = "Transport"; 284 } // namespace bluetooth_adapter 285 286 namespace bluetooth_agent_manager { 287 // Bluetooth Agent Manager service indentifiers 288 const char kBluetoothAgentManagerServiceName[] = "org.bluez"; 289 const char kBluetoothAgentManagerServicePath[] = "/org/bluez"; 290 const char kBluetoothAgentManagerInterface[] = "org.bluez.AgentManager1"; 291 292 // Bluetooth Agent Manager methods. 293 const char kRegisterAgent[] = "RegisterAgent"; 294 const char kUnregisterAgent[] = "UnregisterAgent"; 295 const char kRequestDefaultAgent[] = "RequestDefaultAgent"; 296 297 // Bluetooth capabilities. 298 const char kNoInputNoOutputCapability[] = "NoInputNoOutput"; 299 const char kDisplayOnlyCapability[] = "DisplayOnly"; 300 const char kKeyboardOnlyCapability[] = "KeyboardOnly"; 301 const char kDisplayYesNoCapability[] = "DisplayYesNo"; 302 const char kKeyboardDisplayCapability[] = "KeyboardDisplay"; 303 304 // Bluetooth Agent Manager errors. 305 const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 306 const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; 307 const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; 308 } // namespace bluetooth_agent_manager 309 310 311 namespace bluetooth_agent { 312 // Bluetooth Agent service indentifiers 313 const char kBluetoothAgentInterface[] = "org.bluez.Agent1"; 314 315 // Bluetooth Agent methods. 316 const char kRelease[] = "Release"; 317 const char kRequestPinCode[] = "RequestPinCode"; 318 const char kDisplayPinCode[] = "DisplayPinCode"; 319 const char kRequestPasskey[] = "RequestPasskey"; 320 const char kDisplayPasskey[] = "DisplayPasskey"; 321 const char kRequestConfirmation[] = "RequestConfirmation"; 322 const char kRequestAuthorization[] = "RequestAuthorization"; 323 const char kAuthorizeService[] = "AuthorizeService"; 324 const char kCancel[] = "Cancel"; 325 326 // Bluetooth Agent errors. 327 const char kErrorRejected[] = "org.bluez.Error.Rejected"; 328 const char kErrorCanceled[] = "org.bluez.Error.Canceled"; 329 } // namespace bluetooth_agent 330 331 namespace bluetooth_device { 332 // Bluetooth Device service identifiers. 333 const char kBluetoothDeviceServiceName[] = "org.bluez"; 334 const char kBluetoothDeviceInterface[] = "org.bluez.Device1"; 335 336 // Bluetooth Device methods. 337 const char kConnect[] = "Connect"; 338 const char kDisconnect[] = "Disconnect"; 339 const char kConnectProfile[] = "ConnectProfile"; 340 const char kDisconnectProfile[] = "DisconnectProfile"; 341 const char kPair[] = "Pair"; 342 const char kCancelPairing[] = "CancelPairing"; 343 const char kGetServiceRecords[] = "GetServiceRecords"; 344 345 // Bluetooth Device properties. 346 const char kAddressProperty[] = "Address"; 347 const char kNameProperty[] = "Name"; 348 const char kIconProperty[] = "Icon"; 349 const char kClassProperty[] = "Class"; 350 const char kTypeProperty[] = "Type"; 351 const char kAppearanceProperty[] = "Appearance"; 352 const char kUUIDsProperty[] = "UUIDs"; 353 const char kPairedProperty[] = "Paired"; 354 const char kConnectedProperty[] = "Connected"; 355 const char kTrustedProperty[] = "Trusted"; 356 const char kBlockedProperty[] = "Blocked"; 357 const char kAliasProperty[] = "Alias"; 358 const char kAdapterProperty[] = "Adapter"; 359 const char kLegacyPairingProperty[] = "LegacyPairing"; 360 const char kModaliasProperty[] = "Modalias"; 361 const char kRSSIProperty[] = "RSSI"; 362 const char kTxPowerProperty[] = "TxPower"; 363 const char kManufacturerDataProperty[] = "ManufacturerData"; 364 const char kServiceDataProperty[] = "ServiceData"; 365 const char kGattServicesProperty[] = "GattServices"; // DEPRECATED 366 const char kServicesResolvedProperty[] = "ServicesResolved"; 367 const char kAdvertisingDataFlagsProperty[] = "AdvertisingFlags"; 368 369 // Bluetooth Device errors. 370 const char kErrorNotReady[] = "org.bluez.Error.NotReady"; 371 const char kErrorFailed[] = "org.bluez.Error.Failed"; 372 const char kErrorInProgress[] = "org.bluez.Error.InProgress"; 373 const char kErrorAlreadyConnected[] = "org.bluez.Error.AlreadyConnected"; 374 const char kErrorNotConnected[] = "org.bluez.Error.NotConnected"; 375 const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; 376 const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 377 378 // Undocumented errors that we know BlueZ returns for Bluetooth Device methods. 379 const char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; 380 const char kErrorAuthenticationCanceled[] = 381 "org.bluez.Error.AuthenticationCanceled"; 382 const char kErrorAuthenticationFailed[] = 383 "org.bluez.Error.AuthenticationFailed"; 384 const char kErrorAuthenticationRejected[] = 385 "org.bluez.Error.AuthenticationRejected"; 386 const char kErrorAuthenticationTimeout[] = 387 "org.bluez.Error.AuthenticationTimeout"; 388 const char kErrorConnectionAttemptFailed[] = 389 "org.bluez.Error.ConnectionAttemptFailed"; 390 } // namespace bluetooth_device 391 392 namespace bluetooth_gatt_characteristic { 393 // Bluetooth GATT Characteristic service identifiers. The service name is used 394 // only for characteristic objects hosted by bluetoothd. 395 const char kBluetoothGattCharacteristicServiceName[] = "org.bluez"; 396 const char kBluetoothGattCharacteristicInterface[] = 397 "org.bluez.GattCharacteristic1"; 398 399 // Bluetooth GATT Characteristic methods. 400 const char kReadValue[] = "ReadValue"; 401 const char kWriteValue[] = "WriteValue"; 402 const char kStartNotify[] = "StartNotify"; 403 const char kStopNotify[] = "StopNotify"; 404 405 // Bluetooth GATT Characteristic signals. 406 const char kValueUpdatedSignal[] = "ValueUpdated"; 407 408 // Possible keys for option dict used in ReadValue and WriteValue. 409 const char kOptionOffset[] = "offset"; 410 const char kOptionDevice[] = "device"; 411 412 // Bluetooth GATT Characteristic properties. 413 const char kUUIDProperty[] = "UUID"; 414 const char kServiceProperty[] = "Service"; 415 const char kValueProperty[] = "Value"; 416 const char kFlagsProperty[] = "Flags"; 417 const char kNotifyingProperty[] = "Notifying"; 418 const char kDescriptorsProperty[] = "Descriptors"; 419 420 // Possible values for Bluetooth GATT Characteristic "Flags" property. 421 const char kFlagBroadcast[] = "broadcast"; 422 const char kFlagRead[] = "read"; 423 const char kFlagWriteWithoutResponse[] = "write-without-response"; 424 const char kFlagWrite[] = "write"; 425 const char kFlagNotify[] = "notify"; 426 const char kFlagIndicate[] = "indicate"; 427 const char kFlagAuthenticatedSignedWrites[] = "authenticated-signed-writes"; 428 const char kFlagExtendedProperties[] = "extended-properties"; 429 const char kFlagReliableWrite[] = "reliable-write"; 430 const char kFlagWritableAuxiliaries[] = "writable-auxiliaries"; 431 const char kFlagEncryptRead[] = "encrypt-read"; 432 const char kFlagEncryptWrite[] = "encrypt-write"; 433 const char kFlagEncryptAuthenticatedRead[] = "encrypt-authenticated-read"; 434 const char kFlagEncryptAuthenticatedWrite[] = "encrypt-authenticated-write"; 435 } // namespace bluetooth_gatt_characteristic 436 437 namespace bluetooth_gatt_descriptor { 438 // Bluetooth GATT Descriptor service identifiers. The service name is used 439 // only for descriptor objects hosted by bluetoothd. 440 const char kBluetoothGattDescriptorServiceName[] = "org.bluez"; 441 const char kBluetoothGattDescriptorInterface[] = "org.bluez.GattDescriptor1"; 442 443 // Bluetooth GATT Descriptor methods. 444 const char kReadValue[] = "ReadValue"; 445 const char kWriteValue[] = "WriteValue"; 446 447 // Possible keys for option dict used in ReadValue and WriteValue. 448 const char kOptionOffset[] = "offset"; 449 const char kOptionDevice[] = "device"; 450 451 // Bluetooth GATT Descriptor properties. 452 const char kUUIDProperty[] = "UUID"; 453 const char kCharacteristicProperty[] = "Characteristic"; 454 const char kValueProperty[] = "Value"; 455 const char kFlagsProperty[] = "Flags"; 456 457 // Possible values for Bluetooth GATT Descriptor "Flags" property. 458 const char kFlagRead[] = "read"; 459 const char kFlagWrite[] = "write"; 460 const char kFlagEncryptRead[] = "encrypt-read"; 461 const char kFlagEncryptWrite[] = "encrypt-write"; 462 const char kFlagEncryptAuthenticatedRead[] = "encrypt-authenticated-read"; 463 const char kFlagEncryptAuthenticatedWrite[] = "encrypt-authenticated-write"; 464 } // namespace bluetooth_gatt_descriptor 465 466 namespace bluetooth_gatt_manager { 467 // Bluetooth GATT Manager service identifiers. 468 const char kBluetoothGattManagerServiceName[] = "org.bluez"; 469 const char kBluetoothGattManagerInterface[] = "org.bluez.GattManager1"; 470 471 // Bluetooth GATT Manager methods. 472 const char kRegisterApplication[] = "RegisterApplication"; 473 const char kUnregisterApplication[] = "UnregisterApplication"; 474 const char kRegisterService[] = "RegisterService"; 475 const char kUnregisterService[] = "UnregisterService"; 476 477 // Bluetooth GATT Manager errors. 478 const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 479 const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; 480 const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; 481 } // namespace bluetooth_gatt_manager 482 483 namespace bluetooth_gatt_service { 484 // Bluetooth GATT Service service identifiers. The service name is used 485 // only for service objects hosted by bluetoothd. 486 const char kBluetoothGattServiceServiceName[] = "org.bluez"; 487 const char kBluetoothGattServiceInterface[] = "org.bluez.GattService1"; 488 489 // Bluetooth GATT Service properties. 490 const char kUUIDProperty[] = "UUID"; 491 const char kDeviceProperty[] = "Device"; 492 const char kPrimaryProperty[] = "Primary"; 493 const char kIncludesProperty[] = "Includes"; 494 const char kCharacteristicsProperty[] = "Characteristics"; 495 496 // Bluetooth GATT Service errors. 497 const char kErrorFailed[] = "org.bluez.Error.Failed"; 498 const char kErrorInProgress[] = "org.bluez.Error.InProgress"; 499 const char kErrorInvalidValueLength[] = "org.bluez.Error.InvalidValueLength"; 500 const char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; 501 const char kErrorNotPaired[] = "org.bluez.Error.NotPaired"; 502 const char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; 503 const char kErrorReadNotPermitted[] = "org.bluez.Error.ReadNotPermitted"; 504 const char kErrorWriteNotPermitted[] = "org.bluez.Error.WriteNotPermitted"; 505 } // namespace bluetooth_gatt_service 506 507 namespace bluetooth_input { 508 // Bluetooth Input service identifiers. 509 const char kBluetoothInputServiceName[] = "org.bluez"; 510 const char kBluetoothInputInterface[] = "org.bluez.Input1"; 511 512 // Bluetooth Input properties. 513 const char kReconnectModeProperty[] = "ReconnectMode"; 514 515 // Bluetooth Input property values. 516 const char kNoneReconnectModeProperty[] = "none"; 517 const char kHostReconnectModeProperty[] = "host"; 518 const char kDeviceReconnectModeProperty[] = "device"; 519 const char kAnyReconnectModeProperty[] = "any"; 520 } // namespace bluetooth_input 521 522 namespace bluetooth_media { 523 // Bluetooth Media service identifiers 524 const char kBluetoothMediaServiceName[] = "org.bluez"; 525 const char kBluetoothMediaInterface[] = "org.bluez.Media1"; 526 527 // Bluetooth Media methods 528 const char kRegisterEndpoint[] = "RegisterEndpoint"; 529 const char kUnregisterEndpoint[] = "UnregisterEndpoint"; 530 const char kRegisterPlayer[] = "RegisterPlayer"; 531 const char kUnregisterPlayer[] = "UnregisterPlayer"; 532 533 // Bluetooth Media errors 534 const char kErrorFailed[] = "org.bluez.Error.Failed"; 535 const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 536 const char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; 537 } // namespace bluetooth_media 538 539 namespace bluetooth_media_endpoint { 540 // Bluetooth Media Endpoint service identifiers 541 const char kBluetoothMediaEndpointServiceName[] = "org.bluez"; 542 const char kBluetoothMediaEndpointInterface[] = "org.bluez.MediaEndpoint1"; 543 544 // Bluetooth Media Endpoint methods 545 const char kSetConfiguration[] = "SetConfiguration"; 546 const char kSelectConfiguration[] = "SelectConfiguration"; 547 const char kClearConfiguration[] = "ClearConfiguration"; 548 const char kRelease[] = "Release"; 549 } // namespace bluetooth_media_endpoint 550 551 namespace bluetooth_media_transport { 552 // Bluetooth Media Transport service identifiers 553 const char kBluetoothMediaTransportServiceName[] = "org.bluez"; 554 const char kBluetoothMediaTransportInterface[] = "org.bluez.MediaTransport1"; 555 556 // Bluetooth Media Transport methods 557 const char kAcquire[] = "Acquire"; 558 const char kTryAcquire[] = "TryAcquire"; 559 const char kRelease[] = "Release"; 560 561 // Bluetooth Media Transport property names. 562 const char kDeviceProperty[] = "Device"; 563 const char kUUIDProperty[] = "UUID"; 564 const char kCodecProperty[] = "Codec"; 565 const char kConfigurationProperty[] = "Configuration"; 566 const char kStateProperty[] = "State"; 567 const char kDelayProperty[] = "Delay"; 568 const char kVolumeProperty[] = "Volume"; 569 570 // Possible states for the "State" property 571 const char kStateIdle[] = "idle"; 572 const char kStatePending[] = "pending"; 573 const char kStateActive[] = "active"; 574 575 // Bluetooth Media Transport errors. 576 const char kErrorFailed[] = "org.bluez.Error.Failed"; 577 const char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; 578 const char kErrorNotAvailable[] = "org.bluez.Error.NotAvailable"; 579 } // namespace bluetooth_media_transport 580 581 namespace bluetooth_object_manager { 582 // Bluetooth daemon Object Manager service identifiers. 583 const char kBluetoothObjectManagerServiceName[] = "org.bluez"; 584 const char kBluetoothObjectManagerServicePath[] = "/"; 585 } // namespace bluetooth_object_manager 586 587 namespace bluetooth_profile_manager { 588 // Bluetooth Profile Manager service identifiers. 589 const char kBluetoothProfileManagerServiceName[] = "org.bluez"; 590 const char kBluetoothProfileManagerServicePath[] = "/org/bluez"; 591 const char kBluetoothProfileManagerInterface[] = "org.bluez.ProfileManager1"; 592 593 // Bluetooth Profile Manager methods. 594 const char kRegisterProfile[] = "RegisterProfile"; 595 const char kUnregisterProfile[] = "UnregisterProfile"; 596 597 // Bluetooth Profile Manager option names. 598 const char kNameOption[] = "Name"; 599 const char kServiceOption[] = "Service"; 600 const char kRoleOption[] = "Role"; 601 const char kChannelOption[] = "Channel"; 602 const char kPSMOption[] = "PSM"; 603 const char kRequireAuthenticationOption[] = "RequireAuthentication"; 604 const char kRequireAuthorizationOption[] = "RequireAuthorization"; 605 const char kAutoConnectOption[] = "AutoConnect"; 606 const char kServiceRecordOption[] = "ServiceRecord"; 607 const char kVersionOption[] = "Version"; 608 const char kFeaturesOption[] = "Features"; 609 610 // Bluetooth Profile Manager option values. 611 const char kClientRoleOption[] = "client"; 612 const char kServerRoleOption[] = "server"; 613 614 // Bluetooth Profile Manager errors. 615 const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 616 const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; 617 const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; 618 } // namespace bluetooth_profile_manager 619 620 namespace bluetooth_profile { 621 // Bluetooth Profile service identifiers. 622 const char kBluetoothProfileInterface[] = "org.bluez.Profile1"; 623 624 // Bluetooth Profile methods. 625 const char kRelease[] = "Release"; 626 const char kNewConnection[] = "NewConnection"; 627 const char kRequestDisconnection[] = "RequestDisconnection"; 628 const char kCancel[] = "Cancel"; 629 630 // Bluetooth Profile property names. 631 const char kVersionProperty[] = "Version"; 632 const char kFeaturesProperty[] = "Features"; 633 634 // Bluetooth Profile errors. 635 const char kErrorRejected[] = "org.bluez.Error.Rejected"; 636 const char kErrorCanceled[] = "org.bluez.Error.Canceled"; 637 } // namespace bluetooth_profile 638 639 namespace bluetooth_advertisement { 640 // Bluetooth LE Advertisement service identifiers. 641 const char kBluetoothAdvertisementServiceName[] = "org.bluez"; 642 const char kBluetoothAdvertisementInterface[] = 643 "org.bluez.LEAdvertisement1"; 644 645 // Bluetooth Advertisement methods. 646 const char kRelease[] = "Release"; 647 648 // Bluetooth Advertisement properties. 649 const char kManufacturerDataProperty[] = "ManufacturerData"; 650 const char kServiceUUIDsProperty[] = "ServiceUUIDs"; 651 const char kServiceDataProperty[] = "ServiceData"; 652 const char kSolicitUUIDsProperty[] = "SolicitUUIDs"; 653 const char kTypeProperty[] = "Type"; 654 const char kIncludeTxPowerProperty[] = "IncludeTxPower"; 655 656 // Possible values for the "Type" property. 657 const char kTypeBroadcast[] = "broadcast"; 658 const char kTypePeripheral[] = "peripheral"; 659 660 } // namespace bluetooth_advertisement 661 662 namespace bluetooth_advertising_manager { 663 // Bluetooth LE Advertising Manager service identifiers. 664 const char kBluetoothAdvertisingManagerServiceName[] = "org.bluez"; 665 const char kBluetoothAdvertisingManagerInterface[] = 666 "org.bluez.LEAdvertisingManager1"; 667 668 // Bluetooth LE Advertising Manager methods. 669 const char kRegisterAdvertisement[] = "RegisterAdvertisement"; 670 const char kUnregisterAdvertisement[] = "UnregisterAdvertisement"; 671 const char kSetAdvertisingIntervals[] = "SetAdvertisingIntervals"; 672 const char kResetAdvertising[] = "ResetAdvertising"; 673 674 // Bluetooth LE Advertising Manager errors. 675 const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; 676 const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; 677 const char kErrorFailed[] = "org.bluez.Error.Failed"; 678 const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 679 const char kErrorInvalidLength[] = "org.bluez.Error.InvalidLength"; 680 } // namespace bluetooth_advertising_manager 681 682 namespace nfc_adapter { 683 // NFC Adapter service identifiers. 684 const char kNfcAdapterServiceName[] = "org.neard"; 685 const char kNfcAdapterInterface[] = "org.neard.Adapter"; 686 687 // NFC Adapter methods. 688 const char kStartEmulation[] = "StartEmulation"; 689 const char kStartPollLoop[] = "StartPollLoop"; 690 const char kStopEmulation[] = "StopEmulation"; 691 const char kStopPollLoop[] = "StopPollLoop"; 692 693 // NFC Adapter signals. 694 const char kTagFoundSignal[] = "TagFound"; 695 const char kTagLostSignal[] = "TagLost"; 696 697 // NFC Adapter properties. 698 const char kDevicesProperty[] = "Devices"; 699 const char kModeProperty[] = "Mode"; 700 const char kPollingProperty[] = "Polling"; 701 const char kPoweredProperty[] = "Powered"; 702 const char kProtocolsProperty[] = "Protocols"; 703 const char kTagsProperty[] = "Tags"; 704 705 // NFC Adapter mode values. 706 const char kModeInitiator[] = "Initiator"; 707 const char kModeTarget[] = "Target"; 708 const char kModeIdle[] = "Idle"; 709 710 } // namespace nfc_adapter 711 712 namespace nfc_device { 713 // NFC Device service identifiers. 714 const char kNfcDeviceServiceName[] = "org.neard"; 715 const char kNfcDeviceInterface[] = "org.neard.Device"; 716 717 // NFC Device methods. 718 const char kPush[] = "Push"; 719 720 // NFC Device properties. 721 const char kRecordsProperty[] = "Records"; 722 723 } // namespace nfc_device 724 725 namespace nfc_manager { 726 // NFC Manager service identifiers. 727 const char kNfcManagerServiceName[] = "org.neard"; 728 const char kNfcManagerServicePath[] = "/"; 729 const char kNfcManagerInterface[] = "org.neard.Manager"; 730 731 // NFC Manager methods. 732 const char kRegisterHandoverAgent[] = "RegisterHandoverAgent"; 733 const char kUnregisterHandoverAgent[] = "UnregisterHandoverAgent"; 734 const char kRegisterNDEFAgent[] = "RegisterNDEFAgent"; 735 const char kUnregisterNDEFAgent[] = "UnregisterNDEFAgent"; 736 737 // NFC Manager signals. 738 const char kAdapterAddedSignal[] = "AdapterAdded"; 739 const char kAdapterRemovedSignal[] = "AdapterRemoved"; 740 741 // NFC Manager properties. 742 const char kAdaptersProperty[] = "Adapters"; 743 744 // NFC Manager handover carrier values. 745 const char kCarrierBluetooth[] = "bluetooth"; 746 const char kCarrierWifi[] = "wifi"; 747 } // namespace nfc_manager 748 749 namespace nfc_tag { 750 // NFC Tag service identifiers. 751 const char kNfcTagServiceName[] = "org.neard"; 752 const char kNfcTagInterface[] = "org.neard.Tag"; 753 754 // NFC Tag methods. 755 const char kWrite[] = "Write"; 756 757 // NFC Tag properties. 758 const char kProtocolProperty[] = "Protocol"; 759 const char kReadOnlyProperty[] = "ReadOnly"; 760 const char kRecordsProperty[] = "Records"; 761 const char kTypeProperty[] = "Type"; 762 763 // NFC Tag type values. 764 const char kTagType1[] = "Type 1"; 765 const char kTagType2[] = "Type 2"; 766 const char kTagType3[] = "Type 3"; 767 const char kTagType4[] = "Type 4"; 768 769 } // namespace nfc_tag 770 771 namespace nfc_record { 772 // NFC Record service identifiers. 773 const char kNfcRecordServiceName[] = "org.neard"; 774 const char kNfcRecordInterface[] = "org.neard.Record"; 775 776 // NFC Record properties. 777 const char kTypeProperty[] = "Type"; 778 const char kEncodingProperty[] = "Encoding"; 779 const char kLanguageProperty[] = "Language"; 780 const char kRepresentationProperty[] = "Representation"; 781 const char kUriProperty[] = "URI"; 782 const char kMimeTypeProperty[] = "MIMEType"; 783 const char kSizeProperty[] = "Size"; 784 const char kActionProperty[] = "Action"; 785 786 // NFC Record type values. 787 const char kTypeSmartPoster[] = "SmartPoster"; 788 const char kTypeText[] = "Text"; 789 const char kTypeUri[] = "URI"; 790 const char kTypeHandoverRequest[] = "HandoverRequest"; 791 const char kTypeHandoverSelect[] = "HandoverSelect"; 792 const char kTypeHandoverCarrier[] = "HandoverCarrier"; 793 794 // NFC Record encoding values. 795 const char kEncodingUtf8[] = "UTF-8"; 796 const char kEncodingUtf16[] = "UTF-16"; 797 } // namespace nfc_record 798 799 namespace nfc_handover_agent { 800 // NFC Handover Agent service identifiers. 801 // TODO(armansito): Add the correct service name once the HandoverAgent feature 802 // is fully implemented. 803 const char kNfcHandoverAgentServiceName[] = ""; 804 const char kNfcHandoverInterface[] = "org.neard.HandoverAgent"; 805 806 // NFC Handover Agent methods. 807 const char kRequestOOB[] = "RequestOOB"; 808 const char kPushOOB[] = "PushOOB"; 809 const char kRelease[] = "Release"; 810 811 // NFC Handover Agent properties. 812 const char kEIRProperty[] = "EIR"; 813 const char kNokiaDotComBtProperty[] = "nokia.com:bt"; 814 const char kWSCProperty[] = "WSC"; 815 const char kStateProperty[] = "State"; 816 } // namespace nfc_handover_agent 817 818 namespace nfc_ndef_agent { 819 // NFC NDEF Agent service identifiers. 820 // TODO(armansito): Add the correct service name once the NDEFAgent feature 821 // is fully implemented. 822 const char kNfcNdefAgentServiceName[] = ""; 823 const char kNfcNdefAgentInterface[] = "org.neard.NDEFAgent"; 824 825 // NFC NDEF Agent methods. 826 const char kGetNDEF[] = "GetNDEF"; 827 const char kRelease[] = "Release"; 828 829 // NFC NDEF properties. 830 const char kNDEFProperty[] = "NDEF"; 831 const char kRecordProperty[] = "Record"; 832 } // namespace nfc_ndef_agent 833 834 namespace nfc_common { 835 // NFC Adapter/Tag protocol values. 836 const char kProtocolFelica[] = "Felica"; 837 const char kProtocolMifare[] = "MIFARE"; 838 const char kProtocolJewel[] = "Jewel"; 839 const char kProtocolIsoDep[] = "ISO-DEP"; 840 const char kProtocolNfcDep[] = "NFC-DEP"; 841 842 // Common methods for NFC property access and signals. 843 const char kGetProperties[] = "GetProperties"; 844 const char kSetProperty[] = "SetProperty"; 845 const char kPropertyChangedSignal[] = "PropertyChanged"; 846 } // namespace nfc_common 847 848 namespace nfc_error { 849 // NFC errors. 850 const char kAlreadyExists[] = "org.neard.Error.AlreadyExists"; 851 const char kDoesNotExist[] = "org.neard.Error.DoesNotExist"; 852 const char kFailed[] = "org.neard.Error.Failed"; 853 const char kInProgress[] = "org.neard.Error.InProgress"; 854 const char kInvalidArguments[] = "org.neard.Error.InvalidArguments"; 855 const char kNotReady[] = "org.neard.Error.NotReady"; 856 const char kNotSupported[] = "org.neard.Error.NotSupported"; 857 const char kPermissionDenied[] = "org.neard.Error.PermissionDenied"; 858 859 // NFC Handover Agent errors. 860 const char kHandoverAgentFailed[] = "org.neard.HandoverAgent.Error.Failed"; 861 const char kHandoverAgentInProgress[] = 862 "org.neard.HandoverAgent.Error.InProgress"; 863 } // namespace nfc_error 864 865 namespace mtpd { 866 const char kMtpdInterface[] = "org.chromium.Mtpd"; 867 const char kMtpdServicePath[] = "/org/chromium/Mtpd"; 868 const char kMtpdServiceName[] = "org.chromium.Mtpd"; 869 const char kMtpdServiceError[] = "org.chromium.Mtpd.Error"; 870 871 // Methods. 872 const char kEnumerateStorages[] = "EnumerateStorages"; 873 const char kGetStorageInfo[] = "GetStorageInfo"; 874 const char kGetStorageInfoFromDevice[] = "GetStorageInfoFromDevice"; 875 const char kOpenStorage[] = "OpenStorage"; 876 const char kCloseStorage[] = "CloseStorage"; 877 const char kReadDirectoryEntryIds[] = "ReadDirectoryEntryIds"; 878 const char kGetFileInfo[] = "GetFileInfo"; 879 const char kReadFileChunk[] = "ReadFileChunk"; 880 const char kCopyFileFromLocal[] = "CopyFileFromLocal"; 881 const char kDeleteObject[] = "DeleteObject"; 882 const char kRenameObject[] = "RenameObject"; 883 const char kCreateDirectory[] = "CreateDirectory"; 884 885 // Signals. 886 const char kMTPStorageAttached[] = "MTPStorageAttached"; 887 const char kMTPStorageDetached[] = "MTPStorageDetached"; 888 889 // For FileEntry struct: 890 const uint32_t kInvalidFileId = 0xffffffff; 891 892 // For OpenStorage method: 893 const char kReadOnlyMode[] = "ro"; 894 const char kReadWriteMode[] = "rw"; 895 896 // For GetFileInfo() method: 897 // The id of the root node in a storage, as defined by the PTP/MTP standards. 898 // Use this when referring to the root node in the context of GetFileInfo(). 899 const uint32_t kRootFileId = 0; 900 } // namespace mtpd 901 902 namespace system_clock { 903 const char kSystemClockInterface[] = "org.torproject.tlsdate"; 904 const char kSystemClockServicePath[] = "/org/torproject/tlsdate"; 905 const char kSystemClockServiceName[] = "org.torproject.tlsdate"; 906 907 // Methods. 908 const char kSystemClockCanSet[] = "CanSetTime"; 909 const char kSystemClockSet[] = "SetTime"; 910 const char kSystemLastSyncInfo[] = "LastSyncInfo"; 911 912 // Signals. 913 const char kSystemClockUpdated[] = "TimeUpdated"; 914 } // namespace system_clock 915 916 namespace cras { 917 const char kCrasServicePath[] = "/org/chromium/cras"; 918 const char kCrasServiceName[] = "org.chromium.cras"; 919 const char kCrasControlInterface[] = "org.chromium.cras.Control"; 920 921 // Methods. 922 const char kSetOutputVolume[] = "SetOutputVolume"; 923 const char kSetOutputNodeVolume[] = "SetOutputNodeVolume"; 924 const char kSwapLeftRight[] = "SwapLeftRight"; 925 const char kSetOutputMute[] = "SetOutputMute"; 926 const char kSetOutputUserMute[] = "SetOutputUserMute"; 927 const char kSetSuspendAudio[] = "SetSuspendAudio"; 928 const char kSetInputGain[] = "SetInputGain"; 929 const char kSetInputNodeGain[] = "SetInputNodeGain"; 930 const char kSetInputMute[] = "SetInputMute"; 931 const char kGetVolumeState[] = "GetVolumeState"; 932 const char kGetNodes[] = "GetNodes"; 933 const char kSetActiveOutputNode[] = "SetActiveOutputNode"; 934 const char kSetActiveInputNode[] = "SetActiveInputNode"; 935 const char kAddActiveOutputNode[] = "AddActiveOutputNode"; 936 const char kAddActiveInputNode[] = "AddActiveInputNode"; 937 const char kRemoveActiveOutputNode[] = "RemoveActiveOutputNode"; 938 const char kRemoveActiveInputNode[] = "RemoveActiveInputNode"; 939 const char kGetNumberOfActiveStreams[] = "GetNumberOfActiveStreams"; 940 const char kGetNumberOfActiveInputStreams[] = "GetNumberOfActiveInputStreams"; 941 const char kGetNumberOfActiveOutputStreams[] = "GetNumberOfActiveOutputStreams"; 942 const char kSetGlobalOutputChannelRemix[] = "SetGlobalOutputChannelRemix"; 943 944 // Names of properties returned by GetNodes() 945 const char kIsInputProperty[] = "IsInput"; 946 const char kIdProperty[] = "Id"; 947 const char kTypeProperty[] = "Type"; 948 const char kNameProperty[] = "Name"; 949 const char kDeviceNameProperty[] = "DeviceName"; 950 const char kActiveProperty[] = "Active"; 951 const char kPluggedTimeProperty[] = "PluggedTime"; 952 const char kMicPositionsProperty[] = "MicPositions"; 953 const char kStableDeviceIdProperty[] = "StableDeviceId"; 954 const char kStableDeviceIdNewProperty[] = "StableDeviceIdNew"; 955 956 // Signals. 957 const char kOutputVolumeChanged[] = "OutputVolumeChanged"; 958 const char kOutputMuteChanged[] = "OutputMuteChanged"; 959 const char kOutputNodeVolumeChanged[] = "OutputNodeVolumeChanged"; 960 const char kNodeLeftRightSwappedChanged[] = "NodeLeftRightSwappedChanged"; 961 const char kInputGainChanged[] = "InputGainChanged"; 962 const char kInputMuteChanged[] = "InputMuteChanged"; 963 const char kNodesChanged[] = "NodesChanged"; 964 const char kActiveOutputNodeChanged[] = "ActiveOutputNodeChanged"; 965 const char kActiveInputNodeChanged[] = "ActiveInputNodeChanged"; 966 const char kNumberOfActiveStreamsChanged[] = "NumberOfActiveStreamsChanged"; 967 } // namespace cras 968 969 namespace feedback { 970 const char kFeedbackServicePath[] = "/org/chromium/feedback"; 971 const char kFeedbackServiceName[] = "org.chromium.feedback"; 972 973 // Methods. 974 const char kSendFeedback[] = "SendFeedback"; 975 } // namespace feedback 976 977 namespace easy_unlock { 978 const char kEasyUnlockServicePath[] = "/org/chromium/EasyUnlock"; 979 const char kEasyUnlockServiceName[] = "org.chromium.EasyUnlock"; 980 const char kEasyUnlockServiceInterface[] = "org.chromium.EasyUnlock"; 981 982 // Values supplied as enrcryption type to CreateSecureMessage and 983 // UnwrapSecureMessage methods. 984 const char kEncryptionTypeNone[] = "NONE"; 985 const char kEncryptionTypeAES256CBC[] = "AES_256_CBC"; 986 987 // Values supplied as signature type to CreateSecureMessage and 988 // UnwrapSecureMessage methods. 989 const char kSignatureTypeECDSAP256SHA256[] = "ECDSA_P256_SHA256"; 990 const char kSignatureTypeHMACSHA256[] = "HMAC_SHA256"; 991 992 // Values supplied as key algorithm to WrapPublicKey method. 993 const char kKeyAlgorithmRSA[] = "RSA"; 994 const char kKeyAlgorithmECDSA[] = "ECDSA"; 995 996 // Methods 997 const char kPerformECDHKeyAgreementMethod[] = "PerformECDHKeyAgreement"; 998 const char kWrapPublicKeyMethod[] = "WrapPublicKey"; 999 const char kGenerateEcP256KeyPairMethod[] = "GenerateEcP256KeyPair"; 1000 const char kCreateSecureMessageMethod[] = "CreateSecureMessage"; 1001 const char kUnwrapSecureMessageMethod[] = "UnwrapSecureMessage"; 1002 } // namespace easy_unlock 1003 1004 #endif // SYSTEM_API_DBUS_SERVICE_CONSTANTS_H_ 1005