/packages/apps/Dialer/InCallUI/src/com/android/incallui/ringtone/ |
H A D | ToneGeneratorFactory.java | 30 * @param volume the volume at which to play tones. 33 public ToneGenerator newInCallToneGenerator(int stream, int volume) { argument 34 return new ToneGenerator(stream, volume);
|
H A D | InCallTonePlayer.java | 94 * tone is played at a high priority volume and through STREAM_VOICE_CALL since it's 111 toneGenerator = mToneGeneratorFactory.newInCallToneGenerator(info.stream, info.volume); 148 public final int volume; field in class:InCallTonePlayer.ToneGeneratorInfo 152 public ToneGeneratorInfo(int toneGeneratorType, int volume, int toneLengthMillis, argument 155 this.volume = volume; 164 .add("volume", volume)
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
H A D | StorageVolumePreference.java | 50 public StorageVolumePreference(Context context, VolumeInfo volume, int color, long totalBytes) { argument 54 mVolume = volume; 59 setKey(volume.getId()); 60 setTitle(mStorageManager.getBestVolumeDescription(volume)); 63 if (VolumeInfo.ID_PRIVATE_INTERNAL.equals(volume.getId())) { 69 if (volume.isMountedReadable()) { 71 final File path = volume.getPath(); 91 setSummary(volume.getStateDescription()); 99 if (volume.getType() == VolumeInfo.TYPE_PUBLIC 100 && volume [all...] |
H A D | StorageSettings.java | 261 // Picked a normal volume 303 // Picked a missing private volume 320 public MountTask(Context context, VolumeInfo volume) { argument 323 mVolumeId = volume.getId(); 324 mDescription = mStorageManager.getBestVolumeDescription(volume); 356 public UnmountTask(Context context, VolumeInfo volume) { argument 359 mVolumeId = volume.getId(); 360 mDescription = mStorageManager.getBestVolumeDescription(volume);
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
H A D | MtpService.java | 59 for (StorageVolume volume : mVolumeMap.values()) { 60 addStorageLocked(volume); 73 StorageVolume volume = mVolumeMap.remove(path); 74 if (volume != null) { 75 removeStorageLocked(volume); 208 StorageVolume volume = mVolumes[i]; 209 if (volume.getPath().equals(path)) { 210 mVolumeMap.put(path, volume); 213 if (volume.isPrimary() || !mPtpMode) { 214 addStorageLocked(volume); 222 addStorageLocked(StorageVolume volume) argument 242 removeStorageLocked(StorageVolume volume) argument [all...] |
H A D | MediaScannerReceiver.java | 62 // scan whenever any volume is mounted 72 private void scan(Context context, String volume) { argument 74 args.putString("volume", volume);
|
H A D | MediaScannerService.java | 228 String volume = arguments.getString("volume"); 231 if (MediaProvider.INTERNAL_VOLUME.equals(volume)) { 238 else if (MediaProvider.EXTERNAL_VOLUME.equals(volume)) { 250 if (false) Log.d(TAG, "start scanning volume " + volume + ": " 252 scan(directories, volume); 253 if (false) Log.d(TAG, "done scanning volume " + volume);
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | SettingsDumpService.java | 115 for (VolumeInfo volume : manager.getVolumes()) { 117 if (volume.isMountedReadable()) { 118 File path = volume.getPath(); 122 volObj.put("path", volume.getInternalPath()); 123 volObj.put("state", volume.getState()); 124 volObj.put("stateDesc", volume.getStateDescription()); 125 volObj.put("description", volume.getDescription()); 126 obj.put(volume.getId(), volObj);
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | SoundPlayer.java | 58 public void play(int resourceId, float volume) { argument 63 mSoundPool.play(soundId, volume, volume, 0 /* priority */, 0 /* loop */, 1 /* rate */);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
H A D | FormatAsPublicStepFragment.java | 59 for (final VolumeInfo volume : volumes) { 60 if ((volume.getType() == VolumeInfo.TYPE_PRIVATE || 61 volume.getType() == VolumeInfo.TYPE_PUBLIC) && 62 TextUtils.equals(volume.getDiskId(), mDiskId)) { 63 mVolumeId = volume.getId();
|
H A D | SettingsStorageService.java | 104 throw new IllegalArgumentException("No volume ID specified for unmount: " 117 for (final VolumeInfo volume : volumes) { 118 if (TextUtils.equals(diskId, volume.getDiskId()) && 119 volume.getType() == VolumeInfo.TYPE_PRIVATE) { 120 storageManager.forgetVolume(volume.getFsUuid());
|
H A D | FormatActivity.java | 59 // Non-null means we're in the process of formatting this volume as private 61 // Non-null means we're in the process of formatting this volume as public 159 Log.d(TAG, "New volume is " + frac + "x the speed of internal"); 234 for (final VolumeInfo volume : volumes) { 235 if ((volume.getType() == VolumeInfo.TYPE_PRIVATE || 236 volume.getType() == VolumeInfo.TYPE_PUBLIC) && 237 TextUtils.equals(volume.getDiskId(), diskId)) { 238 mFormatDiskDesc = mStorageManager.getBestVolumeDescription(volume);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | AsyncRingtonePlayer.java | 34 * adjust the volume of the stream and specify that the stream should be looped.</li> 39 * clients to adjust the volume of the stream and specify that the stream should be looped but 92 /** Schedules an adjustment of the playback volume 50ms in the future. */ 94 LogUtils.v(TAG, "Adjusting volume."); 96 // Ensure we never have more than one volume adjustment queued. 99 // Queue the next volume adjustment. 196 * @return the scalar volume value that produces a linear increase in volume (in decibels) 206 // Convert the target gain (in decibels) into the corresponding volume scalar. 207 final float volume 553 setRingtoneVolume(float volume) argument [all...] |
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/ac3/ |
H A D | AudioTrackWrapper.java | 108 public void setVolume(float volume) { argument 112 mAudioTrack.setVolume(volume);
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | NotificationPlayer.java | 39 * the addition of a volume parameter. Hopefully the framework will adapt AsyncPlayer to support 52 float volume; field in class:NotificationPlayer.Command 93 player.setVolume(mCmd.volume, mCmd.volume); 274 * @param volume The volume at which to play this sound, as a fraction of the system volume for 276 * volume with no attenuation. 278 public void play(final Uri uri, final boolean looping, final int stream, final float volume) { argument 285 cmd.volume [all...] |
/packages/apps/Bluetooth/jni/ |
H A D | com_android_bluetooth_avrcp.cpp | 133 static void btavrcp_volume_change_callback(uint8_t volume, uint8_t ctype) { argument 141 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_volumeChangeCallback, (jint)volume, 402 static jboolean setVolumeNative(JNIEnv *env, jobject object, jint volume) { argument 406 ALOGI("%s: jint: %d, uint8_t: %u", __FUNCTION__, volume, (uint8_t) volume); 411 if ((status = sBluetoothAvrcpInterface->set_volume((uint8_t)volume)) != BT_STATUS_SUCCESS) {
|
H A D | com_android_bluetooth_hfpclient.cpp | 208 static void volume_change_cb (bthf_client_volume_type_t type, int volume) { argument 210 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVolumeChange, (jint) type, (jint) volume); 464 static jboolean setVolumeNative(JNIEnv *env, jobject object, jint volume_type, jint volume) { argument 469 volume)) != BT_STATUS_SUCCESS) { 470 ALOGE("FAILED to control volume, status: %d", status);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
H A D | A2dpService.java | 199 /* Absolute volume implementation */ 208 public void setAvrcpAbsoluteVolume(int volume) { argument 209 mAvrcp.setAbsoluteVolume(volume); 309 public void setAvrcpAbsoluteVolume(int volume) { argument 312 service.setAvrcpAbsoluteVolume(volume);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
H A D | HeadsetPhoneState.java | 197 void setSpeakerVolume(int volume) { argument 198 mSpeakerVolume = volume; 205 void setMicVolume(int volume) { argument 206 mMicVolume = volume;
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
H A D | Avrcp.java | 97 /* Local volume in audio index 0-15 */ 345 if (DEBUG) Log.v(TAG, "MESSAGE_VOLUME_CHANGED: volume=" + ((byte)msg.arg1 & 0x7f) 364 // convert remote volume to local volume 369 if (DEBUG) Log.v(TAG, "remote inital volume too high " + volIndex + ">" + mAbsVolThreshold); 381 /* If the volume has successfully changed */ 385 /* remote volume changed more than requested due to 386 * local and remote has different volume steps */ 387 if (DEBUG) Log.d(TAG, "Remote returned volume does not match desired volume " 1025 setAbsoluteVolume(int volume) argument 1043 volumeChangeCallback(int volume, int ctype) argument 1048 notifyVolumeChanged(int volume) argument 1053 convertToAudioStreamVolume(int volume) argument 1058 convertToAvrcpVolume(int volume) argument 1175 setVolumeNative(int volume) argument [all...] |
/packages/services/Car/service/src/com/android/car/hal/ |
H A D | AudioHalService.java | 139 * Audio volume change from car. 141 * @param volume 144 void onVolumeChange(int streamNumber, int volume, int volumeState); argument 148 * @param volume 150 void onVolumeLimitChange(int streamNumber, int volume); argument 371 int volume = v.getInt32Values( 377 listener.onVolumeChange(streamNum, volume, volumeState);
|
/packages/services/Car/service/src/com/android/car/ |
H A D | CarAudioService.java | 181 public void onVolumeChange(int streamNumber, int volume, int volumeState) { argument 182 mVolumeHandler.handleVolumeChange(new VolumeStateChangeEvent(streamNumber, volume, 187 public void onVolumeLimitChange(int streamNumber, int volume) { argument 842 public final int volume; field in class:CarAudioService.VolumeStateChangeEvent 845 public VolumeStateChangeEvent(int stream, int volume, int state) { argument 847 this.volume = volume;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
H A D | Settings.java | 289 final float volume = prefs.getFloat( 291 return (volume != UNDEFINED_PREFERENCE_VALUE_FLOAT) ? volume 295 // Default keypress sound volume for unknown devices.
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/ |
H A D | TunerSession.java | 131 public void onSetStreamVolume(float volume) { argument 132 mSessionWorker.sendMessage(TunerSessionWorker.MSG_SET_STREAM_VOLUME, volume);
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/ |
H A D | MpegTsPlayer.java | 305 public void setVolume(float volume) { argument 306 mPlayer.sendMessage(mAudioRenderer, MediaCodecAudioTrackRenderer.MSG_SET_VOLUME, volume);
|