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
|
// Copyright 2022 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_AUDIO_DBUS_CONSTANTS_H_
#define SYSTEM_API_DBUS_AUDIO_DBUS_CONSTANTS_H_
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 kSetDisplayRotation[] = "SetDisplayRotation";
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 kSetHotwordModel[] = "SetHotwordModel";
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 kGetNumberOfInputStreamsWithPermission[] =
"GetNumberOfInputStreamsWithPermission";
const char kGetNumberOfNonChromeOutputStreams[] =
"GetNumberOfNonChromeOutputStreams";
const char kIsAudioOutputActive[] = "IsAudioOutputActive";
const char kSetGlobalOutputChannelRemix[] = "SetGlobalOutputChannelRemix";
const char kGetSystemAecSupported[] = "GetSystemAecSupported";
const char kGetSystemAecGroupId[] = "GetSystemAecGroupId";
const char kGetSystemNsSupported[] = "GetSystemNsSupported";
const char kGetSystemAgcSupported[] = "GetSystemAgcSupported";
const char kSetPlayerPlaybackStatus[] = "SetPlayerPlaybackStatus";
const char kSetPlayerIdentity[] = "SetPlayerIdentity";
const char kSetPlayerPosition[] = "SetPlayerPosition";
const char kSetPlayerMetadata[] = "SetPlayerMetadata";
const char kSetNextHandsfreeProfile[] = "SetNextHandsfreeProfile";
const char kSetFixA2dpPacketSize[] = "SetFixA2dpPacketSize";
const char kResendBluetoothBattery[] = "ResendBluetoothBattery";
const char kGetDeprioritizeBtWbsMic[] = "GetDeprioritizeBtWbsMic";
const char kGetVoiceIsolationUIAppearance[] = "GetVoiceIsolationUIAppearance";
const char kSetVoiceIsolationUIEnabled[] = "SetVoiceIsolationUIEnabled";
const char kGetAudioEffectDlcs[] = "GetAudioEffectDlcs";
const char kSetNoiseCancellationEnabled[] = "SetNoiseCancellationEnabled";
const char kIsNoiseCancellationSupported[] = "IsNoiseCancellationSupported";
const char kSetStyleTransferEnabled[] = "SetStyleTransferEnabled";
const char kIsStyleTransferSupported[] = "IsStyleTransferSupported";
const char kSetFlossEnabled[] = "SetFlossEnabled";
const char kSetSpeakOnMuteDetection[] = "SetSpeakOnMuteDetection";
const char kSpeakOnMuteDetectionEnabled[] = "SpeakOnMuteDetectionEnabled";
const char kSetForceRespectUiGains[] = "SetForceRespectUiGains";
const char kGetNumStreamIgnoreUiGains[] = "GetNumStreamIgnoreUiGains";
const char kSetHfpMicSrEnabled[] = "SetHfpMicSrEnabled";
const char kIsHfpMicSrSupported[] = "IsHfpMicSrSupported";
const char kGetNumberOfArcStreams[] = "GetNumberOfArcStreams";
const char kSetSpatialAudio[] = "SetSpatialAudio";
const char kIsSpatialAudioSupported[] = "IsSpatialAudioSupported";
// Names of properties returned by GetNodes() and GetNodeInfos()
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 kStableDeviceIdProperty[] = "StableDeviceId";
const char kStableDeviceIdNewProperty[] = "StableDeviceIdNew";
const char kMaxSupportedChannelsProperty[] = "MaxSupportedChannels";
const char kAudioEffectProperty[] = "AudioEffect";
const char kNodeVolumeProperty[] = "NodeVolume";
const char kInputNodeGainProperty[] = "InputNodeGain";
const char kNumberOfVolumeStepsProperty[] = "NumberOfVolumeSteps";
const char kDeviceLastOpenResultProperty[] = "DeviceLastOpenResult";
// The following two properties are optional.
const char kNumberOfUnderrunsProperty[] = "NumberOfUnderruns";
const char kNumberOfSevereUnderrunsProperty[] = "NumberOfSevereUnderruns";
enum AudioEffectType {
EFFECT_TYPE_NONE = 0,
EFFECT_TYPE_NOISE_CANCELLATION = 1 << 0,
EFFECT_TYPE_HFP_MIC_SR = 1 << 1,
EFFECT_TYPE_STYLE_TRANSFER = 1 << 2,
EFFECT_TYPE_BEAMFORMING = 1 << 3,
};
// Screen Rotation in clock-wise degrees.
// This enum corresponds to enum Rotation in chromium ui/display/display.h
enum class DisplayRotation {
ROTATE_0 = 0,
ROTATE_90,
ROTATE_180,
ROTATE_270,
NUM_DISPLAY_ROTATION,
};
// Names of properties returned by
// * method - GetNumberOfInputStreamsWithPermission and
// * signal - NumberOfInputStreamsWithPermissionChanged.
const char kClientType[] = "ClientType";
const char kNumStreamsWithPermission[] = "NumStreamsWithPermission";
// 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 kInputNodeGainChanged[] = "InputNodeGainChanged";
const char kNodesChanged[] = "NodesChanged";
const char kActiveOutputNodeChanged[] = "ActiveOutputNodeChanged";
const char kActiveInputNodeChanged[] = "ActiveInputNodeChanged";
const char kNumberOfActiveStreamsChanged[] = "NumberOfActiveStreamsChanged";
const char kNumberOfInputStreamsWithPermissionChanged[] =
"NumberOfInputStreamsWithPermissionChanged";
const char kNumberOfNonChromeOutputStreamsChanged[] =
"NumberOfNonChromeOutputStreamsChanged";
const char kAudioOutputActiveStateChanged[] = "AudioOutputActiveStateChanged";
const char kHotwordTriggered[] = "HotwordTriggered";
const char kBluetoothBatteryChanged[] = "BluetoothBatteryChanged";
const char kSurveyTrigger[] = "SurveyTrigger";
const char kSpeakOnMuteDetected[] = "SpeakOnMuteDetected";
const char kNumStreamIgnoreUiGainsChanged[] = "NumStreamIgnoreUiGainsChanged";
const char kNumberOfArcStreamsChanged[] = "NumberOfArcStreamsChanged";
const char kAudioEffectUIAppearanceChanged[] = "AudioEffectUIAppearanceChanged";
} // namespace cras
#endif // SYSTEM_API_DBUS_AUDIO_DBUS_CONSTANTS_H_
|