Searched refs:volume (Results 1 - 25 of 41) 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() * 1024 * 1024;
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/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.java736 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...]
/frameworks/base/services/java/com/android/server/
H A DMountService.java122 * 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...]
/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,
87 static float linearToLog(int volume);
88 static int logToLinear(float volume);
118 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/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.java78 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 DPlaybackSynthesisCallback.java69 PlaybackSynthesisCallback(int streamType, float volume, float pan, argument
73 mVolume = volume;
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.h99 int volume; member in struct:BundledEffectContext
/frameworks/av/media/libeffects/data/
H A Daudio_effects.conf58 volume {
/frameworks/base/core/java/android/os/storage/
H A DStorageVolume.java27 * 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...]
H A DStorageManager.java237 * 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;
/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.cpp176 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 DAudioPolicyService.h131 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);
H A DAudioPolicyService.cpp693 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...]
/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 363 milliseconds

12