Home
last modified time | relevance | path

Searched refs:volume (Results 1 – 25 of 89) sorted by relevance

1234

/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageVolumePreference.java57 public StorageVolumePreference(Context context, VolumeInfo volume, long totalBytes) { in StorageVolumePreference() argument
61 mVolume = volume; in StorageVolumePreference()
66 setKey(volume.getId()); in StorageVolumePreference()
67 setTitle(mStorageManager.getBestVolumeDescription(volume)); in StorageVolumePreference()
70 if (VolumeInfo.ID_PRIVATE_INTERNAL.equals(volume.getId())) { in StorageVolumePreference()
76 if (volume.isMountedReadable()) { in StorageVolumePreference()
78 final File path = volume.getPath(); in StorageVolumePreference()
82 if (volume.getType() == VolumeInfo.TYPE_PRIVATE) { in StorageVolumePreference()
86 totalBytes = stats.getTotalBytes(volume.getFsUuid()); in StorageVolumePreference()
87 freeBytes = stats.getFreeBytes(volume.getFsUuid()); in StorageVolumePreference()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageVolumePreference.java57 public StorageVolumePreference(Context context, VolumeInfo volume, long totalBytes) { in StorageVolumePreference() argument
61 mVolume = volume; in StorageVolumePreference()
66 setKey(volume.getId()); in StorageVolumePreference()
67 setTitle(mStorageManager.getBestVolumeDescription(volume)); in StorageVolumePreference()
70 if (VolumeInfo.ID_PRIVATE_INTERNAL.equals(volume.getId())) { in StorageVolumePreference()
76 if (volume.isMountedReadable()) { in StorageVolumePreference()
78 final File path = volume.getPath(); in StorageVolumePreference()
82 if (volume.getType() == VolumeInfo.TYPE_PRIVATE) { in StorageVolumePreference()
86 totalBytes = stats.getTotalBytes(volume.getFsUuid()); in StorageVolumePreference()
87 freeBytes = stats.getFreeBytes(volume.getFsUuid()); in StorageVolumePreference()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageUtils.java41 VolumeInfo volume = sm.findVolumeById(volumeId); in maybeInitializeVolume() local
42 return isVolumeValid(volume) ? volume : null; in maybeInitializeVolume()
45 private static boolean isVolumeValid(VolumeInfo volume) { in isVolumeValid() argument
46 return (volume != null) && (volume.getType() == VolumeInfo.TYPE_PRIVATE) in isVolumeValid()
47 && volume.isMountedReadable(); in isVolumeValid()
DUnmountTask.java40 public UnmountTask(Context context, VolumeInfo volume) { in UnmountTask() argument
43 mVolumeId = volume.getId(); in UnmountTask()
44 mDescription = mStorageManager.getBestVolumeDescription(volume); in UnmountTask()
DStorageSettingsFragment.java50 VolumeInfo volume = maybeInitializeVolume(sm, getArguments()); in onAttach() local
51 mStorageSettingsManager = new StorageSettingsManager(getContext(), volume); in onAttach()
65 pc.setVolumeInfo(volume); in onAttach()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMtpService.java69 StorageVolume volume = mVolumes[i];
70 if (volume.getPath().equals(path)) {
71 mVolumeMap.put(path, volume);
72 if (mUnlocked && (volume.isPrimary() || !mPtpMode)) {
73 addStorage(volume);
224 private void addStorage(StorageVolume volume) { in addStorage() argument
225 Log.v(TAG, "Adding MTP storage:" + volume.getPath()); in addStorage()
228 sServerHolder.database.addStorage(volume); in addStorage()
233 private void removeStorage(StorageVolume volume) { in removeStorage() argument
236 sServerHolder.database.removeStorage(volume); in removeStorage()
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.java208 final float volume = (float) Math.pow(10f, gain/20f);
211 fractionComplete * 100, volume, gain);
213 return volume;
426 final float volume = computeVolume(currentTime, mCrescendoStopTime, mCrescendoDuration);
427 mMediaPlayer.setVolume(volume, volume);
428 LOGGER.i("MediaPlayer volume set to " + volume);
577 private void setRingtoneVolume(float volume) {
579 mSetVolumeMethod.invoke(mRingtone, volume);
632 final float volume = computeVolume(currentTime, mCrescendoStopTime, mCrescendoDuration);
633 setRingtoneVolume(volume);
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DAudioHelperTest.java47 int volume = DEFAULT; in getMaxVolume_anyStreamType_getValue() local
50 volume = mAudioHelper.getMaxVolume(i); in getMaxVolume_anyStreamType_getValue()
51 assertThat(volume).isNotEqualTo(DEFAULT); in getMaxVolume_anyStreamType_getValue()
57 int volume = DEFAULT; in getMinVolume_anyStreamType_getValue() local
60 volume = mAudioHelper.getMinVolume(i); in getMinVolume_anyStreamType_getValue()
61 assertThat(volume).isNotEqualTo(DEFAULT); in getMinVolume_anyStreamType_getValue()
/packages/apps/Settings/src/com/android/settings/
DSettingsDumpService.java144 for (VolumeInfo volume : manager.getVolumes()) { in dumpStorage()
146 if (volume.isMountedReadable()) { in dumpStorage()
147 File path = volume.getPath(); in dumpStorage()
151 volObj.put("path", volume.getInternalPath()); in dumpStorage()
152 volObj.put("state", volume.getState()); in dumpStorage()
153 volObj.put("stateDesc", volume.getStateDescription()); in dumpStorage()
154 volObj.put("description", volume.getDescription()); in dumpStorage()
155 obj.put(volume.getId(), volObj); in dumpStorage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSettingsDumpService.java142 for (VolumeInfo volume : manager.getVolumes()) { in dumpStorage()
144 if (volume.isMountedReadable()) { in dumpStorage()
145 File path = volume.getPath(); in dumpStorage()
149 volObj.put("path", volume.getInternalPath()); in dumpStorage()
150 volObj.put("state", volume.getState()); in dumpStorage()
151 volObj.put("stateDesc", volume.getStateDescription()); in dumpStorage()
152 volObj.put("description", volume.getDescription()); in dumpStorage()
153 obj.put(volume.getId(), volObj); in dumpStorage()
/packages/apps/Dialer/java/com/android/incallui/ringtone/
DInCallTonePlayer.java109 toneGenerator = toneGeneratorFactory.newInCallToneGenerator(info.stream, info.volume); in playOnBackgroundThread()
145 public final int volume; field in InCallTonePlayer.ToneGeneratorInfo
149 public ToneGeneratorInfo(int toneGeneratorType, int volume, int toneLengthMillis, int stream) { in ToneGeneratorInfo() argument
151 this.volume = volume; in ToneGeneratorInfo()
164 + volume in toString()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpNativeInterface.java221 void sendVolumeChanged(String bdaddr, int volume) { in sendVolumeChanged() argument
222 d("sendVolumeChanged: volume=" + volume); in sendVolumeChanged()
223 sendVolumeChangedNative(bdaddr, volume); in sendVolumeChanged()
226 void setVolume(int volume) { in setVolume() argument
227 d("setVolume: volume=" + volume); in setVolume()
233 mAvrcpService.setVolume(volume); in setVolume()
248 private native void sendVolumeChangedNative(String bdaddr, int volume); in sendVolumeChangedNative() argument
DAvrcpTargetService.java124 int volume = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 0); in onReceive() local
128 Log.d(TAG, "stream volume change to " + volume + " " + activeDevice); in onReceive()
129 mVolumeManager.storeVolumeForDevice(activeDevice, volume); in onReceive()
427 public void sendVolumeChanged(int volume) { in sendVolumeChanged() argument
437 mService.sendVolumeChanged(volume); in sendVolumeChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DFormatAsPublicStepFragment.java60 for (final VolumeInfo volume : volumes) { in onCreate()
61 if ((volume.getType() == VolumeInfo.TYPE_PRIVATE || in onCreate()
62 volume.getType() == VolumeInfo.TYPE_PUBLIC) && in onCreate()
63 TextUtils.equals(volume.getDiskId(), mDiskId)) { in onCreate()
64 mVolumeId = volume.getId(); in onCreate()
DFormatActivity.java247 for (final VolumeInfo volume : volumes) { in onRequestFormatAsPrivate()
248 if ((volume.getType() == VolumeInfo.TYPE_PRIVATE || in onRequestFormatAsPrivate()
249 volume.getType() == VolumeInfo.TYPE_PUBLIC) && in onRequestFormatAsPrivate()
250 TextUtils.equals(volume.getDiskId(), diskId)) { in onRequestFormatAsPrivate()
251 mFormatDiskDesc = mStorageManager.getBestVolumeDescription(volume); in onRequestFormatAsPrivate()
DSettingsStorageService.java120 for (final VolumeInfo volume : volumes) { in formatAsPublic()
121 if (TextUtils.equals(diskId, volume.getDiskId()) && in formatAsPublic()
122 volume.getType() == VolumeInfo.TYPE_PRIVATE) { in formatAsPublic()
123 storageManager.forgetVolume(volume.getFsUuid()); in formatAsPublic()
/packages/apps/Messaging/src/com/android/messaging/util/
DNotificationPlayer.java52 float volume; field in NotificationPlayer.Command
93 player.setVolume(mCmd.volume, mCmd.volume); in run()
278 public void play(final Uri uri, final boolean looping, final int stream, final float volume) { in play() argument
285 cmd.volume = volume; in play()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DStorageItemPreferenceController.java100 Context context, Fragment hostFragment, VolumeInfo volume, StorageVolumeProvider svp) { in StorageItemPreferenceController() argument
103 mVolume = volume; in StorageItemPreferenceController()
112 VolumeInfo volume, in StorageItemPreferenceController() argument
115 this(context, hostFragment, volume, svp); in StorageItemPreferenceController()
185 public void setVolume(VolumeInfo volume) { in setVolume() argument
186 mVolume = volume; in setVolume()
DStorageSummaryDonutPreferenceController.java110 public void updateSizes(StorageVolumeProvider svp, VolumeInfo volume) { in updateSizes() argument
111 final long sharedDataSize = volume.getPath().getTotalSpace(); in updateSizes()
118 final long usedBytes = totalSize - volume.getPath().getFreeSpace(); in updateSizes()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceController.java100 Context context, Fragment hostFragment, VolumeInfo volume, StorageVolumeProvider svp) { in StorageItemPreferenceController() argument
103 mVolume = volume; in StorageItemPreferenceController()
112 VolumeInfo volume, in StorageItemPreferenceController() argument
115 this(context, hostFragment, volume, svp); in StorageItemPreferenceController()
185 public void setVolume(VolumeInfo volume) { in setVolume() argument
186 mVolume = volume; in setVolume()
DStorageSummaryDonutPreferenceController.java110 public void updateSizes(StorageVolumeProvider svp, VolumeInfo volume) { in updateSizes() argument
111 final long sharedDataSize = volume.getPath().getTotalSpace(); in updateSizes()
118 final long usedBytes = totalSize - volume.getPath().getFreeSpace(); in updateSizes()
/packages/apps/Camera2/src/com/android/camera/
DSoundPlayer.java65 public void play(int resourceId, float volume) { in play() argument
70 mSoundPool.play(soundId, volume, volume, 0 /* priority */, 0 /* loop */, 1 /* rate */); in play()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetNativeInterface.java109 private void onVolumeChanged(int type, int volume, byte[] address) { in onVolumeChanged() argument
111 new HeadsetStackEvent(HeadsetStackEvent.EVENT_TYPE_VOLUME_CHANGED, type, volume, in onVolumeChanged()
332 public boolean setVolume(BluetoothDevice device, int volumeType, int volume) { in setVolume() argument
333 return setVolumeNative(volumeType, volume, Utils.getByteAddress(device)); in setVolume()
482 private native boolean setVolumeNative(int volumeType, int volume, byte[] address); in setVolumeNative() argument
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DVolumeTestFragment.java16 package com.google.android.car.kitchensink.volume;
168 int volume = current + (up ? 1 : -1); in adjustVolumeByOne() local
169 mCarAudioManager.setGroupVolume(groupId, volume, in adjustVolumeByOne()
171 Log.d(TAG, "Set group " + groupId + " volume " + volume); in adjustVolumeByOne()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidNativeInterface.java123 public void setVolume(int volume) { in setVolume() argument
124 setVolumeNative(volume); in setVolume()
183 private native void setVolumeNative(int volume); in setVolumeNative() argument

1234