Home
last modified time | relevance | path

Searched refs:volumeLevel (Results 1 – 25 of 53) sorted by relevance

123

/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/policy_test/src/
H A Daudio_policy_unit_test.cpp916 int32_t volumeLevel = 2; variable
929 int32_t volumeLevel = 2; variable
950 int32_t volumeLevel = 2; variable
962 int32_t volumeLevel = 2; variable
975 int32_t volumeLevel = 3; variable
988 int32_t volumeLevel = 3; variable
1001 int32_t volumeLevel = 3; variable
1014 int32_t volumeLevel = 4; variable
1027 int32_t volumeLevel = 4; variable
1040 int32_t volumeLevel = 5; variable
[all …]
/ohos5.0/foundation/multimedia/av_session/avvolumepanel/
H A Davvolumepanel.js27 this.__volumeLevel = new SynchedPropertySimpleOneWayPU(q.volumeLevel, this, 'volumeLevel');
35 if (o.volumeLevel === undefined) {
43 this.__volumeLevel.reset(n.volumeLevel);
56 get volumeLevel() {
59 set volumeLevel(l) {
70 console.info(TAG, `volumechange volumeLevel = ` + this.volumeLevel);
71 this.volumeCallback.send({'volume': this.volumeLevel});
H A Davvolumepanel.ets25 volumeLevel?: number = 0;
33 console.info(TAG, `volumeChange volumeLevel = ` + this.volumeLevel);
34 this.volumeCallback.send({'volume': this.volumeLevel});
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/
H A Daudio_adapter_manager.cpp279 if (volumeLevel == 0 && in SetSystemVolumeLevel()
289 CHECK_AND_RETURN_RET_LOG(volumeLevel >= mimRet && volumeLevel <= maxRet, ERR_OPERATION_FAILED, in SetSystemVolumeLevel()
299 volumeLevel = safeVolume_; in SetSystemVolumeLevel()
336 int32_t volumeLevel = in HandleRingerMode() local
371 int32_t volumeLevel = in SetVolumeDb() local
499 return CalculateVolumeDb(volumeLevel); in GetSystemVolumeDb()
1256 int32_t volumeLevel = in InitRingerMode() local
1740 if (volumeLevel < minVolIndex) { in CalculateVolumeDbNonlinear()
1741 volumeLevel = minVolIndex; in CalculateVolumeDbNonlinear()
1743 if (volumeLevel > maxVolIndex) { in CalculateVolumeDbNonlinear()
[all …]
H A Dvolume_data_maintainer.cpp128 … VolumeDataMaintainer::SaveVolume(DeviceType type, AudioStreamType streamType, int32_t volumeLevel) in SaveVolume() argument
139 ErrCode ret = audioSettingProvider.PutIntValue(volumeKey, volumeLevel, "system"); in SaveVolume()
181 void VolumeDataMaintainer::SetStreamVolume(AudioStreamType streamType, int32_t volumeLevel) in SetStreamVolume() argument
184 SetStreamVolumeInternal(streamType, volumeLevel); in SetStreamVolume()
187 void VolumeDataMaintainer::SetStreamVolumeInternal(AudioStreamType streamType, int32_t volumeLevel) in SetStreamVolumeInternal() argument
190 volumeLevelMap_[streamForVolumeMap] = volumeLevel; in SetStreamVolumeInternal()
H A Daudio_adapter_manager_handler.cpp54 const AudioStreamType &streamType, const int32_t &volumeLevel) in SendSaveVolume() argument
56 auto eventContextObj = std::make_shared<VolumeDataEvent>(deviceType, streamType, volumeLevel); in SendSaveVolume()
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/interface/
H A Diaudio_policy_interface.h49 virtual int32_t SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel) = 0;
96 virtual float CalculateVolumeDb(int32_t volumeLevel) = 0;
124 …virtual float GetSystemVolumeInDb(AudioVolumeType volumeType, int32_t volumeLevel, DeviceType devi…
160 … void HandleSaveVolume(DeviceType deviceType, AudioStreamType streamType, int32_t volumeLevel) = 0;
173 …l int32_t SetDoubleRingVolumeDb(const AudioStreamType &streamType, const int32_t &volumeLevel) = 0;
/ohos5.0/docs/zh-cn/application-dev/reference/apis-audio-kit/
H A Dohos-multimedia-avvolumepanel.md25 AVVolumePanel({volumeLevel?: number, volumeParameter?: AVVolumePanelParameter})
41 |volumeLevel | number | 否 | @Prop | 通过音量面板设置设备音量。该值应介于当前设备音量的最小值和最大值之间。如果该值大于当前设备音量的最大值,则视为设置设备最大音量…
71 volumeLevel: this.volume,
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/manager/
H A Daudio_adapter_manager_handler.h47 …aEvent(const DeviceType &deviceType, const AudioStreamType &streamType, const int32_t &volumeLevel) in VolumeDataEvent()
48 : deviceType_(deviceType), streamType_(streamType), volumeLevel_(volumeLevel) in VolumeDataEvent()
74 …olume(const DeviceType &deviceType, const AudioStreamType &streamType, const int32_t &volumeLevel);
H A Daudio_adapter_manager.h72 int32_t SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel);
117 float CalculateVolumeDb(int32_t volumeLevel);
129 …CalculateVolumeDbNonlinear(AudioStreamType streamType, DeviceType deviceType, int32_t volumeLevel);
139 … float GetSystemVolumeInDb(AudioVolumeType volumeType, int32_t volumeLevel, DeviceType deviceType);
188 void HandleSaveVolume(DeviceType deviceType, AudioStreamType streamType, int32_t volumeLevel);
200 int32_t SetDoubleRingVolumeDb(const AudioStreamType &streamType, const int32_t &volumeLevel);
247 void SaveRingtoneVolumeToLocal(AudioVolumeType volumeType, int32_t volumeLevel);
H A Dvolume_data_maintainer.h63 bool SaveVolume(DeviceType type, AudioStreamType streamType, int32_t volumeLevel);
65 void SetStreamVolume(AudioStreamType streamType, int32_t volumeLevel);
98 void SetStreamVolumeInternal(AudioStreamType streamType, int32_t volumeLevel);
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/client/src/proxy/
H A Daudio_policy_volume_proxy.cpp58 …t32_t AudioPolicyProxy::SetSystemVolumeLevelLegacy(AudioVolumeType volumeType, int32_t volumeLevel) in SetSystemVolumeLevelLegacy() argument
67 data.WriteInt32(volumeLevel); in SetSystemVolumeLevelLegacy()
74 int32_t AudioPolicyProxy::SetSystemVolumeLevel(AudioVolumeType volumeType, int32_t volumeLevel, int… in SetSystemVolumeLevel() argument
83 data.WriteInt32(volumeLevel); in SetSystemVolumeLevel()
223 float AudioPolicyProxy::GetSystemVolumeInDb(AudioVolumeType volumeType, int32_t volumeLevel, Device… in GetSystemVolumeInDb() argument
233 data.WriteInt32(volumeLevel); in GetSystemVolumeInDb()
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/common/include/
H A Daudio_volume.h58 …ystemVolume(int32_t volumeType, const std::string &deviceClass, float volume, int32_t volumeLevel);
115 …SystemVolume(int32_t volumeType, std::string deviceClass, float volume, int32_t volumeLevel, bool … in SystemVolume() argument
117 volumeLevel_(volumeLevel), isMuted_(isMuted) {}; in SystemVolume()
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.11.5/
H A Dchangelogs-multimedia.md49 getSystemVolumeInDb(volumeType: AudioVolumeType, volumeLevel: number, device: DeviceType, callback:…
50 getSystemVolumeInDb(volumeType: AudioVolumeType, volumeLevel: number, device: DeviceType): Promise<…
/ohos5.0/foundation/multimedia/audio_framework/frameworks/js/napi/audiomanager/test/unittest/group_manager_test/
H A DAudioGroupManagerJsUnitTest.js1251 let volumeLevel = 3;
1310 let volumeLevel = 3;
1313 volumeLevel);
1331 let volumeLevel = 3;
1333 let value = audioVolumeGroupManager.getSystemVolumeInDbSync("Invalid type", volumeLevel,
1372 let volumeLevel = 3;
1375 volumeLevel, "Invalid type");
1394 let volumeLevel = 3;
1396 … let value = audioVolumeGroupManager.getSystemVolumeInDbSync(invalidVolumeType, volumeLevel,
1437 let volumeLevel = 3;
[all …]
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/
H A Daudio_policy_server.cpp377 if (volumeLevel < audioPolicyService_.GetMinVolumeLevel(streamType) || in IsVolumeLevelValid()
378 volumeLevel > audioPolicyService_.GetMaxVolumeLevel(streamType)) { in IsVolumeLevelValid()
380 volumeLevel, streamType); in IsVolumeLevelValid()
562 if (!IsVolumeLevelValid(streamType, volumeLevel)) { in SetSystemVolumeLevelLegacy()
566 return SetSystemVolumeLevelInternal(streamType, volumeLevel, false); in SetSystemVolumeLevelLegacy()
579 if (!IsVolumeLevelValid(streamType, volumeLevel)) { in SetSystemVolumeLevel()
698 if (!IsVolumeLevelValid(volumeType, volumeLevel)) { in GetSystemVolumeInDb()
792 streamType, volumeLevel, isUpdateUi); in SetSystemVolumeLevelInternal()
801 audioStreamType, mute, volumeLevel); in SetSystemVolumeLevelInternal()
834 if (volumeLevel == 0 && !mute) { in SetSingleStreamVolume()
[all …]
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/common/src/
H A Daudio_volume.cpp94 int32_t volumeLevel = 0; in GetVolume() local
99 volumeLevel = itSV->second.volumeLevel_; in GetVolume()
115 monitorVolume_[sessionId] = {volumeFloat, volumeLevel}; in GetVolume()
302 …SystemVolume(int32_t volumeType, const std::string &deviceClass, float volume, int32_t volumeLevel) in SetSystemVolume() argument
311 it->second.volumeLevel_ = volumeLevel; in SetSystemVolume()
318 SystemVolume systemVolume(volumeType, deviceClass, volume, volumeLevel, false); in SetSystemVolume()
323 volumeType, deviceClass.c_str(), volume, volumeLevel, systemVolume_.size()); in SetSystemVolume()
/ohos5.0/docs/en/application-dev/reference/apis-audio-kit/
H A Dohos-multimedia-avvolumepanel.md25 AVVolumePanel({volumeLevel?: number, volumeParameter?: AVVolumePanelParameter})
41 |volumeLevel | number | No| @Prop | Target volume. The value must be between the minimum volume and…
71 volumeLevel: this.volume,
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/include/
H A Daudio_policy_server.h102 int32_t SetSystemVolumeLevelLegacy(AudioVolumeType volumeType, int32_t volumeLevel) override;
104 …int32_t SetSystemVolumeLevel(AudioVolumeType volumeType, int32_t volumeLevel, int32_t volumeFlag =…
130 …float GetSystemVolumeInDb(AudioVolumeType volumeType, int32_t volumeLevel, DeviceType deviceType) …
516 …int32_t SetSystemVolumeLevelInternal(AudioStreamType streamType, int32_t volumeLevel, bool isUpdat…
517 …int32_t SetSingleStreamVolume(AudioStreamType streamType, int32_t volumeLevel, bool isUpdateUi, bo…
525 bool IsVolumeLevelValid(AudioStreamType streamType, int32_t volumeLevel);
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.11.5/
H A Dchangelogs-multimedia.md49 getSystemVolumeInDb(volumeType: AudioVolumeType, volumeLevel: number, device: DeviceType, callback:…
50 getSystemVolumeInDb(volumeType: AudioVolumeType, volumeLevel: number, device: DeviceType): Promise<…
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/client/include/
H A Daudio_policy_base.h41 virtual int32_t SetSystemVolumeLevelLegacy(AudioVolumeType volumeType, int32_t volumeLevel) = 0;
43 …virtual int32_t SetSystemVolumeLevel(AudioVolumeType volumeType, int32_t volumeLevel, int32_t volu…
211 …virtual float GetSystemVolumeInDb(AudioVolumeType volumeType, int32_t volumeLevel, DeviceType devi…
H A Daudio_policy_proxy.h37 int32_t SetSystemVolumeLevelLegacy(AudioVolumeType volumeType, int32_t volumeLevel) override;
39 …int32_t SetSystemVolumeLevel(AudioVolumeType volumeType, int32_t volumeLevel, int32_t volumeFlag =…
209 …float GetSystemVolumeInDb(AudioVolumeType volumeType, int32_t volumeLevel, DeviceType deviceType) …
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/ipc/interface/
H A Di_bluetooth_avrcp_tg.h49 … virtual int32_t SetDeviceAbsoluteVolume(const BluetoothRawAddress &addr, int32_t volumeLevel) = 0;
/ohos5.0/foundation/communication/bluetooth/interfaces/inner_api/include/
H A Dbluetooth_avrcp_tg.h285 int32_t SetDeviceAbsoluteVolume(const BluetoothRemoteDevice &device, int32_t volumeLevel);
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/server/include/
H A Dbluetooth_avrcp_tg_server.h55 int32_t SetDeviceAbsoluteVolume(const BluetoothRawAddress &addr, int32_t volumeLevel) override;

123