Searched refs:volume (Results 1 - 25 of 42) sorted by relevance

12

/frameworks/base/media/java/android/mtp/
H A DMtpStorage.java38 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();
43 mRemovable = volume.isRemovable();
44 mMaxFileSize = volume.getMaxFileSize();
H A DMtpPropertyGroup.java68 public MtpPropertyGroup(MtpDatabase database, IContentProvider provider, String volume, argument
72 mVolumeName = volume;
73 mUri = Files.getMtpObjectsUri(volume);
/frameworks/wilhelm/src/itf/
H A DIDeviceVolume.c49 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/java/android/os/
H A DEnvironment.java449 StorageVolume volume = getPrimaryVolume();
450 return (volume != null && volume.isRemovable());
467 StorageVolume volume = getPrimaryVolume();
468 return (volume != null && volume.isEmulated());
/frameworks/base/media/java/android/media/
H A DToneGenerator.java726 /** 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 DMediaRouter.java609 Log.e(TAG, "Error checking Bluetooth A2DP state to report volume change", e);
650 * Playback information indicating the playback volume is fixed, i.e. it cannot be
651 * controlled from this object. An example of fixed playback volume is a remote player,
652 * playing over HDMI where the user prefers to control the volume on the HDMI sink, rather
658 * Playback information indicating the playback volume is variable and can be controlled
773 * Return the current volume for this route. Depending on the route, this may only
776 * @return the volume at which the playback associated with this route is performed
785 Log.e(TAG, "Error getting local stream volume", e);
794 * Request a volume change for this route.
795 * @param volume valu
797 requestSetVolume(int volume) argument
1031 setVolume(int volume) argument
1044 requestSetVolume(int volume) argument
1254 requestSetVolume(int volume) argument
1658 onVolumeSetRequest(RouteInfo info, int volume) argument
[all...]
/frameworks/av/media/libaah_rtp/
H A Daah_decoder_pump.cpp131 float volume = static_cast<float>(last_volume_) local
133 if (renderer_->setVolume(volume, volume) != OK) {
207 void AAH_DecoderPump::setRenderVolume(uint8_t volume) { argument
210 if (volume == last_volume_) {
214 last_volume_ = volume;
216 float volume = static_cast<float>(last_volume_) / 255.0f; local
217 if (renderer_->setVolume(volume, volume) != OK) {
H A Daah_decoder_pump.h45 void setRenderVolume(uint8_t volume);
/frameworks/base/core/java/android/preference/
H A DVolumePreference.java73 // 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/av/include/media/
H A DAudioSystem.h49 // 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,
85 static float linearToLog(int volume);
86 static int logToLinear(float volume);
116 static status_t setVoiceVolume(float volume);
H A DToneGenerator.h154 ToneGenerator(audio_stream_type_t streamType, float volume, bool threadCanCallJava = false);
292 float volume);
/frameworks/base/core/java/android/os/storage/
H A DStorageVolume.java24 * A class representing a storage volume
72 * Returns the mount path for the volume.
81 * Returns a user visible description of the volume.
83 * @return the volume description
94 * Returns true if the volume is removable.
103 * Returns true if the volume is emulated.
112 * Returns the MTP storage ID for the volume.
147 * Returns true if this volume can be shared via USB mass storage.
156 * Returns maximum file size for the volume, or zero if it is unbounded.
167 StorageVolume volume
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DSynthesisPlaybackQueueItem.java68 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 DBlockingAudioTrack.java79 float volume, float pan) {
84 mVolume = volume;
305 private static void setupVolume(AudioTrack audioTrack, float volume, float pan) { argument
306 final float vol = clip(volume, 0.0f, 1.0f);
318 Log.e(TAG, "Failed to set volume");
77 BlockingAudioTrack(int streamType, int sampleRate, int audioFormat, int channelCount, float volume, float pan) argument
H A DPlaybackSynthesisCallback.java69 PlaybackSynthesisCallback(int streamType, float volume, float pan, argument
73 mVolume = volume;
/frameworks/av/media/libeffects/data/
H A Daudio_effects.conf54 volume {
/frameworks/base/core/jni/
H A Dandroid_media_ToneGenerator.cpp89 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/av/services/audioflinger/
H A DAudioMixer.cpp172 t->volume[0] = UNITY_GAIN;
173 t->volume[1] = UNITY_GAIN;
483 if (track.volume[param-VOLUME0] != valueInt) {
485 track.prevVolume[param-VOLUME0] = track.volume[param-VOLUME0] << 16;
486 track.volume[param-VOLUME0] = valueInt;
554 if (((volumeInc[i]>0) && (((prevVolume[i]+volumeInc[i])>>16) >= volume[i])) ||
555 ((volumeInc[i]<0) && (((prevVolume[i]+volumeInc[i])>>16) <= volume[i]))) {
557 prevVolume[i] = volume[i]<<16;
718 // Now that the volume ramp has been done, set optimal state and
773 t->resampler->setVolume(t->volume[
[all...]
H A DAudioPolicyService.h132 float volume,
137 virtual status_t setVoiceVolume(float volume, int delayMs = 0);
177 status_t volumeCommand(audio_stream_type_t stream, float volume,
181 status_t voiceVolumeCommand(float volume, int delayMs = 0);
H A DAudioPolicyService.cpp683 ALOGV("AudioCommandThread() processing set volume stream %d, \
684 volume %f, output %d", data->mStream, data->mVolume, data->mIO);
707 ALOGV("AudioCommandThread() processing set voice volume volume %f",
801 float volume,
811 data->mVolume = volume;
821 ALOGV("AudioCommandThread() adding set volume stream %d, volume %f, output %d",
822 stream, volume, output);
862 status_t AudioPolicyService::AudioCommandThread::voiceVolumeCommand(float volume, in argument
800 volumeCommand(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument
1006 setStreamVolume(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument
1034 setVoiceVolume(float volume, int delayMs) argument
1503 aps_set_stream_volume(void *service, audio_stream_type_t stream, float volume, audio_io_handle_t output, int delay_ms) argument
1528 aps_set_voice_volume(void *service, float volume, int delay_ms) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaPresetReverbTest.java47 // Implementor UUID for volume controller effect defined in
203 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
210 // creating a volume controller on output mix ensures that ro.audio.silent mutes
258 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0);
276 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
281 // creating a volume controller on output mix ensures that ro.audio.silent mutes
343 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0);
H A DMediaEnvReverbTest.java53 // Implementor UUID for volume controller effect defined in
358 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
365 // creating a volume controller on output mix ensures that ro.audio.silent mutes
415 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0);
433 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
438 // creating a volume controller on output mix ensures that ro.audio.silent mutes
502 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0);
/frameworks/av/media/libmedia/
H A DAudioSystem.cpp107 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...]
/frameworks/wilhelm/tests/automated/
H A DBufferQueue_test.cpp42 // 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 DAudioTrack.java109 * @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...]

Completed in 339 milliseconds

12