/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 …]
|
D | StorageSettings.java | 358 public MountTask(Context context, VolumeInfo volume) { in MountTask() argument 361 mVolumeId = volume.getId(); in MountTask() 362 mDescription = mStorageManager.getBestVolumeDescription(volume); in MountTask() 394 public UnmountTask(Context context, VolumeInfo volume) { in UnmountTask() argument 397 mVolumeId = volume.getId(); in UnmountTask() 398 mDescription = mStorageManager.getBestVolumeDescription(volume); in UnmountTask()
|
/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 …]
|
D | StorageSettings.java | 358 public MountTask(Context context, VolumeInfo volume) { in MountTask() argument 361 mVolumeId = volume.getId(); in MountTask() 362 mDescription = mStorageManager.getBestVolumeDescription(volume); in MountTask() 394 public UnmountTask(Context context, VolumeInfo volume) { in UnmountTask() argument 397 mVolumeId = volume.getId(); in UnmountTask() 398 mDescription = mStorageManager.getBestVolumeDescription(volume); in UnmountTask()
|
/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 | StorageSettingsFragment.java | 50 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/ |
D | MtpService.java | 69 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/ |
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 | 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/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(int volume) { in sendVolumeChanged() argument 222 d("sendVolumeChanged: volume=" + volume); in sendVolumeChanged() 223 sendVolumeChangedNative(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(int volume); in sendVolumeChangedNative() argument
|
/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/apps/Settings/src/com/android/settings/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/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/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/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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
D | VolumeTestFragment.java | 16 package com.google.android.car.kitchensink.volume; 175 int volume = current + (up ? 1 : -1); in adjustVolumeByOne() local 176 mCarAudioManager.setGroupVolume(groupId, volume, in adjustVolumeByOne() 178 Log.d(TAG, "Set group " + groupId + " volume " + volume); in adjustVolumeByOne()
|
/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
|