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

/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMtpService.java63 for (StorageVolume volume : mVolumeMap.values()) {
64 addStorageLocked(volume);
103 StorageVolume volume = mVolumeMap.remove(path);
104 if (volume != null) {
105 removeStorageLocked(volume);
233 StorageVolume volume = mVolumes[i];
234 if (volume.getPath().equals(path)) {
235 mVolumeMap.put(path, volume);
238 if (volume.isPrimary() || !mPtpMode) {
239 addStorageLocked(volume);
247 addStorageLocked(StorageVolume volume) argument
261 removeStorageLocked(StorageVolume volume) argument
[all...]
H A DMediaScannerReceiver.java62 // scan whenever any volume is mounted
72 private void scan(Context context, String volume) { argument
74 args.putString("volume", volume);
H A DMediaScannerService.java254 String volume = arguments.getString("volume");
257 if (MediaProvider.INTERNAL_VOLUME.equals(volume)) {
263 else if (MediaProvider.EXTERNAL_VOLUME.equals(volume)) {
269 if (false) Log.d(TAG, "start scanning volume " + volume + ": "
271 scan(directories, volume);
272 if (false) Log.d(TAG, "done scanning volume " + volume);
H A DMediaProvider.java245 // If primary external storage is ejected, then remove the external volume
246 // notify all cursors backed by data on that volume.
269 // We do this to avoid deleting files if the volume is remounted while
2242 // create a cursor to return volume currently being scanned by the media scanner
3373 Log.w(TAG, "no database for scanned volume " + mMediaScannerVolume);
3563 Log.e(TAG, "no database for attached volume " + attachedVolume);
3947 Log.w(TAG, "no database for scanned volume " + mMediaScannerVolume);
4101 // or playlists) we will notify a change on the entire volume to make
5096 String volume = srcuri.toString().substring(16, 24); // extract internal/external
5097 Uri uri = Uri.parse("content://media/" + volume
5226 attachVolume(String volume) argument
[all...]
/packages/apps/Mms/src/com/android/mms/transaction/
H A DNotificationPlayer.java18 * the addition of a volume parameter. Hopefully the framework will adapt AsyncPlayer to support
54 float volume; field in class:NotificationPlayer.Command
93 player.setVolume(mCmd.volume, mCmd.volume);
269 * @param volume The volume at which to play this sound, as a fraction of the system volume for
271 * volume with no attenuation.
273 public void play(Context context, Uri uri, boolean looping, int stream, float volume) { argument
281 cmd.volume
[all...]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DMemory.java100 for (StorageVolume volume : storageVolumes) {
101 if (!volume.isEmulated()) {
102 addCategory(StorageVolumePreferenceCategory.buildForPhysical(context, volume));
116 // Mass storage is enabled if primary volume supports it
145 final StorageVolume volume = category.getStorageVolume();
146 if (volume != null && path.equals(volume.getPath())) {
236 final StorageVolume volume = category.getStorageVolume();
237 if (volume != null && category.mountToggleClicked(preference)) {
239 sClickedMountPoint = volume
[all...]
H A DStorageMeasurement.java87 public static StorageMeasurement getInstance(Context context, StorageVolume volume) { argument
89 StorageMeasurement value = sInstances.get(volume);
91 value = new StorageMeasurement(context.getApplicationContext(), volume);
92 sInstances.put(volume, value);
112 * usage by all apps on that volume.
129 * on that volume.
153 /** Physical volume being measured, or {@code null} for internal. */
166 private StorageMeasurement(Context context, StorageVolume volume) { argument
167 mVolume = volume;
168 mIsInternal = volume
[all...]
H A DStorageVolumePreferenceCategory.java55 /** Physical volume being measured, or {@code null} for internal. */
116 Context context, StorageVolume volume) {
117 return new StorageVolumePreferenceCategory(context, volume);
120 private StorageVolumePreferenceCategory(Context context, StorageVolume volume) { argument
123 mVolume = volume;
124 mMeasure = StorageMeasurement.getInstance(context, volume);
130 setTitle(volume != null ? volume.getDescription(context)
115 buildForPhysical( Context context, StorageVolume volume) argument
/packages/apps/Bluetooth/jni/
H A Dcom_android_bluetooth_avrcp.cpp118 static void btavrcp_volume_change_callback(uint8_t volume, uint8_t ctype) { argument
126 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_volumeChangeCallback, (jint)volume,
381 static jboolean setVolumeNative(JNIEnv *env, jobject object, jint volume) { argument
385 ALOGI("%s: jint: %d, uint8_t: %u", __FUNCTION__, volume, (uint8_t) volume);
390 if ((status = sBluetoothAvrcpInterface->set_volume((uint8_t)volume)) != BT_STATUS_SUCCESS) {
H A Dcom_android_bluetooth_hfp.cpp125 static void volume_control_callback(bthf_volume_type_t type, int volume) { argument
127 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVolumeChanged, (jint) type, (jint) volume);
425 static jboolean setVolumeNative(JNIEnv *env, jobject object, jint volume_type, jint volume) { argument
430 volume)) != BT_STATUS_SUCCESS) {
431 ALOGE("FAILED to control volume, status: %d", status);
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpService.java179 /* Absolute volume implementation */
188 public void setAvrcpAbsoluteVolume(int volume) { argument
189 mAvrcp.setAbsoluteVolume(volume);
279 public void setAvrcpAbsoluteVolume(int volume) { argument
282 service.setAvrcpAbsoluteVolume(volume);
H A DAvrcp.java338 if (DEBUG) Log.v(TAG, "MESSAGE_VOLUME_CHANGED: volume=" + msg.arg1 +
363 if (DEBUG) Log.w(TAG, "There is already a volume command in progress.");
366 // Wait on verification on volume from device, before changing the volume.
385 if (DEBUG) Log.w(TAG, "There is already a volume command in progress.");
739 * This is called from AudioService. It will return whether this device supports abs volume.
755 public void setAbsoluteVolume(int volume) { argument
756 int avrcpVolume = convertToAvrcpVolume(volume);
764 /* Called in the native layer as a btrc_callback to return the volume set on the carkit in the
765 * case when the volume i
771 volumeChangeCallback(int volume, int ctype) argument
776 notifyVolumeChanged(int volume) argument
782 convertToAudioStreamVolume(int volume) argument
787 convertToAvrcpVolume(int volume) argument
835 setVolumeNative(int volume) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DHeadsetPhoneState.java142 void setSpeakerVolume(int volume) { argument
143 mSpeakerVolume = volume;
150 void setMicVolume(int volume) { argument
151 mMicVolume = volume;
H A DHeadsetStateMachine.java1478 private void processVolumeEvent(int volumeType, int volume) { argument
1480 mPhoneState.setSpeakerVolume(volume);
1482 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO, volume, flag);
1484 mPhoneState.setMicVolume(volume);
1843 private void onVolumeChanged(int type, int volume) { argument
1846 event.valueInt2 = volume;
2074 private native boolean setVolumeNative(int volumeType, int volume); argument
/packages/apps/Settings/src/com/android/settings/
H A DRingerVolumePreference.java52 * Special preference type that allows configuration of both the ring volume and
53 * notification volume.
136 final int volume = mAudioManager.getStreamVolume(streamType);
137 mSeekBars[i].setProgress(volume);
156 // The always visible seekbar is for ring volume
349 mVolumeStore[i].volume = source.readInt();
358 dest.writeInt(mVolumeStore[i].volume);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
H A DSettings.java279 final float volume = prefs.getFloat(PREF_KEYPRESS_SOUND_VOLUME, -1.0f);
280 return (volume >= 0) ? volume : readDefaultKeypressSoundVolume(res);
/packages/apps/VoiceDialer/src/com/android/voicedialer/
H A DVoiceDialerActivity.java348 // Limit volume to -18dB. Stream volume range represents approximately 50dB
354 int volume = maxVolume - ((18 / (50/maxVolume)) + 1);
355 if (mBluetoothVoiceVolume > volume) {
356 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO, volume, 0);
1112 // set the volume back to the level it was before we started.

Completed in 453 milliseconds