Searched refs:volume (Results 1 - 25 of 70) 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/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.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 DIMediaRouterService.aidl33 void requestSetVolume(IMediaRouterClient client, String routeId, int volume);
H A DSoundPool.java223 * @param leftVolume left volume value (range = 0.0 to 1.0)
224 * @param rightVolume right volume value (range = 0.0 to 1.0)
303 * Set stream volume.
305 * Sets the volume on the stream specified by the streamID.
311 * @param leftVolume left volume value (range = 0.0 to 1.0)
312 * @param rightVolume right volume value (range = 0.0 to 1.0)
320 * Similar, except set volume of all channels to same value.
323 public void setVolume(int streamID, float volume) { argument
324 setVolume(streamID, volume, volume);
427 setVolume(int streamID, float volume) argument
542 setVolume(int streamID, float volume) argument
665 setVolume(int streamID, float volume) argument
[all...]
H A DMediaRouter.java451 void requestSetVolume(RouteInfo route, int volume) { argument
455 route.mGlobalRouteId, volume);
457 Log.w(TAG, "Unable to request volume change.", ex);
468 Log.w(TAG, "Unable to request volume change.", ex);
483 route.mVolume = globalRoute.volume;
525 if (route.mVolume != globalRoute.volume) {
526 route.mVolume = globalRoute.volume;
1286 Log.e(TAG, "Error checking Bluetooth A2DP state to report volume change", e);
1511 * Playback information indicating the playback volume is fixed, i.e. it cannot be
1512 * controlled from this object. An example of fixed playback volume i
1758 requestSetVolume(int volume) argument
2127 setVolume(int volume) argument
2140 requestSetVolume(int volume) argument
2351 requestSetVolume(int volume) argument
2793 onVolumeSetRequest(RouteInfo info, int volume) argument
[all...]
/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/java/com/android/media/remotedisplay/
H A DRemoteDisplay.java59 * Volume handling: Output volume can be changed.
65 * Volume handling: Output volume is fixed.
119 return mMutableInfo.volume;
122 public void setVolume(int volume) { argument
123 if (mMutableInfo.volume != volume) {
124 mMutableInfo.volume = volume;
/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...]
H A DSystemMediaRouteProvider.java160 public void onSetVolume(int volume) { argument
161 mAudioManager.setStreamVolume(PLAYBACK_STREAM, volume, 0);
167 int volume = mAudioManager.getStreamVolume(PLAYBACK_STREAM);
169 int newVolume = Math.min(maxVolume, Math.max(0, volume + delta));
170 if (newVolume != volume) {
171 mAudioManager.setStreamVolume(PLAYBACK_STREAM, volume, 0);
191 final int volume = intent.getIntExtra(EXTRA_VOLUME_STREAM_VALUE, -1);
192 if (volume >= 0 && volume != mLastReportedVolume) {
433 public void onVolumeSetRequest(Object routeObj, int volume) { argument
696 onSetVolume(int volume) argument
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DIBluetoothA2dp.aidl37 oneway void setAvrcpAbsoluteVolume(int volume);
/frameworks/base/services/java/com/android/server/
H A DMountService.java128 * Internal vold volume state constants
527 // Snapshot current volume states since it's not safe to call into vold
547 * the volume is shared (runtime restart while ums enabled)
556 for (StorageVolume volume : mVolumes) {
557 if (volume.isEmulated()) {
558 updatePublicVolumeState(volume, Environment.MEDIA_MOUNTED);
589 for (StorageVolume volume : mVolumes) {
590 if (user.equals(volume.getOwner())) {
591 toRemove.add(volume);
594 for (StorageVolume volume
662 updatePublicVolumeState(StorageVolume volume, String state) argument
1164 sendStorageIntent(String action, StorageVolume volume, UserHandle user) argument
1305 addVolumeLocked(StorageVolume volume) argument
1315 removeVolumeLocked(StorageVolume volume) argument
[all...]
/frameworks/base/core/java/android/preference/
H A DVolumePreference.java76 // grab focus and key events so that pressing the volume buttons in the
77 // dialog doesn't also show the normal volume adjust toast.
183 public int volume = -1; field in class:VolumePreference.VolumeStore
192 mVolumeStore.volume = source.readInt();
199 dest.writeInt(mVolumeStore.volume);
224 * Turns a {@link SeekBar} into a volume control.
250 int volume = mAudioManager.getStreamVolume(mStreamType);
251 mSeekBar.setProgress(volume);
366 // Do the volume changing separately to give responsive UI
418 volumeStore.volume
[all...]
/frameworks/av/include/media/
H A DAudioSystem.h47 // set/get master volume
49 static status_t getMasterVolume(float* volume);
55 // set/get stream volume on specified output
58 static status_t getStreamVolume(audio_stream_type_t stream, float* volume,
90 static float linearToLog(int volume);
91 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);
293 float volume);
/frameworks/base/services/java/com/android/server/media/
H A DRemoteDisplayProviderProxy.java116 public void setDisplayVolume(int volume) { argument
118 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/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
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DDemoStatusIcons.java61 String volume = args.getString("volume");
62 if (volume != null) {
63 int iconId = volume.equals("silent") ? R.drawable.stat_sys_ringer_silent
64 : volume.equals("vibrate") ? R.drawable.stat_sys_ringer_vibrate
66 updateSlot("volume", null, iconId);
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
H A DExternalStorageProvider.java119 for (StorageVolume volume : volumes) {
120 final boolean mounted = Environment.MEDIA_MOUNTED.equals(volume.getState())
121 || Environment.MEDIA_MOUNTED_READ_ONLY.equals(volume.getState());
125 if (volume.isPrimary() && volume.isEmulated()) {
127 } else if (volume.getUuid() != null) {
128 rootId = volume.getUuid();
130 Log.d(TAG, "Missing UUID for " + volume.getPath() + "; skipping");
140 final File path = volume.getPathFile();
150 root.title = volume
[all...]
/frameworks/av/media/libeffects/data/
H A Daudio_effects.conf100 volume {

Completed in 720 milliseconds

123