/frameworks/base/media/java/android/media/ |
H A D | ToneGenerator.java | 726 /** Maximum volume, for use with {@link #ToneGenerator(int,int)} */ 728 /** Minimum volume setting, for use with {@link #ToneGenerator(int,int)} */ 733 * ToneGenerator class contructor specifying output stream type and volume. 736 * @param volume The volume of the tone, given in percentage of maximum volume (from 0-100). 739 public ToneGenerator(int streamType, int volume) { argument 740 native_setup(streamType, volume); 874 private native final void native_setup(int streamType, int volume); argument
|
H A D | IAudioService.aidl | 59 oneway void playSoundEffectVolume(int effectType, float volume);
|
H A D | AudioManager.java | 39 * AudioManager provides access to volume and ringer mode control. 59 * audio streams may consider pausing, reducing volume or some other action 96 * @hide Broadcast intent when the volume for a particular stream type changes. 97 * Includes the stream, the new volume and previous volumes 127 * @hide The stream type for the volume changed intent. 132 * @hide The volume associated with the stream for the volume changed intent. 138 * @hide The previous volume associated with the stream for the volume changed intent. 170 /** @hide Default volume inde 1198 playSoundEffect(int effectType, float volume) argument [all...] |
H A D | AudioService.java | 65 * The implementation of the volume manager service. 68 * asynchronous to external calls. For example, the task of setting a volume 70 * volume and later persist to the database. Similarly, setting the ringer mode 80 /** How long to delay before persisting a change in volume/ringer mode. */ 154 /** @hide Maximum volume index values for audio streams */ 167 /* STREAM_VOLUME_ALIAS[] indicates for each stream if it uses the volume settings 168 * of another stream: This avoids multiplying the volume settings for hidden 169 * stream types that follow other stream behavior for volume settings 270 // Intialized volume 324 /** Waits for the volume handle 774 playSoundEffectVolume(int effectType, float volume) argument 1540 playSoundEffect(int effectType, int volume) argument [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. 173 public int volume = -1; field in class:VolumePreference.VolumeStore 182 mVolumeStore.volume = source.readInt(); 189 dest.writeInt(mVolumeStore.volume); 214 * Turns a {@link SeekBar} into a volume control. 234 int volume = System.getInt(mContext.getContentResolver(), 236 // Works around an atomicity problem with volume updates 238 if (volume >= 0) { 239 mSeekBar.setProgress(volume); [all...] |
/frameworks/base/include/private/media/ |
H A D | AudioTrackShared.h | 54 uint16_t volume[2]; member in union:android::audio_track_cblk_t::__anon69
|
/frameworks/base/libs/audioflinger/ |
H A D | AudioDumpInterface.h | 132 virtual status_t setVoiceVolume(float volume) argument 133 {return mFinalInterface->setVoiceVolume(volume);} 134 virtual status_t setMasterVolume(float volume) argument 135 {return mFinalInterface->setMasterVolume(volume);}
|
H A D | AudioMixer.cpp | 55 t->volume[0] = UNITY_GAIN; 56 t->volume[1] = UNITY_GAIN; 204 if (track.volume[name-VOLUME0] != value) { 205 track.prevVolume[name-VOLUME0] = track.volume[name-VOLUME0] << 16; 206 track.volume[name-VOLUME0] = value; 251 if (((volumeInc[i]>0) && (((prevVolume[i]+volumeInc[i])>>16) >= volume[i])) || 252 ((volumeInc[i]<0) && (((prevVolume[i]+volumeInc[i])>>16) <= volume[i]))) { 254 prevVolume[i] = volume[i]<<16; 374 // Now that the volume ramp has been done, set optimal state and 498 t->resampler->setVolume(t->volume[ [all...] |
H A D | AudioPolicyService.h | 102 virtual status_t setStreamVolume(AudioSystem::stream_type stream, float volume, audio_io_handle_t output, int delayMs = 0); 108 virtual status_t setVoiceVolume(float volume, int delayMs = 0); 147 status_t volumeCommand(int stream, float volume, int output, int delayMs = 0); 149 status_t voiceVolumeCommand(float volume, int delayMs = 0);
|
H A D | A2dpAudioInterface.h | 39 virtual status_t setVoiceVolume(float volume); 40 virtual status_t setMasterVolume(float volume);
|
H A D | AudioHardwareGeneric.h | 107 virtual status_t setVoiceVolume(float volume); 108 virtual status_t setMasterVolume(float volume);
|
H A D | AudioHardwareStub.h | 69 virtual status_t setVoiceVolume(float volume); 70 virtual status_t setMasterVolume(float volume);
|
H A D | AudioPolicyService.cpp | 517 status_t AudioPolicyService::setStreamVolume(AudioSystem::stream_type stream, float volume, audio_io_handle_t output, int delayMs) argument 519 return mAudioCommandThread->volumeCommand((int)stream, volume, (int)output, delayMs); 554 status_t AudioPolicyService::setVoiceVolume(float volume, int delayMs) argument 556 return mAudioCommandThread->voiceVolumeCommand(volume, delayMs); 626 LOGV("AudioCommandThread() processing set volume stream %d, volume %f, output %d", data->mStream, data->mVolume, data->mIO); 646 LOGV("AudioCommandThread() processing set voice volume volume %f", data->mVolume); 737 status_t AudioPolicyService::AudioCommandThread::volumeCommand(int stream, float volume, int output, int delayMs) argument 745 data->mVolume = volume; 792 voiceVolumeCommand(float volume, int delayMs) argument [all...] |
H A D | AudioHardwareStub.cpp | 89 status_t AudioHardwareStub::setVoiceVolume(float volume) argument 94 status_t AudioHardwareStub::setMasterVolume(float volume) argument
|
H A D | AudioPolicyManagerBase.cpp | 326 // Flag that ringtone volume must be limited to music volume until we exit MODE_RINGTONE 571 // apply volume rules for current stream and device if necessary 802 // Force max volume if stream cannot be muted 808 // compute and apply stream volume on all outputs according to connected device 1155 // set initial stream volume for A2DP device 1657 float volume = 1.0; local 1666 volume = AudioSystem::linearToLog(volInt); 1670 // - always attenuate ring tones and notifications volume by 6dB 1671 // - if music is playing, always limit the volume t 1714 float volume = computeVolume(stream, index, output, device); local [all...] |
H A D | AudioMixer.h | 59 RAMP_VOLUME = 0x3002, // ramp to new volume 127 int16_t volume[2]; // [0]3.12 fixed point member in union:android::AudioMixer::track_t::__anon193
|
H A D | AudioFlinger.cpp | 396 // when hw supports master volume, don't scale in sw mixer 501 mStreamTypes[stream].volume = value; 540 float volume; local 546 volume = thread->streamVolume(stream); 548 volume = mStreamTypes[stream].volume; 551 return volume; 943 mStreamTypes[stream].volume = mAudioFlinger->streamVolumeInternal(stream); 1149 mStreamTypes[stream].volume = value; 1167 return mStreamTypes[stream].volume; [all...] |
H A D | AudioFlinger.h | 138 virtual status_t setVoiceVolume(float volume); 440 // FILLED state is used for suppressing volume ramp at begin of playing 536 : volume(1.0f), 540 float volume; member in struct:android::AudioFlinger::PlaybackThread::stream_type_t 661 float streamVolumeInternal(int stream) const { return mStreamTypes[stream].volume; }
|
/frameworks/base/core/jni/ |
H A D | android_media_ToneGenerator.cpp | 81 jint streamType, jint volume) { 82 ToneGenerator *lpToneGen = new ToneGenerator(streamType, AudioSystem::linearToLog(volume), true); 80 android_media_ToneGenerator_native_setup(JNIEnv *env, jobject thiz, jint streamType, jint volume) argument
|
/frameworks/base/include/media/ |
H A D | ToneGenerator.h | 154 ToneGenerator(int streamType, float volume, bool threadCanCallJava = false); 289 float volume);
|
H A D | AudioSystem.h | 179 // set/get master volume 181 static status_t getMasterVolume(float* volume); 186 // set/get stream volume on specified output 188 static status_t getStreamVolume(int stream, float* volume, int output); 211 static float linearToLog(int volume); 212 static int logToLinear(float volume); 223 static status_t setVoiceVolume(float volume);
|
H A D | IAudioFlinger.h | 132 virtual status_t setVoiceVolume(float volume) = 0;
|
/frameworks/base/media/libmedia/ |
H A D | AudioSystem.cpp | 112 status_t AudioSystem::getMasterVolume(float* volume) argument 116 *volume = af->masterVolume(); 146 status_t AudioSystem::getStreamVolume(int stream, float* volume, int output) argument 151 *volume = af->streamVolume(stream, output); 196 // convert volume steps to natural log scale 198 // change this value to change volume scaling 204 float AudioSystem::linearToLog(int volume) argument 206 // float v = volume ? exp(float(100 - volume) * dBConvert) : 0; 207 // LOGD("linearToLog(%d)=%f", volume, 212 logToLinear(float volume) argument [all...] |
H A D | IAudioFlinger.cpp | 463 virtual status_t setVoiceVolume(float volume) argument 467 data.writeFloat(volume); 593 float volume = data.readFloat(); local 595 reply->writeInt32( setStreamVolume(stream, volume, output) ); 748 float volume = data.readFloat(); local 749 reply->writeInt32( setVoiceVolume(volume) );
|
H A D | ToneGenerator.cpp | 796 // volume: volume applied to tone (0.0 to 1.0) 802 ToneGenerator::ToneGenerator(int streamType, float volume, bool threadCanCallJava) { argument 804 LOGV("ToneGenerator constructor: streamType=%d, volume=%f\n", streamType, volume); 814 mVolume = volume; 1153 // If segment, ON -> OFF transition : ramp volume down 1481 // volume: volume (0.0 to 1.0) 1488 unsigned short frequency, float volume) { 1487 WaveGenerator(unsigned short samplingRate, unsigned short frequency, float volume) argument [all...] |