/frameworks/base/media/java/android/mtp/ |
D | MtpStorage.java | 38 public MtpStorage(StorageVolume volume, Context context) { in MtpStorage() argument 39 mStorageId = volume.getStorageId(); in MtpStorage() 40 mPath = volume.getPath(); in MtpStorage() 41 mDescription = context.getResources().getString(volume.getDescriptionId()); in MtpStorage() 42 mReserveSpace = volume.getMtpReserveSpace() * 1024L * 1024L; in MtpStorage() 43 mRemovable = volume.isRemovable(); in MtpStorage() 44 mMaxFileSize = volume.getMaxFileSize(); in MtpStorage()
|
/frameworks/base/services/java/com/android/server/ |
D | MountService.java | 551 for (StorageVolume volume : mVolumes) { in handleSystemReady() 552 if (volume.isEmulated()) { in handleSystemReady() 553 updatePublicVolumeState(volume, Environment.MEDIA_MOUNTED); in handleSystemReady() 584 for (StorageVolume volume : mVolumes) { 585 if (user.equals(volume.getOwner())) { 586 toRemove.add(volume); 589 for (StorageVolume volume : toRemove) { 590 removeVolumeLocked(volume); 657 private void updatePublicVolumeState(StorageVolume volume, String state) { in updatePublicVolumeState() argument 658 final String path = volume.getPath(); in updatePublicVolumeState() [all …]
|
/frameworks/base/docs/html/training/managing-audio/ |
D | volume-playback.jd | 35 users can control the volume of your app using the hardware or software volume controls of their 48 call ringer, system sounds, in-call volume, and DTMF tones. This is done primarily to allow users to 49 control the volume of each stream independently.</p> 58 <p>By default, pressing the volume controls modify the volume of the active audio stream. If your 59 app isn't currently playing anything, hitting the volume keys adjusts the ringer volume.<p> 61 <p>If you've got a game or music app, then chances are good that when the user hits the volume keys 62 they want to control the volume of the game or music, even if they’re currently between songs or 65 <p>You may be tempted to try and listen for volume key presses and modify the volume of your 67 android.app.Activity#setVolumeControlStream setVolumeControlStream()} method to direct volume key 71 will be using, you should set it as the volume stream target. You should make this call early in [all …]
|
D | index.jd | 46 <dt><b><a href="volume-playback.html">Controlling Your App’s Volume and 48 <dd>Learn how to ensure your users can control the volume of your app using the hardware or 49 software volume controls and where available the play, stop, pause, skip, and previous media
|
/frameworks/wilhelm/src/itf/ |
D | IDeviceVolume.c | 49 static SLresult IDeviceVolume_SetVolume(SLDeviceVolumeItf self, SLuint32 deviceID, SLint32 volume) in IDeviceVolume_SetVolume() argument 64 thiz->mVolume[~deviceID] = volume; in IDeviceVolume_SetVolume() 96 SLint32 volume = thiz->mVolume[~deviceID]; in IDeviceVolume_GetVolume() local 98 *pVolume = volume; in IDeviceVolume_GetVolume()
|
/frameworks/base/core/java/android/preference/ |
D | VolumePreference.java | 180 public int volume = -1; field in VolumePreference.VolumeStore 189 mVolumeStore.volume = source.readInt(); in SavedState() 196 dest.writeInt(mVolumeStore.volume); in writeToParcel() 242 int volume = mAudioManager.getStreamVolume(mStreamType); 243 mSeekBar.setProgress(volume); 373 volumeStore.volume = mLastProgress; in onSaveInstanceState() 379 if (volumeStore.volume != -1) { in onRestoreInstanceState() 381 mLastProgress = volumeStore.volume; in onRestoreInstanceState()
|
/frameworks/base/media/java/android/media/ |
D | ToneGenerator.java | 739 public ToneGenerator(int streamType, int volume) { in ToneGenerator() argument 740 native_setup(streamType, volume); in ToneGenerator() 874 private native final void native_setup(int streamType, int volume); in native_setup() argument
|
D | MediaRouter.java | 1292 public void requestSetVolume(int volume) { in requestSetVolume() argument 1295 sStatic.mAudioService.setStreamVolume(mPlaybackStream, volume, 0); in requestSetVolume() 1313 final int volume = in requestUpdateVolume() local 1315 sStatic.mAudioService.setStreamVolume(mPlaybackStream, volume, 0); in requestUpdateVolume() 1598 public void setVolume(int volume) { in setVolume() argument 1599 volume = Math.max(0, Math.min(volume, getVolumeMax())); in setVolume() 1600 if (mVolume != volume) { in setVolume() 1601 mVolume = volume; in setVolume() 1602 setPlaybackInfoOnRcc(RemoteControlClient.PLAYBACKINFO_VOLUME, volume); in setVolume() 1611 public void requestSetVolume(int volume) { in requestSetVolume() argument [all …]
|
D | SoundPool.java | 360 public void setVolume(int streamID, float volume) { in setVolume() argument 361 setVolume(streamID, volume, volume); in setVolume()
|
/frameworks/base/docs/html/design/building-blocks/ |
D | seek-bars.jd | 8 such as volume, brightness, or color saturation.</p> 21 <p>Interactive slider to set the ringer volume. The value can either be set through the hardware vo…
|
/frameworks/av/include/media/ |
D | AudioSystem.h | 51 static status_t getMasterVolume(float* volume); 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);
|
D | ToneGenerator.h | 154 ToneGenerator(audio_stream_type_t streamType, float volume, bool threadCanCallJava = false); 293 float volume);
|
/frameworks/av/services/audioflinger/ |
D | AudioMixer.cpp | 188 t->volume[0] = UNITY_GAIN; in getTrackName() 189 t->volume[1] = UNITY_GAIN; in getTrackName() 499 if (track.volume[param-VOLUME0] != valueInt) { in setParameter() 501 track.prevVolume[param-VOLUME0] = track.volume[param-VOLUME0] << 16; in setParameter() 502 track.volume[param-VOLUME0] = valueInt; in setParameter() 582 if (((volumeInc[i]>0) && (((prevVolume[i]+volumeInc[i])>>16) >= volume[i])) || in adjustVolumeRamp() 583 ((volumeInc[i]<0) && (((prevVolume[i]+volumeInc[i])>>16) <= volume[i]))) { in adjustVolumeRamp() 585 prevVolume[i] = volume[i]<<16; in adjustVolumeRamp() 801 t->resampler->setVolume(t->volume[0], t->volume[1]); in track__genericResample() 858 const int16_t vl = t->volume[0]; in volumeStereo() [all …]
|
D | AudioPolicyService.h | 132 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);
|
D | AudioPolicyService.cpp | 819 float volume, in volumeCommand() argument 829 data->mVolume = volume; in volumeCommand() 835 stream, volume, output); in volumeCommand() 870 status_t AudioPolicyService::AudioCommandThread::voiceVolumeCommand(float volume, int delayMs) in voiceVolumeCommand() argument 877 data->mVolume = volume; in voiceVolumeCommand() 881 ALOGV("AudioCommandThread() adding set voice volume volume %f", volume); in voiceVolumeCommand() 1024 float volume, in setStreamVolume() argument 1028 return (int)mAudioCommandThread->volumeCommand(stream, volume, in setStreamVolume() 1051 int AudioPolicyService::setVoiceVolume(float volume, int delayMs) in setVoiceVolume() argument 1053 return (int)mAudioCommandThread->voiceVolumeCommand(volume, delayMs); in setVoiceVolume() [all …]
|
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
D | SystemMediaRouteProvider.java | 158 public void onSetVolume(int volume) { in onSetVolume() argument 159 mAudioManager.setStreamVolume(PLAYBACK_STREAM, volume, 0); in onSetVolume() 165 int volume = mAudioManager.getStreamVolume(PLAYBACK_STREAM); in onUpdateVolume() local 167 int newVolume = Math.min(maxVolume, Math.max(0, volume + delta)); in onUpdateVolume() 168 if (newVolume != volume) { in onUpdateVolume() 169 mAudioManager.setStreamVolume(PLAYBACK_STREAM, volume, 0); in onUpdateVolume() 189 final int volume = intent.getIntExtra(EXTRA_VOLUME_STREAM_VALUE, -1); in onReceive() local 190 if (volume >= 0 && volume != mLastReportedVolume) { in onReceive() 421 public void onVolumeSetRequest(Object routeObj, int volume) { in onVolumeSetRequest() argument 424 record.mRoute.requestSetVolume(volume); in onVolumeSetRequest()
|
D | MediaRouteProviderService.java | 411 int controllerId, int volume) { in onSetRouteVolume() argument 417 controller.onSetVolume(volume); in onSetRouteVolume() 420 + ", controllerId=" + controllerId + ", volume=" + volume); in onSetRouteVolume() 811 int volume = data.getInt(CLIENT_DATA_VOLUME, -1); in processMessage() local 812 if (volume >= 0) { in processMessage() 814 messenger, requestId, arg, volume); in processMessage()
|
D | RegisteredMediaRouteProvider.java | 352 public void onSetVolume(int volume) { in onSetVolume() argument 354 mConnection.setVolume(mControllerId, volume); in onSetVolume() 356 mPendingSetVolume = volume; in onSetVolume() 531 public void setVolume(int controllerId, int volume) { in setVolume() argument 533 data.putInt(MediaRouteProviderService.CLIENT_DATA_VOLUME, volume); in setVolume()
|
/frameworks/base/core/java/android/speech/tts/ |
D | BlockingAudioTrack.java | 78 float volume, float pan) { in BlockingAudioTrack() argument 83 mVolume = volume; in BlockingAudioTrack() 324 private static void setupVolume(AudioTrack audioTrack, float volume, float pan) { in setupVolume() argument 325 final float vol = clip(volume, 0.0f, 1.0f); in setupVolume()
|
D | SynthesisPlaybackQueueItem.java | 68 float volume, float pan, UtteranceProgressDispatcher dispatcher, in SynthesisPlaybackQueueItem() argument 79 channelCount, volume, pan); in SynthesisPlaybackQueueItem()
|
D | PlaybackSynthesisCallback.java | 69 PlaybackSynthesisCallback(int streamType, float volume, float pan, in PlaybackSynthesisCallback() argument 73 mVolume = volume; in PlaybackSynthesisCallback()
|
/frameworks/av/media/libmedia/ |
D | AudioSystem.cpp | 107 status_t AudioSystem::getMasterVolume(float* volume) in getMasterVolume() argument 111 *volume = af->masterVolume(); in getMasterVolume() 142 status_t AudioSystem::getStreamVolume(audio_stream_type_t stream, float* volume, in getStreamVolume() argument 148 *volume = af->streamVolume(stream, output); in getStreamVolume() 192 float AudioSystem::linearToLog(int volume) in linearToLog() argument 197 return volume ? exp(float(100 - volume) * dBConvert) : 0; in linearToLog() 200 int AudioSystem::logToLinear(float volume) in logToLinear() argument 205 return volume ? 100 - int(dBConvertInverse * log(volume) + 0.5) : 0; in logToLinear()
|
/frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/ |
D | MediaRouterJellybean.java | 163 public static void requestSetVolume(Object routeObj, int volume) { in requestSetVolume() argument 164 ((android.media.MediaRouter.RouteInfo)routeObj).requestSetVolume(volume); in requestSetVolume() 215 public static void setVolume(Object routeObj, int volume) { in setVolume() argument 216 ((android.media.MediaRouter.UserRouteInfo)routeObj).setVolume(volume); in setVolume() 266 public void onVolumeSetRequest(Object routeObj, int volume); in onVolumeSetRequest() argument 427 int volume) { in onVolumeSetRequest() argument 428 mCallback.onVolumeSetRequest(route, volume); in onVolumeSetRequest()
|
/frameworks/base/core/jni/ |
D | android_media_ToneGenerator.cpp | 89 jint streamType, jint volume) { in android_media_ToneGenerator_native_setup() argument 90 …eGen = new ToneGenerator((audio_stream_type_t) streamType, AudioSystem::linearToLog(volume), true); in android_media_ToneGenerator_native_setup()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaPresetReverbTest.java | 203 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification() local 258 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_0AuxiliarySoundModification() 276 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_1InsertSoundModification() local 343 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_1InsertSoundModification()
|