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

12345

/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/support/v4/api21/android/support/v4/media/
H A DVolumeProviderCompatApi21.java26 public void onSetVolumeTo(int volume) {
27 delegate.onSetVolumeTo(volume);
42 void onSetVolumeTo(int volume); argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumeComponent.java17 package com.android.systemui.volume;
H A DInteraction.java17 package com.android.systemui.volume;
H A DIconPulser.java17 package com.android.systemui.volume;
/frameworks/av/services/audioflinger/
H A DAudioMixerOps.h39 * by a volume gain, with the formula:
43 * The output, input, and volume may have different types.
58 inline TO MixMul(TI value, TV volume) { argument
62 return value * volume;
66 inline int32_t MixMul<int32_t, int16_t, int16_t>(int16_t value, int16_t volume) { argument
67 return value * volume;
71 inline int32_t MixMul<int32_t, int32_t, int16_t>(int32_t value, int16_t volume) { argument
72 return (value >> 12) * volume;
76 inline int32_t MixMul<int32_t, int16_t, int32_t>(int16_t value, int32_t volume) { argument
77 return value * (volume >> 1
81 MixMul(int32_t value, int32_t volume) argument
86 MixMul(float value, int16_t volume) argument
92 MixMul(float value, int32_t volume) argument
98 MixMul(float value, int16_t volume) argument
103 MixMul(float value, int32_t volume) argument
108 MixMul(int16_t value, int16_t volume) argument
114 MixMul(int16_t value, int32_t volume) argument
120 MixMul(int16_t value, int16_t volume) argument
125 MixMul(int32_t value, int16_t volume) argument
130 MixMul(int16_t value, int32_t volume) argument
135 MixMul(int32_t value, int32_t volume) argument
144 MixMul(float value, float volume) argument
149 MixMul(int16_t value, float volume) argument
155 MixMul(int32_t value, float volume) argument
161 MixMul(int16_t value, float volume) argument
168 MixMul(int16_t value, float volume) argument
174 MixMul(float value, float volume) argument
220 MixMulAux(TI value, TV volume, TA *auxaccum) argument
[all...]
H A DAudioResampler.h147 inline float clampFloatVol(float volume) { argument
148 if (volume > UNITY_GAIN_FLOAT) {
150 } else if (volume >= 0.) {
151 return volume;
153 return 0.; // NaN or negative volume maps to 0.
/frameworks/base/media/java/android/media/
H A DIRemoteDisplayProvider.aidl29 void setVolume(String id, int volume);
H A DMediaRouterClientState.java103 public int volume; field in class:MediaRouterClientState.RouteInfo
127 volume = other.volume;
142 volume = in.readInt();
163 dest.writeInt(volume);
179 + ", volume=" + volume
H A DRemoteDisplayState.java107 public int volume; field in class:RemoteDisplayState.RemoteDisplayInfo
124 volume = other.volume;
135 volume = in.readInt();
156 dest.writeInt(volume);
168 + ", volume=" + volume
H A DToneGenerator.java732 /** Maximum volume, for use with {@link #ToneGenerator(int,int)} */
734 /** Minimum volume setting, for use with {@link #ToneGenerator(int,int)} */
739 * ToneGenerator class contructor specifying output stream type and volume.
742 * @param volume The volume of the tone, given in percentage of maximum volume (from 0-100).
745 public ToneGenerator(int streamType, int volume) { argument
746 native_setup(streamType, volume);
880 private native final void native_setup(int streamType, int volume); argument
H A DVolumeProvider.java21 * Handles requests to adjust or set the volume on a session. This is also used
22 * to push volume updates back to the session. The provider must call
23 * {@link #setCurrentVolume(int)} each time the volume being provided changes.
25 * You can set a volume provider on a session by calling
30 * The volume is fixed and can not be modified. Requests to change volume
36 * The volume control uses relative adjustment via
37 * {@link #onAdjustVolume(int)}. Attempts to set the volume to a specific
43 * The volume control uses an absolute value. It may be adjusted using
55 * Create a new volume provide
118 onSetVolumeTo(int volume) argument
[all...]
H A DIMediaRouterService.aidl33 void requestSetVolume(IMediaRouterClient client, String routeId, int 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/lib/remotedisplay/java/com/android/media/remotedisplay/
H A DRemoteDisplay.java58 * Volume handling: Output volume can be changed.
64 * Volume handling: Output volume is fixed.
118 return mMutableInfo.volume;
121 public void setVolume(int volume) { argument
122 if (mMutableInfo.volume != volume) {
123 mMutableInfo.volume = volume;
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DVolumeControlAction.java27 * Feature action that transmits volume change to Audio Receiver.
29 * This action is created when a user pressed volume up/down. However, Android only provides a
30 * listener for delta of some volume change instead of individual key event. Also it's hard to know
31 * Audio Receiver's number of volume steps for a single volume control key. Because of this, it
33 * volume change happens; otherwise, it will send again key-down as press and hold feature does.
38 // State that wait for next volume press.
52 * Scale a custom volume value to cec volume scale.
54 * @param volume volum
58 scaleToCecVolume(int volume, int scale) argument
[all...]
H A DSystemAudioStatusAction.java28 * Action to update audio status (volume or mute) of audio amplifier
98 int volume = params[0] & 0x7F;
99 tv().setAudioStatus(mute, volume);
/frameworks/base/media/java/android/media/tv/
H A DITvInputHardware.aidl38 * Set volume for this stream via AudioGain.
40 void setStreamVolume(float volume);
H A DITvInputSession.aidl37 void setVolume(float volume);
/frameworks/support/v4/java/android/support/v4/media/
H A DVolumeProviderCompat.java23 * Handles requests to adjust or set the volume on a session. This is also used
24 * to push volume updates back to the session after a request has been handled.
25 * You can set a volume provider on a session by calling
30 * The volume is fixed and can not be modified. Requests to change volume
36 * The volume control uses relative adjustment via
37 * {@link #onAdjustVolume(int)}. Attempts to set the volume to a specific
43 * The volume control uses an absolute value. It may be adjusted using
57 * Create a new volume provider for handling volume event
115 onSetVolumeTo(int volume) argument
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DRemoteControlClientCompat.java61 * Sets a callback to receive volume change requests from the remote control client.
63 * @param callback The volume callback to use or null if none.
73 public int volume; field in class:RemoteControlClientCompat.PlaybackInfo
81 * Called when volume updates are requested by the remote control client.
85 * Called when the volume should be increased or decreased.
87 * @param direction An integer indicating whether the volume is to be increased
90 * in the same direction, e.g. +3 corresponds to three "volume up" changes.
95 * Called when the volume for the route should be set to the given value.
97 * @param volume An integer indicating the new volume valu
100 onVolumeSetRequest(int volume) argument
180 onVolumeSetRequest(Object routeObj, int volume) argument
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DIBluetoothA2dp.aidl37 oneway void setAvrcpAbsoluteVolume(int volume);
/frameworks/base/services/core/java/com/android/server/
H A DMountService.java143 * Internal vold volume state constants
610 // Snapshot current volume states since it's not safe to call into vold
630 * the volume is shared (runtime restart while ums enabled)
639 for (StorageVolume volume : mVolumes) {
640 if (volume.isEmulated()) {
641 updatePublicVolumeState(volume, Environment.MEDIA_MOUNTED);
677 for (StorageVolume volume : mVolumes) {
678 if (user.equals(volume.getOwner())) {
679 toRemove.add(volume);
682 for (StorageVolume volume
745 updatePublicVolumeState(StorageVolume volume, String state) argument
1292 sendStorageIntent(String action, StorageVolume volume, UserHandle user) argument
1445 addVolumeLocked(StorageVolume volume) argument
1455 removeVolumeLocked(StorageVolume volume) argument
[all...]
/frameworks/base/core/java/android/os/
H A DEnvironment.java719 final StorageVolume volume = getStorageVolume(path);
720 if (volume != null) {
724 return mountService.getVolumeState(volume.getPath());
756 final StorageVolume volume = getStorageVolume(path);
757 if (volume != null) {
758 return volume.isRemovable();
787 final StorageVolume volume = getStorageVolume(path);
788 if (volume != null) {
789 return volume.isEmulated();
870 for (StorageVolume volume
[all...]
/frameworks/base/core/java/android/preference/
H A DSeekBarVolumizer.java39 * Turns a {@link SeekBar} into a volume control.
238 // Do the volume changing separately to give responsive UI
290 volumeStore.volume = mLastProgress;
296 if (volumeStore.volume != -1) {
298 mLastProgress = volumeStore.volume;
323 public void postUpdateSlider(int volume, boolean mute) { argument
324 obtainMessage(UPDATE_SLIDER, volume, mute ? 1 : 0).sendToTarget();
330 final int volume = mAudioManager.getStreamVolume(mStreamType);
332 mUiHandler.postUpdateSlider(volume, mute);

Completed in 1069 milliseconds

12345