Home
last modified time | relevance | path

Searched refs:volume (Results 1 – 25 of 750) sorted by relevance

12345678910>>...30

/external/webrtc/webrtc/voice_engine/test/auto_test/standard/
Dvolume_test.cc29 void SetAndVerifyMicVolume(unsigned int volume) { in SetAndVerifyMicVolume() argument
30 bool success = voe_volume_control_->SetMicVolume(volume) == 0; in SetAndVerifyMicVolume()
35 TEST_LOG("Failed to set microphone volume to %u.\n", volume); in SetAndVerifyMicVolume()
45 EXPECT_EQ(volume, test_volume); in SetAndVerifyMicVolume()
99 unsigned int volume = 1000; in TEST_F() local
100 EXPECT_EQ(0, voe_volume_control_->GetSpeakerVolume(volume)); in TEST_F()
101 EXPECT_LE(volume, 255u); in TEST_F()
112 unsigned int volume; in TEST_F() local
113 EXPECT_EQ(0, voe_volume_control_->GetSpeakerVolume(volume)); in TEST_F()
114 ExpectVolumeNear(200u, volume); in TEST_F()
[all …]
/external/adhd/cras/src/server/
Dsoftvol_curve.c35 unsigned int volume; in softvol_build_from_curve() local
49 for (volume = 0; volume <= MAX_VOLUME; volume++) { in softvol_build_from_curve()
50 scalers[volume] = convert_softvol_scaler_from_dB( in softvol_build_from_curve()
51 curve->get_dBFS(curve, volume)); in softvol_build_from_curve()
52 if (scalers[volume] > 1.0) in softvol_build_from_curve()
53 scalers[volume] = 1.0; in softvol_build_from_curve()
57 else if (scalers[volume] < 1e-7) in softvol_build_from_curve()
58 scalers[volume] = 1e-7; in softvol_build_from_curve()
Dcras_volume_curve.c20 static long get_dBFS_step(const struct cras_volume_curve *curve, size_t volume) in get_dBFS_step() argument
23 return c->max_vol - (c->step * (MAX_VOLUME - volume)); in get_dBFS_step()
33 size_t volume) in get_dBFS_explicit() argument
38 volume = MIN(MAX_VOLUME, MAX(0, volume)); in get_dBFS_explicit()
39 return c->dB_values[volume]; in get_dBFS_explicit()
Dcras_observer.c45 int32_t volume; member
61 int32_t volume; member
106 volume_data->volume); in output_volume_alert()
134 volume_data->volume); in capture_gain_alert()
191 node_data->volume); in output_node_volume_alert()
219 node_data->volume); in input_node_gain_alert()
430 void cras_observer_notify_output_volume(int32_t volume) in cras_observer_notify_output_volume() argument
434 data.volume = volume; in cras_observer_notify_output_volume()
455 data.volume = gain; in cras_observer_notify_capture_gain()
488 int32_t volume) in cras_observer_notify_output_node_volume() argument
[all …]
/external/u-boot/doc/
DREADME.ubi14 ubi info [l[ayout]] - Display volume and ubi layout information
15 ubi create[vol] volume [size] [type] - create volume name with size
16 ubi write[vol] address volume size - Write volume from address with size
17 ubi write.part address volume size [fullsize]
18 - Write part of a volume from address
19 ubi read[vol] address volume [size] - Read volume to address with size
20 ubi remove[vol] volume - Remove volume
22 volume: character name
77 ubi info Display volume and ubi layout information
78 ubi createvol Create UBI volume on UBI device
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/
Ddtmf_buffer_unittest.cc32 static uint32_t MakeDtmfPayload(int event, bool end, int volume, int duration) { in MakeDtmfPayload() argument
41 payload |= (volume & 0x003F) << 16; in MakeDtmfPayload()
53 && a.volume == b.volume); in EqualEvents()
65 int volume = 17; in TEST() local
68 uint32_t payload = MakeDtmfPayload(event_no, end_bit, volume, duration); in TEST()
78 EXPECT_EQ(volume, event.volume); in TEST()
87 int volume = 17; in TEST() local
90 DtmfEvent event(timestamp, event_no, volume, duration, end_bit); in TEST()
122 int volume = 17; in TEST() local
125 DtmfEvent event(timestamp, event_no, volume, duration, end_bit); in TEST()
[all …]
Ddtmf_buffer.cc82 event->volume = (payload[1] & 0x3F); in ParseEvent()
102 event.volume < 0 || event.volume > 36 || in InsertEvent()
151 event->volume = it->volume; in GetEvent()
171 event->volume = it->volume; in GetEvent()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DStreamVolumeManager.java54 private int volume; field in StreamVolumeManager
68 volume = getVolumeFromManager(audioManager, streamType); in StreamVolumeManager()
105 return volume; in getVolume()
117 public void setVolume(int volume) { in setVolume() argument
118 if (volume < getMinVolume() || volume > getMaxVolume()) { in setVolume()
121 audioManager.setStreamVolume(streamType, volume, VOLUME_FLAGS); in setVolume()
130 if (volume >= getMaxVolume()) { in increaseVolume()
142 if (volume <= getMinVolume()) { in decreaseVolume()
172 if (volume != newVolume || muted != newMuted) { in updateVolumeAndNotifyIfChanged()
173 volume = newVolume; in updateVolumeAndNotifyIfChanged()
/external/u-boot/cmd/
Dubi.c149 static int ubi_create_vol(char *volume, int64_t size, int dynamic, int vol_id, in ubi_create_vol() argument
164 strcpy(req.name, volume); in ubi_create_vol()
165 req.name_len = strlen(volume); in ubi_create_vol()
178 dynamic ? "dynamic" : "static", volume, size); in ubi_create_vol()
183 static struct ubi_volume *ubi_find_volume(char *volume) in ubi_find_volume() argument
190 if (vol && !strcmp(vol->name, volume)) in ubi_find_volume()
194 printf("Volume %s not found!\n", volume); in ubi_find_volume()
198 static int ubi_remove_vol(char *volume) in ubi_remove_vol() argument
203 vol = ubi_find_volume(volume); in ubi_remove_vol()
246 ubi_err(ubi, "cannot remove volume %s, error %d", volume, err); in ubi_remove_vol()
[all …]
/external/autotest/client/site_tests/platform_InputVolume/
Dplatform_InputVolume.py33 def test_volume_down(self, volume): argument
45 if volume == 0 and not self.is_muted():
48 if sys_volume != volume:
51 def test_volume_up(self, volume): argument
65 if sys_volume != volume:
68 def test_mute(self, volume): argument
81 if sys_volume != volume:
/external/replicaisland/src/com/replica/replicaisland/
DGameObjectCollisionSystem.java247 CollisionVolume volume = record.attackVolumes.get(y); in drawDebugVolumes() local
249 position.x + volume.getMinXPosition(sFlip), position.y + volume.getMinYPosition(sFlip), in drawDebugVolumes()
250 volume.getMaxX() - volume.getMinX(), in drawDebugVolumes()
251 volume.getMaxY() - volume.getMinY(), in drawDebugVolumes()
252volume.getClass() == AABoxCollisionVolume.class ? DebugSystem.SHAPE_BOX : DebugSystem.SHAPE_CIRCLE, in drawDebugVolumes()
260 CollisionVolume volume = record.vulnerabilityVolumes.get(y); in drawDebugVolumes() local
262 position.x + volume.getMinXPosition(sFlip), position.y + volume.getMinYPosition(sFlip), in drawDebugVolumes()
263 volume.getMaxX() - volume.getMinX(), in drawDebugVolumes()
264 volume.getMaxY() - volume.getMinY(), in drawDebugVolumes()
265volume.getClass() == AABoxCollisionVolume.class ? DebugSystem.SHAPE_BOX : DebugSystem.SHAPE_CIRCLE, in drawDebugVolumes()
/external/webrtc/webrtc/sound/
Dnullsoundsystem.cc46 bool GetVolume(int *volume) override { in GetVolume() argument
47 *volume = SoundSystemInterface::kMinVolume; in GetVolume()
51 bool SetVolume(int volume) override { in SetVolume() argument
79 bool GetVolume(int *volume) override { in GetVolume() argument
80 *volume = SoundSystemInterface::kMinVolume; in GetVolume()
84 bool SetVolume(int volume) override { in SetVolume() argument
/external/webrtc/webrtc/voice_engine/
Dvoe_volume_control_impl.cc49 int VoEVolumeControlImpl::SetSpeakerVolume(unsigned int volume) { in SetSpeakerVolume() argument
51 "SetSpeakerVolume(volume=%u)", volume); in SetSpeakerVolume()
57 if (volume > kMaxVolumeLevel) { in SetSpeakerVolume()
73 spkrVol = (uint32_t)((volume * maxVol + (int)(kMaxVolumeLevel / 2)) / in SetSpeakerVolume()
85 int VoEVolumeControlImpl::GetSpeakerVolume(unsigned int& volume) { in GetSpeakerVolume() argument
109 volume = in GetSpeakerVolume()
115 int VoEVolumeControlImpl::SetMicVolume(unsigned int volume) { in SetMicVolume() argument
117 "SetMicVolume(volume=%u)", volume); in SetMicVolume()
123 if (volume > kMaxVolumeLevel) { in SetMicVolume()
139 if (volume == kMaxVolumeLevel) { in SetMicVolume()
[all …]
Dvoe_volume_control_impl.h22 int SetSpeakerVolume(unsigned int volume) override;
24 int GetSpeakerVolume(unsigned int& volume) override;
26 int SetMicVolume(unsigned int volume) override;
28 int GetMicVolume(unsigned int& volume) override;
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/
DTrackMetaData.java30 private float volume; field in TrackMetaData
116 return volume; in getVolume()
119 public void setVolume(float volume) { in setVolume() argument
120 this.volume = volume; in setVolume()
/external/webrtc/webrtc/modules/audio_device/linux/
Daudio_mixer_manager_pulse_linux.cc238 uint32_t volume) in SetSpeakerVolume() argument
243 volume); in SetSpeakerVolume()
272 LATE(pa_cvolume_set)(&cVolumes, spec->channels, volume); in SetSpeakerVolume()
291 _paSpeakerVolume = volume; in SetSpeakerVolume()
307 AudioMixerManagerLinuxPulse::SpeakerVolume(uint32_t& volume) const in SpeakerVolume()
324 volume = static_cast<uint32_t> (_paVolume); in SpeakerVolume()
328 volume = _paSpeakerVolume; in SpeakerVolume()
333 volume); in SpeakerVolume()
780 AudioMixerManagerLinuxPulse::SetMicrophoneVolume(uint32_t volume) in SetMicrophoneVolume() argument
784 "(volume=%u)", volume); in SetMicrophoneVolume()
[all …]
/external/autotest/client/common_lib/cros/cfm/
Dcras_output_node.py7 def __init__(self, node_id, node_type, node_name, volume, device_id, argument
12 self.volume = int(volume)
19 self.device_name, self.volume))
/external/sonic/
Dmain.c23 float volume, in runSonic() argument
36 sonicSetVolume(stream, volume); in runSonic()
80 float volume = 1.0f; in main() local
114 volume = atof(argv[xArg]); in main()
115 printf("Setting volume to %0.2f\n", volume); in main()
134 runSonic(inFile, outFile, speed, pitch, rate, volume, emulateChordPitch, quality, in main()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/dump/
DDumpArchiveEntry.java203 private int volume; field in DumpArchiveEntry
353 return volume; in getVolume()
360 public void setVolume(final int volume) { in setVolume() argument
361 this.volume = volume; in setVolume()
450 header.volume = DumpArchiveUtil.convert32(buffer, 12); in parse()
498 entry.volume = header.getVolume(); in parse()
508 header.volume = DumpArchiveUtil.convert32(buffer, 16); in update()
528 private int volume; field in DumpArchiveEntry.TapeSegmentHeader
539 return volume; in getVolume()
DDumpArchiveSummary.java36 private int volume; field in DumpArchiveSummary
49 volume = DumpArchiveUtil.convert32(buffer, 12); in DumpArchiveSummary()
99 return volume; in getVolume()
106 public void setVolume(final int volume) { in setVolume() argument
107 this.volume = volume; in setVolume()
/external/webrtc/webrtc/voice_engine/include/
Dvoe_volume_control.h59 virtual int SetSpeakerVolume(unsigned int volume) = 0;
62 virtual int GetSpeakerVolume(unsigned int& volume) = 0;
65 virtual int SetMicVolume(unsigned int volume) = 0;
68 virtual int GetMicVolume(unsigned int& volume) = 0;
/external/adhd/cras/src/tests/
Dobserver_unittest.cc105 void cb_output_volume_changed(void* context, int32_t volume) { in cb_output_volume_changed() argument
108 cb_output_volume_changed_volume.push_back(volume); in cb_output_volume_changed()
156 int32_t volume) { in cb_output_node_volume_changed() argument
160 cb_output_node_volume_changed_volume.push_back(volume); in cb_output_node_volume_changed()
315 const int32_t volume = 100; in TEST_F() local
317 cras_observer_notify_output_volume(volume); in TEST_F()
323 EXPECT_EQ(data->volume, volume); in TEST_F()
329 EXPECT_EQ(cb_output_volume_changed_volume[0], volume); in TEST_F()
330 EXPECT_EQ(cb_output_volume_changed_volume[1], volume); in TEST_F()
375 EXPECT_EQ(data->volume, gain); in TEST_F()
[all …]
/external/sonivox/arm-wt-22k/lib_src/
Deas_math.c164 EAS_I16 EAS_VolumeToGain (EAS_INT volume) in EAS_VolumeToGain() argument
167 if (volume <= 0) in EAS_VolumeToGain()
169 if (volume >= 100) in EAS_VolumeToGain()
173 return (EAS_I16) EAS_Calculate2toX((((volume - EAS_MAX_VOLUME) * 204099) >> 10) - 1); in EAS_VolumeToGain()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
DMovieHeaderBox.java41 private float volume = 1.0f; field in MovieHeaderBox
80 return volume; in getVolume()
117 volume = IsoTypeReader.readFixedPoint88(content); in _parseDetails()
177 IsoTypeWriter.writeFixedPont88(byteBuffer, volume); in getContent()
219 public void setVolume(float volume) { in setVolume() argument
220 this.volume = volume; in setVolume()
DTrackHeaderBox.java45 private float volume; field in TrackHeaderBox
81 return volume; in getVolume()
127 volume = IsoTypeReader.readFixedPoint88(content); in _parseDetails()
156 IsoTypeWriter.writeFixedPont88(byteBuffer, volume); in getContent()
217 public void setVolume(float volume) { in setVolume() argument
218 this.volume = volume; in setVolume()

12345678910>>...30