/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MtpService.java | 67 for (StorageVolume volume : mVolumeMap.values()) { in addStorageDevicesLocked() 68 addStorageLocked(volume); in addStorageDevicesLocked() 81 StorageVolume volume = mVolumeMap.remove(path); 82 if (volume != null) { 83 removeStorageLocked(volume); 128 for (StorageVolume volume : mVolumes) { in onStartCommand() 129 if (Environment.MEDIA_MOUNTED.equals(volume.getState())) { in onStartCommand() 130 volumeMountedLocked(volume.getPath()); in onStartCommand() 132 Log.e(TAG, "StorageVolume not mounted " + volume.getPath()); in onStartCommand() 249 StorageVolume volume = mVolumes[i]; in volumeMountedLocked() local [all …]
|
D | MediaScannerService.java | 228 String volume = arguments.getString("volume"); in handleMessage() local 231 if (MediaProvider.INTERNAL_VOLUME.equals(volume)) { in handleMessage() 238 else if (MediaProvider.EXTERNAL_VOLUME.equals(volume)) { in handleMessage() 250 if (false) Log.d(TAG, "start scanning volume " + volume + ": " in handleMessage() 252 scan(directories, volume); in handleMessage() 253 if (false) Log.d(TAG, "done scanning volume " + volume); in handleMessage()
|
D | MediaProvider.java | 4044 for (VolumeInfo volume : volumes) { in isOtherUserExternalDir() 4045 if (FileUtils.contains(volume.path, path)) { in isOtherUserExternalDir() 4049 if (FileUtils.contains(volume.path, externalStoragePath) in isOtherUserExternalDir() 4524 … String volume = srcuri.toString().substring(16, 24); // extract internal/external in getKeyIdForName() local 4525 … Uri uri = Uri.parse("content://media/" + volume + "/audio/" + table + "/" + rowId); in getKeyIdForName() 4545 … String volume = srcuri.toString().substring(16, 24); // extract internal/external in getKeyIdForName() local 4546 … Uri uri = Uri.parse("content://media/" + volume + "/audio/" + table + "/" + rowId); in getKeyIdForName() 4654 private Uri attachVolume(String volume) { in attachVolume() argument 4665 helper = mDatabases.get(volume); in attachVolume() 4667 if (EXTERNAL_VOLUME.equals(volume)) { in attachVolume() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarVolumeControllerFactory.java | 263 private void writeVolumeToSettings(int carContext, int volume) { in writeVolumeToSettings() argument 266 Settings.Global.putInt(mContext.getContentResolver(), key, volume); in writeVolumeToSettings() local 281 int volume; in handleMessage() local 286 volume = (int) msg.obj; in handleMessage() 292 if (volume == mSuppressUiForVolume[1]) { in handleMessage() 295 + stream + " volume: " + volume); in handleMessage() 322 volume = msg.arg2; in handleMessage() 328 mHal.setStreamVolume(stream, volume); in handleMessage() 431 Integer volume = volumesPerCarStream.get(carStream); in initCurrentVolumeLocked() local 432 if (volume == null) { in initCurrentVolumeLocked() [all …]
|
D | VolumeUtils.java | 225 int volume = (int) ((float) volIndex / maxIndex * 100.0f); in volIndexToAmpl() local 226 return logToLinear(volumeToDecibels(volume)); in volIndexToAmpl() 232 private static float volumeToDecibels(int volume) { in volumeToDecibels() argument 233 return (100 - volume) * DB_PER_STEP; in volumeToDecibels()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageVolumePreference.java | 51 public StorageVolumePreference(Context context, VolumeInfo volume, int color, long totalBytes) { in StorageVolumePreference() argument 55 mVolume = volume; in StorageVolumePreference() 60 setKey(volume.getId()); in StorageVolumePreference() 61 setTitle(mStorageManager.getBestVolumeDescription(volume)); in StorageVolumePreference() 64 if (VolumeInfo.ID_PRIVATE_INTERNAL.equals(volume.getId())) { in StorageVolumePreference() 70 if (volume.isMountedReadable()) { in StorageVolumePreference() 72 final File path = volume.getPath(); in StorageVolumePreference() 92 setSummary(volume.getStateDescription()); in StorageVolumePreference() 100 if (volume.getType() == VolumeInfo.TYPE_PUBLIC in StorageVolumePreference() 101 && volume.isMountedReadable()) { in StorageVolumePreference()
|
D | StorageSettings.java | 331 public MountTask(Context context, VolumeInfo volume) { in MountTask() argument 334 mVolumeId = volume.getId(); in MountTask() 335 mDescription = mStorageManager.getBestVolumeDescription(volume); in MountTask() 367 public UnmountTask(Context context, VolumeInfo volume) { in UnmountTask() argument 370 mVolumeId = volume.getId(); in UnmountTask() 371 mDescription = mStorageManager.getBestVolumeDescription(volume); in UnmountTask()
|
/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/DocumentsUI/src/com/android/documentsui/ |
D | OpenExternalDirectoryActivity.java | 124 final StorageVolume volume = (StorageVolume) storageVolume; in onCreate() local 126 volume.getUuid(), directoryName) == PERMISSION_NEVER_ASK) { in onCreate() 135 if (!showFragment(this, userId, volume, directoryName)) { in onCreate() 204 for (VolumeInfo volume : volumes) { in showFragment() 205 if (isRightVolume(volume, root, userId)) { in showFragment() 207 internalRoot = volume.getInternalPathForUser(userId); in showFragment() 212 volumeLabel = sm.getBestVolumeDescription(volume); in showFragment() 218 Log.w(TAG, "No volume description for " + volume + "; using " + volumeLabel); in showFragment() 285 private static boolean isRightVolume(VolumeInfo volume, String root, int userId) { in isRightVolume() argument 286 final File userPath = volume.getPathForUser(userId); in isRightVolume() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | SettingsDumpService.java | 127 for (VolumeInfo volume : manager.getVolumes()) { in dumpStorage() 129 if (volume.isMountedReadable()) { in dumpStorage() 130 File path = volume.getPath(); in dumpStorage() 134 volObj.put("path", volume.getInternalPath()); in dumpStorage() 135 volObj.put("state", volume.getState()); in dumpStorage() 136 volObj.put("stateDesc", volume.getStateDescription()); in dumpStorage() 137 volObj.put("description", volume.getDescription()); in dumpStorage() 138 obj.put(volume.getId(), volObj); in dumpStorage()
|
/packages/apps/Dialer/java/com/android/incallui/ringtone/ |
D | InCallTonePlayer.java | 109 toneGenerator = mToneGeneratorFactory.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/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/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | FormatAsPublicStepFragment.java | 59 for (final VolumeInfo volume : volumes) { in onCreate() 60 if ((volume.getType() == VolumeInfo.TYPE_PRIVATE || in onCreate() 61 volume.getType() == VolumeInfo.TYPE_PUBLIC) && in onCreate() 62 TextUtils.equals(volume.getDiskId(), mDiskId)) { in onCreate() 63 mVolumeId = volume.getId(); in onCreate()
|
D | FormatActivity.java | 234 for (final VolumeInfo volume : volumes) { in onRequestFormatAsPrivate() 235 if ((volume.getType() == VolumeInfo.TYPE_PRIVATE || in onRequestFormatAsPrivate() 236 volume.getType() == VolumeInfo.TYPE_PUBLIC) && in onRequestFormatAsPrivate() 237 TextUtils.equals(volume.getDiskId(), diskId)) { in onRequestFormatAsPrivate() 238 mFormatDiskDesc = mStorageManager.getBestVolumeDescription(volume); in onRequestFormatAsPrivate()
|
D | SettingsStorageService.java | 117 for (final VolumeInfo volume : volumes) { in formatAsPublic() 118 if (TextUtils.equals(diskId, volume.getDiskId()) && in formatAsPublic() 119 volume.getType() == VolumeInfo.TYPE_PRIVATE) { in formatAsPublic() 120 storageManager.forgetVolume(volume.getFsUuid()); in formatAsPublic()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
D | CarVolumeServiceTest.java | 319 public void injectVolumeEvent(int context, int volume) { in injectVolumeEvent() argument 323 .addIntValue(context, volume, 0) in injectVolumeEvent() 331 int volume = v.get(VehicleAudioVolumeIndex.VOLUME); in onPropertySet() local 335 mCurrent.put(stream, volume); in onPropertySet() 339 .addIntValue(stream, volume, state) in onPropertySet() 346 int volume = mCurrent.get(stream); in onPropertyGet() local 349 .addIntValue(stream, volume, 0) in onPropertyGet()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | CarEmulator.java | 260 int volume = v.get(VehicleAudioVolumeIndex.VOLUME); in onPropertySet() local 266 .addIntValue(state, volume, state) in onPropertySet() 269 mCurrent.put(stream, volume); in onPropertySet() 276 int volume = mCurrent.get(stream); in onPropertyGet() local 280 .addIntValue(stream, volume, 0) in onPropertyGet()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | StorageItemPreferenceController.java | 99 Context context, Fragment hostFragment, VolumeInfo volume, StorageVolumeProvider svp) { in StorageItemPreferenceController() argument 102 mVolume = volume; in StorageItemPreferenceController() 111 VolumeInfo volume, in StorageItemPreferenceController() argument 114 this(context, hostFragment, volume, svp); in StorageItemPreferenceController() 184 public void setVolume(VolumeInfo volume) { in setVolume() argument 185 mVolume = volume; in setVolume()
|
D | StorageSummaryDonutPreferenceController.java | 98 public void updateSizes(StorageVolumeProvider svp, VolumeInfo volume) { in updateSizes() argument 99 final long sharedDataSize = volume.getPath().getTotalSpace(); in updateSizes() 106 final long usedBytes = totalSize - volume.getPath().getFreeSpace(); in updateSizes()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | SoundPlayer.java | 58 public void play(int resourceId, float volume) { in play() argument 63 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; 211 public void setStreamVolume(int logicalStream, int volume) { in setStreamVolume() argument 217 mCarAudioManager.setStreamVolume(logicalStream, volume, 0); in setStreamVolume() 222 Log.d(TAG, "Set stream " + logicalStream + " volume " + volume); in setStreamVolume()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetPhoneState.java | 220 void setSpeakerVolume(int volume) { in setSpeakerVolume() argument 221 mSpeakerVolume = volume; in setSpeakerVolume() 228 void setMicVolume(int volume) { in setMicVolume() argument 229 mMicVolume = volume; in setMicVolume()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | StorageSummaryDonutPreferenceControllerTest.java | 115 VolumeInfo volume = Mockito.mock(VolumeInfo.class); in testPopulateWithVolume() local 118 when(volume.getPath()).thenReturn(file); in testPopulateWithVolume() 123 mController.updateSizes(svp, volume); in testPopulateWithVolume()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | AudioHalService.java | 164 void onVolumeChange(int streamNumber, int volume, int volumeState); in onVolumeChange() argument 170 void onVolumeLimitChange(int streamNumber, int volume); in onVolumeLimitChange() argument 380 int[] volume = {stream, 0, 0}; in getStreamVolume() local 721 int volume = vec.get(VehicleAudioVolumeIndex.VOLUME); in dispatchEventToListener() local 724 volumeListener.onVolumeChange(streamNum, volume, volumeState); in dispatchEventToListener()
|
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/ |
D | MpegTsPlayer.java | 434 public void setVolume(float volume) { in setVolume() argument 435 mVolume = volume; in setVolume() 438 volume); in setVolume() 441 volume); in setVolume()
|