/frameworks/av/include/media/ |
H A D | AudioSystem.h | 49 // set/get master volume 51 static status_t getMasterVolume(float* volume); 57 // set/get stream volume on specified output 60 static status_t getStreamVolume(audio_stream_type_t stream, float* volume, 87 static float linearToLog(int volume); 88 static int logToLinear(float volume); 118 static status_t setVoiceVolume(float volume);
|
H A D | IAudioFlinger.h | 157 virtual status_t setVoiceVolume(float volume) = 0;
|
H A D | ToneGenerator.h | 154 ToneGenerator(audio_stream_type_t streamType, float volume, bool threadCanCallJava = false); 292 float volume);
|
/frameworks/av/media/libeffects/data/ |
H A D | audio_effects.conf | 58 volume {
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
H A D | EffectBundle.cpp | 1225 // Apply a volume correction to avoid clipping in the EQ based on 2 factors: 1226 // - the maximum EQ band gain: the volume correction is such that the total of volume + max 1269 if (maxGain + pContext->pBundledContext->volume > 0) { 1270 gainCorrection = maxGain + pContext->pBundledContext->volume; 1279 ActiveParams.VC_EffectLevel = pContext->pBundledContext->volume - gainCorrection; 1294 ALOGV("\tLVM_VOLUME: Disabling Smoothing for first volume change to remove spikes/clicks"); 1529 pContext->pBundledContext->volume = level / 100; 1552 *level = pContext->pBundledContext->volume * 100; 1573 /* Set appropriate volume leve [all...] |
H A D | EffectBundle.h | 99 int volume; member in struct:BundledEffectContext
|
/frameworks/av/media/libmedia/ |
H A D | AudioSystem.cpp | 107 status_t AudioSystem::getMasterVolume(float* volume) argument 111 *volume = af->masterVolume(); 142 status_t AudioSystem::getStreamVolume(audio_stream_type_t stream, float* volume, argument 148 *volume = af->streamVolume(stream, output); 184 // convert volume steps to natural log scale 186 // change this value to change volume scaling 192 float AudioSystem::linearToLog(int volume) argument 194 // float v = volume ? exp(float(100 - volume) * dBConvert) : 0; 195 // ALOGD("linearToLog(%d)=%f", volume, 200 logToLinear(float volume) argument [all...] |
H A D | IAudioFlinger.cpp | 495 virtual status_t setVoiceVolume(float volume) argument 499 data.writeFloat(volume); 810 float volume = data.readFloat(); local 812 reply->writeInt32( setStreamVolume((audio_stream_type_t) stream, volume, output) ); 961 float volume = data.readFloat(); local 962 reply->writeInt32( setVoiceVolume(volume) );
|
H A D | ToneGenerator.cpp | 795 // volume: volume applied to tone (0.0 to 1.0) 801 ToneGenerator::ToneGenerator(audio_stream_type_t streamType, float volume, bool threadCanCallJava) { argument 803 ALOGV("ToneGenerator constructor: streamType=%d, volume=%f", streamType, volume); 813 mVolume = volume; 1148 // If segment, ON -> OFF transition : ramp volume down 1467 // volume: volume (0.0 to 1.0) 1474 unsigned short frequency, float volume) { 1473 WaveGenerator(unsigned short samplingRate, unsigned short frequency, float volume) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioFlinger.cpp | 619 // Set master volume in the HALs which support it. 631 // Now set the master volume in each playback thread. Playback threads 632 // assigned to HALs which do not have master volume support will apply 633 // master volume during the mix operation. Threads with HALs which do 634 // support master volume will simply ignore the setting. 792 mStreamTypes[stream].volume = value; 833 float volume; local 839 volume = thread->streamVolume(stream); 841 volume = streamVolume_l(stream); 844 return volume; 8716 uint32_t volume[2]; local [all...] |
H A D | AudioFlinger.h | 175 virtual status_t setVoiceVolume(float volume); 754 : volume(1.0f), 758 float volume; member in struct:android::AudioFlinger::stream_type_t 864 // FILLED state is used for suppressing volume ramp at begin of playing 894 volatile float mCachedVolume; // combined master volume and stream type volume; 1384 // no range check, doesn't check per-thread stream volume, AudioFlinger::mLock held 1386 { return mStreamTypes[stream].volume; } 1606 // reset, enable, disable commands to effect engine and provide volume 1919 int mVolumeCtrlIdx; // index of insert effect having control over volume [all...] |
H A D | AudioMixer.cpp | 176 t->volume[0] = UNITY_GAIN; 177 t->volume[1] = UNITY_GAIN; 488 if (track.volume[param-VOLUME0] != valueInt) { 490 track.prevVolume[param-VOLUME0] = track.volume[param-VOLUME0] << 16; 491 track.volume[param-VOLUME0] = valueInt; 571 if (((volumeInc[i]>0) && (((prevVolume[i]+volumeInc[i])>>16) >= volume[i])) || 572 ((volumeInc[i]<0) && (((prevVolume[i]+volumeInc[i])>>16) <= volume[i]))) { 574 prevVolume[i] = volume[i]<<16; 735 // Now that the volume ramp has been done, set optimal state and 790 t->resampler->setVolume(t->volume[ [all...] |
H A D | AudioMixer.h | 62 RAMP_VOLUME = 0x3002, // ramp to new volume 149 int16_t volume[MAX_NUM_CHANNELS]; // [0]3.12 fixed point member in union:android::AudioMixer::track_t::__anon930
|
H A D | AudioPolicyService.cpp | 693 ALOGV("AudioCommandThread() processing set volume stream %d, \ 694 volume %f, output %d", data->mStream, data->mVolume, data->mIO); 717 ALOGV("AudioCommandThread() processing set voice volume volume %f", 809 float volume, 819 data->mVolume = volume; 824 ALOGV("AudioCommandThread() adding set volume stream %d, volume %f, output %d", 825 stream, volume, output); 860 status_t AudioPolicyService::AudioCommandThread::voiceVolumeCommand(float volume, in argument 808 volumeCommand(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument 1013 setStreamVolume(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument 1041 setVoiceVolume(float volume, int delayMs) argument 1510 aps_set_stream_volume(void *service, audio_stream_type_t stream, float volume, audio_io_handle_t output, int delay_ms) argument 1535 aps_set_voice_volume(void *service, float volume, int delay_ms) argument [all...] |
H A D | AudioPolicyService.h | 131 float volume, 136 virtual status_t setVoiceVolume(float volume, int delayMs = 0); 176 status_t volumeCommand(audio_stream_type_t stream, float volume, 180 status_t voiceVolumeCommand(float volume, int delayMs = 0);
|
/frameworks/base/core/java/android/os/storage/ |
H A D | StorageManager.java | 237 * Message sent on volume state change. 549 * Gets the state of a volume via its mountpoint. 557 Log.e(TAG, "Failed to get volume state", e); 578 Log.e(TAG, "Failed to get volume list", e); 605 for (StorageVolume volume : volumes) { 606 if (volume.isPrimary()) { 607 return volume;
|
H A D | StorageVolume.java | 27 * Description of a storage volume and its capabilities, including the 46 /** When set, indicates exclusive ownership of this volume */ 88 * Returns the mount path for the volume. 101 * Returns a user visible description of the volume. 103 * @return the volume description 118 * Returns true if the volume is removable. 127 * Returns true if the volume is emulated. 136 * Returns the MTP storage ID for the volume. 171 * Returns true if this volume can be shared via USB mass storage. 180 * Returns maximum file size for the volume, o [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | VolumePreference.java | 73 // grab focus and key events so that pressing the volume buttons in the 74 // dialog doesn't also show the normal volume adjust toast. 180 public int volume = -1; field in class:VolumePreference.VolumeStore 189 mVolumeStore.volume = source.readInt(); 196 dest.writeInt(mVolumeStore.volume); 221 * Turns a {@link SeekBar} into a volume control. 242 int volume = mAudioManager.getStreamVolume(mStreamType); 243 mSeekBar.setProgress(volume); 308 // Do the volume changing separately to give responsive UI 373 volumeStore.volume [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | BlockingAudioTrack.java | 78 float volume, float pan) { 83 mVolume = volume; 324 private static void setupVolume(AudioTrack audioTrack, float volume, float pan) { argument 325 final float vol = clip(volume, 0.0f, 1.0f); 337 Log.e(TAG, "Failed to set volume"); 76 BlockingAudioTrack(int streamType, int sampleRate, int audioFormat, int channelCount, float volume, float pan) argument
|
H A D | PlaybackSynthesisCallback.java | 69 PlaybackSynthesisCallback(int streamType, float volume, float pan, argument 73 mVolume = volume;
|
H A D | SynthesisPlaybackQueueItem.java | 68 float volume, float pan, UtteranceProgressDispatcher dispatcher, 79 channelCount, volume, pan); 66 SynthesisPlaybackQueueItem(int streamType, int sampleRate, int audioFormat, int channelCount, float volume, float pan, UtteranceProgressDispatcher dispatcher, Object callerIdentity, EventLogger logger) argument
|
/frameworks/base/core/jni/ |
H A D | android_media_ToneGenerator.cpp | 89 jint streamType, jint volume) { 90 ToneGenerator *lpToneGen = new ToneGenerator((audio_stream_type_t) streamType, AudioSystem::linearToLog(volume), true); 88 android_media_ToneGenerator_native_setup(JNIEnv *env, jobject thiz, jint streamType, jint volume) argument
|
/frameworks/base/media/java/android/media/ |
H A D | AudioManager.java | 42 * AudioManager provides access to volume and ringer mode control. 61 * audio streams may consider pausing, reducing volume or some other action 101 * @hide Broadcast intent when the volume for a particular stream type changes. 102 * Includes the stream, the new volume and previous volumes. 105 * - never used for "remote" volume changes 115 * @hide Broadcast intent when the master volume changes. 116 * Includes the new volume 127 * Includes the the new volume 160 * @hide The stream type for the volume changed intent. 165 * @hide The volume associate 1697 playSoundEffect(int effectType, float volume) argument [all...] |
H A D | AudioService.java | 89 * The implementation of the volume manager service. 92 * asynchronous to external calls. For example, the task of setting a volume 94 * volume and later persist to the database. Similarly, setting the ringer mode 109 /** How long to delay before persisting a change in volume/ringer mode. */ 162 // flags for MSG_PERSIST_VOLUME indicating if current and/or last audible volume should be 189 // Internally master volume is a float in the 0.0 - 1.0 range, 193 // Maximum volume adjust steps allowed in a single batch call. 221 /** @hide Maximum volume index values for audio streams */ 234 /* mStreamVolumeAlias[] indicates for each stream if it uses the volume settings 235 * of another stream: This avoids multiplying the volume setting 1021 findVolumeDelta(int direction, int volume) argument 1221 setMasterVolume(int volume, int flags) argument 1230 doSetMasterVolume(float volume, int flags) argument 1585 playSoundEffectVolume(int effectType, float volume) argument 3186 playSoundEffect(int effectType, int volume) argument [all...] |
H A D | IAudioService.aidl | 91 oneway void playSoundEffectVolume(int effectType, float volume);
|