Lines Matching refs:value

150 // The universal constant for ubiquitous 20ms value. The value of 20ms seems to provide a good
187 // track buffer in shared memory. Zero on input means to use a default value. For fast tracks,
190 // This is the default value, if not specified by property.
197 // The actual value to use, which can be specified per-device via property af.fast_track_multiplier.
212 char value[PROPERTY_VALUE_MAX];
213 if (property_get("af.fast_track_multiplier", value, NULL) > 0) {
215 unsigned long ul = strtoul(value, &endptr, 0);
638 int value;
639 if (param.getInt(String8(AudioParameter::keyMonoOutput), value) == NO_ERROR) {
640 setMasterMono_l(value != 0);
2078 void AudioFlinger::PlaybackThread::setMasterVolume(float value)
2086 mMasterVolume = value;
2105 void AudioFlinger::PlaybackThread::setStreamVolume(audio_stream_type_t stream, float value)
2108 mStreamTypes[stream].volume = value;
2616 char value[PROPERTY_VALUE_MAX];
2621 if (property_get("ro.audio.silent", value, "0") > 0) {
2623 unsigned long ul = strtoul(value, &endptr, 0);
4183 // lacks any synchronization or barrier so VolumeProvider may read a stale value
4644 int value;
4645 if (param.getInt(String8(AudioParameter::keySamplingRate), value) == NO_ERROR) {
4648 if (param.getInt(String8(AudioParameter::keyFormat), value) == NO_ERROR) {
4649 if (!isValidPcmSinkFormat((audio_format_t) value)) {
4652 // no need to save value, since it's constant
4656 if (param.getInt(String8(AudioParameter::keyChannels), value) == NO_ERROR) {
4657 if (!isValidPcmSinkChannelMask((audio_channel_mask_t) value)) {
4660 // no need to save value, since it's constant
4664 if (param.getInt(String8(AudioParameter::keyFrameCount), value) == NO_ERROR) {
4674 if (param.getInt(String8(AudioParameter::keyRouting), value) == NO_ERROR) {
4678 if (mOutDevice != value) {
4681 if (value & AUDIO_DEVICE_OUT_SPEAKER) {
4688 if (value & deviceWithoutSpeaker) {
4700 if (value != AUDIO_DEVICE_NONE) {
4702 (mOutDevice & AUDIO_DEVICE_OUT_ALL_A2DP) != (value & AUDIO_DEVICE_OUT_ALL_A2DP);
4703 mOutDevice = value;
5204 int value;
5205 if (param.getInt(String8(AudioParameter::keyRouting), value) == NO_ERROR) {
5208 if (value != AUDIO_DEVICE_NONE) {
5210 (mOutDevice & AUDIO_DEVICE_OUT_ALL_A2DP) != (value & AUDIO_DEVICE_OUT_ALL_A2DP);
5211 mOutDevice = value;
5217 if (param.getInt(String8(AudioParameter::keyFrameCount), value) == NO_ERROR) {
6788 // was initialized to some value closer to the thread's mRsmpInFront, then the track could
7089 int value;
7097 if (param.getInt(String8(AudioParameter::keySamplingRate), value) == NO_ERROR) {
7098 samplingRate = value;
7101 if (param.getInt(String8(AudioParameter::keyFormat), value) == NO_ERROR) {
7102 if (!audio_is_linear_pcm((audio_format_t) value)) {
7105 reqFormat = (audio_format_t) value;
7109 if (param.getInt(String8(AudioParameter::keyChannels), value) == NO_ERROR) {
7110 audio_channel_mask_t mask = (audio_channel_mask_t) value;
7119 if (param.getInt(String8(AudioParameter::keyFrameCount), value) == NO_ERROR) {
7129 if (param.getInt(String8(AudioParameter::keyRouting), value) == NO_ERROR) {
7133 mEffectChains[i]->setDevice_l(value);
7139 if (audio_is_output_devices(value)) {
7140 mOutDevice = value;
7143 mInDevice = value;
7144 if (value != AUDIO_DEVICE_NONE) {
7145 mPrevInDevice = value;
7160 if (param.getInt(String8(AudioParameter::keyInputSource), value) == NO_ERROR &&
7161 mAudioSource != (audio_source_t)value) {
7165 mEffectChains[i]->setAudioSource_l((audio_source_t)value);
7167 mAudioSource = (audio_source_t)value;
7250 // The value is somewhat arbitrary, and could probably be even larger.
7251 // A larger value should allow more old data to be read after a track calls start(),
7265 // The current value is higher than necessary. However it should not add to latency.
7859 int value;
7860 if (param.getInt(String8(AudioParameter::keyRouting), value) == NO_ERROR) {
7863 if (value != AUDIO_DEVICE_NONE) {
7864 mOutDevice = value;
8242 void AudioFlinger::MmapPlaybackThread::setMasterVolume(float value)
8250 mMasterVolume = value;
8265 void AudioFlinger::MmapPlaybackThread::setStreamVolume(audio_stream_type_t stream, float value)
8269 mStreamVolume = value;
8351 char value[PROPERTY_VALUE_MAX];
8352 if (property_get("ro.audio.silent", value, "0") > 0) {
8354 unsigned long ul = strtoul(value, &endptr, 0);