Home
last modified time | relevance | path

Searched full:volume (Results 1 – 25 of 551) sorted by relevance

12345678910>>...23

/foundation/multimedia/audio_framework/frameworks/js/napi/audiomanager/test/unittest/group_manager_test/
DAudioGroupManagerJsUnitTest.js82 * @tc.desc:verify alarm Volume set successfully
87 let volume = 4;
88 audioVolumeGroupManager.setVolume(ALARM, volume, (err) => {
90 console.error(`Failed to set ALARM volume. ${err}`);
95 console.info('invoked to indicate a successful volume ALARM setting.');
100 console.error(`Failed to obtain ALARM volume. ${err}`);
105 console.info(`get alarm volume is obtained ${value}.`);
106 expect(value).assertEqual(volume);
114 * @tc.desc:Verify whether the abnormal volume setting is successful
119 let volume = -1;
[all …]
/foundation/multimedia/audio_framework/services/audio_service/common/src/
Daudio_volume.cpp84 …AUDIO_DEBUG_LOG("stream volume, sessionId:%{public}u, volume:%{public}f, duck:%{public}f, lowPower… in GetVolume()
89 AUDIO_ERR_LOG("stream volume not exist, sessionId:%{public}u, streamVolumeSize:%{public}zu", in GetVolume()
101 AUDIO_DEBUG_LOG("system volume, volumeType:%{public}d, deviceClass:%{public}s," in GetVolume()
102 " volume:%{public}f, isMuted:%{public}d, systemVolumeSize:%{public}zu", in GetVolume()
105 AUDIO_ERR_LOG("system volume not exist, volumeType:%{public}d, deviceClass:%{public}s," in GetVolume()
126 void AudioVolume::SetHistoryVolume(uint32_t sessionId, float volume) in SetHistoryVolume() argument
128 AUDIO_INFO_LOG("history volume, sessionId:%{public}u, volume:%{public}f", sessionId, volume); in SetHistoryVolume()
133 it->second = volume; in SetHistoryVolume()
140 AUDIO_INFO_LOG("stream volume, sessionId:%{public}u", sessionId); in AddStreamVolume()
148 AUDIO_ERR_LOG("stream volume already exist, sessionId:%{public}u", sessionId); in AddStreamVolume()
[all …]
Daudio_common_converter.cpp33 float volume) in ConvertBufferTo32Bit() argument
48 *--dst = (int32_t)((*--src << AUDIO_SAMPLE_16BIT_LENGTH) * volume); in ConvertBufferTo32Bit()
59 volume; in ConvertBufferTo32Bit()
67 *--dst = (*--src * volume); in ConvertBufferTo32Bit()
74 *dst++ = *src++ * volume * AUDIO_SAMPLE_32BIT_VALUE; in ConvertBufferTo32Bit()
84 float volume) in ConvertBufferTo16Bit() argument
99 *--dst = (*--src * volume); in ConvertBufferTo16Bit()
107 *dst++ = ((buffer[1]) | (buffer[AUDIO_NUMBER_2] << BYTES_ALIGNMENT_SIZE)) * volume; in ConvertBufferTo16Bit()
116 *--dst = ((*--src >> AUDIO_SAMPLE_16BIT_LENGTH) * volume); in ConvertBufferTo16Bit()
124 *dst++ = *src++ * scale * volume; in ConvertBufferTo16Bit()
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/volume/src/
Dvolume_manager.cpp16 #include "volume/volume_manager.h"
25 #include "volume/external_volume_info.h"
55 LOGI("create volume %{public}s.", volId.c_str()); in CreateVolume()
59 LOGE("volume %{public}s exist.", volId.c_str()); in CreateVolume()
74 LOGE("Volume Notify Created failed"); in CreateVolume()
82 LOGI("destroy volume %{public}s.", volId.c_str()); in DestroyVolume()
87 LOGE("the volume %{public}s does not exist", volId.c_str()); in DestroyVolume()
104 LOGE("the volume %{public}s does not exist.", volId.c_str()); in Check()
110 LOGE("the volume %{public}s check failed.", volId.c_str()); in Check()
120 LOGE("the volume %{public}s does not exist.", volId.c_str()); in Mount()
[all …]
Dexternal_volume_info.cpp16 #include "volume/external_volume_info.h"
33 #include "volume/process.h"
87 LOGE("External volume DoCreate error."); in DoCreate()
98 LOGE("External volume DoDestroy error."); in DoDestroy()
159 LOGE("External volume uuid=%{public}s check failed.", GetAnonyString(GetFsUuid()).c_str()); in DoMount()
166 LOGE("volume mount path %{public}s exists, please remove first", GetMountPath().c_str()); in DoMount()
171 LOGE("the volume %{public}s create mount file %{public}s failed", in DoMount()
176 …LOGI("Ready to mount: external volume fstype is %{public}s, mountflag is %{public}d", fsType_.c_st… in DoMount()
188 LOGE("External volume DoMount error, errno = %{public}d", errno); in DoMount()
199 LOGI("External volume start force to unmount."); in DoUMount()
[all …]
Dvolume_info.cpp16 #include "volume/volume_info.h"
78 LOGE("Volume Notify Bad Removal failed"); in Destroy()
82 LOGE("Volume Notify Removed failed"); in Destroy()
102 LOGE("please check volume %{public}s first", GetVolumeId().c_str()); in Mount()
119 LOGI("external volume mount start"); in Mount()
125 LOGI("external volume mount success"); in Mount()
135 LOGE("the volume %{public}s is in REMOVED state", GetVolumeId().c_str()); in UMount()
155 LOGE("Volume Notify Ejecting failed"); in UMount()
166 LOGE("Volume Notify Unmounted failed"); in UMount()
174 LOGE("the volume %{public}s is not in UNMOUNT state", GetVolumeId().c_str()); in Check()
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/volume/test/
DBUILD.gn41 "$ROOT_DIR/storage_daemon/volume/src/external_volume_info.cpp",
42 "$ROOT_DIR/storage_daemon/volume/src/process.cpp",
43 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
44 "$ROOT_DIR/storage_daemon/volume/test/external_volume_info_test.cpp",
78 "$ROOT_DIR/storage_daemon/include/volume",
84 "$ROOT_DIR/storage_daemon/volume/src/external_volume_info.cpp",
85 "$ROOT_DIR/storage_daemon/volume/src/process.cpp",
86 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
87 "$ROOT_DIR/storage_daemon/volume/test/process_test.cpp",
128 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
[all …]
/foundation/multimedia/audio_framework/services/audio_policy/client/src/
Daudio_client_tracker_callback_stub.cpp54 float volume = data.ReadFloat(); in OnRemoteRequest() local
55 SetLowPowerVolumeImpl(volume); in OnRemoteRequest()
59 float volume; in OnRemoteRequest() local
60 GetLowPowerVolumeImpl(volume); in OnRemoteRequest()
61 reply.WriteFloat(volume); in OnRemoteRequest()
65 float volume; in OnRemoteRequest() local
66 GetSingleStreamVolumeImpl(volume); in OnRemoteRequest()
67 reply.WriteFloat(volume); in OnRemoteRequest()
117 void AudioClientTrackerCallbackStub::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
121 cb->SetLowPowerVolumeImpl(volume); in SetLowPowerVolumeImpl()
[all …]
/foundation/filemanagement/storage_service/services/storage_manager/volume/src/
Dnotification.cpp16 #include "volume/notification.h"
33 …id Notification::NotifyVolumeChange(VolumeState notifyCode, std::shared_ptr<VolumeExternal> volume) in NotifyVolumeChange() argument
37 if (volume == nullptr) { in NotifyVolumeChange()
38 LOGE("Notification::NotifyVolumeChange volume is nullptr"); in NotifyVolumeChange()
41 wantParams.SetParam("id", AAFwk::String::Box(volume->GetId())); in NotifyVolumeChange()
42 wantParams.SetParam("diskId", AAFwk::String::Box(volume->GetDiskId())); in NotifyVolumeChange()
43 wantParams.SetParam("fsUuid", AAFwk::String::Box(volume->GetUuid())); in NotifyVolumeChange()
44 wantParams.SetParam("flags", AAFwk::Integer::Box(volume->GetFlags())); in NotifyVolumeChange()
58 wantParams.SetParam("path", AAFwk::String::Box(volume->GetPath())); in NotifyVolumeChange()
59 wantParams.SetParam("fsType", AAFwk::Integer::Box(volume->GetFsType())); in NotifyVolumeChange()
Dvolume_manager_service.cpp16 #include "volume/volume_manager_service.h"
25 #include "volume/notification.h"
34 … VolumeManagerService::VolumeStateNotify(VolumeState state, std::shared_ptr<VolumeExternal> volume) in VolumeStateNotify() argument
36 DelayedSingleton<Notification>::GetInstance()->NotifyVolumeChange(state, volume); in VolumeStateNotify()
105 …LOGE("VolumeManagerService::The type of volume(Id %{public}s) is not unmounted", volumeId.c_str()); in Mount()
134 … LOGE("VolumeManagerService::The type of volume(Id %{public}s) is not mounted", volumeId.c_str()); in Unmount()
190 auto volume = it->second; in GetVolumeByUuid() local
191 if (volume->GetUuid() == fsUuid) { in GetVolumeByUuid()
194 vc = *volume; in GetVolumeByUuid()
213 auto volume = it->second; in SetVolumeDescription() local
[all …]
/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/group_manager_test/src/
Daudio_group_manager_unit_test.cpp50 int32_t volume = 0; variable
58 auto ret = audioGroupMngr_->SetVolume(AudioVolumeType::STREAM_ALL, volume);
62 EXPECT_EQ(volume, ret);
81 int32_t volume = 2; variable
89 auto ret = audioGroupMngr_->SetVolume(AudioVolumeType::STREAM_ALARM, volume);
93 EXPECT_EQ(volume, ret);
113 int32_t volume = 4; variable
121 auto ret = audioGroupMngr_->SetVolume(AudioVolumeType::STREAM_ACCESSIBILITY, volume);
125 EXPECT_EQ(volume, ret);
145 int32_t volume = 5; variable
[all …]
/foundation/filemanagement/storage_service/services/storage_manager/volume/test/
Dnotification_test.cpp19 #include "volume/notification.h"
50 std::shared_ptr<VolumeExternal> volume = make_shared<VolumeExternal>(vc); variable
52 notification->NotifyVolumeChange(VolumeState::REMOVED, volume);
74 std::shared_ptr<VolumeExternal> volume = make_shared<VolumeExternal>(vc); variable
76 notification->NotifyVolumeChange(VolumeState::UNMOUNTED, volume);
98 std::shared_ptr<VolumeExternal> volume = make_shared<VolumeExternal>(vc); variable
99 volume->SetFsUuid("uuid1");
100 volume->SetPath("path1");
102 notification->NotifyVolumeChange(VolumeState::MOUNTED, volume);
124 std::shared_ptr<VolumeExternal> volume = make_shared<VolumeExternal>(vc); variable
[all …]
/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/volume_change_test/src/
Daudio_volume_change_unit_test.cpp54 g_volumeLevel = volumeEvent.volume; in OnVolumeKeyEvent()
90 * Function: Set volume for AudioStreamType::STREAM_MUSIC
105 int volume = 10; variable
110 result = g_audioManagerInstance->SetVolume(volumeType, volume);
117 EXPECT_EQ(volume, g_volumeLevel);
126 * Function: Set volume for AudioStreamType::STREAM_RING
141 int volume = 10; variable
146 result = g_audioManagerInstance->SetVolume(volumeType, volume);
153 EXPECT_EQ(volume, g_volumeLevel);
162 * Function: Set volume for AudioStreamType::STREAM_VOICE_CALL
[all …]
/foundation/multimedia/audio_framework/services/audio_policy/server/src/
Daudio_client_tracker_callback_proxy.cpp61 void AudioClientTrackerCallbackProxy::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
69 data.WriteFloat(static_cast<float>(volume)); in SetLowPowerVolumeImpl()
76 void AudioClientTrackerCallbackProxy::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
89 volume = reply.ReadFloat(); in GetLowPowerVolumeImpl()
92 void AudioClientTrackerCallbackProxy::GetSingleStreamVolumeImpl(float &volume) in GetSingleStreamVolumeImpl() argument
105 volume = reply.ReadFloat(); in GetSingleStreamVolumeImpl()
165 void ClientTrackerCallbackListener::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
168 listener_->SetLowPowerVolumeImpl(volume); in SetLowPowerVolumeImpl()
172 void ClientTrackerCallbackListener::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
175 listener_->GetLowPowerVolumeImpl(volume); in GetLowPowerVolumeImpl()
[all …]
/foundation/systemabilitymgr/safwk/test/mock/common/audio_ability/src/
Dtest_audio_ability.cpp43 int TestAudioAbility::AddVolume(int volume) in AddVolume() argument
45 …HiLog::Info(label_, "TestAudioAbility:: %{public}s called, volume = %{public}d", __func__, volume); in AddVolume()
46 return (volume + 1); in AddVolume()
49 int32_t TestAudioAbility::ReduceVolume(int volume) in ReduceVolume() argument
51 …HiLog::Info(label_, "TestAudioAbility:: %{public}s called, volume = %{public}d", __func__, volume); in ReduceVolume()
52 return (volume - 1); in ReduceVolume()
/foundation/systemabilitymgr/safwk/test/mock/common/ondemand_ability/src/
Dtest_ondemand_ability_proxy.cpp27 int TestOnDemandAbilityProxy::AddVolume(int volume) in AddVolume() argument
29 HiLog::Info(label_, "%{public}s called, volume = %{public}d", __func__, volume); in AddVolume()
39 bool ret = data.WriteInt32(volume); in AddVolume()
41 HiLog::Error(label_, "AddVolume parcel write volume failed"); in AddVolume()
55 HiLog::Error(label_, "AddVolume parcel read volume failed"); in AddVolume()
/foundation/multimedia/audio_framework/services/audio_policy/server/include/
Daudio_client_tracker_callback_proxy.h34 virtual void SetLowPowerVolumeImpl(float volume) override;
35 virtual void GetLowPowerVolumeImpl(float &volume) override;
38 virtual void GetSingleStreamVolumeImpl(float &volume) override;
51 virtual void SetLowPowerVolumeImpl(float volume) override;
52 virtual void GetLowPowerVolumeImpl(float &volume) override;
55 virtual void GetSingleStreamVolumeImpl(float &volume) override;
/foundation/multimedia/audio_framework/frameworks/native/audiorenderer/src/
Daudio_renderer_proxy_obj.cpp47 void AudioRendererProxyObj::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
50 renderer->SetLowPowerVolume(volume); in SetLowPowerVolumeImpl()
54 void AudioRendererProxyObj::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
57 volume = renderer->GetLowPowerVolume(); in GetLowPowerVolumeImpl()
76 void AudioRendererProxyObj::GetSingleStreamVolumeImpl(float &volume) in GetSingleStreamVolumeImpl() argument
79 volume = renderer->GetSingleStreamVolume(); in GetSingleStreamVolumeImpl()
/foundation/communication/bluetooth_service/services/bluetooth/external/dummy/include/stub/
Dtelephone_client_service.h33 virtual void OnVolumeChanged(int type, int volume) in OnVolumeChanged() argument
37 virtual void OnVolumeChangedForAutotest(int type, int volume) in OnVolumeChangedForAutotest() argument
45 void SetStreamVolume(int type, int volume) in SetStreamVolume() argument
53 void SetHfVolume(int type, int volume) in SetHfVolume() argument
75 void NotifyVolumeChanged(int type, int volume) in NotifyVolumeChanged() argument
79 void NotifyVolumeChangedForAutotest(int type, int volume) in NotifyVolumeChangedForAutotest() argument
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiomanager/include/
Daudio_stream_manager.h81 * Set low power volume was controlled by system application
83 * @param volume volume value.
85 virtual void SetLowPowerVolumeImpl(float volume) = 0;
88 * Get low power volume was controlled by system application
90 * @param volume volume value.
92 virtual void GetLowPowerVolumeImpl(float &volume) = 0;
111 * @param volume volume value.
113 virtual void GetSingleStreamVolumeImpl(float &volume) = 0;
231 * @param volumeType audio volume type.
Daudio_system_manager.h118 * @brief Volume group info.
125 * @brief Volume group info.
150 * @return Returns volume group info
296 * @brief VolumeKeyEventCallback will be executed when hard volume key is pressed up/down
298 * @param volumeEvent the volume event info.
445 * @brief Map volume to HDI.
447 * @param volume volume value.
448 * @return Returns current volume.
451 static float MapVolumeToHDI(int32_t volume);
454 * @brief Map volume from HDI.
[all …]
/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/src/
Daudio_capturer_proxy_obj.cpp40 void AudioCapturerProxyObj::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
44 void AudioCapturerProxyObj::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
46 volume = 1.0; in GetLowPowerVolumeImpl()
49 void AudioCapturerProxyObj::GetSingleStreamVolumeImpl(float &volume) in GetSingleStreamVolumeImpl() argument
51 volume = 0; in GetSingleStreamVolumeImpl()
/foundation/filemanagement/storage_service/services/storage_daemon/disk/test/
DBUILD.gn49 "$ROOT_DIR/volume/src/external_volume_info.cpp",
50 "$ROOT_DIR/volume/src/process.cpp",
51 "$ROOT_DIR/volume/src/volume_info.cpp",
52 "$ROOT_DIR/volume/src/volume_manager.cpp",
101 "$ROOT_DIR/volume/src/external_volume_info.cpp",
102 "$ROOT_DIR/volume/src/process.cpp",
103 "$ROOT_DIR/volume/src/volume_info.cpp",
104 "$ROOT_DIR/volume/src/volume_manager.cpp",
/foundation/multimedia/audio_framework/services/audio_service/common/include/
Daudio_volume.h34 // history volume
36 void SetHistoryVolume(uint32_t sessionId, float volume);
38 // stream volume
41 void SetStreamVolume(uint32_t sessionId, float volume);
48 // system volume
50 …void SetSystemVolume(int32_t volumeType, const std::string &deviceClass, float volume, int32_t vol…
100 …SystemVolume(int32_t volumeType, std::string deviceClass, float volume, int32_t volumeLevel, bool … in SystemVolume() argument
101 : volumeType_(volumeType), deviceClass_(deviceClass), volume_(volume), in SystemVolume()
/foundation/multimedia/audio_framework/test/moduletest/audiopolicy/1.0/src/
Daudio_policy_test.cpp46 .volume = 8,
50 .volume = 8,
146 * Set Volume
157 float volume = params.volume; variable
158 EXPECT_EQ(AUDIO_OK, AudioSystemManager::GetInstance()->SetVolume(volumeType, volume));
167 * Get Volume
177 float volume = params.volume; variable
179 EXPECT_EQ(AUDIO_OK, AudioSystemManager::GetInstance()->SetVolume(volumeType, volume));
180 EXPECT_EQ(volume, AudioSystemManager::GetInstance()->GetVolume(volumeType));
319 * Check volume range
[all …]

12345678910>>...23