File: dbus-constants.h

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (688 lines) | stat: -rw-r--r-- 31,483 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
// Copyright 2019 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SYSTEM_API_DBUS_BLUETOOTH_DBUS_CONSTANTS_H_
#define SYSTEM_API_DBUS_BLUETOOTH_DBUS_CONSTANTS_H_

namespace bluetooth_plugin {
// Service identifiers for the plugin interface added to the /org/bluez object.
constexpr char kBluetoothPluginServiceName[] = "org.bluez";
constexpr char kBluetoothPluginInterface[] = "org.chromium.Bluetooth";

// Bluetooth plugin properties.
constexpr char kSupportsLEServices[] = "SupportsLEServices";
constexpr char kSupportsConnInfo[] = "SupportsConnInfo";
}  // namespace bluetooth_plugin

namespace bluetooth_plugin_device {
// Service identifiers for the plugin interface added to Bluetooth Device
// objects.
constexpr char kBluetoothPluginServiceName[] = "org.bluez";
constexpr char kBluetoothPluginInterface[] = "org.chromium.BluetoothDevice";

// Bluetooth Device plugin methods.
constexpr char kGetConnInfo[] = "GetConnInfo";
constexpr char kSetLEConnectionParameters[] = "SetLEConnectionParameters";
// Valid connection parameters that can be passed to the
// SetLEConnectionParameters API as dictionary keys.
constexpr char kLEConnectionParameterMinimumConnectionInterval[] =
    "MinimumConnectionInterval";
constexpr char kLEConnectionParameterMaximumConnectionInterval[] =
    "MaximumConnectionInterval";
}  // namespace bluetooth_plugin_device

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/adapter-api.txt
namespace bluetooth_adapter {
// Bluetooth Adapter service identifiers.
constexpr char kBluetoothAdapterServiceName[] = "org.bluez";
constexpr char kBluetoothAdapterInterface[] = "org.bluez.Adapter1";

// Bluetooth Adapter methods.
constexpr char kStartDiscovery[] = "StartDiscovery";
constexpr char kSetDiscoveryFilter[] = "SetDiscoveryFilter";
constexpr char kStopDiscovery[] = "StopDiscovery";
constexpr char kPauseDiscovery[] = "PauseDiscovery";
constexpr char kUnpauseDiscovery[] = "UnpauseDiscovery";
constexpr char kRemoveDevice[] = "RemoveDevice";
constexpr char kCreateServiceRecord[] = "CreateServiceRecord";
constexpr char kRemoveServiceRecord[] = "RemoveServiceRecord";
constexpr char kHandleSuspendImminent[] = "HandleSuspendImminent";
constexpr char kHandleSuspendDone[] = "HandleSuspendDone";
constexpr char kGetSupportedCapabilities[] = "GetSupportedCapabilities";
constexpr char kSetLongTermKeys[] = "SetLongTermKeys";
constexpr char kConnectDevice[] = "ConnectDevice";

// Bluetooth Adapter properties.
constexpr char kAddressProperty[] = "Address";
constexpr char kNameProperty[] = "Name";
constexpr char kAliasProperty[] = "Alias";
constexpr char kClassProperty[] = "Class";
constexpr char kPoweredProperty[] = "Powered";
constexpr char kDiscoverableProperty[] = "Discoverable";
constexpr char kPairableProperty[] = "Pairable";
constexpr char kPairableTimeoutProperty[] = "PairableTimeout";
constexpr char kDiscoverableTimeoutProperty[] = "DiscoverableTimeout";
constexpr char kDiscoveringProperty[] = "Discovering";
constexpr char kUUIDsProperty[] = "UUIDs";
constexpr char kModaliasProperty[] = "Modalias";
constexpr char kRolesProperty[] = "Roles";
constexpr char kStackSyncQuittingProperty[] = "StackSyncQuitting";
constexpr char kUseSuspendNotifierProperty[] = "UseSuspendNotifier";

// Bluetooth Adapter errors.
constexpr char kErrorNotReady[] = "org.bluez.Error.NotReady";
constexpr char kErrorFailed[] = "org.bluez.Error.Failed";
constexpr char kErrorInProgress[] = "org.bluez.Error.InProgress";
constexpr char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized";
constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";
constexpr char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists";
constexpr char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist";

// Bluetooth Adapter parameters supplied to SetDiscoveryFilter request.
constexpr char kDiscoveryFilterParameterUUIDs[] = "UUIDs";
constexpr char kDiscoveryFilterParameterRSSI[] = "RSSI";
constexpr char kDiscoveryFilterParameterPathloss[] = "Pathloss";
constexpr char kDiscoveryFilterParameterTransport[] = "Transport";
}  // namespace bluetooth_adapter

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/agent-api.txt
namespace bluetooth_agent_manager {
// Bluetooth Agent Manager service indentifiers
constexpr char kBluetoothAgentManagerServiceName[] = "org.bluez";
constexpr char kBluetoothAgentManagerServicePath[] = "/org/bluez";
constexpr char kBluetoothAgentManagerInterface[] = "org.bluez.AgentManager1";

// Bluetooth Agent Manager methods.
constexpr char kRegisterAgent[] = "RegisterAgent";
constexpr char kUnregisterAgent[] = "UnregisterAgent";
constexpr char kRequestDefaultAgent[] = "RequestDefaultAgent";

// Bluetooth capabilities.
constexpr char kNoInputNoOutputCapability[] = "NoInputNoOutput";
constexpr char kDisplayOnlyCapability[] = "DisplayOnly";
constexpr char kKeyboardOnlyCapability[] = "KeyboardOnly";
constexpr char kDisplayYesNoCapability[] = "DisplayYesNo";
constexpr char kKeyboardDisplayCapability[] = "KeyboardDisplay";

// Bluetooth Agent Manager errors.
constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";
constexpr char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists";
constexpr char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist";
}  // namespace bluetooth_agent_manager

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/agent-api.txt
namespace bluetooth_agent {
// Bluetooth Agent service indentifiers
constexpr char kBluetoothAgentInterface[] = "org.bluez.Agent1";

// Bluetooth Agent methods.
constexpr char kRelease[] = "Release";
constexpr char kRequestPinCode[] = "RequestPinCode";
constexpr char kDisplayPinCode[] = "DisplayPinCode";
constexpr char kRequestPasskey[] = "RequestPasskey";
constexpr char kDisplayPasskey[] = "DisplayPasskey";
constexpr char kRequestConfirmation[] = "RequestConfirmation";
constexpr char kRequestAuthorization[] = "RequestAuthorization";
constexpr char kAuthorizeService[] = "AuthorizeService";
constexpr char kCancel[] = "Cancel";

// Bluetooth Agent errors.
constexpr char kErrorRejected[] = "org.bluez.Error.Rejected";
constexpr char kErrorCanceled[] = "org.bluez.Error.Canceled";
}  // namespace bluetooth_agent

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/battery-api.txt
namespace bluetooth_battery {
// Bluetooth Battery service identifiers.
constexpr char kBluetoothBatteryServiceName[] = "org.bluez";
constexpr char kBluetoothBatteryInterface[] = "org.bluez.Battery1";

// Bluetooth Battery Provider API identifiers.
constexpr char kBluetoothBatteryProviderManagerServiceName[] = "org.bluez";
constexpr char kBluetoothBatteryProviderManagerInterface[] =
    "org.bluez.BatteryProviderManager1";
constexpr char kBluetoothBatteryProviderInterface[] =
    "org.bluez.BatteryProvider1";

// Bluetooth Battery Provider Manager methods.
constexpr char kRegisterBatteryProvider[] = "RegisterBatteryProvider";

// Bluetooth Battery properties.
constexpr char kDeviceProperty[] = "Device";
constexpr char kPercentageProperty[] = "Percentage";
}  // namespace bluetooth_battery

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/device-api.txt
namespace bluetooth_device {
// Bluetooth Device service identifiers.
constexpr char kBluetoothDeviceServiceName[] = "org.bluez";
constexpr char kBluetoothDeviceInterface[] = "org.bluez.Device1";

// Bluetooth Device methods.
constexpr char kConnect[] = "Connect";
constexpr char kConnectLE[] = "ConnectLE";
constexpr char kDisconnect[] = "Disconnect";
constexpr char kDisconnectLE[] = "DisconnectLE";
constexpr char kConnectProfile[] = "ConnectProfile";
constexpr char kDisconnectProfile[] = "DisconnectProfile";
constexpr char kPair[] = "Pair";
constexpr char kCancelPairing[] = "CancelPairing";
constexpr char kGetServiceRecords[] = "GetServiceRecords";
constexpr char kExecuteWrite[] = "ExecuteWrite";

// Bluetooth Device properties.
constexpr char kAddressProperty[] = "Address";
constexpr char kAddressTypeProperty[] = "AddressType";
constexpr char kNameProperty[] = "Name";
constexpr char kIconProperty[] = "Icon";
constexpr char kClassProperty[] = "Class";
constexpr char kTypeProperty[] = "Type";
constexpr char kAppearanceProperty[] = "Appearance";
constexpr char kUUIDsProperty[] = "UUIDs";
constexpr char kPairedProperty[] = "Paired";
constexpr char kConnectedProperty[] = "Connected";
constexpr char kConnectedLEProperty[] = "ConnectedLE";
constexpr char kTrustedProperty[] = "Trusted";
constexpr char kBlockedProperty[] = "Blocked";
constexpr char kAliasProperty[] = "Alias";
constexpr char kAdapterProperty[] = "Adapter";
constexpr char kLegacyPairingProperty[] = "LegacyPairing";
constexpr char kModaliasProperty[] = "Modalias";
constexpr char kRSSIProperty[] = "RSSI";
constexpr char kTxPowerProperty[] = "TxPower";
constexpr char kManufacturerDataProperty[] = "ManufacturerData";
constexpr char kServiceDataProperty[] = "ServiceData";
constexpr char kServicesResolvedProperty[] = "ServicesResolved";
constexpr char kAdvertisingDataFlagsProperty[] = "AdvertisingFlags";
constexpr char kMTUProperty[] = "MTU";
constexpr char kEIRProperty[] = "EIR";
constexpr char kIsBlockedByPolicyProperty[] = "IsBlockedByPolicy";

// Bluetooth Device errors.
constexpr char kErrorNotReady[] = "org.bluez.Error.NotReady";
constexpr char kErrorFailed[] = "org.bluez.Error.Failed";
constexpr char kErrorInProgress[] = "org.bluez.Error.InProgress";
constexpr char kErrorAlreadyConnected[] = "org.bluez.Error.AlreadyConnected";
constexpr char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists";
constexpr char kErrorNotConnected[] = "org.bluez.Error.NotConnected";
constexpr char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist";
constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";

// Undocumented errors that we know BlueZ returns for Bluetooth Device methods.
constexpr char kErrorNotSupported[] = "org.bluez.Error.NotSupported";
constexpr char kErrorAuthenticationCanceled[] =
    "org.bluez.Error.AuthenticationCanceled";
constexpr char kErrorAuthenticationFailed[] =
    "org.bluez.Error.AuthenticationFailed";
constexpr char kErrorAuthenticationRejected[] =
    "org.bluez.Error.AuthenticationRejected";
constexpr char kErrorAuthenticationTimeout[] =
    "org.bluez.Error.AuthenticationTimeout";
constexpr char kErrorConnectionAttemptFailed[] =
    "org.bluez.Error.ConnectionAttemptFailed";

// Possible values for the "AddressType" property.
constexpr char kAddressTypePublic[] = "public";
constexpr char kAddressTypeRandom[] = "random";
}  // namespace bluetooth_device

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/gatt-api.txt
namespace bluetooth_gatt_characteristic {
// Bluetooth GATT Characteristic service identifiers. The service name is used
// only for characteristic objects hosted by bluetoothd.
constexpr char kBluetoothGattCharacteristicServiceName[] = "org.bluez";
constexpr char kBluetoothGattCharacteristicInterface[] =
    "org.bluez.GattCharacteristic1";

// Bluetooth GATT Characteristic methods.
constexpr char kReadValue[] = "ReadValue";
constexpr char kWriteValue[] = "WriteValue";
constexpr char kStartNotify[] = "StartNotify";
constexpr char kStopNotify[] = "StopNotify";
constexpr char kPrepareWriteValue[] = "PrepareWriteValue";

// Bluetooth GATT Characteristic signals.
constexpr char kValueUpdatedSignal[] = "ValueUpdated";

// Possible keys for option dict used in ReadValue, WriteValue and
// PrepareWriteValue.
constexpr char kOptionOffset[] = "offset";
constexpr char kOptionType[] = "type";
constexpr char kOptionDevice[] = "device";
constexpr char kOptionHasSubsequentWrite[] = "has-subsequent-write";

// Possible values for type option of WriteValue method.
constexpr char kTypeCommand[] = "command";
constexpr char kTypeRequest[] = "request";

// Bluetooth GATT Characteristic properties.
constexpr char kUUIDProperty[] = "UUID";
constexpr char kServiceProperty[] = "Service";
constexpr char kValueProperty[] = "Value";
constexpr char kFlagsProperty[] = "Flags";
constexpr char kNotifyingProperty[] = "Notifying";
constexpr char kDescriptorsProperty[] = "Descriptors";

// Possible values for Bluetooth GATT Characteristic "Flags" property.
constexpr char kFlagBroadcast[] = "broadcast";
constexpr char kFlagRead[] = "read";
constexpr char kFlagWriteWithoutResponse[] = "write-without-response";
constexpr char kFlagWrite[] = "write";
constexpr char kFlagNotify[] = "notify";
constexpr char kFlagIndicate[] = "indicate";
constexpr char kFlagAuthenticatedSignedWrites[] = "authenticated-signed-writes";
constexpr char kFlagExtendedProperties[] = "extended-properties";
constexpr char kFlagReliableWrite[] = "reliable-write";
constexpr char kFlagWritableAuxiliaries[] = "writable-auxiliaries";
constexpr char kFlagEncryptRead[] = "encrypt-read";
constexpr char kFlagEncryptWrite[] = "encrypt-write";
constexpr char kFlagEncryptAuthenticatedRead[] = "encrypt-authenticated-read";
constexpr char kFlagEncryptAuthenticatedWrite[] = "encrypt-authenticated-write";
constexpr char kFlagPermissionRead[] = "permission-read";
constexpr char kFlagPermissionWrite[] = "permission-write";
constexpr char kFlagPermissionEncryptRead[] = "permission-encrypt-read";
constexpr char kFlagPermissionEncryptWrite[] = "permission-encrypt-write";
constexpr char kFlagPermissionAuthenticatedRead[] =
    "permission-authenticated-read";
constexpr char kFlagPermissionAuthenticatedWrite[] =
    "permission-authenticated-write";
constexpr char kFlagPermissionSecureRead[] = "permission-secure-read";
constexpr char kFlagPermissionSecureWrite[] = "permission-secure-write";

// Bluetooth GATT Characteristic errors.
constexpr char kErrorFailed[] = "org.bluez.Error.Failed";
constexpr char kErrorInProgress[] = "org.bluez.Error.InProgress";
constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";
constexpr char kErrorInvalidValueLength[] =
    "org.bluez.Error.InvalidValueLength";
constexpr char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized";
constexpr char kErrorNotConnected[] = "org.bluez.Error.NotConnected";
constexpr char kErrorNotPermitted[] = "org.bluez.Error.NotPermitted";
constexpr char kErrorNotSupported[] = "org.bluez.Error.NotSupported";
}  // namespace bluetooth_gatt_characteristic

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/gatt-api.txt
namespace bluetooth_gatt_descriptor {
// Bluetooth GATT Descriptor service identifiers. The service name is used
// only for descriptor objects hosted by bluetoothd.
constexpr char kBluetoothGattDescriptorServiceName[] = "org.bluez";
constexpr char kBluetoothGattDescriptorInterface[] =
    "org.bluez.GattDescriptor1";

// Bluetooth GATT Descriptor methods.
constexpr char kReadValue[] = "ReadValue";
constexpr char kWriteValue[] = "WriteValue";

// Possible keys for option dict used in ReadValue and WriteValue.
constexpr char kOptionOffset[] = "offset";
constexpr char kOptionDevice[] = "device";

// Bluetooth GATT Descriptor properties.
constexpr char kUUIDProperty[] = "UUID";
constexpr char kCharacteristicProperty[] = "Characteristic";
constexpr char kValueProperty[] = "Value";
constexpr char kFlagsProperty[] = "Flags";

// Possible values for Bluetooth GATT Descriptor "Flags" property.
constexpr char kFlagRead[] = "read";
constexpr char kFlagWrite[] = "write";
constexpr char kFlagEncryptRead[] = "encrypt-read";
constexpr char kFlagEncryptWrite[] = "encrypt-write";
constexpr char kFlagEncryptAuthenticatedRead[] = "encrypt-authenticated-read";
constexpr char kFlagEncryptAuthenticatedWrite[] = "encrypt-authenticated-write";

// Bluetooth GATT Descriptor errors.
constexpr char kErrorFailed[] = "org.bluez.Error.Failed";
constexpr char kErrorInProgress[] = "org.bluez.Error.InProgress";
constexpr char kErrorInvalidValueLength[] =
    "org.bluez.Error.InvalidValueLength";
constexpr char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized";
constexpr char kErrorNotPermitted[] = "org.bluez.Error.NotPermitted";
constexpr char kErrorNotSupported[] = "org.bluez.Error.NotSupported";
}  // namespace bluetooth_gatt_descriptor

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/gatt-api.txt
namespace bluetooth_gatt_manager {
// Bluetooth GATT Manager service identifiers.
constexpr char kBluetoothGattManagerServiceName[] = "org.bluez";
constexpr char kBluetoothGattManagerInterface[] = "org.bluez.GattManager1";

// Bluetooth GATT Manager methods.
constexpr char kRegisterApplication[] = "RegisterApplication";
constexpr char kUnregisterApplication[] = "UnregisterApplication";
constexpr char kRegisterService[] = "RegisterService";
constexpr char kUnregisterService[] = "UnregisterService";

// Bluetooth GATT Manager errors.
constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";
constexpr char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists";
constexpr char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist";
}  // namespace bluetooth_gatt_manager

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/gatt-api.txt
namespace bluetooth_gatt_service {
// Bluetooth GATT Service service identifiers. The service name is used
// only for service objects hosted by bluetoothd.
constexpr char kBluetoothGattServiceServiceName[] = "org.bluez";
constexpr char kBluetoothGattServiceInterface[] = "org.bluez.GattService1";

// Bluetooth GATT Service properties.
constexpr char kUUIDProperty[] = "UUID";
constexpr char kDeviceProperty[] = "Device";
constexpr char kPrimaryProperty[] = "Primary";
constexpr char kIncludesProperty[] = "Includes";
constexpr char kCharacteristicsProperty[] = "Characteristics";

// Bluetooth GATT Service errors.
constexpr char kErrorFailed[] = "org.bluez.Error.Failed";
constexpr char kErrorInProgress[] = "org.bluez.Error.InProgress";
constexpr char kErrorInvalidValueLength[] =
    "org.bluez.Error.InvalidValueLength";
constexpr char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized";
constexpr char kErrorNotPaired[] = "org.bluez.Error.NotPaired";
constexpr char kErrorNotSupported[] = "org.bluez.Error.NotSupported";
constexpr char kErrorNotPermitted[] = "org.bluez.Error.NotPermitted";
}  // namespace bluetooth_gatt_service

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/input-api.txt
namespace bluetooth_input {
// Bluetooth Input service identifiers.
constexpr char kBluetoothInputServiceName[] = "org.bluez";
constexpr char kBluetoothInputInterface[] = "org.bluez.Input1";

// Bluetooth Input properties.
constexpr char kReconnectModeProperty[] = "ReconnectMode";

// Bluetooth Input property values.
constexpr char kNoneReconnectModeProperty[] = "none";
constexpr char kHostReconnectModeProperty[] = "host";
constexpr char kDeviceReconnectModeProperty[] = "device";
constexpr char kAnyReconnectModeProperty[] = "any";
}  // namespace bluetooth_input

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/media-api.txt
namespace bluetooth_media {
// Bluetooth Media service identifiers
constexpr char kBluetoothMediaServiceName[] = "org.bluez";
constexpr char kBluetoothMediaInterface[] = "org.bluez.Media1";

// Bluetooth Media methods
constexpr char kRegisterEndpoint[] = "RegisterEndpoint";
constexpr char kUnregisterEndpoint[] = "UnregisterEndpoint";
constexpr char kRegisterPlayer[] = "RegisterPlayer";
constexpr char kUnregisterPlayer[] = "UnregisterPlayer";

// Bluetooth Media errors
constexpr char kErrorFailed[] = "org.bluez.Error.Failed";
constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";
constexpr char kErrorNotSupported[] = "org.bluez.Error.NotSupported";
}  // namespace bluetooth_media

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/media-api.txt
namespace bluetooth_media_endpoint {
// Bluetooth Media Endpoint service identifiers
constexpr char kBluetoothMediaEndpointServiceName[] = "org.bluez";
constexpr char kBluetoothMediaEndpointInterface[] = "org.bluez.MediaEndpoint1";

// Bluetooth Media Endpoint methods
constexpr char kSetConfiguration[] = "SetConfiguration";
constexpr char kSelectConfiguration[] = "SelectConfiguration";
constexpr char kClearConfiguration[] = "ClearConfiguration";
constexpr char kRelease[] = "Release";
}  // namespace bluetooth_media_endpoint

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/media-api.txt
namespace bluetooth_media_transport {
// Bluetooth Media Transport service identifiers
constexpr char kBluetoothMediaTransportServiceName[] = "org.bluez";
constexpr char kBluetoothMediaTransportInterface[] =
    "org.bluez.MediaTransport1";

// Bluetooth Media Transport methods
constexpr char kAcquire[] = "Acquire";
constexpr char kTryAcquire[] = "TryAcquire";
constexpr char kRelease[] = "Release";

// Bluetooth Media Transport property names.
constexpr char kDeviceProperty[] = "Device";
constexpr char kUUIDProperty[] = "UUID";
constexpr char kCodecProperty[] = "Codec";
constexpr char kConfigurationProperty[] = "Configuration";
constexpr char kStateProperty[] = "State";
constexpr char kDelayProperty[] = "Delay";
constexpr char kVolumeProperty[] = "Volume";

// Possible states for the "State" property
constexpr char kStateIdle[] = "idle";
constexpr char kStatePending[] = "pending";
constexpr char kStateActive[] = "active";

// Bluetooth Media Transport errors.
constexpr char kErrorFailed[] = "org.bluez.Error.Failed";
constexpr char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized";
constexpr char kErrorNotAvailable[] = "org.bluez.Error.NotAvailable";
}  // namespace bluetooth_media_transport

