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