Home
last modified time | relevance | path

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

12345678910>>...13

/foundation/filemanagement/storage_service/interfaces/kits/js/storage_manager/
D@ohos.file.volumeManager.d.ts22 * @syscap SystemCapability.FileManagement.StorageService.Volume
33 export interface Volume { interface
46 * @syscap SystemCapability.FileManagement.StorageService.Volume
50 function getAllVolumes(callback: AsyncCallback<Array<Volume>>): void;
51 function getAllVolumes(): Promise<Array<Volume>>;
58 * @syscap SystemCapability.FileManagement.StorageService.Volume
69 * @syscap SystemCapability.FileManagement.StorageService.Volume
78 * Get the volume by uuid.
81 * @syscap SystemCapability.FileManagement.StorageService.Volume
85 function getVolumeByUuid(uuid: string, callback: AsyncCallback<Volume>): void;
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/volume/test/
DBUILD.gn30 "$ROOT_DIR/storage_daemon/volume/src/external_volume_info.cpp",
31 "$ROOT_DIR/storage_daemon/volume/src/process.cpp",
32 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
33 "$ROOT_DIR/storage_daemon/volume/test/external_volume_info_test.cpp",
57 "$ROOT_DIR/storage_daemon/include/volume",
62 "$ROOT_DIR/storage_daemon/volume/src/external_volume_info.cpp",
63 "$ROOT_DIR/storage_daemon/volume/src/process.cpp",
64 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
65 "$ROOT_DIR/storage_daemon/volume/test/process_test.cpp",
96 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
[all …]
/foundation/filemanagement/user_file_service/services/file_extension_hap/entry/src/main/ets/FileExtensionAbility/
DVolumeManager.ts35 let volume = volumes[i];
36 if (!volume.path) {
40 'volumeId': volume.id,
41 'fsUuid': volume.uuid,
42 'path': volume.path,
43 'uri': path2uri('', volume.path),
44 'displayName': volume.id,
62 return globalThis.volumeInfoList.find((volume) => volume.volumeId == volumeId);
66 …globalThis.volumeInfoList = globalThis.volumeInfoList.filter((volume) => volume.volumeId !== volum…
/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()
98 void AudioClientTrackerCallbackStub::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
103 cb->SetLowPowerVolumeImpl(volume); in SetLowPowerVolumeImpl()
[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()
100 LOGE("Volume Notify Created failed"); in DestroyVolume()
109 LOGE("the volume %{public}s does not exist.", volId.c_str()); in Check()
115 LOGE("the volume %{public}s check failed.", volId.c_str()); in Check()
[all …]
Dexternal_volume_info.cpp16 #include "volume/external_volume_info.h"
32 #include "volume/process.h"
79 LOGE("External volume ReadMetadata error."); in ReadMetadata()
122 LOGE("External volume DoCreate error."); in DoCreate()
133 LOGE("External volume DoDestroy error."); in DoDestroy()
151 LOGE("External volume ReadMetadata failed."); in DoMount()
159 LOGE("volume mount path %{public}s exists, please remove first", GetMountPath().c_str()); in DoMount()
165 LOGE("the volume %{public}s create mount file %{public}s failed", in DoMount()
196 LOGE("External volume DoMount error."); in DoMount()
207 LOGI("External volume start force to unmount."); in DoUMount()
[all …]
/foundation/multimedia/audio_framework/services/audio_policy/server/src/
Daudio_client_tracker_callback_proxy.cpp61 void AudioClientTrackerCallbackProxy::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
71 data.WriteFloat(static_cast<float>(volume)); in SetLowPowerVolumeImpl()
78 void AudioClientTrackerCallbackProxy::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
93 volume = reply.ReadFloat(); in GetLowPowerVolumeImpl()
96 void AudioClientTrackerCallbackProxy::GetSingleStreamVolumeImpl(float &volume) in GetSingleStreamVolumeImpl() argument
111 volume = reply.ReadFloat(); in GetSingleStreamVolumeImpl()
142 void ClientTrackerCallbackListener::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
145 listener_->SetLowPowerVolumeImpl(volume); in SetLowPowerVolumeImpl()
149 void ClientTrackerCallbackListener::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
152 listener_->GetLowPowerVolumeImpl(volume); in GetLowPowerVolumeImpl()
[all …]
/foundation/multimedia/player_framework/services/engine/gstreamer/plugins/sink/audiosink/include/
Daudio_sink_sv_impl.h52 int32_t SetVolume(float volume) override;
53 int32_t GetVolume(float &volume) override;
54 int32_t GetMaxVolume(float &volume) override;
55 int32_t GetMinVolume(float &volume) override;
96 int32_t SetVolume(float volume) override in SetVolume() argument
98 (void)volume; in SetVolume()
101 int32_t GetVolume(float &volume) override in GetVolume() argument
103 volume = 1.0; // default volume 1.0 in GetVolume()
106 int32_t GetMaxVolume(float &volume) override in GetMaxVolume() argument
108 volume = 1.0; // default max volume 1.0 in GetMaxVolume()
[all …]
/foundation/multimedia/audio_framework/frameworks/native/audiorenderer/src/
Daudio_renderer_proxy_obj.cpp37 void AudioRendererProxyObj::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
39 renderer->SetLowPowerVolume(volume); in SetLowPowerVolumeImpl()
42 void AudioRendererProxyObj::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
44 volume = renderer->GetLowPowerVolume(); in GetLowPowerVolumeImpl()
47 void AudioRendererProxyObj::GetSingleStreamVolumeImpl(float &volume) in GetSingleStreamVolumeImpl() argument
49 volume = renderer->GetSingleStreamVolume(); in GetSingleStreamVolumeImpl()
/foundation/multimedia/audio_framework/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/include/
Daudio_client_tracker_callback_proxy.h34 virtual void SetLowPowerVolumeImpl(float volume) override;
35 virtual void GetLowPowerVolumeImpl(float &volume) override;
36 virtual void GetSingleStreamVolumeImpl(float &volume) override;
49 virtual void SetLowPowerVolumeImpl(float volume) override;
50 virtual void GetLowPowerVolumeImpl(float &volume) override;
51 virtual void GetSingleStreamVolumeImpl(float &volume) override;
/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/multimedia/audio_framework/frameworks/native/audiocapturer/src/
Daudio_capturer_proxy_obj.cpp39 void AudioCapturerProxyObj::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
43 void AudioCapturerProxyObj::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
45 volume = 1.0; in GetLowPowerVolumeImpl()
48 void AudioCapturerProxyObj::GetSingleStreamVolumeImpl(float &volume) in GetSingleStreamVolumeImpl() argument
50 volume = 0; in GetSingleStreamVolumeImpl()
/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/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/filemanagement/storage_service/services/storage_manager/volume/src/
Dvolume_manager_service.cpp16 #include "volume/volume_manager_service.h"
24 #include "volume/notification.h"
98 …LOGE("VolumeManagerService::The type of volume(Id %{public}s) is not unmounted", volumeId.c_str()); in Mount()
123 … LOGE("VolumeManagerService::The type of volume(Id %{public}s) is not mounted", volumeId.c_str()); in Unmount()
176 auto volume = it->second; in GetVolumeByUuid() local
177 if (volume->GetUuid() == fsUuid) { in GetVolumeByUuid()
179 vc = *volume; in GetVolumeByUuid()
198 auto volume = it->second; in SetVolumeDescription() local
199 if (volume->GetUuid() == fsUuid) { in SetVolumeDescription()
201 if (volume->GetState() != VolumeState::UNMOUNTED) { in SetVolumeDescription()
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/disk/test/
DBUILD.gn44 "$ROOT_DIR/volume/src/external_volume_info.cpp",
45 "$ROOT_DIR/volume/src/process.cpp",
46 "$ROOT_DIR/volume/src/volume_info.cpp",
47 "$ROOT_DIR/volume/src/volume_manager.cpp",
90 "$ROOT_DIR/volume/src/external_volume_info.cpp",
91 "$ROOT_DIR/volume/src/process.cpp",
92 "$ROOT_DIR/volume/src/volume_info.cpp",
93 "$ROOT_DIR/volume/src/volume_manager.cpp",
/foundation/multimedia/audio_framework/frameworks/js/napi/ringtone_manager/src/
Dringtone_options_napi.cpp57 DECLARE_NAPI_GETTER_SETTER("volume", GetVolume, SetVolume), in Init()
109 napi_value RingtoneOptionsNapi::CreateRingtoneOptionsWrapper(napi_env env, float volume, bool loop) in CreateRingtoneOptionsWrapper() argument
117 sVolume_ = volume; in CreateRingtoneOptionsWrapper()
142 HiLog::Error(LABEL, "Get volume fail to napi_get_cb_info"); in GetVolume()
164 double volume; in SetVolume() local
170 HiLog::Error(LABEL, "set volume fail to napi_get_cb_info"); in SetVolume()
178 HiLog::Error(LABEL, "set volume fail: wrong data type"); in SetVolume()
183 status = napi_get_value_double(env, args[0], &volume); in SetVolume()
185 ringtoneOptionsNapi->volume_ = (float)volume; in SetVolume()
202 HiLog::Error(LABEL, "Get volume fail to napi_get_cb_info"); in GetLoop()
[all …]
/foundation/multimedia/audio_framework/test/unittest/group_manager_test/src/
Daudio_group_manager_unit_test.cpp45 int32_t volume = 0; variable
52 auto ret = audioGroupMngr_->SetVolume(AudioVolumeType::STREAM_ALL, volume);
56 EXPECT_EQ(volume, ret);
69 * @tc.desc : Test setting volume of ringtone stream with max volume
82 int32_t volume = audioGroupMngr_->GetVolume(AudioVolumeType::STREAM_RING); variable
83 EXPECT_EQ(MAX_VOL, volume);
90 * @tc.desc : Test setting volume of ringtone stream with min volume
103 int32_t volume = audioGroupMngr_->GetVolume(AudioVolumeType::STREAM_RING); variable
104 EXPECT_EQ(MIN_VOL, volume);
111 * @tc.desc : Test setting volume of media stream with max volume
/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));
320 * Check volume range
[all …]
/foundation/multimedia/audio_framework/services/audio_service/client/src/
Daudio_group_manager.cpp39 float AudioGroupManager::MapVolumeToHDI(int32_t volume) in MapVolumeToHDI() argument
41 float value = (float)volume / MAX_VOLUME_LEVEL; in MapVolumeToHDI()
47 int32_t AudioGroupManager::MapVolumeFromHDI(float volume) in MapVolumeFromHDI() argument
49 float value = (float)volume * MAX_VOLUME_LEVEL; in MapVolumeFromHDI()
53 int32_t AudioGroupManager::SetVolume(AudioVolumeType volumeType, int32_t volume) in SetVolume() argument
58 std::string value = std::to_string(volume); in SetVolume()
59 g_sProxy->SetAudioParameter(netWorkId_, AudioParamKey::VOLUME, condition, value); in SetVolume()
66 if ((volume < MIN_VOLUME_LEVEL) || (volume > MAX_VOLUME_LEVEL)) { in SetVolume()
67 AUDIO_ERR_LOG("Invalid Volume Input!"); in SetVolume()
86 float volumeToHdi = MapVolumeToHDI(volume); in SetVolume()
[all …]
/foundation/multimedia/audio_framework/services/audio_policy/test/example/
Daudio_policy_test.cpp58 cout << "\tControls audio volume, audio routing, audio mute" << endl << endl; in PrintUsage()
59 cout << "-V\n\tSets Volume for streams, -S to setStream" << endl << endl; in PrintUsage()
60 cout << "-v\n\tGets Volume for streams, -S to setStream" << endl << endl; in PrintUsage()
78 cout << "-N\n\tSet the discount volume factor" << endl << endl; in PrintUsage()
79 cout << "-n\n\tGet the discount volume factor or Get single stream volume" << endl << endl; in PrintUsage()
234 cout << "handle volume networkId: " << networkId << endl; in HandleVolume()
239 float volume = groupManager->GetVolume(static_cast<AudioVolumeType>(streamType)); in HandleVolume() local
240 cout << "Get Volume : " << volume << endl; in HandleVolume()
244 cout << "handle volume networkId: " << networkId << endl; in HandleVolume()
250 float volume = strtof(optarg, nullptr); in HandleVolume() local
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/netlink/test/
DBUILD.gn68 "$ROOT_DIR/storage_daemon/volume/src/external_volume_info.cpp",
69 "$ROOT_DIR/storage_daemon/volume/src/process.cpp",
70 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
71 "$ROOT_DIR/storage_daemon/volume/src/volume_manager.cpp",
145 "$ROOT_DIR/storage_daemon/volume/src/external_volume_info.cpp",
146 "$ROOT_DIR/storage_daemon/volume/src/process.cpp",
147 "$ROOT_DIR/storage_daemon/volume/src/volume_info.cpp",
148 "$ROOT_DIR/storage_daemon/volume/src/volume_manager.cpp",
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/
Daudio_adapter_manager.cpp44 …AUDIO_INFO_LOG("[AudioAdapterManager] Get music volume to map success %{public}f", mVolumeMap[STRE… in Init()
46 AUDIO_ERR_LOG("[AudioAdapterManager] Get volume parameter failed %{public}d", ret); in Init()
102 int32_t AudioAdapterManager::SetStreamVolume(AudioStreamType streamType, float volume) in SetStreamVolume() argument
104 if (FLOAT_COMPARE_EQ(volume, 0.0f) && in SetStreamVolume()
122 if (GetStreamMute(streamType) && volume > 0.0f) { in SetStreamVolume()
126 mVolumeMap[streamForVolumeMap] = volume; in SetStreamVolume()
127 WriteVolumeToKvStore(currentActiveDevice_, streamType, volume); in SetStreamVolume()
129 // Set the power on default volume to the database in SetStreamVolume()
131 int32_t maxMediaVolume = 15; // The max volume is 15; in SetStreamVolume()
132 int32_t volumeInt = (int) round(volume * maxMediaVolume); in SetStreamVolume()
[all …]
/foundation/multimedia/audio_framework/frameworks/native/audiocompatibility/include/
Daudio_container_base.h102 * Sets the volume of the stream associated with session ID
105 * @param volume indicates volume level between 0 to 65536
108 int32_t SetStreamVolume(uint32_t sessionID, uint32_t volume);
111 * Get the volume of the stream associated with session ID
114 * @return returns volume level between 0 to 65536
197 * @brief Set the track volume
199 * @param volume The volume to be set for the current track.
200 * @return Returns {@link SUCCESS} if volume is successfully set; returns an error code
203 int32_t SetStreamVolume(float volume, const int32_t &trackId);
206 * @brief Obtains the current track volume
[all …]

12345678910>>...13