namespace bluez_object_manager {
// BlueZ daemon Object Manager service identifiers.
constexpr char kBluezObjectManagerServiceName[] = "org.bluez";
constexpr char kBluezObjectManagerServicePath[] = "/";
}  // namespace bluez_object_manager

namespace bluetooth_object_manager {
// Bluetooth daemon Object Manager service identifiers.
constexpr char kBluetoothObjectManagerServiceName[] = "org.chromium.Bluetooth";
constexpr char kBluetoothObjectManagerServicePath[] = "/";
}  // namespace bluetooth_object_manager

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/profile-api.txt
namespace bluetooth_profile_manager {
// Bluetooth Profile Manager service identifiers.
constexpr char kBluetoothProfileManagerServiceName[] = "org.bluez";
constexpr char kBluetoothProfileManagerServicePath[] = "/org/bluez";
constexpr char kBluetoothProfileManagerInterface[] =
    "org.bluez.ProfileManager1";

// Bluetooth Profile Manager methods.
constexpr char kRegisterProfile[] = "RegisterProfile";
constexpr char kUnregisterProfile[] = "UnregisterProfile";

// Bluetooth Profile Manager option names.
constexpr char kNameOption[] = "Name";
constexpr char kServiceOption[] = "Service";
constexpr char kRoleOption[] = "Role";
constexpr char kChannelOption[] = "Channel";
constexpr char kPSMOption[] = "PSM";
constexpr char kRequireAuthenticationOption[] = "RequireAuthentication";
constexpr char kRequireAuthorizationOption[] = "RequireAuthorization";
constexpr char kAutoConnectOption[] = "AutoConnect";
constexpr char kServiceRecordOption[] = "ServiceRecord";
constexpr char kVersionOption[] = "Version";
constexpr char kFeaturesOption[] = "Features";

// Bluetooth Profile Manager option values.
constexpr char kClientRoleOption[] = "client";
constexpr char kServerRoleOption[] = "server";

// Bluetooth Profile Manager errors.
constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";
constexpr char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists";
constexpr char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist";
}  // namespace bluetooth_profile_manager

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/profile-api.txt
namespace bluetooth_profile {
// Bluetooth Profile service identifiers.
constexpr char kBluetoothProfileInterface[] = "org.bluez.Profile1";

// Bluetooth Profile methods.
constexpr char kRelease[] = "Release";
constexpr char kNewConnection[] = "NewConnection";
constexpr char kRequestDisconnection[] = "RequestDisconnection";
constexpr char kCancel[] = "Cancel";

// Bluetooth Profile property names.
constexpr char kVersionProperty[] = "Version";
constexpr char kFeaturesProperty[] = "Features";

// Bluetooth Profile errors.
constexpr char kErrorRejected[] = "org.bluez.Error.Rejected";
constexpr char kErrorCanceled[] = "org.bluez.Error.Canceled";
}  // namespace bluetooth_profile

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/advertising-api.txt
namespace bluetooth_advertisement {
// Bluetooth LE Advertisement service identifiers.
constexpr char kBluetoothAdvertisementServiceName[] = "org.bluez";
constexpr char kBluetoothAdvertisementInterface[] =
    "org.bluez.LEAdvertisement1";

// Bluetooth Advertisement methods.
constexpr char kRelease[] = "Release";

// Bluetooth Advertisement properties.
constexpr char kManufacturerDataProperty[] = "ManufacturerData";
constexpr char kServiceUUIDsProperty[] = "ServiceUUIDs";
constexpr char kServiceDataProperty[] = "ServiceData";
constexpr char kSolicitUUIDsProperty[] = "SolicitUUIDs";
constexpr char kTypeProperty[] = "Type";
constexpr char kIncludeTxPowerProperty[] = "IncludeTxPower";
constexpr char kScanResponseDataProperty[] = "ScanResponseData";
constexpr char kSecondaryChannelProperty[] = "SecondaryChannel";

// Possible values for the "Type" property.
constexpr char kTypeBroadcast[] = "broadcast";
constexpr char kTypePeripheral[] = "peripheral";

// Possible values for the "SecondaryChannel"
constexpr char kPhy1M[] = "1M";
constexpr char kPhy2M[] = "2M";
constexpr char kPhyCodec[] = "Codec";
}  // namespace bluetooth_advertisement

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/refs/heads/chromeos-5.54/doc/advertisement-monitor-api.txt
namespace bluetooth_advertisement_monitor {
// Bluetooth advertisement monitor service identifiers.
constexpr char kBluetoothAdvertisementMonitorServiceName[] = "org.bluez";
constexpr char kBluetoothAdvertisementMonitorInterface[] =
    "org.bluez.AdvertisementMonitor1";

// Bluetooth advertisement monitor methods.
constexpr char kRelease[] = "Release";
constexpr char kActivate[] = "Activate";
constexpr char kDeviceFound[] = "DeviceFound";
constexpr char kDeviceLost[] = "DeviceLost";

// Bluetooth advertisement monitor properties.
constexpr char kType[] = "Type";
constexpr char kRSSILowThreshold[] = "RSSILowThreshold";
constexpr char kRSSIHighThreshold[] = "RSSIHighThreshold";
constexpr char kRSSIHighTimeout[] = "RSSIHighTimeout";
constexpr char kRSSILowTimeout[] = "RSSILowTimeout";
constexpr char kRSSISamplingPeriod[] = "RSSISamplingPeriod";
constexpr char kPatterns[] = "Patterns";
}  // namespace bluetooth_advertisement_monitor

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/refs/heads/chromeos-5.54/doc/advertisement-monitor-api.txt
namespace bluetooth_advertisement_monitor_manager {
// Bluetooth advertisement monitor manager service identifiers.
constexpr char kBluetoothAdvertisementMonitorManagerServiceName[] = "org.bluez";
constexpr char kBluetoothAdvertisementMonitorManagerInterface[] =
    "org.bluez.AdvertisementMonitorManager1";

// Bluetooth advertisement monitor manager methods.
constexpr char kRegisterMonitor[] = "RegisterMonitor";
constexpr char kUnregisterMonitor[] = "UnregisterMonitor";

// Bluetooth advertisement monitor manager properties.
constexpr char kSupportedMonitorTypes[] = "SupportedMonitorTypes";
constexpr char kSupportedFeatures[] = "SupportedFeatures";

// Possible values for the "SupportedMonitorTypes" property.
constexpr char kSupportedMonitorTypesOrPatterns[] = "or_patterns";

// Possible values for the "SupportedFeatures" property.
constexpr char kSupportedFeaturesControllerPatterns[] = "controller-patterns";
}  // namespace bluetooth_advertisement_monitor_manager

