/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageVolumePreference.java | 57 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/ |
D | StorageVolumePreference.java | 57 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/ |
D | StorageUtils.java | 41 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()
|
D | UnmountTask.java | 40 public UnmountTask(Context context, VolumeInfo volume) { in UnmountTask() argument 43 mVolumeId = volume.getId(); in UnmountTask() 44 mDescription = mStorageManager.getBestVolumeDescription(volume); in UnmountTask()
|
D | StorageSettingsFragment.java | 54 VolumeInfo volume = maybeInitializeVolume(sm, getArguments()); in onAttach() local 55 mStorageSettingsManager = new StorageSettingsManager(getContext(), volume); in onAttach() 69 pc.setVolumeInfo(volume); in onAttach()
|
/packages/services/Mtp/src/com/android/mtp/ |
D | MtpService.java | 73 StorageVolume volume = mVolumes[i]; 74 if (volume.getPath().equals(path)) { 75 mVolumeMap.put(path, volume); 76 if (mUnlocked && (volume.isPrimary() || !mPtpMode)) { 77 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/ |
D | AsyncRingtonePlayer.java | 208 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/ |
D | AudioHelperTest.java | 47 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/ |
D | SettingsDumpService.java | 144 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/ |
D | SettingsDumpService.java | 142 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/ |
D | InCallTonePlayer.java | 109 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/ |
D | AvrcpNativeInterface.java | 221 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
|
D | AvrcpTargetService.java | 124 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/Settings/src/com/android/settings/media/ |
D | MediaDeviceUpdateWorker.java | 192 void adjustSessionVolume(String sessionId, int volume) { in adjustSessionVolume() argument 193 mLocalMediaManager.adjustSessionVolume(sessionId, volume); in adjustSessionVolume() 196 void adjustSessionVolume(int volume) { in adjustSessionVolume() argument 197 mLocalMediaManager.adjustSessionVolume(volume); in adjustSessionVolume() 229 public void adjustVolume(MediaDevice device, int volume) { in adjustVolume() argument 231 device.requestSetVolume(volume); in adjustVolume()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | FormatAsPublicStepFragment.java | 60 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()
|
D | FormatActivity.java | 247 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()
|
D | SettingsStorageService.java | 120 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/ |
D | NotificationPlayer.java | 52 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/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
D | CarAudioZoneVolumeFragment.java | 17 package com.google.android.car.kitchensink.volume; 34 import com.google.android.car.kitchensink.volume.VolumeTestFragment.CarAudioZoneVolumeInfo; 157 int volume = current + (up ? 1 : -1); in adjustVolumeByOne() local 158 mCarAudioManager.setGroupVolume(mZoneId, groupId, volume, in adjustVolumeByOne() 161 Log.d(TAG, "Set group " + groupId + " volume " + volume + " in audio zone " in adjustVolumeByOne()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/ |
D | StorageItemPreferenceController.java | 100 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()
|
D | StorageSummaryDonutPreferenceController.java | 110 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/ |
D | SoundPlayer.java | 65 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/ |
D | HeadsetNativeInterface.java | 109 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/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | StorageItemPreferenceController.java | 105 Context context, Fragment hostFragment, VolumeInfo volume, StorageVolumeProvider svp) { in StorageItemPreferenceController() argument 108 mVolume = volume; in StorageItemPreferenceController() 117 VolumeInfo volume, in StorageItemPreferenceController() argument 120 this(context, hostFragment, volume, svp); in StorageItemPreferenceController() 190 public void setVolume(VolumeInfo volume) { in setVolume() argument 191 mVolume = volume; in setVolume()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidNativeInterface.java | 123 public void setVolume(int volume) { in setVolume() argument 124 setVolumeNative(volume); in setVolume() 183 private native void setVolumeNative(int volume); in setVolumeNative() argument
|