Searched defs:volume (Results 51 - 75 of 127) sorted by relevance

123456

/frameworks/base/media/lib/remotedisplay/java/com/android/media/remotedisplay/
H A DRemoteDisplayProvider.java198 * Called when the system would like to set the volume of a display.
201 * @param volume The desired volume.
203 public void onSetVolume(RemoteDisplay display, int volume) { argument
207 * Called when the system would like to adjust the volume of a display.
210 * @param delta An increment to add to the current volume, such as +1 or -1.
350 public void setVolume(String id, int volume) { argument
351 mHandler.obtainMessage(MSG_SET_VOLUME, volume, 0, id).sendToTarget();
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DHearingAidProfile.java187 public void setVolume(int volume) { argument
191 mService.setVolume(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/base/packages/SystemUI/src/com/android/systemui/volume/
H A DEvents.java17 package com.android.systemui.volume;
32 * Interesting events related to the volume.
H A DUtil.java17 package com.android.systemui.volume;
35 * Static helpers for the volume dialog.
H A DVolumeDialogComponent.java17 package com.android.systemui.volume;
46 * Implementation of VolumeComponent backed by the new volume dialog.
H A DMediaSessions.java17 package com.android.systemui.volume;
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/
H A DSampleMediaRouteProvider.java273 public void onSetVolume(int volume) { argument
274 Log.d(TAG, mRouteId + ": Set volume to " + volume);
276 setVolumeInternal(volume);
282 Log.d(TAG, mRouteId + ": Update volume by " + delta);
335 private void setVolumeInternal(int volume) { argument
336 if (volume >= 0 && volume <= VOLUME_MAX) {
337 mVolume = volume;
338 Log.d(TAG, mRouteId + ": New volume i
[all...]
/frameworks/support/media/src/main/java/androidx/media/
H A DMediaPlayerInterface.java257 * Sets the volume of the audio of the media to play, expressed as a linear multiplier
259 * Note that this volume is specific to the player, and is separate from stream volume
262 * gain. See {@link #getMaxPlayerVolume()} for the volume range supported by this player.
263 * @param volume a value between 0.0f and {@link #getMaxPlayerVolume()}.
265 public abstract void setPlayerVolume(float volume); argument
268 * Returns the current volume of this player to this player.
269 * Note that it does not take into account the associated stream volume.
270 * @return the player volume.
275 * @return the maximum volume tha
[all...]
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/
H A DMediaRouteProvider.java47 * as volume changes or {@link MediaControlIntent media control intents}
386 * Requests to set the volume of the route.
388 * @param volume The new volume value between 0 and {@link MediaRouteDescriptor#getVolumeMax}.
390 public void onSetVolume(int volume) { argument
394 * Requests an incremental volume update for the route.
396 * @param delta The delta to add to the current volume.
H A DMediaRouteProviderService.java304 int controllerId, int volume) {
310 controller.onSetVolume(volume);
312 Log.d(TAG, client + ": Route volume changed"
313 + ", controllerId=" + controllerId + ", volume=" + volume);
331 Log.d(TAG, client + ": Route volume updated"
714 int volume = data.getInt(CLIENT_DATA_VOLUME, -1);
715 if (volume >= 0) {
717 messenger, requestId, arg, volume);
303 onSetRouteVolume(Messenger messenger, int requestId, int controllerId, int volume) argument
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/
H A DSampleMediaRouteProvider.java273 public void onSetVolume(int volume) { argument
274 Log.d(TAG, mRouteId + ": Set volume to " + volume);
276 setVolumeInternal(volume);
282 Log.d(TAG, mRouteId + ": Update volume by " + delta);
335 private void setVolumeInternal(int volume) { argument
336 if (volume >= 0 && volume <= VOLUME_MAX) {
337 mVolume = volume;
338 Log.d(TAG, mRouteId + ": New volume i
[all...]
/frameworks/av/media/libaaudio/src/legacy/
H A DAudioStreamTrack.cpp499 float volume = getDuckAndMuteVolume(); local
500 mAudioTrack->setVolume(volume, volume);
520 if (status < 0) { // a non-negative value is the volume shaper id.
526 " no AudioTrack for volume control from IPlayer");
/frameworks/av/media/libaudioclient/
H A DToneGenerator.cpp924 // volume: volume applied to tone (0.0 to 1.0)
930 ToneGenerator::ToneGenerator(audio_stream_type_t streamType, float volume, bool threadCanCallJava) { argument
932 ALOGV("ToneGenerator constructor: streamType=%d, volume=%f", streamType, volume);
942 mVolume = volume;
1328 // If segment, ON -> OFF transition : ramp volume down
1650 // volume: volume (0.0 to 1.0)
1657 unsigned short frequency, float volume) {
1656 WaveGenerator(uint32_t samplingRate, unsigned short frequency, float volume) argument
[all...]
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/
H A DMediaRouteProviderService.java311 int controllerId, int volume) {
317 controller.onSetVolume(volume);
319 Log.d(TAG, client + ": Route volume changed"
320 + ", controllerId=" + controllerId + ", volume=" + volume);
338 Log.d(TAG, client + ": Route volume updated"
721 int volume = data.getInt(CLIENT_DATA_VOLUME, -1);
722 if (volume >= 0) {
724 messenger, requestId, arg, volume);
310 onSetRouteVolume(Messenger messenger, int requestId, int controllerId, int volume) argument
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioOutputDescriptor.cpp144 bool AudioOutputDescriptor::setVolume(float volume, argument
150 // We actually change the volume if:
153 if (volume != mCurVolume[stream] || force) {
154 ALOGV("setVolume() for stream %d, volume %f, delay %d", stream, volume, delayMs);
155 mCurVolume[stream] = volume;
203 snprintf(buffer, SIZE, " Stream volume refCount muteCount\n");
367 bool SwAudioOutputDescriptor::setVolume(float volume, argument
373 bool changed = AudioOutputDescriptor::setVolume(volume, stream, device, delayMs, force);
376 // Force VOICE_CALL to track BLUETOOTH_SCO stream volume whe
378 float volume = Volume::DbToAmpl(mCurVolume[stream]); local
579 setVolume(float volume, audio_stream_type_t stream, audio_devices_t device, uint32_t delayMs, bool force) argument
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothA2dp.java578 * Checks if Avrcp device supports the absolute volume feature.
580 * @return true if device supports absolute volume
601 * Tells remote device to set an absolute volume. Only if absolute volume is supported
603 * @param volume Absolute volume to be set on AVRCP side
606 public void setAvrcpAbsoluteVolume(int volume) { argument
611 mService.setAvrcpAbsoluteVolume(volume);
647 * target and thus whether we should send volume keys
/frameworks/base/services/core/java/com/android/server/media/
H A DRemoteDisplayProviderProxy.java115 public void setDisplayVolume(int volume) { argument
117 mActiveConnection.setVolume(mSelectedDisplayId, volume);
380 public void setVolume(String id, int volume) { argument
382 mProvider.setVolume(id, volume);
384 Slog.e(TAG, "Failed to deliver request to set display volume.", ex);
388 public void adjustVolume(String id, int volume) { argument
390 mProvider.adjustVolume(id, volume);
392 Slog.e(TAG, "Failed to deliver request to adjust display volume.", ex);
/frameworks/support/media/src/androidTest/java/androidx/media/
H A DMockPlayer.java284 public void setPlayerVolume(float volume) { argument
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/androidx/media/test/client/
H A DMockPlayer.java287 public void setPlayerVolume(float volume) { argument
/frameworks/support/media/version-compat-tests/current/service/src/androidTest/java/androidx/media/test/service/
H A DMockPlayer.java287 public void setPlayerVolume(float volume) { argument
/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/av/include/media/
H A DAudioMixer.h52 static constexpr uint32_t MAX_NUM_VOLUMES = FCC_2; // stereo volume only
63 RAMP_VOLUME = 0x3002, // ramp to new volume
175 * USEFLOATVOL (set to true if float volume is used)
176 * ADJUSTVOL (set to true if volume ramp parameters needs adjustment afterwards)
261 // TODO: Eventually remove legacy integer volume settings
263 int16_t volume[MAX_NUM_VOLUMES]; // U4.12 fixed point (top bit should be zero) member in union:android::AudioMixer::Track::__anon62
326 float mVolume[MAX_NUM_VOLUMES]; // floating point set volume
327 float mPrevVolume[MAX_NUM_VOLUMES]; // floating point previous volume
328 float mVolumeInc[MAX_NUM_VOLUMES]; // floating point volume increment
/frameworks/av/media/libaudioclient/include/media/
H A DAudioMixer.h52 static constexpr uint32_t MAX_NUM_VOLUMES = FCC_2; // stereo volume only
63 RAMP_VOLUME = 0x3002, // ramp to new volume
175 * USEFLOATVOL (set to true if float volume is used)
176 * ADJUSTVOL (set to true if volume ramp parameters needs adjustment afterwards)
261 // TODO: Eventually remove legacy integer volume settings
263 int16_t volume[MAX_NUM_VOLUMES]; // U4.12 fixed point (top bit should be zero) member in union:android::AudioMixer::Track::__anon188
326 float mVolume[MAX_NUM_VOLUMES]; // floating point set volume
327 float mPrevVolume[MAX_NUM_VOLUMES]; // floating point previous volume
328 float mVolumeInc[MAX_NUM_VOLUMES]; // floating point volume increment
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.h101 int volume; member in struct:BundledEffectContext

Completed in 424 milliseconds

123456