// https://chromium.googlesource.com/chromiumos/third_party/bluez/+/HEAD/doc/advertising-api.txt
namespace bluetooth_advertising_manager {
// Bluetooth LE Advertising Manager service identifiers.
constexpr char kBluetoothAdvertisingManagerServiceName[] = "org.bluez";
constexpr char kBluetoothAdvertisingManagerInterface[] =
    "org.bluez.LEAdvertisingManager1";

// Bluetooth LE Advertising Manager methods.
constexpr char kRegisterAdvertisement[] = "RegisterAdvertisement";
constexpr char kUnregisterAdvertisement[] = "UnregisterAdvertisement";
constexpr char kSetAdvertisingIntervals[] = "SetAdvertisingIntervals";
constexpr char kResetAdvertising[] = "ResetAdvertising";

// Bluetooth LE Advertising Manager properties.
constexpr char kSupportedFeatures[] = "SupportedFeatures";

// Possible values for the "SupportedFeatures" property.
constexpr char kSupportedFeaturesHardwareOffload[] = "HardwareOffload";

// Bluetooth LE Advertising Manager errors.
constexpr char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists";
constexpr char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist";
constexpr char kErrorFailed[] = "org.bluez.Error.Failed";
constexpr char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";
constexpr char kErrorInvalidLength[] = "org.bluez.Error.InvalidLength";
}  // namespace bluetooth_advertising_manager

