1 // Copyright 2019 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_BLUETOOTH_DBUS_CONSTANTS_H_ 6 #define SYSTEM_API_DBUS_BLUETOOTH_DBUS_CONSTANTS_H_ 7 8 namespace bluetooth_plugin { 9 // Service identifiers for the plugin interface added to the /org/bluez object. 10 constexpr char kBluetoothPluginServiceName[] = "org.bluez"; 11 constexpr char kBluetoothPluginInterface[] = "org.chromium.Bluetooth"; 12 13 // Bluetooth plugin properties. 14 constexpr char kSupportsLEServices[] = "SupportsLEServices"; 15 constexpr char kSupportsConnInfo[] = "SupportsConnInfo"; 16 } // namespace bluetooth_plugin 17 18 namespace bluetooth_plugin_device { 19 // Service identifiers for the plugin interface added to Bluetooth Device 20 // objects. 21 constexpr char kBluetoothPluginServiceName[] = "org.bluez"; 22 constexpr char kBluetoothPluginInterface[] = "org.chromium.BluetoothDevice"; 23 24 // Bluetooth Device plugin methods. 25 constexpr char kGetConnInfo[] = "GetConnInfo"; 26 constexpr char kSetLEConnectionParameters[] = "SetLEConnectionParameters"; 27 // Valid connection parameters that can be passed to the 28 // SetLEConnectionParameters API as dictionary keys. 29 constexpr char kLEConnectionParameterMinimumConnectionInterval[] = 30 "MinimumConnectionInterval"; 31 constexpr char kLEConnectionParameterMaximumConnectionInterval[] = 32 "MaximumConnectionInterval"; 33 } // namespace bluetooth_plugin_device 34 35 namespace bluetooth_adapter { 36 // Bluetooth Adapter service identifiers. 37 constexpr char kBluetoothAdapterServiceName[] = "org.bluez"; 38 constexpr char kBluetoothAdapterInterface[] = "org.bluez.Adapter1"; 39 40 // Bluetooth Adapter methods. 41 constexpr char kStartDiscovery[] = "StartDiscovery"; 42 constexpr char kSetDiscoveryFilter[] = "SetDiscoveryFilter"; 43 constexpr char kStopDiscovery[] = "StopDiscovery"; 44 constexpr char kPauseDiscovery[] = "PauseDiscovery"; 45 constexpr char kUnpauseDiscovery[] = "UnpauseDiscovery"; 46 constexpr char kRemoveDevice[] = "RemoveDevice"; 47 constexpr char kCreateServiceRecord[] = "CreateServiceRecord"; 48 constexpr char kRemoveServiceRecord[] = "RemoveServiceRecord"; 49 constexpr char kHandleSuspendImminent[] = "HandleSuspendImminent"; 50 constexpr char kHandleSuspendDone[] = "HandleSuspendDone"; 51 constexpr char kGetSupportedCapabilities[] = "GetSupportedCapabilities"; 52 constexpr char kSetLongTermKeys[] = "SetLongTermKeys"; 53 54 // Bluetooth Adapter properties. 55 constexpr char kAddressProperty[] = "Address"; 56 constexpr char kNameProperty[] = "Name"; 57 constexpr char kAliasProperty[] = "Alias"; 58 constexpr char kClassProperty[] = "Class"; 59 constexpr char kPoweredProperty[] = "Powered"; 60 constexpr char kDiscoverableProperty[] = "Discoverable"; 61 constexpr char kPairableProperty[] = "Pairable"; 62 constexpr char kPairableTimeoutProperty[] = "PairableTimeout"; 63 constexpr char kDiscoverableTimeoutProperty[] = "DiscoverableTimeout"; 64 constexpr char kDiscoveringProperty[] = "Discovering"; 65 constexpr char kUUIDsProperty[] = "UUIDs"; 66 constexpr char kModaliasProperty[] = "Modalias"; 67 constexpr char kStackSyncQuittingProperty[] = "StackSyncQuitting"; 68 constexpr char kUseSuspendNotifierProperty[] = "UseSuspendNotifier"; 69 70 // Bluetooth Adapter errors. 71 constexpr char kErrorNotReady[] = "org.bluez.Error.NotReady"; 72 constexpr char kErrorFailed[] = "org.bluez.Error.Failed"; 73 constexpr char kErrorInProgress[] = "org.bluez.Error.InProgress"; 74 constexpr char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; 75 constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 76 constexpr char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; 77 constexpr char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; 78 79 // Bluetooth Adapter parameters supplied to SetDiscoveryFilter request. 80 constexpr char kDiscoveryFilterParameterUUIDs[] = "UUIDs"; 81 constexpr char kDiscoveryFilterParameterRSSI[] = "RSSI"; 82 constexpr char kDiscoveryFilterParameterPathloss[] = "Pathloss"; 83 constexpr char kDiscoveryFilterParameterTransport[] = "Transport"; 84 } // namespace bluetooth_adapter 85 86 namespace bluetooth_agent_manager { 87 // Bluetooth Agent Manager service indentifiers 88 constexpr char kBluetoothAgentManagerServiceName[] = "org.bluez"; 89 constexpr char kBluetoothAgentManagerServicePath[] = "/org/bluez"; 90 constexpr char kBluetoothAgentManagerInterface[] = "org.bluez.AgentManager1"; 91 92 // Bluetooth Agent Manager methods. 93 constexpr char kRegisterAgent[] = "RegisterAgent"; 94 constexpr char kUnregisterAgent[] = "UnregisterAgent"; 95 constexpr char kRequestDefaultAgent[] = "RequestDefaultAgent"; 96 97 // Bluetooth capabilities. 98 constexpr char kNoInputNoOutputCapability[] = "NoInputNoOutput"; 99 constexpr char kDisplayOnlyCapability[] = "DisplayOnly"; 100 constexpr char kKeyboardOnlyCapability[] = "KeyboardOnly"; 101 constexpr char kDisplayYesNoCapability[] = "DisplayYesNo"; 102 constexpr char kKeyboardDisplayCapability[] = "KeyboardDisplay"; 103 104 // Bluetooth Agent Manager errors. 105 constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 106 constexpr char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; 107 constexpr char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; 108 } // namespace bluetooth_agent_manager 109 110 namespace bluetooth_agent { 111 // Bluetooth Agent service indentifiers 112 constexpr char kBluetoothAgentInterface[] = "org.bluez.Agent1"; 113 114 // Bluetooth Agent methods. 115 constexpr char kRelease[] = "Release"; 116 constexpr char kRequestPinCode[] = "RequestPinCode"; 117 constexpr char kDisplayPinCode[] = "DisplayPinCode"; 118 constexpr char kRequestPasskey[] = "RequestPasskey"; 119 constexpr char kDisplayPasskey[] = "DisplayPasskey"; 120 constexpr char kRequestConfirmation[] = "RequestConfirmation"; 121 constexpr char kRequestAuthorization[] = "RequestAuthorization"; 122 constexpr char kAuthorizeService[] = "AuthorizeService"; 123 constexpr char kCancel[] = "Cancel"; 124 125 // Bluetooth Agent errors. 126 constexpr char kErrorRejected[] = "org.bluez.Error.Rejected"; 127 constexpr char kErrorCanceled[] = "org.bluez.Error.Canceled"; 128 } // namespace bluetooth_agent 129 130 namespace bluetooth_device { 131 // Bluetooth Device service identifiers. 132 constexpr char kBluetoothDeviceServiceName[] = "org.bluez"; 133 constexpr char kBluetoothDeviceInterface[] = "org.bluez.Device1"; 134 135 // Bluetooth Device methods. 136 constexpr char kConnect[] = "Connect"; 137 constexpr char kDisconnect[] = "Disconnect"; 138 constexpr char kConnectProfile[] = "ConnectProfile"; 139 constexpr char kDisconnectProfile[] = "DisconnectProfile"; 140 constexpr char kPair[] = "Pair"; 141 constexpr char kCancelPairing[] = "CancelPairing"; 142 constexpr char kGetServiceRecords[] = "GetServiceRecords"; 143 constexpr char kExecuteWrite[] = "ExecuteWrite"; 144 145 // Bluetooth Device properties. 146 constexpr char kAddressProperty[] = "Address"; 147 constexpr char kNameProperty[] = "Name"; 148 constexpr char kIconProperty[] = "Icon"; 149 constexpr char kClassProperty[] = "Class"; 150 constexpr char kTypeProperty[] = "Type"; 151 constexpr char kAppearanceProperty[] = "Appearance"; 152 constexpr char kUUIDsProperty[] = "UUIDs"; 153 constexpr char kPairedProperty[] = "Paired"; 154 constexpr char kConnectedProperty[] = "Connected"; 155 constexpr char kTrustedProperty[] = "Trusted"; 156 constexpr char kBlockedProperty[] = "Blocked"; 157 constexpr char kAliasProperty[] = "Alias"; 158 constexpr char kAdapterProperty[] = "Adapter"; 159 constexpr char kLegacyPairingProperty[] = "LegacyPairing"; 160 constexpr char kModaliasProperty[] = "Modalias"; 161 constexpr char kRSSIProperty[] = "RSSI"; 162 constexpr char kTxPowerProperty[] = "TxPower"; 163 constexpr char kManufacturerDataProperty[] = "ManufacturerData"; 164 constexpr char kServiceDataProperty[] = "ServiceData"; 165 constexpr char kServicesResolvedProperty[] = "ServicesResolved"; 166 constexpr char kAdvertisingDataFlagsProperty[] = "AdvertisingFlags"; 167 constexpr char kMTUProperty[] = "MTU"; 168 constexpr char kEIRProperty[] = "EIR"; 169 170 // Bluetooth Device errors. 171 constexpr char kErrorNotReady[] = "org.bluez.Error.NotReady"; 172 constexpr char kErrorFailed[] = "org.bluez.Error.Failed"; 173 constexpr char kErrorInProgress[] = "org.bluez.Error.InProgress"; 174 constexpr char kErrorAlreadyConnected[] = "org.bluez.Error.AlreadyConnected"; 175 constexpr char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; 176 constexpr char kErrorNotConnected[] = "org.bluez.Error.NotConnected"; 177 constexpr char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; 178 constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 179 180 // Undocumented errors that we know BlueZ returns for Bluetooth Device methods. 181 constexpr char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; 182 constexpr char kErrorAuthenticationCanceled[] = 183 "org.bluez.Error.AuthenticationCanceled"; 184 constexpr char kErrorAuthenticationFailed[] = 185 "org.bluez.Error.AuthenticationFailed"; 186 constexpr char kErrorAuthenticationRejected[] = 187 "org.bluez.Error.AuthenticationRejected"; 188 constexpr char kErrorAuthenticationTimeout[] = 189 "org.bluez.Error.AuthenticationTimeout"; 190 constexpr char kErrorConnectionAttemptFailed[] = 191 "org.bluez.Error.ConnectionAttemptFailed"; 192 } // namespace bluetooth_device 193 194 namespace bluetooth_gatt_characteristic { 195 // Bluetooth GATT Characteristic service identifiers. The service name is used 196 // only for characteristic objects hosted by bluetoothd. 197 constexpr char kBluetoothGattCharacteristicServiceName[] = "org.bluez"; 198 constexpr char kBluetoothGattCharacteristicInterface[] = 199 "org.bluez.GattCharacteristic1"; 200 201 // Bluetooth GATT Characteristic methods. 202 constexpr char kReadValue[] = "ReadValue"; 203 constexpr char kWriteValue[] = "WriteValue"; 204 constexpr char kStartNotify[] = "StartNotify"; 205 constexpr char kStopNotify[] = "StopNotify"; 206 constexpr char kPrepareWriteValue[] = "PrepareWriteValue"; 207 208 // Bluetooth GATT Characteristic signals. 209 constexpr char kValueUpdatedSignal[] = "ValueUpdated"; 210 211 // Possible keys for option dict used in ReadValue, WriteValue and 212 // PrepareWriteValue. 213 constexpr char kOptionOffset[] = "offset"; 214 constexpr char kOptionDevice[] = "device"; 215 constexpr char kOptionHasSubsequentWrite[] = "has-subsequent-write"; 216 217 // Bluetooth GATT Characteristic properties. 218 constexpr char kUUIDProperty[] = "UUID"; 219 constexpr char kServiceProperty[] = "Service"; 220 constexpr char kValueProperty[] = "Value"; 221 constexpr char kFlagsProperty[] = "Flags"; 222 constexpr char kNotifyingProperty[] = "Notifying"; 223 constexpr char kDescriptorsProperty[] = "Descriptors"; 224 225 // Possible values for Bluetooth GATT Characteristic "Flags" property. 226 constexpr char kFlagBroadcast[] = "broadcast"; 227 constexpr char kFlagRead[] = "read"; 228 constexpr char kFlagWriteWithoutResponse[] = "write-without-response"; 229 constexpr char kFlagWrite[] = "write"; 230 constexpr char kFlagNotify[] = "notify"; 231 constexpr char kFlagIndicate[] = "indicate"; 232 constexpr char kFlagAuthenticatedSignedWrites[] = "authenticated-signed-writes"; 233 constexpr char kFlagExtendedProperties[] = "extended-properties"; 234 constexpr char kFlagReliableWrite[] = "reliable-write"; 235 constexpr char kFlagWritableAuxiliaries[] = "writable-auxiliaries"; 236 constexpr char kFlagEncryptRead[] = "encrypt-read"; 237 constexpr char kFlagEncryptWrite[] = "encrypt-write"; 238 constexpr char kFlagEncryptAuthenticatedRead[] = "encrypt-authenticated-read"; 239 constexpr char kFlagEncryptAuthenticatedWrite[] = "encrypt-authenticated-write"; 240 constexpr char kFlagPermissionRead[] = "permission-read"; 241 constexpr char kFlagPermissionWrite[] = "permission-write"; 242 constexpr char kFlagPermissionEncryptRead[] = "permission-encrypt-read"; 243 constexpr char kFlagPermissionEncryptWrite[] = "permission-encrypt-write"; 244 constexpr char kFlagPermissionAuthenticatedRead[] = 245 "permission-authenticated-read"; 246 constexpr char kFlagPermissionAuthenticatedWrite[] = 247 "permission-authenticated-write"; 248 constexpr char kFlagPermissionSecureRead[] = "permission-secure-read"; 249 constexpr char kFlagPermissionSecureWrite[] = "permission-secure-write"; 250 251 // Bluetooth GATT Characteristic errors. 252 constexpr char kErrorFailed[] = "org.bluez.Error.Failed"; 253 constexpr char kErrorInProgress[] = "org.bluez.Error.InProgress"; 254 constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 255 constexpr char kErrorInvalidValueLength[] = 256 "org.bluez.Error.InvalidValueLength"; 257 constexpr char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; 258 constexpr char kErrorNotConnected[] = "org.bluez.Error.NotConnected"; 259 constexpr char kErrorNotPermitted[] = "org.bluez.Error.NotPermitted"; 260 constexpr char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; 261 } // namespace bluetooth_gatt_characteristic 262 263 namespace bluetooth_gatt_descriptor { 264 // Bluetooth GATT Descriptor service identifiers. The service name is used 265 // only for descriptor objects hosted by bluetoothd. 266 constexpr char kBluetoothGattDescriptorServiceName[] = "org.bluez"; 267 constexpr char kBluetoothGattDescriptorInterface[] = 268 "org.bluez.GattDescriptor1"; 269 270 // Bluetooth GATT Descriptor methods. 271 constexpr char kReadValue[] = "ReadValue"; 272 constexpr char kWriteValue[] = "WriteValue"; 273 274 // Possible keys for option dict used in ReadValue and WriteValue. 275 constexpr char kOptionOffset[] = "offset"; 276 constexpr char kOptionDevice[] = "device"; 277 278 // Bluetooth GATT Descriptor properties. 279 constexpr char kUUIDProperty[] = "UUID"; 280 constexpr char kCharacteristicProperty[] = "Characteristic"; 281 constexpr char kValueProperty[] = "Value"; 282 constexpr char kFlagsProperty[] = "Flags"; 283 284 // Possible values for Bluetooth GATT Descriptor "Flags" property. 285 constexpr char kFlagRead[] = "read"; 286 constexpr char kFlagWrite[] = "write"; 287 constexpr char kFlagEncryptRead[] = "encrypt-read"; 288 constexpr char kFlagEncryptWrite[] = "encrypt-write"; 289 constexpr char kFlagEncryptAuthenticatedRead[] = "encrypt-authenticated-read"; 290 constexpr char kFlagEncryptAuthenticatedWrite[] = "encrypt-authenticated-write"; 291 292 // Bluetooth GATT Descriptor errors. 293 constexpr char kErrorFailed[] = "org.bluez.Error.Failed"; 294 constexpr char kErrorInProgress[] = "org.bluez.Error.InProgress"; 295 constexpr char kErrorInvalidValueLength[] = 296 "org.bluez.Error.InvalidValueLength"; 297 constexpr char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; 298 constexpr char kErrorNotPermitted[] = "org.bluez.Error.NotPermitted"; 299 constexpr char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; 300 } // namespace bluetooth_gatt_descriptor 301 302 namespace bluetooth_gatt_manager { 303 // Bluetooth GATT Manager service identifiers. 304 constexpr char kBluetoothGattManagerServiceName[] = "org.bluez"; 305 constexpr char kBluetoothGattManagerInterface[] = "org.bluez.GattManager1"; 306 307 // Bluetooth GATT Manager methods. 308 constexpr char kRegisterApplication[] = "RegisterApplication"; 309 constexpr char kUnregisterApplication[] = "UnregisterApplication"; 310 constexpr char kRegisterService[] = "RegisterService"; 311 constexpr char kUnregisterService[] = "UnregisterService"; 312 313 // Bluetooth GATT Manager errors. 314 constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 315 constexpr char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; 316 constexpr char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; 317 } // namespace bluetooth_gatt_manager 318 319 namespace bluetooth_gatt_service { 320 // Bluetooth GATT Service service identifiers. The service name is used 321 // only for service objects hosted by bluetoothd. 322 constexpr char kBluetoothGattServiceServiceName[] = "org.bluez"; 323 constexpr char kBluetoothGattServiceInterface[] = "org.bluez.GattService1"; 324 325 // Bluetooth GATT Service properties. 326 constexpr char kUUIDProperty[] = "UUID"; 327 constexpr char kDeviceProperty[] = "Device"; 328 constexpr char kPrimaryProperty[] = "Primary"; 329 constexpr char kIncludesProperty[] = "Includes"; 330 constexpr char kCharacteristicsProperty[] = "Characteristics"; 331 332 // Bluetooth GATT Service errors. 333 constexpr char kErrorFailed[] = "org.bluez.Error.Failed"; 334 constexpr char kErrorInProgress[] = "org.bluez.Error.InProgress"; 335 constexpr char kErrorInvalidValueLength[] = 336 "org.bluez.Error.InvalidValueLength"; 337 constexpr char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; 338 constexpr char kErrorNotPaired[] = "org.bluez.Error.NotPaired"; 339 constexpr char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; 340 constexpr char kErrorNotPermitted[] = "org.bluez.Error.NotPermitted"; 341 } // namespace bluetooth_gatt_service 342 343 namespace bluetooth_input { 344 // Bluetooth Input service identifiers. 345 constexpr char kBluetoothInputServiceName[] = "org.bluez"; 346 constexpr char kBluetoothInputInterface[] = "org.bluez.Input1"; 347 348 // Bluetooth Input properties. 349 constexpr char kReconnectModeProperty[] = "ReconnectMode"; 350 351 // Bluetooth Input property values. 352 constexpr char kNoneReconnectModeProperty[] = "none"; 353 constexpr char kHostReconnectModeProperty[] = "host"; 354 constexpr char kDeviceReconnectModeProperty[] = "device"; 355 constexpr char kAnyReconnectModeProperty[] = "any"; 356 } // namespace bluetooth_input 357 358 namespace bluetooth_media { 359 // Bluetooth Media service identifiers 360 constexpr char kBluetoothMediaServiceName[] = "org.bluez"; 361 constexpr char kBluetoothMediaInterface[] = "org.bluez.Media1"; 362 363 // Bluetooth Media methods 364 constexpr char kRegisterEndpoint[] = "RegisterEndpoint"; 365 constexpr char kUnregisterEndpoint[] = "UnregisterEndpoint"; 366 constexpr char kRegisterPlayer[] = "RegisterPlayer"; 367 constexpr char kUnregisterPlayer[] = "UnregisterPlayer"; 368 369 // Bluetooth Media errors 370 constexpr char kErrorFailed[] = "org.bluez.Error.Failed"; 371 constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 372 constexpr char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; 373 } // namespace bluetooth_media 374 375 namespace bluetooth_media_endpoint { 376 // Bluetooth Media Endpoint service identifiers 377 constexpr char kBluetoothMediaEndpointServiceName[] = "org.bluez"; 378 constexpr char kBluetoothMediaEndpointInterface[] = "org.bluez.MediaEndpoint1"; 379 380 // Bluetooth Media Endpoint methods 381 constexpr char kSetConfiguration[] = "SetConfiguration"; 382 constexpr char kSelectConfiguration[] = "SelectConfiguration"; 383 constexpr char kClearConfiguration[] = "ClearConfiguration"; 384 constexpr char kRelease[] = "Release"; 385 } // namespace bluetooth_media_endpoint 386 387 namespace bluetooth_media_transport { 388 // Bluetooth Media Transport service identifiers 389 constexpr char kBluetoothMediaTransportServiceName[] = "org.bluez"; 390 constexpr char kBluetoothMediaTransportInterface[] = 391 "org.bluez.MediaTransport1"; 392 393 // Bluetooth Media Transport methods 394 constexpr char kAcquire[] = "Acquire"; 395 constexpr char kTryAcquire[] = "TryAcquire"; 396 constexpr char kRelease[] = "Release"; 397 398 // Bluetooth Media Transport property names. 399 constexpr char kDeviceProperty[] = "Device"; 400 constexpr char kUUIDProperty[] = "UUID"; 401 constexpr char kCodecProperty[] = "Codec"; 402 constexpr char kConfigurationProperty[] = "Configuration"; 403 constexpr char kStateProperty[] = "State"; 404 constexpr char kDelayProperty[] = "Delay"; 405 constexpr char kVolumeProperty[] = "Volume"; 406 407 // Possible states for the "State" property 408 constexpr char kStateIdle[] = "idle"; 409 constexpr char kStatePending[] = "pending"; 410 constexpr char kStateActive[] = "active"; 411 412 // Bluetooth Media Transport errors. 413 constexpr char kErrorFailed[] = "org.bluez.Error.Failed"; 414 constexpr char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; 415 constexpr char kErrorNotAvailable[] = "org.bluez.Error.NotAvailable"; 416 } // namespace bluetooth_media_transport 417 418 namespace bluez_object_manager { 419 // BlueZ daemon Object Manager service identifiers. 420 constexpr char kBluezObjectManagerServiceName[] = "org.bluez"; 421 constexpr char kBluezObjectManagerServicePath[] = "/"; 422 } // namespace bluez_object_manager 423 424 namespace bluetooth_object_manager { 425 // Bluetooth daemon Object Manager service identifiers. 426 constexpr char kBluetoothObjectManagerServiceName[] = "org.chromium.Bluetooth"; 427 constexpr char kBluetoothObjectManagerServicePath[] = "/"; 428 } // namespace bluetooth_object_manager 429 430 namespace newblue_object_manager { 431 // NewBlue daemon Object Manager service identifiers. 432 constexpr char kNewblueObjectManagerServiceName[] = "org.chromium.Newblue"; 433 constexpr char kNewblueObjectManagerServicePath[] = "/"; 434 } // namespace newblue_object_manager 435 436 namespace bluetooth_profile_manager { 437 // Bluetooth Profile Manager service identifiers. 438 constexpr char kBluetoothProfileManagerServiceName[] = "org.bluez"; 439 constexpr char kBluetoothProfileManagerServicePath[] = "/org/bluez"; 440 constexpr char kBluetoothProfileManagerInterface[] = 441 "org.bluez.ProfileManager1"; 442 443 // Bluetooth Profile Manager methods. 444 constexpr char kRegisterProfile[] = "RegisterProfile"; 445 constexpr char kUnregisterProfile[] = "UnregisterProfile"; 446 447 // Bluetooth Profile Manager option names. 448 constexpr char kNameOption[] = "Name"; 449 constexpr char kServiceOption[] = "Service"; 450 constexpr char kRoleOption[] = "Role"; 451 constexpr char kChannelOption[] = "Channel"; 452 constexpr char kPSMOption[] = "PSM"; 453 constexpr char kRequireAuthenticationOption[] = "RequireAuthentication"; 454 constexpr char kRequireAuthorizationOption[] = "RequireAuthorization"; 455 constexpr char kAutoConnectOption[] = "AutoConnect"; 456 constexpr char kServiceRecordOption[] = "ServiceRecord"; 457 constexpr char kVersionOption[] = "Version"; 458 constexpr char kFeaturesOption[] = "Features"; 459 460 // Bluetooth Profile Manager option values. 461 constexpr char kClientRoleOption[] = "client"; 462 constexpr char kServerRoleOption[] = "server"; 463 464 // Bluetooth Profile Manager errors. 465 constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 466 constexpr char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; 467 constexpr char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; 468 } // namespace bluetooth_profile_manager 469 470 namespace bluetooth_profile { 471 // Bluetooth Profile service identifiers. 472 constexpr char kBluetoothProfileInterface[] = "org.bluez.Profile1"; 473 474 // Bluetooth Profile methods. 475 constexpr char kRelease[] = "Release"; 476 constexpr char kNewConnection[] = "NewConnection"; 477 constexpr char kRequestDisconnection[] = "RequestDisconnection"; 478 constexpr char kCancel[] = "Cancel"; 479 480 // Bluetooth Profile property names. 481 constexpr char kVersionProperty[] = "Version"; 482 constexpr char kFeaturesProperty[] = "Features"; 483 484 // Bluetooth Profile errors. 485 constexpr char kErrorRejected[] = "org.bluez.Error.Rejected"; 486 constexpr char kErrorCanceled[] = "org.bluez.Error.Canceled"; 487 } // namespace bluetooth_profile 488 489 namespace bluetooth_advertisement { 490 // Bluetooth LE Advertisement service identifiers. 491 constexpr char kBluetoothAdvertisementServiceName[] = "org.bluez"; 492 constexpr char kBluetoothAdvertisementInterface[] = 493 "org.bluez.LEAdvertisement1"; 494 495 // Bluetooth Advertisement methods. 496 constexpr char kRelease[] = "Release"; 497 498 // Bluetooth Advertisement properties. 499 constexpr char kManufacturerDataProperty[] = "ManufacturerData"; 500 constexpr char kServiceUUIDsProperty[] = "ServiceUUIDs"; 501 constexpr char kServiceDataProperty[] = "ServiceData"; 502 constexpr char kSolicitUUIDsProperty[] = "SolicitUUIDs"; 503 constexpr char kTypeProperty[] = "Type"; 504 constexpr char kIncludeTxPowerProperty[] = "IncludeTxPower"; 505 506 // Possible values for the "Type" property. 507 constexpr char kTypeBroadcast[] = "broadcast"; 508 constexpr char kTypePeripheral[] = "peripheral"; 509 } // namespace bluetooth_advertisement 510 511 namespace bluetooth_advertising_manager { 512 // Bluetooth LE Advertising Manager service identifiers. 513 constexpr char kBluetoothAdvertisingManagerServiceName[] = "org.bluez"; 514 constexpr char kBluetoothAdvertisingManagerInterface[] = 515 "org.bluez.LEAdvertisingManager1"; 516 517 // Bluetooth LE Advertising Manager methods. 518 constexpr char kRegisterAdvertisement[] = "RegisterAdvertisement"; 519 constexpr char kUnregisterAdvertisement[] = "UnregisterAdvertisement"; 520 constexpr char kSetAdvertisingIntervals[] = "SetAdvertisingIntervals"; 521 constexpr char kResetAdvertising[] = "ResetAdvertising"; 522 523 // Bluetooth LE Advertising Manager properties. 524 constexpr char kIsTXPowerSupportedProperty[] = "IsTXPowerSupported"; 525 526 // Bluetooth LE Advertising Manager errors. 527 constexpr char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; 528 constexpr char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; 529 constexpr char kErrorFailed[] = "org.bluez.Error.Failed"; 530 constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; 531 constexpr char kErrorInvalidLength[] = "org.bluez.Error.InvalidLength"; 532 } // namespace bluetooth_advertising_manager 533 534 namespace bluetooth_debug { 535 constexpr char kBluetoothDebugInterface[] = "org.chromium.Bluetooth.Debug"; 536 537 // Methods. 538 constexpr char kSetLevels[] = "SetLevels"; 539 540 // Properties. 541 constexpr char kDispatcherLevelProperty[] = "DispatcherLevel"; 542 constexpr char kNewblueLevelProperty[] = "NewblueLevel"; 543 constexpr char kBluezLevelProperty[] = "BluezLevel"; 544 constexpr char kKernelLevelProperty[] = "KernelLevel"; 545 } // namespace bluetooth_debug 546 547 #endif // SYSTEM_API_DBUS_BLUETOOTH_DBUS_CONSTANTS_H_ 548