/frameworks/wilhelm/src/itf/ |
H A D | IDeviceVolume.c | 49 static SLresult IDeviceVolume_SetVolume(SLDeviceVolumeItf self, SLuint32 deviceID, SLint32 volume) argument 64 thiz->mVolume[~deviceID] = volume; 96 SLint32 volume = thiz->mVolume[~deviceID]; local 98 *pVolume = volume;
|
/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/mtp/ |
H A D | MtpStorage.java | 38 public MtpStorage(StorageVolume volume, Context context) { argument 39 mStorageId = volume.getStorageId(); 40 mPath = volume.getPath(); 41 mDescription = context.getResources().getString(volume.getDescriptionId()); 42 mReserveSpace = volume.getMtpReserveSpace() * 1024 * 1024; 43 mRemovable = volume.isRemovable(); 44 mMaxFileSize = volume.getMaxFileSize();
|
H A D | MtpPropertyGroup.java | 68 public MtpPropertyGroup(MtpDatabase database, IContentProvider provider, String volume, argument 72 mVolumeName = volume; 73 mUri = Files.getMtpObjectsUri(volume);
|
/frameworks/base/core/java/android/speech/tts/ |
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
|
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
|
/frameworks/av/media/libmedia/ |
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...] |
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) );
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
H A D | EffectBundle.h | 99 int volume; member in struct:BundledEffectContext
|
/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/wilhelm/tests/automated/ |
H A D | BufferQueue_test.cpp | 42 // volume of sine wave in range 0.0 to 1.0 463 #if 1 // temporary workaround if hardware volume control is not working 466 float volume = atof(VOLUME); local 467 if (volume >= 0.0f && volume <= 1.0f) { 468 gVolume = volume;
|
/frameworks/base/media/java/android/media/videoeditor/ |
H A D | AudioTrack.java | 109 * @param volume The volume in percentage 114 * @param duckedTrackVolume The relative volume of the audio track when 125 int volume, boolean muted,boolean duckingEnabled, 185 mVolumePercent = volume; 261 * Set the volume of this audio track as percentage of the volume in the 264 * @param volumePercent Percentage of the volume to apply. If it is set to 265 * 0, then volume becomes mute. It it is set to 100, then volume 123 AudioTrack(VideoEditor editor, String audioTrackId, String filename, long startTimeMs,long beginMs, long endMs, boolean loop, int volume, boolean muted,boolean duckingEnabled, int duckThreshold, int duckedTrackVolume, String audioWaveformFilename) argument [all...] |
H A D | MediaArtistNativeHelper.java | 1460 int volume; field in class:MediaArtistNativeHelper.AudioSettings 2638 * Sets the volume for current media item in clip properties array 2753 mAudioSettings.volume = 0; 2755 mAudioSettings.volume = mAudioTrack.getVolume();
|
/frameworks/av/services/audioflinger/ |
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 | 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 | 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...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiWatchdogStateMachine.java | 198 * Minimum volume (converted from pkt/sec) to detect a poor link, to avoid randomness. 823 + df.format(mCurrentLoss.mValue * 100) + "% volume=" 1005 * - volume-weighted: each update has its own weight (number of packets) 1079 * @param volume is the volume for this single update 1081 public void updateLoss(int rssi, double value, int volume) { argument 1082 if (volume <= 0) return; 1085 mEntries[index].update(value, volume); 1089 + "% volume=" + df.format(mEntries[index].mVolume)); 1190 // don't use a data point if it volume i [all...] |
/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 | 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 | MediaRouter.java | 736 Log.e(TAG, "Error checking Bluetooth A2DP state to report volume change", e); 951 * Playback information indicating the playback volume is fixed, i.e. it cannot be 952 * controlled from this object. An example of fixed playback volume is a remote player, 953 * playing over HDMI where the user prefers to control the volume on the HDMI sink, rather 959 * Playback information indicating the playback volume is variable and can be controlled 1109 * Return the current volume for this route. Depending on the route, this may only 1112 * @return the volume at which the playback associated with this route is performed 1121 Log.e(TAG, "Error getting local stream volume", e); 1130 * Request a volume change for this route. 1131 * @param volume valu 1133 requestSetVolume(int volume) argument 1407 setVolume(int volume) argument 1420 requestSetVolume(int volume) argument 1630 requestSetVolume(int volume) argument 2058 onVolumeSetRequest(RouteInfo info, int 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. */ 161 // flags for MSG_PERSIST_VOLUME indicating if current and/or last audible volume should be 188 // Internally master volume is a float in the 0.0 - 1.0 range, 192 // Maximum volume adjust steps allowed in a single batch call. 220 /** @hide Maximum volume index values for audio streams */ 233 /* mStreamVolumeAlias[] indicates for each stream if it uses the volume settings 234 * of another stream: This avoids multiplying the volume setting 1010 findVolumeDelta(int direction, int volume) argument 1210 setMasterVolume(int volume, int flags) argument 1219 doSetMasterVolume(float volume, int flags) argument 1574 playSoundEffectVolume(int effectType, float volume) argument 3157 playSoundEffect(int effectType, int volume) argument [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | MountService.java | 122 * Internal vold volume state constants 517 // Snapshot current volume states since it's not safe to call into vold 537 * the volume is shared (runtime restart while ums enabled) 546 for (StorageVolume volume : mVolumes) { 547 if (volume.isEmulated()) { 548 updatePublicVolumeState(volume, Environment.MEDIA_MOUNTED); 579 for (StorageVolume volume : mVolumes) { 580 if (user.equals(volume.getOwner())) { 581 toRemove.add(volume); 584 for (StorageVolume volume 631 updatePublicVolumeState(StorageVolume volume, String state) argument 1112 sendStorageIntent(String action, StorageVolume volume, UserHandle user) argument 1248 addVolumeLocked(StorageVolume volume) argument 1258 removeVolumeLocked(StorageVolume volume) argument [all...] |