Home
last modified time | relevance | path

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

12345678910>>...33

/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/interfaces/kits/c/audio_manager/
Dnative_audio_volume_manager.h30 * @brief Declare audio volume manager related interfaces.
51 * @brief Declare the audio volume manager.
52 …* Audio volume manager provides many functions for developer to get the information about syst…
59 * @brief Prototype for the volume change function that is passed to
63 * @param usage the stream usage type for which volume changed.
64 * @param volumeLevel the latest volume level.
65 * @param updateUi whether to show the volume change in UI.
77 * @brief Prototype for the volume change function that is passed to
91 * @brief Fetch the audio volume manager handle, which is a singleton.
104 * @brief Obtains the maximum volume level for a specific stream usage type.
[all …]
/foundation/multimedia/audio_framework/services/audio_policy/test/unittest/audio_stream_collector_unit_test/include/
Daudio_stream_collector_unit_test.h77 * Set low power volume was controlled by system application
79 * @param volume volume value.
81 virtual void SetLowPowerVolumeImpl(float volume) {} in SetLowPowerVolumeImpl() argument
84 * Get low power volume was controlled by system application
86 * @param volume volume value.
88 virtual void GetLowPowerVolumeImpl(float &volume) { volume = 0; } in GetLowPowerVolumeImpl() argument
107 * @param volume volume value.
109 virtual void GetSingleStreamVolumeImpl(float &volume) { volume = 0; } in GetSingleStreamVolumeImpl() argument
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiomanager/include/
Daudio_system_manager.h33 * @brief Map volume to HDI.
35 * @param volume volume value.
36 * @return Returns current volume.
39 static float MapVolumeToHDI(int32_t volume);
42 * @brief Map volume from HDI.
44 * @param volume volume value.
45 * @return Returns current volume.
48 static int32_t MapVolumeFromHDI(float volume);
61 * @brief Set the stream volume.
63 * @param volumeType Enumerates the audio volume type.
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/volume/test/
DBUILD.gn47 "$ROOT_DIR/storage_daemon/volume/src/external_volume_info.cpp",
48 "$ROOT_DIR/storage_daemon/volume/src/process.cpp",
49 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
50 "$ROOT_DIR/storage_daemon/volume/test/external_volume_info_test.cpp",
88 "$ROOT_DIR/storage_daemon/include/volume",
94 "$ROOT_DIR/storage_daemon/volume/src/external_volume_info.cpp",
95 "$ROOT_DIR/storage_daemon/volume/src/process.cpp",
96 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
97 "$ROOT_DIR/storage_daemon/volume/test/process_test.cpp",
139 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
[all …]
/foundation/multimedia/audio_framework/services/audio_service/common/src/
Daudio_volume.cpp88 // read or write volume must be called AudioVolume::volumeMutex_ in GetVolume()
104 AUDIO_ERR_LOG("stream volume not exist, sessionId:%{public}u", sessionId); in GetVolume()
117 …AUDIO_ERR_LOG("no system volume, volumeType:%{public}d deviceClass%{public}s", volumeType, deviceC… in GetVolume()
124 volumes->volume = sysVolume * volumes->volumeStream * doNotDisturbStatusVolume; in GetVolume()
125 if (it != streamVolume_.end() && !IsSameVolume(it->second.monitorVolume_, volumes->volume)) { in GetVolume()
126 it->second.monitorVolume_ = volumes->volume; in GetVolume()
128 …AUDIO_INFO_LOG("volume,sessionId:%{public}u,volume:%{public}f,volumeType:%{public}d,devClass:%{pub… in GetVolume()
130 …"doNotDisturbStatusVolume:%{public}d,", sessionId, volumes->volume, volumeType, deviceClass.c_str(… in GetVolume()
134 AudioStreamMonitor::GetInstance().UpdateMonitorVolume(sessionId, volumes->volume); in GetVolume()
135 return volumes->volume; in GetVolume()
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/volume/src/
Dvolume_manager.cpp16 #include "volume/volume_manager.h"
33 #include "volume/external_volume_info.h"
62 LOGI("create volume %{public}s.", volId.c_str()); in CreateVolume()
66 LOGE("volume %{public}s exist.", volId.c_str()); in CreateVolume()
81 LOGE("Volume Notify Created failed"); in CreateVolume()
89 LOGI("destroy volume %{public}s.", volId.c_str()); in DestroyVolume()
94 LOGE("the volume %{public}s does not exist", volId.c_str()); in DestroyVolume()
119 LOGE("the volume %{public}s does not exist.", volId.c_str()); in Check()
125 LOGE("the volume %{public}s check failed.", volId.c_str()); in Check()
138 LOGE("the volume %{public}s does not exist.", volId.c_str()); in Mount()
[all …]
Dvolume_info.cpp16 #include "volume/volume_info.h"
89 LOGE("Volume Notify Bad Removal failed"); in Destroy()
93 LOGE("Volume Notify Removed failed"); in Destroy()
114 LOGE("Volume Notify Removed failed"); in DestroyUsbFuse()
128 LOGE("please check volume %{public}s first", GetVolumeId().c_str()); in Mount()
147 LOGI("external volume mount start"); in Mount()
154 LOGI("external volume mount success"); in Mount()
164 LOGE("the volume %{public}s is in REMOVED state", GetVolumeId().c_str()); in UMount()
184 LOGE("Volume Notify Ejecting failed"); in UMount()
195 LOGE("Volume Notify Unmounted failed"); in UMount()
[all …]
Dexternal_volume_info.cpp16 #include "volume/external_volume_info.h"
31 #include "volume/process.h"
87 LOGE("External volume DoCreate error."); in DoCreate()
97 LOGE("External volume DoDestroy error."); in DoDestroy()
295 LOGE("External volume uuid=%{public}s check failed.", GetAnonyString(GetFsUuid()).c_str()); in DoMount()
310 LOGE("External volume DoMount error, errno = %{public}d", errno); in DoMount()
317 …LOGI("Ready to mount: volume fstype is %{public}s, mountflag is %{public}d", fsType_.c_str(), moun… in DoMount()
335 LOGE("External volume DoMount error, errno = %{public}d", errno); in DoMount()
361 LOGI("External volume start force to unmount."); in DoUMount()
367 LOGI("External volume force to unmount success."); in DoUMount()
[all …]
/foundation/multimedia/audio_framework/services/audio_service/common/include/
Daudio_volume.h46 VolumeValues *volumes); // all volume
47 float GetStreamVolume(uint32_t sessionId); // only stream volume factor
49 // history volume
51 void SetHistoryVolume(uint32_t sessionId, float volume);
53 // stream volume
56 void SetStreamVolume(uint32_t sessionId, float volume);
61 // system volume
66 …void SetSystemVolume(int32_t volumeType, const std::string &deviceClass, float volume, int32_t vol…
86 …void SaveAdjustStreamVolumeInfo(float volume, uint32_t sessionId, std::string invocationTime, uint…
88 void SetDoNotDisturbStatusVolume(uint32_t sessionId, float volume);
[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()
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/volume/test/external_volume_info/
DBUILD.gn50 "$ROOT_DIR/storage_daemon/volume/src/external_volume_info.cpp",
51 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
52 "$ROOT_DIR/storage_daemon/volume/src/process.cpp",
53 "$ROOT_DIR/storage_daemon/volume/test/external_volume_info/external_volume_info_other_test.cpp",
90 "$ROOT_DIR/storage_daemon/volume/src/external_volume_info.cpp",
91 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
92 "$ROOT_DIR/storage_daemon/volume/src/process.cpp",
93 "$ROOT_DIR/storage_daemon/volume/test/external_volume_info/external_volume_info_other_test.cpp",
142 "$ROOT_DIR/storage_daemon/volume/src/external_volume_info.cpp",
143 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
[all …]
/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/group_manager_test/src/
Daudio_group_manager_unit_test.cpp49 int32_t volume = 0; variable
57 auto ret = audioGroupMngr_->SetVolume(AudioVolumeType::STREAM_ALL, volume);
61 EXPECT_EQ(volume, ret);
80 int32_t volume = 2; variable
88 auto ret = audioGroupMngr_->SetVolume(AudioVolumeType::STREAM_ALARM, volume);
92 EXPECT_EQ(volume, ret);
112 int32_t volume = 4; variable
120 auto ret = audioGroupMngr_->SetVolume(AudioVolumeType::STREAM_ACCESSIBILITY, volume);
124 EXPECT_EQ(volume, ret);
144 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.cpp55 g_volumeLevel = volumeEvent.volume; in OnVolumeKeyEvent()
67 g_volumeDegree = volumeEvent.volume; in OnVolumeDegreeEvent()
103 * Function: Set volume for AudioStreamType::STREAM_MUSIC
118 int volume = 10; variable
123 result = g_audioManagerInstance->SetVolume(volumeType, volume);
130 EXPECT_EQ(volume, g_volumeLevel);
139 * Function: Set volume for AudioStreamType::STREAM_RING
154 int volume = 10; variable
159 result = g_audioManagerInstance->SetVolume(volumeType, volume);
166 EXPECT_EQ(volume, g_volumeLevel);
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/disk/test/
DBUILD.gn50 "$ROOT_DIR/volume/src/external_volume_info.cpp",
51 "$ROOT_DIR/volume/src/process.cpp",
52 "$ROOT_DIR/volume/src/volume_info.cpp",
53 "$ROOT_DIR/volume/src/volume_manager.cpp",
110 "$ROOT_DIR/volume/src/external_volume_info.cpp",
111 "$ROOT_DIR/volume/src/process.cpp",
112 "$ROOT_DIR/volume/src/volume_info.cpp",
113 "$ROOT_DIR/volume/src/volume_manager.cpp",
166 "$ROOT_DIR/volume/src/external_volume_info.cpp",
167 "$ROOT_DIR/volume/src/process.cpp",
[all …]
/foundation/multimedia/audio_framework/services/audio_policy/server/domain/volume/src/
Daudio_volume_manager.cpp91 size_t mapSize = IPolicyProvider::GetVolumeVectorSize() * sizeof(Volume) + sizeof(bool); in Init()
92 AUDIO_INFO_LOG("InitSharedVolume create shared volume map with size %{public}zu", mapSize); in Init()
96 volumeVector_ = reinterpret_cast<Volume *>(policyVolumeMap_->GetBase()); in Init()
98 IPolicyProvider::GetVolumeVectorSize() * sizeof(Volume); in Init()
141 bool AudioVolumeManager::SetSharedVolume(AudioVolumeType streamType, DeviceType deviceType, Volume in SetSharedVolume()
157 AUDIO_INFO_LOG("Success Set Shared Volume with StreamType:%{public}d, DeviceType:%{public}d, \ in SetSharedVolume()
158 volume:%{public}d, volumeDegree:%{public}d", in SetSharedVolume()
171 // init volume map in InitSharedVolume()
226 int32_t volume = audioPolicyManager_.GetSystemVolumeLevel(streamType); in GetSystemVolumeLevel() local
228 + std::to_string(streamType) + " volume " + std::to_string(volume)); in GetSystemVolumeLevel()
[all …]
/foundation/multimedia/player_framework/interfaces/inner_api/native/system_sound_manager/include/
Dsystem_tone_player.h116 * @brief Set audio volume to the system tone
118 * @param volume Audio volume value
119 * @return Returns {@link MSERR_OK} if the audio volume is set successfully to player;
123 virtual int32_t SetAudioVolume(float volume) = 0;
126 * @brief Get audio volume from the system tone
128 * @param volume Recevie Audio volume value
129 * @return Returns {@link MSERR_OK} if the audio volume is get successfully from player;
138 * @param volume Recevie all supported haptics features
148 * @param volume Haptics feature value
158 * @param volume Receive haptics feature value
/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/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/services/audio_policy/server/src/
Daudio_client_tracker_callback_listener.cpp67 void ClientTrackerCallbackListener::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
70 listener_->SetLowPowerVolumeImpl(volume); in SetLowPowerVolumeImpl()
74 void ClientTrackerCallbackListener::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
77 listener_->GetLowPowerVolumeImpl(volume); in GetLowPowerVolumeImpl()
81 void ClientTrackerCallbackListener::GetSingleStreamVolumeImpl(float &volume) in GetSingleStreamVolumeImpl() argument
84 listener_->GetSingleStreamVolumeImpl(volume); in GetSingleStreamVolumeImpl()
/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));
321 * Check volume range
[all …]
/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/src/
Daudio_capturer_proxy_obj.cpp47 void AudioCapturerProxyObj::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
51 void AudioCapturerProxyObj::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
53 volume = 1.0; in GetLowPowerVolumeImpl()
56 void AudioCapturerProxyObj::GetSingleStreamVolumeImpl(float &volume) in GetSingleStreamVolumeImpl() argument
58 volume = 0; in GetSingleStreamVolumeImpl()
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/
Dpolicy_handler_unit_test.cpp137 Volume volume[IPolicyProvider::GetVolumeVectorSize()]; variable
138 policyHandler->volumeVector_ = volume;
164 Volume volume[IPolicyProvider::GetVolumeVectorSize()]; variable
165 policyHandler->volumeVector_ = volume;
207 Volume volume[IPolicyProvider::GetVolumeVectorSize()]; variable
208 policyHandler->volumeVector_ = volume;
212 Volume vol;

12345678910>>...33