// Copyright (c) 2012 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SYSTEM_API_DBUS_SERVICE_CONSTANTS_H_ #define SYSTEM_API_DBUS_SERVICE_CONSTANTS_H_ #include // for uint32_t // We use relative includes here to make this compatible with both the // Chromium OS and Chromium environment. #include "apmanager/dbus-constants.h" #include "authpolicy/dbus-constants.h" #include "biod/dbus-constants.h" #include "cros-disks/dbus-constants.h" #include "cryptohome/dbus-constants.h" #include "debugd/dbus-constants.h" #include "hammerd/dbus-constants.h" #include "login_manager/dbus-constants.h" #include "lorgnette/dbus-constants.h" #include "permission_broker/dbus-constants.h" #include "power_manager/dbus-constants.h" #include "shill/dbus-constants.h" #include "smbprovider/dbus-constants.h" #include "update_engine/dbus-constants.h" #include "vm_concierge/dbus-constants.h" namespace dbus { const char kDBusInterface[] = "org.freedesktop.DBus"; const char kDBusServiceName[] = "org.freedesktop.DBus"; const char kDBusServicePath[] = "/org/freedesktop/DBus"; // Object Manager interface const char kDBusObjectManagerInterface[] = "org.freedesktop.DBus.ObjectManager"; // Methods const char kDBusObjectManagerGetManagedObjects[] = "GetManagedObjects"; // Signals const char kDBusObjectManagerInterfacesAddedSignal[] = "InterfacesAdded"; const char kDBusObjectManagerInterfacesRemovedSignal[] = "InterfacesRemoved"; // Properties interface const char kDBusPropertiesInterface[] = "org.freedesktop.DBus.Properties"; // Methods const char kDBusPropertiesGet[] = "Get"; const char kDBusPropertiesSet[] = "Set"; const char kDBusPropertiesGetAll[] = "GetAll"; // Signals const char kDBusPropertiesChangedSignal[] = "PropertiesChanged"; } // namespace dbus namespace imageburn { const char kImageBurnServiceName[] = "org.chromium.ImageBurner"; const char kImageBurnServicePath[] = "/org/chromium/ImageBurner"; const char kImageBurnServiceInterface[] = "org.chromium.ImageBurnerInterface"; // Methods const char kBurnImage[] = "BurnImage"; // Signals const char kSignalBurnFinishedName[] = "burn_finished"; const char kSignalBurnUpdateName[] = "burn_progress_update"; } // namespace imageburn namespace imageloader { const char kImageLoaderServiceInterface[] = "org.chromium.ImageLoaderInterface"; const char kImageLoaderServiceName[] = "org.chromium.ImageLoader"; const char kImageLoaderServicePath[] = "/org/chromium/ImageLoader"; // Methods const char kRegisterComponent[] = "RegisterComponent"; const char kLoadComponent[] = "LoadComponent"; const char kLoadComponentAtPath[] = "LoadComponentAtPath"; const char kGetComponentVersion[] = "GetComponentVersion"; const char kRemoveComponent[] = "RemoveComponent"; const char kUnmountComponent[] = "UnmountComponent"; // Constants const char kBadResult[] = ""; const char kTerminaComponentName[] = "cros-termina"; } // namespace imageloader namespace speech_synthesis { const char kSpeechSynthesizerInterface[] = "org.chromium.SpeechSynthesizerInterface"; const char kSpeechSynthesizerServicePath[] = "/org/chromium/SpeechSynthesizer"; const char kSpeechSynthesizerServiceName[] = "org.chromium.SpeechSynthesizer"; // Methods const char kSpeak[] = "Speak"; const char kStop[] = "Stop"; const char kIsSpeaking[] = "IsSpeaking"; const char kShutdown[] = "Shutdown"; } // namespace speech_synthesis namespace chromium { const char kChromiumInterface[] = "org.chromium.Chromium"; // Text-to-speech service signals. const char kTTSReadySignal[] = "TTSReady"; const char kTTSFailedSignal[] = "TTSFailed"; } // namespace chromium namespace chromeos { const char kLibCrosServiceName[] = "org.chromium.LibCrosService"; const char kLibCrosServicePath[] = "/org/chromium/LibCrosService"; const char kLibCrosServiceInterface[] = "org.chromium.LibCrosServiceInterface"; // Methods // TODO(teravest): Remove this once CheckLiveness is removed from // LibCrosService. const char kCheckLiveness[] = "CheckLiveness"; const char kGetKioskAppRequiredPlatforVersion[] = "GetKioskAppRequiredPlatformVersion"; const char kLockScreen[] = "LockScreen"; // TODO(lannm): Remove Display methods once removed from LibCrosService. const char kSetDisplayPower[] = "SetDisplayPower"; const char kSetDisplaySoftwareDimming[] = "SetDisplaySoftwareDimming"; const char kTakeDisplayOwnership[] = "TakeDisplayOwnership"; const char kReleaseDisplayOwnership[] = "ReleaseDisplayOwnership"; // Values enum DisplayPowerState { DISPLAY_POWER_ALL_ON = 0, DISPLAY_POWER_ALL_OFF = 1, DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON = 2, DISPLAY_POWER_INTERNAL_ON_EXTERNAL_OFF = 3, }; const char kNetworkProxyServiceName[] = "org.chromium.NetworkProxyService"; const char kNetworkProxyServicePath[] = "/org/chromium/NetworkProxyService"; const char kNetworkProxyServiceInterface[] = "org.chromium.NetworkProxyServiceInterface"; const char kNetworkProxyServiceResolveProxyMethod[] = "ResolveProxy"; const char kLivenessServiceName[] = "org.chromium.LivenessService"; const char kLivenessServicePath[] = "/org/chromium/LivenessService"; const char kLivenessServiceInterface[] = "org.chromium.LivenessServiceInterface"; const char kLivenessServiceCheckLivenessMethod[] = "CheckLiveness"; const char kComponentUpdaterServiceName[] = "org.chromium.ComponentUpdaterService"; const char kComponentUpdaterServicePath[] = "/org/chromium/ComponentUpdaterService"; const char kComponentUpdaterServiceInterface[] = "org.chromium.ComponentUpdaterService"; const char kComponentUpdaterServiceLoadComponentMethod[] = "LoadComponent"; const char kComponentUpdaterServiceUnloadComponentMethod[] = "UnloadComponent"; const char kKioskAppServiceName[] = "org.chromium.KioskAppService"; const char kKioskAppServicePath[] = "/org/chromium/KioskAppService"; const char kKioskAppServiceInterface[] = "org.chromium.KioskAppServiceInterface"; // Methods const char kKioskAppServiceGetRequiredPlatformVersionMethod[] = "GetRequiredPlatformVersion"; const char kDisplayServiceName[] = "org.chromium.DisplayService"; const char kDisplayServicePath[] = "/org/chromium/DisplayService"; const char kDisplayServiceInterface[] = "org.chromium.DisplayServiceInterface"; // Methods const char kDisplayServiceSetPowerMethod[] = "SetPower"; const char kDisplayServiceSetSoftwareDimmingMethod[] = "SetSoftwareDimming"; const char kDisplayServiceTakeOwnershipMethod[] = "TakeOwnership"; const char kDisplayServiceReleaseOwnershipMethod[] = "ReleaseOwnership"; constexpr char kVirtualFileRequestServiceName[] = "org.chromium.VirtualFileRequestService"; constexpr char kVirtualFileRequestServicePath[] = "/org/chromium/VirtualFileRequestService"; constexpr char kVirtualFileRequestServiceInterface[] = "org.chromium.VirtualFileRequestService"; // Methods constexpr char kVirtualFileRequestServiceHandleReadRequestMethod[] = "HandleReadRequest"; constexpr char kVirtualFileRequestServiceHandleIdReleasedMethod[] = "HandleIdReleased"; const char kChromeFeaturesServiceName[] = "org.chromium.ChromeFeaturesService"; const char kChromeFeaturesServicePath[] = "/org/chromium/ChromeFeaturesService"; const char kChromeFeaturesServiceInterface[] = "org.chromium.ChromeFeaturesServiceInterface"; // Methods const char kChromeFeaturesServiceIsCrostiniEnabledMethod[] = "IsCrostiniEnabled"; } // namespace chromeos namespace cromo { // cromo D-Bus service identifiers const char kCromoServiceName[] = "org.chromium.ModemManager"; const char kCromoServicePath[] = "/org/chromium/ModemManager"; // cromo D-Bus interfaces const char kModemInterface[] = "org.freedesktop.ModemManager.Modem"; const char kModemSimpleInterface[] = "org.freedesktop.ModemManager.Modem.Simple"; const char kModemCdmaInterface[] = "org.freedesktop.ModemManager.Modem.Cdma"; const char kModemGsmInterface[] = "org.freedesktop.ModemManager.Modem.Gsm"; const char kModemGsmCardInterface[] = "org.freedesktop.ModemManager.Modem.Gsm.Card"; const char kModemGsmNetworkInterface[] = "org.freedesktop.ModemManager.Modem.Gsm.Network"; const char kModemGobiInterface[] = "org.chromium.ModemManager.Modem.Gobi"; } // namespace cromo namespace media_perception { const char kMediaPerceptionServiceName[] = "org.chromium.MediaPerception"; const char kMediaPerceptionServicePath[] = "/org/chromium/MediaPerception"; const char kMediaPerceptionInterface[] = "org.chromium.MediaPerception"; const char kStateFunction[] = "State"; const char kGetDiagnosticsFunction[] = "GetDiagnostics"; const char kDetectionSignal[] = "MediaPerceptionDetection"; } // namespace media_perception namespace modemmanager { // ModemManager D-Bus service identifiers const char kModemManagerSMSInterface[] = "org.freedesktop.ModemManager.Modem.Gsm.SMS"; // ModemManager function names. const char kSMSGetFunction[] = "Get"; const char kSMSDeleteFunction[] = "Delete"; const char kSMSListFunction[] = "List"; // ModemManager monitored signals const char kSMSReceivedSignal[] = "SmsReceived"; // ModemManager1 interfaces and signals // The canonical source for these constants is: // /usr/include/ModemManager/ModemManager-names.h const char kModemManager1ServiceName[] = "org.freedesktop.ModemManager1"; const char kModemManager1ServicePath[] = "/org/freedesktop/ModemManager1"; const char kModemManager1ModemInterface[] = "org.freedesktop.ModemManager1.Modem"; const char kModemManager1MessagingInterface[] = "org.freedesktop.ModemManager1.Modem.Messaging"; const char kModemManager1SmsInterface[] = "org.freedesktop.ModemManager1.Sms"; const char kSMSAddedSignal[] = "Added"; } // namespace modemmanager namespace wimax_manager { // WiMaxManager D-Bus service identifiers const char kWiMaxManagerServiceName[] = "org.chromium.WiMaxManager"; const char kWiMaxManagerServicePath[] = "/org/chromium/WiMaxManager"; const char kWiMaxManagerServiceError[] = "org.chromium.WiMaxManager.Error"; const char kWiMaxManagerInterface[] = "org.chromium.WiMaxManager"; const char kWiMaxManagerDeviceInterface[] = "org.chromium.WiMaxManager.Device"; const char kWiMaxManagerNetworkInterface[] = "org.chromium.WiMaxManager.Network"; const char kDeviceObjectPathPrefix[] = "/org/chromium/WiMaxManager/Device/"; const char kNetworkObjectPathPrefix[] = "/org/chromium/WiMaxManager/Network/"; const char kDevicesProperty[] = "Devices"; const char kNetworksProperty[] = "Networks"; const char kEAPAnonymousIdentity[] = "EAPAnonymousIdentity"; const char kEAPUserIdentity[] = "EAPUserIdentity"; const char kEAPUserPassword[] = "EAPUserPassword"; enum DeviceStatus { kDeviceStatusUninitialized, kDeviceStatusDisabled, kDeviceStatusReady, kDeviceStatusScanning, kDeviceStatusConnecting, kDeviceStatusConnected }; } // namespace wimax_manager namespace bluetooth_plugin { // Service identifiers for the plugin interface added to the /org/bluez object. const char kBluetoothPluginServiceName[] = "org.bluez"; const char kBluetoothPluginInterface[] = "org.chromium.Bluetooth"; // Bluetooth plugin properties. const char kSupportsLEServices[] = "SupportsLEServices"; const char kSupportsConnInfo[] = "SupportsConnInfo"; } // namespace bluetooth_plugin namespace bluetooth_plugin_device { // Service identifiers for the plugin interface added to Bluetooth Device // objects. const char kBluetoothPluginServiceName[] = "org.bluez"; const char kBluetoothPluginInterface[] = "org.chromium.BluetoothDevice"; // Bluetooth Device plugin methods. const char kGetConnInfo[] = "GetConnInfo"; const char kSetLEConnectionParameters[] = "SetLEConnectionParameters"; // Valid connection parameters that can be passed to the // SetLEConnectionParameters API as dictionary keys. const char kLEConnectionParameterMinimumConnectionInterval[] = "MinimumConnectionInterval"; const char kLEConnectionParameterMaximumConnectionInterval[] = "MaximumConnectionInterval"; } // namespace bluetooth_plugin_device namespace bluetooth_adapter { // Bluetooth Adapter service identifiers. const char kBluetoothAdapterServiceName[] = "org.bluez"; const char kBluetoothAdapterInterface[] = "org.bluez.Adapter1"; // Bluetooth Adapter methods. const char kStartDiscovery[] = "StartDiscovery"; const char kSetDiscoveryFilter[] = "SetDiscoveryFilter"; const char kStopDiscovery[] = "StopDiscovery"; const char kPauseDiscovery[] = "PauseDiscovery"; const char kUnpauseDiscovery[] = "UnpauseDiscovery"; const char kRemoveDevice[] = "RemoveDevice"; const char kCreateServiceRecord[] = "CreateServiceRecord"; const char kRemoveServiceRecord[] = "RemoveServiceRecord"; // Bluetooth Adapter properties. const char kAddressProperty[] = "Address"; const char kNameProperty[] = "Name"; const char kAliasProperty[] = "Alias"; const char kClassProperty[] = "Class"; const char kPoweredProperty[] = "Powered"; const char kDiscoverableProperty[] = "Discoverable"; const char kPairableProperty[] = "Pairable"; const char kPairableTimeoutProperty[] = "PairableTimeout"; const char kDiscoverableTimeoutProperty[] = "DiscoverableTimeout"; const char kDiscoveringProperty[] = "Discovering"; const char kUUIDsProperty[] = "UUIDs"; const char kModaliasProperty[] = "Modalias"; // Bluetooth Adapter errors. const char kErrorNotReady[] = "org.bluez.Error.NotReady"; const char kErrorFailed[] = "org.bluez.Error.Failed"; const char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; // Bluetooth Adapter parameters supplied to SetDiscoveryFilter request. const char kDiscoveryFilterParameterUUIDs[] = "UUIDs"; const char kDiscoveryFilterParameterRSSI[] = "RSSI"; const char kDiscoveryFilterParameterPathloss[] = "Pathloss"; const char kDiscoveryFilterParameterTransport[] = "Transport"; } // namespace bluetooth_adapter namespace bluetooth_agent_manager { // Bluetooth Agent Manager service indentifiers const char kBluetoothAgentManagerServiceName[] = "org.bluez"; const char kBluetoothAgentManagerServicePath[] = "/org/bluez"; const char kBluetoothAgentManagerInterface[] = "org.bluez.AgentManager1"; // Bluetooth Agent Manager methods. const char kRegisterAgent[] = "RegisterAgent"; const char kUnregisterAgent[] = "UnregisterAgent"; const char kRequestDefaultAgent[] = "RequestDefaultAgent"; // Bluetooth capabilities. const char kNoInputNoOutputCapability[] = "NoInputNoOutput"; const char kDisplayOnlyCapability[] = "DisplayOnly"; const char kKeyboardOnlyCapability[] = "KeyboardOnly"; const char kDisplayYesNoCapability[] = "DisplayYesNo"; const char kKeyboardDisplayCapability[] = "KeyboardDisplay"; // Bluetooth Agent Manager errors. const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; } // namespace bluetooth_agent_manager namespace bluetooth_agent { // Bluetooth Agent service indentifiers const char kBluetoothAgentInterface[] = "org.bluez.Agent1"; // Bluetooth Agent methods. const char kRelease[] = "Release"; const char kRequestPinCode[] = "RequestPinCode"; const char kDisplayPinCode[] = "DisplayPinCode"; const char kRequestPasskey[] = "RequestPasskey"; const char kDisplayPasskey[] = "DisplayPasskey"; const char kRequestConfirmation[] = "RequestConfirmation"; const char kRequestAuthorization[] = "RequestAuthorization"; const char kAuthorizeService[] = "AuthorizeService"; const char kCancel[] = "Cancel"; // Bluetooth Agent errors. const char kErrorRejected[] = "org.bluez.Error.Rejected"; const char kErrorCanceled[] = "org.bluez.Error.Canceled"; } // namespace bluetooth_agent namespace bluetooth_device { // Bluetooth Device service identifiers. const char kBluetoothDeviceServiceName[] = "org.bluez"; const char kBluetoothDeviceInterface[] = "org.bluez.Device1"; // Bluetooth Device methods. const char kConnect[] = "Connect"; const char kDisconnect[] = "Disconnect"; const char kConnectProfile[] = "ConnectProfile"; const char kDisconnectProfile[] = "DisconnectProfile"; const char kPair[] = "Pair"; const char kCancelPairing[] = "CancelPairing"; const char kGetServiceRecords[] = "GetServiceRecords"; // Bluetooth Device properties. const char kAddressProperty[] = "Address"; const char kNameProperty[] = "Name"; const char kIconProperty[] = "Icon"; const char kClassProperty[] = "Class"; const char kTypeProperty[] = "Type"; const char kAppearanceProperty[] = "Appearance"; const char kUUIDsProperty[] = "UUIDs"; const char kPairedProperty[] = "Paired"; const char kConnectedProperty[] = "Connected"; const char kTrustedProperty[] = "Trusted"; const char kBlockedProperty[] = "Blocked"; const char kAliasProperty[] = "Alias"; const char kAdapterProperty[] = "Adapter"; const char kLegacyPairingProperty[] = "LegacyPairing"; const char kModaliasProperty[] = "Modalias"; const char kRSSIProperty[] = "RSSI"; const char kTxPowerProperty[] = "TxPower"; const char kManufacturerDataProperty[] = "ManufacturerData"; const char kServiceDataProperty[] = "ServiceData"; const char kGattServicesProperty[] = "GattServices"; // DEPRECATED const char kServicesResolvedProperty[] = "ServicesResolved"; const char kAdvertisingDataFlagsProperty[] = "AdvertisingFlags"; // Bluetooth Device errors. const char kErrorNotReady[] = "org.bluez.Error.NotReady"; const char kErrorFailed[] = "org.bluez.Error.Failed"; const char kErrorInProgress[] = "org.bluez.Error.InProgress"; const char kErrorAlreadyConnected[] = "org.bluez.Error.AlreadyConnected"; const char kErrorNotConnected[] = "org.bluez.Error.NotConnected"; const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; // Undocumented errors that we know BlueZ returns for Bluetooth Device methods. const char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; const char kErrorAuthenticationCanceled[] = "org.bluez.Error.AuthenticationCanceled"; const char kErrorAuthenticationFailed[] = "org.bluez.Error.AuthenticationFailed"; const char kErrorAuthenticationRejected[] = "org.bluez.Error.AuthenticationRejected"; const char kErrorAuthenticationTimeout[] = "org.bluez.Error.AuthenticationTimeout"; const char kErrorConnectionAttemptFailed[] = "org.bluez.Error.ConnectionAttemptFailed"; } // namespace bluetooth_device namespace bluetooth_gatt_characteristic { // Bluetooth GATT Characteristic service identifiers. The service name is used // only for characteristic objects hosted by bluetoothd. const char kBluetoothGattCharacteristicServiceName[] = "org.bluez"; const char kBluetoothGattCharacteristicInterface[] = "org.bluez.GattCharacteristic1"; // Bluetooth GATT Characteristic methods. const char kReadValue[] = "ReadValue"; const char kWriteValue[] = "WriteValue"; const char kStartNotify[] = "StartNotify"; const char kStopNotify[] = "StopNotify"; // Bluetooth GATT Characteristic signals. const char kValueUpdatedSignal[] = "ValueUpdated"; // Possible keys for option dict used in ReadValue and WriteValue. const char kOptionOffset[] = "offset"; const char kOptionDevice[] = "device"; // Bluetooth GATT Characteristic properties. const char kUUIDProperty[] = "UUID"; const char kServiceProperty[] = "Service"; const char kValueProperty[] = "Value"; const char kFlagsProperty[] = "Flags"; const char kNotifyingProperty[] = "Notifying"; const char kDescriptorsProperty[] = "Descriptors"; // Possible values for Bluetooth GATT Characteristic "Flags" property. const char kFlagBroadcast[] = "broadcast"; const char kFlagRead[] = "read"; const char kFlagWriteWithoutResponse[] = "write-without-response"; const char kFlagWrite[] = "write"; const char kFlagNotify[] = "notify"; const char kFlagIndicate[] = "indicate"; const char kFlagAuthenticatedSignedWrites[] = "authenticated-signed-writes"; const char kFlagExtendedProperties[] = "extended-properties"; const char kFlagReliableWrite[] = "reliable-write"; const char kFlagWritableAuxiliaries[] = "writable-auxiliaries"; const char kFlagEncryptRead[] = "encrypt-read"; const char kFlagEncryptWrite[] = "encrypt-write"; const char kFlagEncryptAuthenticatedRead[] = "encrypt-authenticated-read"; const char kFlagEncryptAuthenticatedWrite[] = "encrypt-authenticated-write"; } // namespace bluetooth_gatt_characteristic namespace bluetooth_gatt_descriptor { // Bluetooth GATT Descriptor service identifiers. The service name is used // only for descriptor objects hosted by bluetoothd. const char kBluetoothGattDescriptorServiceName[] = "org.bluez"; const char kBluetoothGattDescriptorInterface[] = "org.bluez.GattDescriptor1"; // Bluetooth GATT Descriptor methods. const char kReadValue[] = "ReadValue"; const char kWriteValue[] = "WriteValue"; // Possible keys for option dict used in ReadValue and WriteValue. const char kOptionOffset[] = "offset"; const char kOptionDevice[] = "device"; // Bluetooth GATT Descriptor properties. const char kUUIDProperty[] = "UUID"; const char kCharacteristicProperty[] = "Characteristic"; const char kValueProperty[] = "Value"; const char kFlagsProperty[] = "Flags"; // Possible values for Bluetooth GATT Descriptor "Flags" property. const char kFlagRead[] = "read"; const char kFlagWrite[] = "write"; const char kFlagEncryptRead[] = "encrypt-read"; const char kFlagEncryptWrite[] = "encrypt-write"; const char kFlagEncryptAuthenticatedRead[] = "encrypt-authenticated-read"; const char kFlagEncryptAuthenticatedWrite[] = "encrypt-authenticated-write"; } // namespace bluetooth_gatt_descriptor namespace bluetooth_gatt_manager { // Bluetooth GATT Manager service identifiers. const char kBluetoothGattManagerServiceName[] = "org.bluez"; const char kBluetoothGattManagerInterface[] = "org.bluez.GattManager1"; // Bluetooth GATT Manager methods. const char kRegisterApplication[] = "RegisterApplication"; const char kUnregisterApplication[] = "UnregisterApplication"; const char kRegisterService[] = "RegisterService"; const char kUnregisterService[] = "UnregisterService"; // Bluetooth GATT Manager errors. const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; } // namespace bluetooth_gatt_manager namespace bluetooth_gatt_service { // Bluetooth GATT Service service identifiers. The service name is used // only for service objects hosted by bluetoothd. const char kBluetoothGattServiceServiceName[] = "org.bluez"; const char kBluetoothGattServiceInterface[] = "org.bluez.GattService1"; // Bluetooth GATT Service properties. const char kUUIDProperty[] = "UUID"; const char kDeviceProperty[] = "Device"; const char kPrimaryProperty[] = "Primary"; const char kIncludesProperty[] = "Includes"; const char kCharacteristicsProperty[] = "Characteristics"; // Bluetooth GATT Service errors. const char kErrorFailed[] = "org.bluez.Error.Failed"; const char kErrorInProgress[] = "org.bluez.Error.InProgress"; const char kErrorInvalidValueLength[] = "org.bluez.Error.InvalidValueLength"; const char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; const char kErrorNotPaired[] = "org.bluez.Error.NotPaired"; const char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; const char kErrorReadNotPermitted[] = "org.bluez.Error.ReadNotPermitted"; const char kErrorWriteNotPermitted[] = "org.bluez.Error.WriteNotPermitted"; } // namespace bluetooth_gatt_service namespace bluetooth_input { // Bluetooth Input service identifiers. const char kBluetoothInputServiceName[] = "org.bluez"; const char kBluetoothInputInterface[] = "org.bluez.Input1"; // Bluetooth Input properties. const char kReconnectModeProperty[] = "ReconnectMode"; // Bluetooth Input property values. const char kNoneReconnectModeProperty[] = "none"; const char kHostReconnectModeProperty[] = "host"; const char kDeviceReconnectModeProperty[] = "device"; const char kAnyReconnectModeProperty[] = "any"; } // namespace bluetooth_input namespace bluetooth_media { // Bluetooth Media service identifiers const char kBluetoothMediaServiceName[] = "org.bluez"; const char kBluetoothMediaInterface[] = "org.bluez.Media1"; // Bluetooth Media methods const char kRegisterEndpoint[] = "RegisterEndpoint"; const char kUnregisterEndpoint[] = "UnregisterEndpoint"; const char kRegisterPlayer[] = "RegisterPlayer"; const char kUnregisterPlayer[] = "UnregisterPlayer"; // Bluetooth Media errors const char kErrorFailed[] = "org.bluez.Error.Failed"; const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; const char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; } // namespace bluetooth_media namespace bluetooth_media_endpoint { // Bluetooth Media Endpoint service identifiers const char kBluetoothMediaEndpointServiceName[] = "org.bluez"; const char kBluetoothMediaEndpointInterface[] = "org.bluez.MediaEndpoint1"; // Bluetooth Media Endpoint methods const char kSetConfiguration[] = "SetConfiguration"; const char kSelectConfiguration[] = "SelectConfiguration"; const char kClearConfiguration[] = "ClearConfiguration"; const char kRelease[] = "Release"; } // namespace bluetooth_media_endpoint namespace bluetooth_media_transport { // Bluetooth Media Transport service identifiers const char kBluetoothMediaTransportServiceName[] = "org.bluez"; const char kBluetoothMediaTransportInterface[] = "org.bluez.MediaTransport1"; // Bluetooth Media Transport methods const char kAcquire[] = "Acquire"; const char kTryAcquire[] = "TryAcquire"; const char kRelease[] = "Release"; // Bluetooth Media Transport property names. const char kDeviceProperty[] = "Device"; const char kUUIDProperty[] = "UUID"; const char kCodecProperty[] = "Codec"; const char kConfigurationProperty[] = "Configuration"; const char kStateProperty[] = "State"; const char kDelayProperty[] = "Delay"; const char kVolumeProperty[] = "Volume"; // Possible states for the "State" property const char kStateIdle[] = "idle"; const char kStatePending[] = "pending"; const char kStateActive[] = "active"; // Bluetooth Media Transport errors. const char kErrorFailed[] = "org.bluez.Error.Failed"; const char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; const char kErrorNotAvailable[] = "org.bluez.Error.NotAvailable"; } // namespace bluetooth_media_transport namespace bluetooth_object_manager { // Bluetooth daemon Object Manager service identifiers. const char kBluetoothObjectManagerServiceName[] = "org.bluez"; const char kBluetoothObjectManagerServicePath[] = "/"; } // namespace bluetooth_object_manager namespace bluetooth_profile_manager { // Bluetooth Profile Manager service identifiers. const char kBluetoothProfileManagerServiceName[] = "org.bluez"; const char kBluetoothProfileManagerServicePath[] = "/org/bluez"; const char kBluetoothProfileManagerInterface[] = "org.bluez.ProfileManager1"; // Bluetooth Profile Manager methods. const char kRegisterProfile[] = "RegisterProfile"; const char kUnregisterProfile[] = "UnregisterProfile"; // Bluetooth Profile Manager option names. const char kNameOption[] = "Name"; const char kServiceOption[] = "Service"; const char kRoleOption[] = "Role"; const char kChannelOption[] = "Channel"; const char kPSMOption[] = "PSM"; const char kRequireAuthenticationOption[] = "RequireAuthentication"; const char kRequireAuthorizationOption[] = "RequireAuthorization"; const char kAutoConnectOption[] = "AutoConnect"; const char kServiceRecordOption[] = "ServiceRecord"; const char kVersionOption[] = "Version"; const char kFeaturesOption[] = "Features"; // Bluetooth Profile Manager option values. const char kClientRoleOption[] = "client"; const char kServerRoleOption[] = "server"; // Bluetooth Profile Manager errors. const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; } // namespace bluetooth_profile_manager namespace bluetooth_profile { // Bluetooth Profile service identifiers. const char kBluetoothProfileInterface[] = "org.bluez.Profile1"; // Bluetooth Profile methods. const char kRelease[] = "Release"; const char kNewConnection[] = "NewConnection"; const char kRequestDisconnection[] = "RequestDisconnection"; const char kCancel[] = "Cancel"; // Bluetooth Profile property names. const char kVersionProperty[] = "Version"; const char kFeaturesProperty[] = "Features"; // Bluetooth Profile errors. const char kErrorRejected[] = "org.bluez.Error.Rejected"; const char kErrorCanceled[] = "org.bluez.Error.Canceled"; } // namespace bluetooth_profile namespace bluetooth_advertisement { // Bluetooth LE Advertisement service identifiers. const char kBluetoothAdvertisementServiceName[] = "org.bluez"; const char kBluetoothAdvertisementInterface[] = "org.bluez.LEAdvertisement1"; // Bluetooth Advertisement methods. const char kRelease[] = "Release"; // Bluetooth Advertisement properties. const char kManufacturerDataProperty[] = "ManufacturerData"; const char kServiceUUIDsProperty[] = "ServiceUUIDs"; const char kServiceDataProperty[] = "ServiceData"; const char kSolicitUUIDsProperty[] = "SolicitUUIDs"; const char kTypeProperty[] = "Type"; const char kIncludeTxPowerProperty[] = "IncludeTxPower"; // Possible values for the "Type" property. const char kTypeBroadcast[] = "broadcast"; const char kTypePeripheral[] = "peripheral"; } // namespace bluetooth_advertisement namespace bluetooth_advertising_manager { // Bluetooth LE Advertising Manager service identifiers. const char kBluetoothAdvertisingManagerServiceName[] = "org.bluez"; const char kBluetoothAdvertisingManagerInterface[] = "org.bluez.LEAdvertisingManager1"; // Bluetooth LE Advertising Manager methods. const char kRegisterAdvertisement[] = "RegisterAdvertisement"; const char kUnregisterAdvertisement[] = "UnregisterAdvertisement"; const char kSetAdvertisingIntervals[] = "SetAdvertisingIntervals"; const char kResetAdvertising[] = "ResetAdvertising"; // Bluetooth LE Advertising Manager errors. const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists"; const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist"; const char kErrorFailed[] = "org.bluez.Error.Failed"; const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; const char kErrorInvalidLength[] = "org.bluez.Error.InvalidLength"; } // namespace bluetooth_advertising_manager namespace nfc_adapter { // NFC Adapter service identifiers. const char kNfcAdapterServiceName[] = "org.neard"; const char kNfcAdapterInterface[] = "org.neard.Adapter"; // NFC Adapter methods. const char kStartEmulation[] = "StartEmulation"; const char kStartPollLoop[] = "StartPollLoop"; const char kStopEmulation[] = "StopEmulation"; const char kStopPollLoop[] = "StopPollLoop"; // NFC Adapter signals. const char kTagFoundSignal[] = "TagFound"; const char kTagLostSignal[] = "TagLost"; // NFC Adapter properties. const char kDevicesProperty[] = "Devices"; const char kModeProperty[] = "Mode"; const char kPollingProperty[] = "Polling"; const char kPoweredProperty[] = "Powered"; const char kProtocolsProperty[] = "Protocols"; const char kTagsProperty[] = "Tags"; // NFC Adapter mode values. const char kModeInitiator[] = "Initiator"; const char kModeTarget[] = "Target"; const char kModeIdle[] = "Idle"; } // namespace nfc_adapter namespace nfc_device { // NFC Device service identifiers. const char kNfcDeviceServiceName[] = "org.neard"; const char kNfcDeviceInterface[] = "org.neard.Device"; // NFC Device methods. const char kPush[] = "Push"; // NFC Device properties. const char kRecordsProperty[] = "Records"; } // namespace nfc_device namespace nfc_manager { // NFC Manager service identifiers. const char kNfcManagerServiceName[] = "org.neard"; const char kNfcManagerServicePath[] = "/"; const char kNfcManagerInterface[] = "org.neard.Manager"; // NFC Manager methods. const char kRegisterHandoverAgent[] = "RegisterHandoverAgent"; const char kUnregisterHandoverAgent[] = "UnregisterHandoverAgent"; const char kRegisterNDEFAgent[] = "RegisterNDEFAgent"; const char kUnregisterNDEFAgent[] = "UnregisterNDEFAgent"; // NFC Manager signals. const char kAdapterAddedSignal[] = "AdapterAdded"; const char kAdapterRemovedSignal[] = "AdapterRemoved"; // NFC Manager properties. const char kAdaptersProperty[] = "Adapters"; // NFC Manager handover carrier values. const char kCarrierBluetooth[] = "bluetooth"; const char kCarrierWifi[] = "wifi"; } // namespace nfc_manager namespace nfc_tag { // NFC Tag service identifiers. const char kNfcTagServiceName[] = "org.neard"; const char kNfcTagInterface[] = "org.neard.Tag"; // NFC Tag methods. const char kWrite[] = "Write"; // NFC Tag properties. const char kProtocolProperty[] = "Protocol"; const char kReadOnlyProperty[] = "ReadOnly"; const char kRecordsProperty[] = "Records"; const char kTypeProperty[] = "Type"; // NFC Tag type values. const char kTagType1[] = "Type 1"; const char kTagType2[] = "Type 2"; const char kTagType3[] = "Type 3"; const char kTagType4[] = "Type 4"; } // namespace nfc_tag namespace nfc_record { // NFC Record service identifiers. const char kNfcRecordServiceName[] = "org.neard"; const char kNfcRecordInterface[] = "org.neard.Record"; // NFC Record properties. const char kTypeProperty[] = "Type"; const char kEncodingProperty[] = "Encoding"; const char kLanguageProperty[] = "Language"; const char kRepresentationProperty[] = "Representation"; const char kUriProperty[] = "URI"; const char kMimeTypeProperty[] = "MIMEType"; const char kSizeProperty[] = "Size"; const char kActionProperty[] = "Action"; // NFC Record type values. const char kTypeSmartPoster[] = "SmartPoster"; const char kTypeText[] = "Text"; const char kTypeUri[] = "URI"; const char kTypeHandoverRequest[] = "HandoverRequest"; const char kTypeHandoverSelect[] = "HandoverSelect"; const char kTypeHandoverCarrier[] = "HandoverCarrier"; // NFC Record encoding values. const char kEncodingUtf8[] = "UTF-8"; const char kEncodingUtf16[] = "UTF-16"; } // namespace nfc_record namespace nfc_handover_agent { // NFC Handover Agent service identifiers. // TODO(armansito): Add the correct service name once the HandoverAgent feature // is fully implemented. const char kNfcHandoverAgentServiceName[] = ""; const char kNfcHandoverInterface[] = "org.neard.HandoverAgent"; // NFC Handover Agent methods. const char kRequestOOB[] = "RequestOOB"; const char kPushOOB[] = "PushOOB"; const char kRelease[] = "Release"; // NFC Handover Agent properties. const char kEIRProperty[] = "EIR"; const char kNokiaDotComBtProperty[] = "nokia.com:bt"; const char kWSCProperty[] = "WSC"; const char kStateProperty[] = "State"; } // namespace nfc_handover_agent namespace nfc_ndef_agent { // NFC NDEF Agent service identifiers. // TODO(armansito): Add the correct service name once the NDEFAgent feature // is fully implemented. const char kNfcNdefAgentServiceName[] = ""; const char kNfcNdefAgentInterface[] = "org.neard.NDEFAgent"; // NFC NDEF Agent methods. const char kGetNDEF[] = "GetNDEF"; const char kRelease[] = "Release"; // NFC NDEF properties. const char kNDEFProperty[] = "NDEF"; const char kRecordProperty[] = "Record"; } // namespace nfc_ndef_agent namespace nfc_common { // NFC Adapter/Tag protocol values. const char kProtocolFelica[] = "Felica"; const char kProtocolMifare[] = "MIFARE"; const char kProtocolJewel[] = "Jewel"; const char kProtocolIsoDep[] = "ISO-DEP"; const char kProtocolNfcDep[] = "NFC-DEP"; // Common methods for NFC property access and signals. const char kGetProperties[] = "GetProperties"; const char kSetProperty[] = "SetProperty"; const char kPropertyChangedSignal[] = "PropertyChanged"; } // namespace nfc_common namespace nfc_error { // NFC errors. const char kAlreadyExists[] = "org.neard.Error.AlreadyExists"; const char kDoesNotExist[] = "org.neard.Error.DoesNotExist"; const char kFailed[] = "org.neard.Error.Failed"; const char kInProgress[] = "org.neard.Error.InProgress"; const char kInvalidArguments[] = "org.neard.Error.InvalidArguments"; const char kNotReady[] = "org.neard.Error.NotReady"; const char kNotSupported[] = "org.neard.Error.NotSupported"; const char kPermissionDenied[] = "org.neard.Error.PermissionDenied"; // NFC Handover Agent errors. const char kHandoverAgentFailed[] = "org.neard.HandoverAgent.Error.Failed"; const char kHandoverAgentInProgress[] = "org.neard.HandoverAgent.Error.InProgress"; } // namespace nfc_error namespace mtpd { const char kMtpdInterface[] = "org.chromium.Mtpd"; const char kMtpdServicePath[] = "/org/chromium/Mtpd"; const char kMtpdServiceName[] = "org.chromium.Mtpd"; const char kMtpdServiceError[] = "org.chromium.Mtpd.Error"; // Methods. const char kEnumerateStorages[] = "EnumerateStorages"; const char kGetStorageInfo[] = "GetStorageInfo"; const char kGetStorageInfoFromDevice[] = "GetStorageInfoFromDevice"; const char kOpenStorage[] = "OpenStorage"; const char kCloseStorage[] = "CloseStorage"; const char kReadDirectoryEntryIds[] = "ReadDirectoryEntryIds"; const char kGetFileInfo[] = "GetFileInfo"; const char kReadFileChunk[] = "ReadFileChunk"; const char kCopyFileFromLocal[] = "CopyFileFromLocal"; const char kDeleteObject[] = "DeleteObject"; const char kRenameObject[] = "RenameObject"; const char kCreateDirectory[] = "CreateDirectory"; // Signals. const char kMTPStorageAttached[] = "MTPStorageAttached"; const char kMTPStorageDetached[] = "MTPStorageDetached"; // For FileEntry struct: const uint32_t kInvalidFileId = 0xffffffff; // For OpenStorage method: const char kReadOnlyMode[] = "ro"; const char kReadWriteMode[] = "rw"; // For GetFileInfo() method: // The id of the root node in a storage, as defined by the PTP/MTP standards. // Use this when referring to the root node in the context of GetFileInfo(). const uint32_t kRootFileId = 0; } // namespace mtpd namespace system_clock { const char kSystemClockInterface[] = "org.torproject.tlsdate"; const char kSystemClockServicePath[] = "/org/torproject/tlsdate"; const char kSystemClockServiceName[] = "org.torproject.tlsdate"; // Methods. const char kSystemClockCanSet[] = "CanSetTime"; const char kSystemClockSet[] = "SetTime"; const char kSystemLastSyncInfo[] = "LastSyncInfo"; // Signals. const char kSystemClockUpdated[] = "TimeUpdated"; } // namespace system_clock namespace cras { const char kCrasServicePath[] = "/org/chromium/cras"; const char kCrasServiceName[] = "org.chromium.cras"; const char kCrasControlInterface[] = "org.chromium.cras.Control"; // Methods. const char kSetOutputVolume[] = "SetOutputVolume"; const char kSetOutputNodeVolume[] = "SetOutputNodeVolume"; const char kSwapLeftRight[] = "SwapLeftRight"; const char kSetOutputMute[] = "SetOutputMute"; const char kSetOutputUserMute[] = "SetOutputUserMute"; const char kSetSuspendAudio[] = "SetSuspendAudio"; const char kSetInputGain[] = "SetInputGain"; const char kSetInputNodeGain[] = "SetInputNodeGain"; const char kSetInputMute[] = "SetInputMute"; const char kGetVolumeState[] = "GetVolumeState"; const char kGetDefaultOutputBufferSize[] = "GetDefaultOutputBufferSize"; const char kGetNodes[] = "GetNodes"; const char kSetActiveOutputNode[] = "SetActiveOutputNode"; const char kSetActiveInputNode[] = "SetActiveInputNode"; const char kAddActiveOutputNode[] = "AddActiveOutputNode"; const char kAddActiveInputNode[] = "AddActiveInputNode"; const char kRemoveActiveOutputNode[] = "RemoveActiveOutputNode"; const char kRemoveActiveInputNode[] = "RemoveActiveInputNode"; const char kGetNumberOfActiveStreams[] = "GetNumberOfActiveStreams"; const char kGetNumberOfActiveInputStreams[] = "GetNumberOfActiveInputStreams"; const char kGetNumberOfActiveOutputStreams[] = "GetNumberOfActiveOutputStreams"; const char kSetGlobalOutputChannelRemix[] = "SetGlobalOutputChannelRemix"; // Names of properties returned by GetNodes() const char kIsInputProperty[] = "IsInput"; const char kIdProperty[] = "Id"; const char kTypeProperty[] = "Type"; const char kNameProperty[] = "Name"; const char kDeviceNameProperty[] = "DeviceName"; const char kActiveProperty[] = "Active"; const char kPluggedTimeProperty[] = "PluggedTime"; const char kMicPositionsProperty[] = "MicPositions"; const char kStableDeviceIdProperty[] = "StableDeviceId"; const char kStableDeviceIdNewProperty[] = "StableDeviceIdNew"; // Signals. const char kOutputVolumeChanged[] = "OutputVolumeChanged"; const char kOutputMuteChanged[] = "OutputMuteChanged"; const char kOutputNodeVolumeChanged[] = "OutputNodeVolumeChanged"; const char kNodeLeftRightSwappedChanged[] = "NodeLeftRightSwappedChanged"; const char kInputGainChanged[] = "InputGainChanged"; const char kInputMuteChanged[] = "InputMuteChanged"; const char kNodesChanged[] = "NodesChanged"; const char kActiveOutputNodeChanged[] = "ActiveOutputNodeChanged"; const char kActiveInputNodeChanged[] = "ActiveInputNodeChanged"; const char kNumberOfActiveStreamsChanged[] = "NumberOfActiveStreamsChanged"; const char kHotwordTriggered[] = "HotwordTriggered"; } // namespace cras namespace feedback { const char kFeedbackServicePath[] = "/org/chromium/feedback"; const char kFeedbackServiceName[] = "org.chromium.feedback"; // Methods. const char kSendFeedback[] = "SendFeedback"; } // namespace feedback namespace easy_unlock { const char kEasyUnlockServicePath[] = "/org/chromium/EasyUnlock"; const char kEasyUnlockServiceName[] = "org.chromium.EasyUnlock"; const char kEasyUnlockServiceInterface[] = "org.chromium.EasyUnlock"; // Values supplied as enrcryption type to CreateSecureMessage and // UnwrapSecureMessage methods. const char kEncryptionTypeNone[] = "NONE"; const char kEncryptionTypeAES256CBC[] = "AES_256_CBC"; // Values supplied as signature type to CreateSecureMessage and // UnwrapSecureMessage methods. const char kSignatureTypeECDSAP256SHA256[] = "ECDSA_P256_SHA256"; const char kSignatureTypeHMACSHA256[] = "HMAC_SHA256"; // Values supplied as key algorithm to WrapPublicKey method. const char kKeyAlgorithmRSA[] = "RSA"; const char kKeyAlgorithmECDSA[] = "ECDSA"; // Methods const char kPerformECDHKeyAgreementMethod[] = "PerformECDHKeyAgreement"; const char kWrapPublicKeyMethod[] = "WrapPublicKey"; const char kGenerateEcP256KeyPairMethod[] = "GenerateEcP256KeyPair"; const char kCreateSecureMessageMethod[] = "CreateSecureMessage"; const char kUnwrapSecureMessageMethod[] = "UnwrapSecureMessage"; } // namespace easy_unlock namespace arc_oemcrypto { const char kArcOemCryptoServiceInterface[] = "org.chromium.ArcOemCrypto"; const char kArcOemCryptoServiceName[] = "org.chromium.ArcOemCrypto"; const char kArcOemCryptoServicePath[] = "/org/chromium/ArcOemCrypto"; // Methods const char kBootstrapMojoConnection[] = "BootstrapMojoConnection"; } // namespace arc_oemcrypto namespace midis { constexpr char kMidisServiceName[] = "org.chromium.Midis"; constexpr char kMidisServicePath[] = "/org/chromium/Midis"; constexpr char kMidisInterfaceName[] = "org.chromium.Midis"; // Methods constexpr char kBootstrapMojoConnectionMethod[] = "BootstrapMojoConnection"; } // namespace midis namespace virtual_file_provider { constexpr char kVirtualFileProviderServiceName[] = "org.chromium.VirtualFileProvider"; constexpr char kVirtualFileProviderServicePath[] = "/org/chromium/VirtualFileProvider"; constexpr char kVirtualFileProviderInterface[] = "org.chromium.VirtualFileProvider"; // Methods constexpr char kOpenFileMethod[] = "OpenFile"; } // namespace virtual_file_provider namespace arc { namespace obb_mounter { // D-Bus service constants. constexpr char kArcObbMounterInterface[] = "org.chromium.ArcObbMounterInterface"; constexpr char kArcObbMounterServicePath[] = "/org/chromium/ArcObbMounter"; constexpr char kArcObbMounterServiceName[] = "org.chromium.ArcObbMounter"; // Method names. constexpr char kMountObbMethod[] = "MountObb"; constexpr char kUnmountObbMethod[] = "UnmountObb"; } // namespace obb_mounter } // namespace arc #endif // SYSTEM_API_DBUS_SERVICE_CONSTANTS_H_