Searched refs:volume (Results 76 - 100 of 153) sorted by relevance

1234567

/frameworks/av/include/media/
H A DAudioSystem.h58 // set/get master volume
60 static status_t getMasterVolume(float* volume);
66 // set/get stream volume on specified output
69 static status_t getStreamVolume(audio_stream_type_t stream, float* volume,
107 static float linearToLog(int volume);
108 static int logToLinear(float volume);
138 static status_t setVoiceVolume(float volume);
/frameworks/av/media/libaudioclient/include/media/
H A DAudioSystem.h58 // set/get master volume
60 static status_t getMasterVolume(float* volume);
66 // set/get stream volume on specified output
69 static status_t getStreamVolume(audio_stream_type_t stream, float* volume,
107 static float linearToLog(int volume);
108 static int logToLinear(float volume);
138 static status_t setVoiceVolume(float volume);
/frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/
H A DMediaRouterJellybean.java184 public static void requestSetVolume(Object routeObj, int volume) { argument
185 ((android.media.MediaRouter.RouteInfo)routeObj).requestSetVolume(volume);
236 public static void setVolume(Object routeObj, int volume) { argument
237 ((android.media.MediaRouter.UserRouteInfo)routeObj).setVolume(volume);
292 public void onVolumeSetRequest(Object routeObj, int volume); argument
453 int volume) {
454 mCallback.onVolumeSetRequest(route, volume);
452 onVolumeSetRequest(android.media.MediaRouter.RouteInfo route, int volume) argument
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyService.h161 float volume,
166 virtual status_t setVoiceVolume(float volume, int delayMs = 0);
282 status_t volumeCommand(audio_stream_type_t stream, float volume,
286 status_t voiceVolumeCommand(float volume, int delayMs = 0);
477 // set a stream volume for a particular output. For the same user setting, a given stream type can have different volumes
479 virtual status_t setStreamVolume(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs = 0);
494 // set down link audio volume.
495 virtual status_t setVoiceVolume(float volume, int delayMs = 0);
H A DAudioPolicyService.cpp433 ALOGV("AudioCommandThread() processing set volume stream %d, \
434 volume %f, output %d", data->mStream, data->mVolume, data->mIO);
447 ALOGV("AudioCommandThread() processing set voice volume volume %f",
659 float volume,
667 data->mVolume = volume;
671 ALOGV("AudioCommandThread() adding set volume stream %d, volume %f, output %d",
672 stream, volume, output);
692 status_t AudioPolicyService::AudioCommandThread::voiceVolumeCommand(float volume, in argument
658 volumeCommand(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument
1059 setStreamVolume(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument
1089 setVoiceVolume(float volume, int delayMs) argument
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DMediaRouteProviderService.java300 int controllerId, int volume) {
306 controller.onSetVolume(volume);
308 Log.d(TAG, client + ": Route volume changed"
309 + ", controllerId=" + controllerId + ", volume=" + volume);
327 Log.d(TAG, client + ": Route volume updated"
713 int volume = data.getInt(CLIENT_DATA_VOLUME, -1);
714 if (volume >= 0) {
716 messenger, requestId, arg, volume);
299 onSetRouteVolume(Messenger messenger, int requestId, int controllerId, int volume) argument
H A DRegisteredMediaRouteProvider.java408 public void onSetVolume(int volume) { argument
410 mConnection.setVolume(mControllerId, volume);
412 mPendingSetVolume = volume;
590 public void setVolume(int controllerId, int volume) { argument
592 data.putInt(CLIENT_DATA_VOLUME, volume);
H A DMediaRouteProvider.java46 * as volume changes or {@link MediaControlIntent media control intents}
385 * Requests to set the volume of the route.
387 * @param volume The new volume value between 0 and {@link MediaRouteDescriptor#getVolumeMax}.
389 public void onSetVolume(int volume) { argument
393 * Requests an incremental volume update for the route.
395 * @param delta The delta to add to the current volume.
H A DMediaRouter.java699 * Adds a remote control client to enable remote control of the volume
739 * Sets the media session to enable remote control of the volume of the
755 * Sets a compat media session to enable remote control of the volume of the
912 * Playback information indicating the playback volume is fixed, i.e. it cannot be
913 * controlled from this object. An example of fixed playback volume is a remote player,
914 * playing over HDMI where the user prefers to control the volume on the HDMI sink, rather
922 * Playback information indicating the playback volume is variable and can be controlled
1303 * Gets information about how volume is handled on the route.
1305 * @return How volume is handled on the route: {@link #PLAYBACK_VOLUME_FIXED}
1314 * Gets the current volume fo
1353 requestSetVolume(int volume) argument
2034 requestSetVolume(RouteInfo route, int volume) argument
2831 onVolumeSetRequest(int volume) argument
[all...]
/frameworks/base/tests/RemoteDisplayProvider/src/com/android/media/remotedisplay/test/
H A DRemoteDisplayProviderService.java48 private RemoteDisplay mTestDisplay1; // variable volume
49 private RemoteDisplay mTestDisplay2; // fixed volume
76 mTestDisplay1.setDescription("Variable volume");
86 mTestDisplay2.setDescription("Fixed volume");
259 public void onSetVolume(RemoteDisplay display, int volume) { argument
261 + ", volume=" + volume);
264 display.setVolume(Math.max(0, Math.min(display.getVolumeMax(), volume)));
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
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);
H A DMediaVisualizerTest.java50 // Implementor UUID for volume controller effect defined in
236 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
242 // creating a volume controller on output mix ensures that ro.audio.silent mutes
299 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0);
315 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
321 // creating a volume controller on output mix ensures that ro.audio.silent mutes
431 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0);
437 //Test case 2.2: test capture in polling mode with volume scaling
441 // SCALING_MODE_AS_PLAYED mode decreases when lowering the volume
454 // creating a volume controlle
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DSafetyWarningDialog.java17 package com.android.systemui.volume;
H A DEvents.java17 package com.android.systemui.volume;
32 * Interesting events related to the volume.
H A DSegmentedButtons.java17 package com.android.systemui.volume;
H A DUtil.java17 package com.android.systemui.volume;
35 * Static helpers for the volume dialog.
/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/core/java/android/os/storage/
H A DStorageVolume.java37 * Information about a shared/external storage volume for a specific user.
40 * A device always has one (and one only) primary storage volume, but it could have extra volumes,
42 * volume for a specific user: different users might have different views for the same physical
43 * volume (for example, if the volume is a built-in emulated storage).
46 * The storage volume is not necessarily mounted, applications should use {@link #getState()} to
50 * Applications willing to read or write to this storage volume needs to get a permission from the
60 * select this specific volume.
61 * <li>To get read and write access to the primary storage volume, applications can declare the
76 // NOTE: This is a legacy specialization of VolumeInfo which describes the volume fo
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DBlockingAudioTrack.java318 private static void setupVolume(AudioTrack audioTrack, float volume, float pan) { argument
319 final float vol = clip(volume, 0.0f, 1.0f);
331 Log.e(TAG, "Failed to set volume");
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
H A DStorageMeasurement.java105 public StorageMeasurement(Context context, VolumeInfo volume, VolumeInfo sharedVolume) { argument
110 mVolume = volume;
165 // The storage volume became null while we were measuring it.
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
H A DSampleMediaRouteProvider.java272 public void onSetVolume(int volume) { argument
273 Log.d(TAG, mRouteId + ": Set volume to " + volume);
275 setVolumeInternal(volume);
281 Log.d(TAG, mRouteId + ": Update volume by " + delta);
334 private void setVolumeInternal(int volume) { argument
335 if (volume >= 0 && volume <= VOLUME_MAX) {
336 mVolume = volume;
337 Log.d(TAG, mRouteId + ": New volume i
[all...]
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
H A DSampleMediaRouteProvider.java272 public void onSetVolume(int volume) { argument
273 Log.d(TAG, mRouteId + ": Set volume to " + volume);
275 setVolumeInternal(volume);
281 Log.d(TAG, mRouteId + ": Update volume by " + delta);
334 private void setVolumeInternal(int volume) { argument
335 if (volume >= 0 && volume <= VOLUME_MAX) {
336 mVolume = volume;
337 Log.d(TAG, mRouteId + ": New volume i
[all...]
/frameworks/av/media/libaudioclient/
H A DAudioSystem.cpp143 status_t AudioSystem::getMasterVolume(float* volume) argument
147 *volume = af->masterVolume();
178 status_t AudioSystem::getStreamVolume(audio_stream_type_t stream, float* volume, argument
184 *volume = af->streamVolume(stream, output);
232 // convert volume steps to natural log scale
234 // change this value to change volume scaling
240 float AudioSystem::linearToLog(int volume) argument
242 // float v = volume ? exp(float(100 - volume) * dBConvert) : 0;
243 // ALOGD("linearToLog(%d)=%f", volume,
248 logToLinear(float volume) argument
[all...]
/frameworks/av/media/libaudioprocessing/
H A DAudioMixer.cpp173 // Integer volume.
174 // Currently integer volume is kept for the legacy integer mixer.
176 t->volume[0] = UNITY_GAIN_INT;
177 t->volume[1] = UNITY_GAIN_INT;
186 // Floating point volume.
484 /* Sets the volume ramp variables for the AudioMixer.
486 * The volume ramp variables are used to transition from the previous
487 * volume to the set volume. ramp controls the duration of the transition.
492 * even if there is a nonzero floating point increment (in that case, the volume
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSystemUIFactory.java41 import com.android.systemui.volume.VolumeDialogControllerImpl;

Completed in 638 milliseconds

1234567