/frameworks/base/media/java/android/mtp/ |
H A D | MtpStorage.java | 38 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() * 1024 * 1024; 43 mRemovable = volume.isRemovable(); 44 mMaxFileSize = volume.getMaxFileSize();
|
H A D | MtpPropertyGroup.java | 68 public MtpPropertyGroup(MtpDatabase database, IContentProvider provider, String volume, argument 72 mVolumeName = volume; 73 mUri = Files.getMtpObjectsUri(volume);
|
/frameworks/wilhelm/src/itf/ |
H A D | IDeviceVolume.c | 49 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/java/android/media/ |
H A D | ToneGenerator.java | 726 /** 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 D | MediaRouter.java | 748 Log.e(TAG, "Error checking Bluetooth A2DP state to report volume change", e); 963 * Playback information indicating the playback volume is fixed, i.e. it cannot be 964 * controlled from this object. An example of fixed playback volume is a remote player, 965 * playing over HDMI where the user prefers to control the volume on the HDMI sink, rather 971 * Playback information indicating the playback volume is variable and can be controlled 1121 * Return the current volume for this route. Depending on the route, this may only 1124 * @return the volume at which the playback associated with this route is performed 1133 Log.e(TAG, "Error getting local stream volume", e); 1142 * Request a volume change for this route. 1143 * @param volume valu 1145 requestSetVolume(int volume) argument 1419 setVolume(int volume) argument 1432 requestSetVolume(int volume) argument 1642 requestSetVolume(int volume) argument 2070 onVolumeSetRequest(RouteInfo info, int volume) argument [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | MountService.java | 124 * Internal vold volume state constants 515 // Snapshot current volume states since it's not safe to call into vold 535 * the volume is shared (runtime restart while ums enabled) 544 for (StorageVolume volume : mVolumes) { 545 if (volume.isEmulated()) { 546 updatePublicVolumeState(volume, Environment.MEDIA_MOUNTED); 577 for (StorageVolume volume : mVolumes) { 578 if (user.equals(volume.getOwner())) { 579 toRemove.add(volume); 582 for (StorageVolume volume 629 updatePublicVolumeState(StorageVolume volume, String state) argument 1108 sendStorageIntent(String action, StorageVolume volume, UserHandle user) argument 1244 addVolumeLocked(StorageVolume volume) argument 1254 removeVolumeLocked(StorageVolume volume) argument [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | VolumePreference.java | 73 // grab focus and key events so that pressing the volume buttons in the 74 // dialog doesn't also show the normal volume adjust toast. 180 public int volume = -1; field in class:VolumePreference.VolumeStore 189 mVolumeStore.volume = source.readInt(); 196 dest.writeInt(mVolumeStore.volume); 221 * Turns a {@link SeekBar} into a volume control. 242 int volume = mAudioManager.getStreamVolume(mStreamType); 243 mSeekBar.setProgress(volume); 308 // Do the volume changing separately to give responsive UI 373 volumeStore.volume [all...] |
/frameworks/av/include/media/ |
H A D | AudioSystem.h | 49 // set/get master volume 51 static status_t getMasterVolume(float* volume); 57 // set/get stream volume on specified output 60 static status_t getStreamVolume(audio_stream_type_t stream, float* volume, 87 static float linearToLog(int volume); 88 static int logToLinear(float volume); 118 static status_t setVoiceVolume(float volume);
|
H A D | ToneGenerator.h | 154 ToneGenerator(audio_stream_type_t streamType, float volume, bool threadCanCallJava = false); 292 float volume);
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | SynthesisPlaybackQueueItem.java | 68 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 D | BlockingAudioTrack.java | 78 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
|
H A D | PlaybackSynthesisCallback.java | 69 PlaybackSynthesisCallback(int streamType, float volume, float pan, argument 73 mVolume = volume;
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
H A D | EffectBundle.h | 99 int volume; member in struct:BundledEffectContext
|
/frameworks/av/media/libeffects/data/ |
H A D | audio_effects.conf | 58 volume {
|
/frameworks/base/core/java/android/os/storage/ |
H A D | StorageVolume.java | 27 * Description of a storage volume and its capabilities, including the 46 /** When set, indicates exclusive ownership of this volume */ 88 * Returns the mount path for the volume. 101 * Returns a user visible description of the volume. 103 * @return the volume description 118 * Returns true if the volume is removable. 127 * Returns true if the volume is emulated. 136 * Returns the MTP storage ID for the volume. 171 * Returns true if this volume can be shared via USB mass storage. 180 * Returns maximum file size for the volume, o [all...] |
H A D | StorageManager.java | 237 * Message sent on volume state change. 549 * Gets the state of a volume via its mountpoint. 557 Log.e(TAG, "Failed to get volume state", e); 578 Log.e(TAG, "Failed to get volume list", e); 605 for (StorageVolume volume : volumes) { 606 if (volume.isPrimary()) { 607 return volume;
|
/frameworks/base/core/jni/ |
H A D | android_media_ToneGenerator.cpp | 89 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/services/audioflinger/ |
H A D | AudioMixer.cpp | 176 t->volume[0] = UNITY_GAIN; 177 t->volume[1] = UNITY_GAIN; 488 if (track.volume[param-VOLUME0] != valueInt) { 490 track.prevVolume[param-VOLUME0] = track.volume[param-VOLUME0] << 16; 491 track.volume[param-VOLUME0] = valueInt; 571 if (((volumeInc[i]>0) && (((prevVolume[i]+volumeInc[i])>>16) >= volume[i])) || 572 ((volumeInc[i]<0) && (((prevVolume[i]+volumeInc[i])>>16) <= volume[i]))) { 574 prevVolume[i] = volume[i]<<16; 735 // Now that the volume ramp has been done, set optimal state and 790 t->resampler->setVolume(t->volume[ [all...] |
H A D | AudioPolicyService.h | 131 float volume, 136 virtual status_t setVoiceVolume(float volume, int delayMs = 0); 176 status_t volumeCommand(audio_stream_type_t stream, float volume, 180 status_t voiceVolumeCommand(float volume, int delayMs = 0);
|
H A D | AudioPolicyService.cpp | 693 ALOGV("AudioCommandThread() processing set volume stream %d, \ 694 volume %f, output %d", data->mStream, data->mVolume, data->mIO); 717 ALOGV("AudioCommandThread() processing set voice volume volume %f", 809 float volume, 819 data->mVolume = volume; 824 ALOGV("AudioCommandThread() adding set volume stream %d, volume %f, output %d", 825 stream, volume, output); 860 status_t AudioPolicyService::AudioCommandThread::voiceVolumeCommand(float volume, in argument 808 volumeCommand(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument 1013 setStreamVolume(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument 1041 setVoiceVolume(float volume, int delayMs) argument 1510 aps_set_stream_volume(void *service, audio_stream_type_t stream, float volume, audio_io_handle_t output, int delay_ms) argument 1535 aps_set_voice_volume(void *service, float volume, int delay_ms) argument [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
H A D | MediaPresetReverbTest.java | 47 // Implementor UUID for volume controller effect defined in 203 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); 210 // creating a volume controller on output mix ensures that ro.audio.silent mutes 258 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); 276 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); 281 // creating a volume controller on output mix ensures that ro.audio.silent mutes 343 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0);
|
H A D | MediaEnvReverbTest.java | 53 // 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);
|
/frameworks/av/media/libmedia/ |
H A D | AudioSystem.cpp | 107 status_t AudioSystem::getMasterVolume(float* volume) argument 111 *volume = af->masterVolume(); 142 status_t AudioSystem::getStreamVolume(audio_stream_type_t stream, float* volume, argument 148 *volume = af->streamVolume(stream, output); 184 // convert volume steps to natural log scale 186 // change this value to change volume scaling 192 float AudioSystem::linearToLog(int volume) argument 194 // float v = volume ? exp(float(100 - volume) * dBConvert) : 0; 195 // ALOGD("linearToLog(%d)=%f", volume, 200 logToLinear(float volume) argument [all...] |
/frameworks/wilhelm/tests/automated/ |
H A D | BufferQueue_test.cpp | 42 // 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/media/java/android/media/videoeditor/ |
H A D | AudioTrack.java | 109 * @param volume The volume in percentage 114 * @param duckedTrackVolume The relative volume of the audio track when 125 int volume, boolean muted,boolean duckingEnabled, 185 mVolumePercent = volume; 261 * Set the volume of this audio track as percentage of the volume in the 264 * @param volumePercent Percentage of the volume to apply. If it is set to 265 * 0, then volume becomes mute. It it is set to 100, then volume 123 AudioTrack(VideoEditor editor, String audioTrackId, String filename, long startTimeMs,long beginMs, long endMs, boolean loop, int volume, boolean muted,boolean duckingEnabled, int duckThreshold, int duckedTrackVolume, String audioWaveformFilename) argument [all...] |