Home
last modified time | relevance | path

Searched refs:volume (Results 1 - 25 of 379) sorted by relevance

12345678910>>...16

/foundation/multimedia/audio_framework/services/audio_policy/client/src/
H A Daudio_client_tracker_callback_stub.cpp69 float volume = data.ReadFloat(); in OnRemoteRequest() local
70 SetLowPowerVolumeImpl(volume); in OnRemoteRequest()
74 float volume; in OnRemoteRequest() local
75 GetLowPowerVolumeImpl(volume); in OnRemoteRequest()
76 reply.WriteFloat(volume); in OnRemoteRequest()
80 float volume; in OnRemoteRequest() local
81 GetSingleStreamVolumeImpl(volume); in OnRemoteRequest()
82 reply.WriteFloat(volume); in OnRemoteRequest()
154 void AudioClientTrackerCallbackStub::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
158 cb->SetLowPowerVolumeImpl(volume); in SetLowPowerVolumeImpl()
195 GetLowPowerVolumeImpl(float &volume) GetLowPowerVolumeImpl() argument
205 GetSingleStreamVolumeImpl(float &volume) GetSingleStreamVolumeImpl() argument
[all...]
/foundation/filemanagement/storage_service/services/storage_manager/volume/test/
H A Dnotification_test.cpp19 #include "volume/notification.h"
50 std::shared_ptr<VolumeExternal> volume = make_shared<VolumeExternal>(vc); in HWTEST_F() local
52 notification->NotifyVolumeChange(VolumeState::REMOVED, volume); in HWTEST_F()
74 std::shared_ptr<VolumeExternal> volume = make_shared<VolumeExternal>(vc); in HWTEST_F() local
76 notification->NotifyVolumeChange(VolumeState::UNMOUNTED, volume); in HWTEST_F()
98 std::shared_ptr<VolumeExternal> volume = make_shared<VolumeExternal>(vc); in HWTEST_F() local
99 volume->SetFsUuid("uuid1"); in HWTEST_F()
100 volume->SetPath("path1"); in HWTEST_F()
102 notification->NotifyVolumeChange(VolumeState::MOUNTED, volume); in HWTEST_F()
124 std::shared_ptr<VolumeExternal> volume in HWTEST_F() local
148 std::shared_ptr<VolumeExternal> volume = make_shared<VolumeExternal>(vc); HWTEST_F() local
172 std::shared_ptr<VolumeExternal> volume = make_shared<VolumeExternal>(vc); HWTEST_F() local
[all...]
/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/src/
H A 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/common/src/
H A Daudio_common_converter.cpp33 float volume) in ConvertBufferTo32Bit()
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()
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()
32 ConvertBufferTo32Bit(const uint8_t *buffer, int32_t format, int32_t *dst, size_t count, float volume) ConvertBufferTo32Bit() argument
83 ConvertBufferTo16Bit(const uint8_t *buffer, int32_t format, int16_t *dst, size_t count, float volume) ConvertBufferTo16Bit() argument
133 ConvertBufferToFloat(const uint8_t *buffer, uint32_t samplePerFrame, std::vector<float> &floatBuffer, float volume) ConvertBufferToFloat() argument
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/external/dummy/include/stub/
H A 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
H A Dtelephone_service.h47 virtual void OnVolumeChanged(int type, int volume) in OnVolumeChanged() argument
61 virtual void OnVolumeChangedForAutotest(int type, int volume) in OnVolumeChangedForAutotest() argument
127 bool SetStreamVolume(int type, int volume, int flag) in SetStreamVolume() argument
131 bool SetHfVolume(int type, int volume) in SetHfVolume() argument
194 void NotifyVolumeChanged(int type, int volume) in NotifyVolumeChanged() argument
208 void NotifyVolumeChangedForAutotest(int type, int volume) in NotifyVolumeChangedForAutotest() argument
/foundation/filemanagement/storage_service/services/storage_manager/volume/src/
H A Dnotification.cpp16 #include "volume/notification.h"
33 void 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 in NotifyVolumeChange()
[all...]
/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/volume_change_test/src/
H A Daudio_volume_change_unit_test.cpp54 g_volumeLevel = volumeEvent.volume; in OnVolumeKeyEvent()
90 * Function: Set volume for AudioStreamType::STREAM_MUSIC
105 int volume = 10; in HWTEST_F() local
110 result = g_audioManagerInstance->SetVolume(volumeType, volume); in HWTEST_F()
117 EXPECT_EQ(volume, g_volumeLevel); in HWTEST_F()
126 * Function: Set volume for AudioStreamType::STREAM_RING
141 int volume = 10; in HWTEST_F() local
146 result = g_audioManagerInstance->SetVolume(volumeType, volume); in HWTEST_F()
153 EXPECT_EQ(volume, g_volumeLevel); in HWTEST_F()
162 * Function: Set volume fo
176 int volume = 10; HWTEST_F() local
[all...]
/foundation/multimedia/audio_framework/services/audio_policy/server/src/
H A Daudio_client_tracker_callback_proxy.cpp95 void AudioClientTrackerCallbackProxy::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
103 data.WriteFloat(static_cast<float>(volume)); in SetLowPowerVolumeImpl()
110 void AudioClientTrackerCallbackProxy::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
123 volume = reply.ReadFloat(); in GetLowPowerVolumeImpl()
126 void AudioClientTrackerCallbackProxy::GetSingleStreamVolumeImpl(float &volume) in GetSingleStreamVolumeImpl() argument
139 volume = reply.ReadFloat(); in GetSingleStreamVolumeImpl()
214 void ClientTrackerCallbackListener::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
217 listener_->SetLowPowerVolumeImpl(volume); in SetLowPowerVolumeImpl()
221 void ClientTrackerCallbackListener::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
224 listener_->GetLowPowerVolumeImpl(volume); in GetLowPowerVolumeImpl()
228 GetSingleStreamVolumeImpl(float &volume) GetSingleStreamVolumeImpl() argument
[all...]
/foundation/multimedia/audio_framework/frameworks/native/audiorenderer/src/
H A Daudio_renderer_proxy_obj.cpp64 void AudioRendererProxyObj::SetLowPowerVolumeImpl(float volume) in SetLowPowerVolumeImpl() argument
67 renderer->SetLowPowerVolume(volume); in SetLowPowerVolumeImpl()
71 void AudioRendererProxyObj::GetLowPowerVolumeImpl(float &volume) in GetLowPowerVolumeImpl() argument
74 volume = renderer->GetLowPowerVolume(); in GetLowPowerVolumeImpl()
93 void AudioRendererProxyObj::GetSingleStreamVolumeImpl(float &volume) in GetSingleStreamVolumeImpl() argument
96 volume = renderer->GetSingleStreamVolume(); in GetSingleStreamVolumeImpl()
/foundation/multimedia/audio_framework/services/audio_policy/server/include/
H A Daudio_client_tracker_callback_proxy.h36 virtual void SetLowPowerVolumeImpl(float volume) override;
37 virtual void GetLowPowerVolumeImpl(float &volume) override;
40 virtual void GetSingleStreamVolumeImpl(float &volume) override;
56 virtual void SetLowPowerVolumeImpl(float volume) override;
57 virtual void GetLowPowerVolumeImpl(float &volume) override;
60 virtual void GetSingleStreamVolumeImpl(float &volume) override;
/foundation/systemabilitymgr/safwk/test/mock/common/audio_ability/src/
H A 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/services/audio_policy/common/include/
H A Di_standard_client_tracker.h34 virtual void SetLowPowerVolumeImpl(float volume) = 0;
35 virtual void GetLowPowerVolumeImpl(float& volume) = 0;
38 virtual void GetSingleStreamVolumeImpl(float& volume) = 0;
/foundation/multimedia/audio_framework/services/audio_policy/test/unittest/audio_client_tracker_callback_stub_unit_test/include/
H A Daudio_client_tracker_callback_stub_unit_test.h52 virtual void SetLowPowerVolumeImpl(float volume) {}; in SetLowPowerVolumeImpl() argument
53 virtual void GetLowPowerVolumeImpl(float &volume) {}; in GetLowPowerVolumeImpl() argument
54 virtual void GetSingleStreamVolumeImpl(float &volume) {}; in GetSingleStreamVolumeImpl() argument
/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/include/
H A Daudio_capturer_proxy_obj.h35 void SetLowPowerVolumeImpl(float volume);
36 void GetLowPowerVolumeImpl(float &volume);
39 void GetSingleStreamVolumeImpl(float &volume);
/foundation/multimedia/audio_framework/frameworks/native/audiorenderer/include/
H A Daudio_renderer_proxy_obj.h35 void SetLowPowerVolumeImpl(float volume);
36 void GetLowPowerVolumeImpl(float &volume);
39 void GetSingleStreamVolumeImpl(float &volume);
/foundation/multimedia/audio_framework/services/audio_service/common/include/
H A Daudio_common_converter.h25 float volume);
26 static void ConvertBufferTo32Bit(const uint8_t *buffer, int32_t format, int32_t *dst, size_t count, float volume);
27 static void ConvertBufferTo16Bit(const uint8_t *buffer, int32_t format, int16_t *dst, size_t count, float volume);
H A 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 volumeLevel);
100 SystemVolume(int32_t volumeType, std::string deviceClass, float volume, int32_t volumeLevel, bool isMuted) in SystemVolume() argument
101 : volumeType_(volumeType), deviceClass_(deviceClass), volume_(volume), in SystemVolume()
/foundation/systemabilitymgr/safwk/test/mock/common/ondemand_ability/src/
H A Dtest_ondemand_ability.cpp43 int TestOnDemandAbility::AddVolume(int volume) in AddVolume() argument
45 HiLog::Info(label_, "TestOnDemandAbility:: %{public}s called, volume = %{public}d", in AddVolume()
46 __func__, volume); in AddVolume()
47 return (volume + 1); in AddVolume()
H A 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/client/include/
H A Daudio_client_tracker_callback_stub.h37 void SetLowPowerVolumeImpl(float volume) override;
38 void GetLowPowerVolumeImpl(float &volume) override;
41 void GetSingleStreamVolumeImpl(float &volume) override;
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/
H A Daudio_direct_sink_unit_test.cpp93 attr.volume = 1.0f; in HWTEST_F()
97 float volume = 1.0f; in HWTEST_F() local
98 ret = sink->SetVolume(volume, volume); in HWTEST_F()
118 attr.volume = 1.0f; in HWTEST_F()
144 attr.volume = 1.0f; in HWTEST_F()
185 attr.volume = 1.0f; in HWTEST_F()
220 attr.volume = 1.0f; in HWTEST_F()
248 attr.volume = 1.0f; in HWTEST_F()
274 attr.volume in HWTEST_F()
509 float volume = 1.0f; HWTEST_F() local
[all...]
/foundation/systemabilitymgr/safwk/test/mock/common/demo_sa/src/
H A Ddemo_service.cpp33 int DemoService::AddVolume(int volume) in AddVolume() argument
35 return (volume + 1); in AddVolume()
/foundation/systemabilitymgr/safwk/test/mock/common/tt_ability/src/
H A Dtest_tt_ability.cpp33 int TestTtAbility::AddVolume(int volume) in AddVolume() argument
35 return (volume + 1); in AddVolume()
/foundation/systemabilitymgr/safwk/test/mock/common/connect_ability/src/
H A Dtest_connect_ability.cpp33 int TestConnectAbility::AddVolume(int volume) in AddVolume() argument
35 return (volume + 1); in AddVolume()

Completed in 8 milliseconds

12345678910>>...16