namespace bluetooth_debug {
constexpr char kBluetoothDebugInterface[] = "org.chromium.Bluetooth.Debug";

// Methods.
constexpr char kSetBluetoothQualityReport[] = "SetQuality";
constexpr char kSetLevels[] = "SetLevels";
}  // namespace bluetooth_debug

namespace bluetooth_admin_policy {
constexpr char kBluetoothAdminPolicyInterface[] = "org.bluez.AdminPolicy1";
constexpr char kBluetoothAdminPolicyStatusInterface[] =
    "org.bluez.AdminPolicyStatus1";
constexpr char kBluetoothAdminPolicySetInterface[] =
    "org.bluez.AdminPolicySet1";

// Methods.
constexpr char kSetServiceAllowList[] = "SetServiceAllowList";

// Properties
constexpr char kServiceAllowListProperty[] = "ServiceAllowList";
constexpr char kIsBlockedByPolicyProperty[] = "AffectedByPolicy";
}  // namespace bluetooth_admin_policy

// Bluetooth manager.
namespace bluetooth_manager {
constexpr char kBluetoothManagerInterface[] = "org.chromium.bluetooth.Manager";
constexpr char kBluetoothManagerServicePath[] =
    "/org/chromium/bluetooth/Manager";
constexpr char kBluetoothManagerServiceName[] =
    "org.chromium.bluetooth.Manager";
constexpr char kBluetoothManagerCallbackInterface[] =
    "org.chromium.bluetooth.ManagerCallback";

// Methods.
constexpr char kBluetoothManagerRegisterCallback[] = "RegisterCallback";

// Callback Methods.
constexpr char kBluetoothManagerOnHciEnabledChanged[] = "OnHciEnabledChanged";
}  // namespace bluetooth_manager

// Floss's battery manager.
namespace battery_manager {
constexpr char kFlossBatteryProviderManagerInterface[] =
    "org.chromium.bluetooth.BatteryProviderManager";
constexpr char kFlossBatteryProviderManagerServicePath[] =
    "/org/chromium/bluetooth/hci0/battery_provider_manager";
constexpr char kFlossBatteryProviderManagerServiceName[] =
    "org.chromium.bluetooth";
constexpr char kFlossBatteryProviderManagerCallbackInterface[] =
    "org.chromium.bluetooth.BatteryProviderCallback";
}  // namespace battery_manager

#endif  // SYSTEM_API_DBUS_BLUETOOTH_DBUS_CONSTANTS_H_