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

123

/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() * 1024L * 1024L;
43 mRemovable = volume.isRemovable();
44 mMaxFileSize = volume.getMaxFileSize();
/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.java864 Log.e(TAG, "Error checking Bluetooth A2DP state to report volume change", e);
1087 * Playback information indicating the playback volume is fixed, i.e. it cannot be
1088 * controlled from this object. An example of fixed playback volume is a remote player,
1089 * playing over HDMI where the user prefers to control the volume on the HDMI sink, rather
1095 * Playback information indicating the playback volume is variable and can be controlled
1268 * Return the current volume for this route. Depending on the route, this may only
1271 * @return the volume at which the playback associated with this route is performed
1280 Log.e(TAG, "Error getting local stream volume", e);
1289 * Request a volume change for this route.
1290 * @param volume valu
1292 requestSetVolume(int volume) argument
1598 setVolume(int volume) argument
1611 requestSetVolume(int volume) argument
1821 requestSetVolume(int volume) argument
2258 onVolumeSetRequest(RouteInfo info, int volume) argument
[all...]
H A DSoundPool.java275 * @param leftVolume left volume value (range = 0.0 to 1.0)
276 * @param rightVolume right volume value (range = 0.0 to 1.0)
342 * Set stream volume.
344 * Sets the volume on the stream specified by the streamID.
350 * @param leftVolume left volume value (range = 0.0 to 1.0)
351 * @param rightVolume right volume value (range = 0.0 to 1.0)
357 * Similar, except set volume of all channels to same value.
360 public void setVolume(int streamID, float volume) { argument
361 setVolume(streamID, volume, volume);
[all...]
/frameworks/base/services/java/com/android/server/
H A DMountService.java126 * Internal vold volume state constants
522 // Snapshot current volume states since it's not safe to call into vold
542 * the volume is shared (runtime restart while ums enabled)
551 for (StorageVolume volume : mVolumes) {
552 if (volume.isEmulated()) {
553 updatePublicVolumeState(volume, Environment.MEDIA_MOUNTED);
584 for (StorageVolume volume : mVolumes) {
585 if (user.equals(volume.getOwner())) {
586 toRemove.add(volume);
589 for (StorageVolume volume
657 updatePublicVolumeState(StorageVolume volume, String state) argument
1138 sendStorageIntent(String action, StorageVolume volume, UserHandle user) argument
1274 addVolumeLocked(StorageVolume volume) argument
1284 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,
92 static float linearToLog(int volume);
93 static int logToLinear(float volume);
120 static status_t setVoiceVolume(float volume);
H A DToneGenerator.h154 ToneGenerator(audio_stream_type_t streamType, float volume, bool threadCanCallJava = false);
293 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/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/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...]
/frameworks/av/services/audioflinger/
H A DAudioMixer.cpp188 t->volume[0] = UNITY_GAIN;
189 t->volume[1] = UNITY_GAIN;
499 if (track.volume[param-VOLUME0] != valueInt) {
501 track.prevVolume[param-VOLUME0] = track.volume[param-VOLUME0] << 16;
502 track.volume[param-VOLUME0] = valueInt;
582 if (((volumeInc[i]>0) && (((prevVolume[i]+volumeInc[i])>>16) >= volume[i])) ||
583 ((volumeInc[i]<0) && (((prevVolume[i]+volumeInc[i])>>16) <= volume[i]))) {
585 prevVolume[i] = volume[i]<<16;
745 // Now that the volume ramp has been done, set optimal state and
801 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);
/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/support/v7/mediarouter/src/android/support/v7/media/
H A DSystemMediaRouteProvider.java158 public void onSetVolume(int volume) { argument
159 mAudioManager.setStreamVolume(PLAYBACK_STREAM, volume, 0);
165 int volume = mAudioManager.getStreamVolume(PLAYBACK_STREAM);
167 int newVolume = Math.min(maxVolume, Math.max(0, volume + delta));
168 if (newVolume != volume) {
169 mAudioManager.setStreamVolume(PLAYBACK_STREAM, volume, 0);
189 final int volume = intent.getIntExtra(EXTRA_VOLUME_STREAM_VALUE, -1);
190 if (volume >= 0 && volume != mLastReportedVolume) {
421 public void onVolumeSetRequest(Object routeObj, int volume) { argument
[all...]
H A DMediaRouteProviderService.java128 * Set route volume.
132 * - CLIENT_DATA_VOLUME : volume integer
137 * Update route volume.
141 * - CLIENT_DATA_VOLUME : volume delta integer
163 static final String CLIENT_DATA_VOLUME = "volume";
411 int controllerId, int volume) {
417 controller.onSetVolume(volume);
419 Log.d(TAG, client + ": Route volume changed"
420 + ", controllerId=" + controllerId + ", volume=" + volume);
410 onSetRouteVolume(Messenger messenger, int requestId, int controllerId, int volume) argument
[all...]
H A DMediaRouteProvider.java40 * as volume changes or {@link MediaControlIntent media control intents}
326 * Requests to set the volume of the route.
328 * @param volume The new volume value between 0 and {@link MediaRouteDescriptor#getVolumeMax}.
330 public void onSetVolume(int volume) { argument
334 * Requests an incremental volume update for the route.
336 * @param delta The delta to add to the current volume.
/frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/
H A DMediaRouterJellybean.java163 public static void requestSetVolume(Object routeObj, int volume) { argument
164 ((android.media.MediaRouter.RouteInfo)routeObj).requestSetVolume(volume);
215 public static void setVolume(Object routeObj, int volume) { argument
216 ((android.media.MediaRouter.UserRouteInfo)routeObj).setVolume(volume);
266 public void onVolumeSetRequest(Object routeObj, int volume); argument
427 int volume) {
428 mCallback.onVolumeSetRequest(route, volume);
426 onVolumeSetRequest(android.media.MediaRouter.RouteInfo route, int volume) argument
/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...]

Completed in 614 milliseconds

123